If you would like me to use your code sample to discover any potential underlying flaws in NinjaTrader I would be happy to attempt to do so.
With respect to your plot execution markers, please add print statements to your code sample that print out the data that we are looking at, and send the output of your NinjaScript Output Window, rather than sending pictures of charts, so that we can better understand what is occurring.
Comment