It works calculating OnPriceChange,
applied to a range bars chart, with ES futures .
I have problems with orders.
when I am short, for example, if appears the condition to enter long position,
depending on the Close[0] position related to the entry price,
I send EnterLongLimit(1, epc) or EnterLong(1).
When is sent the order EnterLong(1),
I hope that this order closes the short position and open a long position ( entering at market), but it doesn´t occur in many bars.
The same with long positions, EnterShort(1) order doesn't work as it should.
¿Why doesn't work this EnterLong(1) or EnterShort(1) orders when Close[0] is in a level to enter at market?
I sent the strategy code with clear explanations for entries and exit conditions and price levels to summit different orders.
Hoping for your answer , thanks a lot.
Comment