This code is not picking up on data2, which is set at 1 tic. I've tried several other ways, but can't seem to make it work. Any help much appreciated.
Thank you!
Inputs:
DLRS(1000), { Opt 500/1000/10 }
PCT(7); { Opt 7/20/.1 }
Variables: MP2(0);
MP2 = Marketposition data2;
If MP2 = -1 then begin
setstopposition data2;
setpercenttrailing(DLRS data2, PCT data2);
End;
If MP2 = 1 then begin
setstopposition data2;
setpercenttrailing(DLRS data2, PCT data2);
End;
Help setting this code for data2 dollar % trail
- TJ
- Posts: 7743
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2222 times
- Marina Pashkova
- Posts: 2758
- Joined: 27 Jul 2007