AddOrder scripting

STB

STB

Member
I am looking for the add order to trigger on the current candle when the volume goes higher than the previous bar, but instead it adds the order to the open of the new candle once it is created.


AddOrder(OrderType.BUY_TO_OPEN, CLOSE>VWAP and volume>volume[1] , tickColor = GetColor(2), arrowColor = GetColor(2), name = "LE");
 
O

OrlandoEV

New member
Hey STB, did you get this to work? I am facing a similar issue and actually not getting any order created!
 
STB

STB

Member
I dont think it can be done, I can only add the order after the candle has completed.
 
RmS59

RmS59

Member
The strategies show the order on the bar after the occurrence.

I see the same thing when my stops are hit
 

Similar threads

Top