Code: Select all
IF marketposition() = 0 and stoptrigger = false and ...... then begin
StopLoss = c * ((100-sl)/100);
Code: Select all
if marketposition() = 1 then
SELL ( "StopLoss" ) 1 contracts next bar at StopLoss stop;
Code: Select all
if (L < StopLoss ) THEN stoptrigger = true;
if (stoptrigger = true) then count= count+1;
if count > 2 then begin
count = 0;
stoptrigger = false;
end;
No Erocla