Now I would like to add StopLoss and ProfitTarget, and to track last Instrument ordered in the same time.
I thought I could use Performance.AllTrades[Count-1].Entry.Instrument, but actually I need the index of the Instrument in BarsArray, because other methods work with this index. And I would like to track last instrument ordered, no matter if the order is executed and no matter if I have trade completed.
Is there any way to have access to last order and its instrument, and then to the instrument's index in BarsArray?
Comment