Hello, I would like to obtain the profit or the stop in currency of the last trade, but I think that my input method does not allow the usual method to be used (systemperformance, alltrades.count always gives 0, does not add trades)
my input method is as follows
entryOrderShort = account.CreateOrder(Cbi.Instrument.GetInstrument(i nstrumentCC), OrderAction.Sell, OrderType.Market, TimeInForce.Day, Contracts, 0, 0, string.Empty, "Entry", null);
NinjaTrader.NinjaScript.AtmStrategy.StartAtmStrate gy(ATMTemplate, entryOrderShort);
I think that obtaining the ATMstrategyID could obtain that information, but since it is not invoked in a common way, I do not know how to obtain that ID
I hope you can help me find a way to print the information of the last trade once it has been closed
Comment