PDA

View Full Version : Indicator line goes to zero when CalculateOnBarClose set to True


ThePatientOne
08-30-2007, 11:35 AM
I have a custom indicator that goes to zero on the last completed bar when the CalculateOnBarClose input is set to True. When this input is set to False, the indicator calculates and plots correctly. Please see the attached graphics.

Is there any special logic checking that must be taken into account when only processing closed bars?

Thank you

NinjaTrader_Ray
08-30-2007, 11:42 AM
No there is not. Somewhere in your code you are setting the plot value to zero. You will need to debug to see where that happens and adjust your logic.