NinjaTrader Support Forum  
X

Attention!

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


Go Back   NinjaTrader Support Forum > NinjaScript Development Support > Indicator Development

Indicator Development Support for the development of custom indicators using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 08-30-2007, 11:35 AM   #1
ThePatientOne
Member
 
Join Date: Feb 2007
Location: , ,
Posts: 71
Thanks: 0
Thanked 0 times in 0 posts
Default Indicator line goes to zero when CalculateOnBarClose set to True

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
Attached Images
File Type: gif ntchart.png (13.6 KB, 13 views)
File Type: gif ntchart2.png (13.3 KB, 11 views)
ThePatientOne is offline  
Reply With Quote
Old 08-30-2007, 11:42 AM   #2
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

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.
NinjaTrader_Ray is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -6. The time now is 06:35 AM.