IOG off (false)
Code: Select all
vars: Trig(0);
If H < H[1] and L > L[1] and MarketPosition <= 0 then begin //buy inside stick
Trig = High + 0.0001;
Buy("IP-L") 100 shares next bar at Trig Stop;
end;
If marketposition = 1 then begin //exit every trade for testing
sell next bar at open;
end;
Code: Select all
vars: Trig(0);
If BarStatus(1) = 2 then begin
If H < H[1] and L > L[1] and MarketPosition <= 0 then begin //buy inside stick
Trig = High + 0.0001;
Buy("IP-L") 100 shares next bar at Trig Stop;
end;
If marketposition = 1 then begin //exit every trade for testing
sell next bar at open;
end;
end;