According to the docs a trade requires an entry and an exit for NinjaScript. So I'm wanting to grab the price of the last EnterLong() or EnterShort().
This works for trades, is there anything for orders or entries that I can use to get this data point?
Thanks.
if (SystemPerformance.AllTrades.Count > 0 && tradeCount != SystemPerformance.AllTrades.Count - 1) { lastTrade = SystemPerformance.AllTrades[SystemPerformance.AllTrades.Count - 1]; }
Comment