I have also attached the code as well.
- why do the orders get executed at the high when the command is for them to be executed at the next bar on open.
- and yet the exits are executed on the next bar at close when they are triggered.
Basically the aim was to enter on the next bar on the open after an entry trigger, and then to execute AS SOON as the exit is triggered. This will be when the low goes lower than a certain point.
thanks for any help.
Code: Select all
[IntrabarOrderGeneration = True];
if low<LStop then begin
sell("lx") this bar;
condition1 = close<close and close>close;
if condition1 then
buy("le") next bar on open;