Sorry I was out of the office yesterday .
I have now got it to work using separate stoplosses and targets for each (both long and short) order. ( I used the OCO function in submiOrder too, which is very useful!)
I now have my full code up and running.
However, I can only do what I want to do if I do this off a fixed instrument open, as I am using:
longEntry = CurrentDayOHL().CurrentOpen[0] + ('x' *TickSize);
Let's say I want to have my 'open' price at 10:05 (something completely random), what could I write that would allow me to have the first tick at that time as the reference/open price for my longEntry and shortEntry?
Thanks as always
Comment