Code: Select all
[IntrabarOrderGeneration = True]
variables:
intrabarpersist level1(0);
if LastBarOnChart_s then begin
if level1 = 0 then level1 = close-2;
if marketposition = 0 then buy 1 contract next bar at level1 limit;
end;
Code: Select all
[IntrabarOrderGeneration = True]
variables:
intrabarpersist level1(0);
if LastBarOnChart_s then begin
if level1 = 0 then level1 = close-2;
if marketposition = 0 then buy 1 contract next bar at level1 limit;
end;
Which version are you using? I can't find it.No, that's in the Strategy Properties window. I'm referring to the Format Signal window.
If you are using non-IOG strategy, say with the following:Aaaah!! Just realised the barstatus = 2 idea won't work. The limit order won't be active for all the other ticks updates. My original idea will work for me for now. Goes to show my suggestion to avoid repeating the same command on every tick update is a far better approach. It keeps things simple and effective.