Support Board
Date/Time: Thu, 16 Jan 2025 13:11:31 +0000
Post From: Stop trading after a lost
[2017-10-19 12:37:14] |
User29926 - Posts: 92 |
I remember seeing a post some time ago with code to stop trading after a lost. Then start trading after a number of bars had passed. But I cant find it anymore thru the search feature. I wanted to try and convert that code to stop trading until a indicator value changes, then allow trading again. Does anyone have any sample code they could supply or just point me to the post regarding how to stop trading after a lost and I will attempt to modify that to what I need. This is my current code attempt at stopping trading until an indicator value changes. It stops trading with a "1", but I cant figure out how to get it to switch back and stay at "0" to allow trading again. =IF( AND( $H$90 =0,$J$44 <0, $H$56 = ID17.SG8@8) ,1,IF( OR( $H$90= 1,$H$56 <> ID17.SG8@8), 0 , IF(ISBLANK($H$98),0 ,$H$98) )) Thanks Date Time Of Last Edit: 2017-10-19 13:12:56
|