Thank you for your patience.
I was only able to produce four alerts during the day. Your NinjaScript / C# Code will always be logically processed and evaluate according to your set logic - this can of course lead to unexpected results at times, thus we would suggest to simplify and debug your code to better understand the event sequence it would go through - unfortunately we cannot offer such debug or code modification services here, but please see the provided resources below to help you proceed productively :
First of all you would want to use Print() statements to verify values are what you expect - Debugging your NinjaScript code: http://www.ninjatrader.com/support/f...ead.php?t=3418
For strategies add TraceOrders = true to your Initialize() method and you can then view valuable output related to strategy submitted orders through Tools > Output window - TraceOrders: http://www.ninjatrader.com/support/f...ead.php?t=3627
It may also help to add drawing objects to your chart for signal and condition confirmation - Drawing Objects: http://www.ninjatrader.com/support/f...ead.php?t=3419
If you would prefer the debug assist of a professional NinjaScript consultant, please check into the following listings - Click here for a list of certified NinjaScript Consultants: http://www.ninjatrader.com/partners#...pt-Consultants
Comment