Thanks for your note.
Since this is referring to custom calculations in your script, debugging steps would need to be taken to determine how your script is processing and calculating values.
Something you could do is add prints before and after each calculation and assignment in the script to print all the values used for calculations to the NinjaScript Output window for comparison.
Below is a link to a forum post demonstrating how to use prints to understand behavior.
https://ninjatrader.com/support/foru...121#post791121
Let us know if we may further assist.

Comment