I have wrote an strategy that runs OnEachTick. It has a BreakEven condition that works perfect, but I would like just print in output window one line when stop moves to BE. Actually it does since position is opened.
if (BarsInProgress == 0)
&& Condition 1
&& Condition 2
ChangeOrder(stopLongOrder, stopLongOrder.Quantity, 0, Position.AveragePrice);
Print(Time[0] + " || " + Name + " || " + Account + " || " + Instrument);
How can I do it?
Thanks in advanced
Comment