I am constructing a strategy based on my trading PnL. Do you have any idea on how to code it in NinjaTrader? I would like to know the number of my last recent five trades' win/loss. And to make that number as another indicator to trade in the future. I've tried to use performance class. But it is cumulatively calculated, which means if I did not trade in last few bars, it still gives me a positive/negative profit. Do you have any idea on how to calculating the real profit each trade gives me?
Thanks!

Comment