![]() |
This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com
|
|||||||
| Indicator Development Support for the development of custom indicators using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Member
Join Date: Feb 2007
Location: , ,
Posts: 71
Thanks: 0
Thanked 0 times in 0 posts
|
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 |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
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.
Ray
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Automatic Trend Line Indicator | Greg1 | Charting | 6 | 07-23-2009 07:48 AM |
| Line properties | mrlucky1x | Charting | 1 | 08-27-2007 11:44 AM |
| CalculateOnBarClose=true vs FirstTickOfBar | ceesvh | Automated Trading | 1 | 07-27-2007 08:33 AM |
| New Indicator wizard always codes PlotStyle as line. | higler | General Programming | 3 | 05-16-2007 03:11 PM |
| Line "names" in Indicator Box change to "Line" after modification | higler | Charting | 3 | 05-02-2007 06:05 AM |