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 > Application Technical Support > Charting

Charting Support for NinjaTrader Advanced Charting.

Reply
 
Thread Tools Display Modes
Old 09-09-2011, 06:48 PM   #1
JS999
Senior Member
 
Join Date: Mar 2009
Posts: 477
Thanks: 11
Thanked 1 time in 1 post
Default CalcOnBarClose = false... does it update on every tick?

I have a question:

If you place an indicator on a chart, and set the CalcOnBarClose setting to False, will the indicator calculate on every single tick that is received, or will it calculate only when the chart actually refreshes? For example, under the Properties tab, if I set the Display Update interval to 60 seconds, I'd like to know if an indicator with Calculate on Bar Close = false will recalculate every 60 seconds when the chart is refreshed, or on every tick. It makes a big difference to performance... thanks!
JS999 is offline  
Reply With Quote
Old 09-09-2011, 08:34 PM   #2
sledge
Senior Member
 
Join Date: Aug 2010
Location: Washington, D.C.
Posts: 1,184
Thanks: 178
Thanked 301 times in 259 posts
Default

I don't think your display refresh interval has anything to do with it.

It will be for each tick.

Reading the documentation:


CalculateOnBarClose



Definition
If true, OnBarUpdate() is called on the close of each bar otherwise it is called on each incoming tick. This property should ONLY be set in an Initialize() method and be the last statement within that method.

·
·




Tips
1. Calculating indicators or systems for each incoming tick can be CPU intensive. Only calculate indicators on each incoming tick if you have a requirement to calculate it intra bar.



Quote:
Originally Posted by JS999 View Post
I have a question:

If you place an indicator on a chart, and set the CalcOnBarClose setting to False, will the indicator calculate on every single tick that is received, or will it calculate only when the chart actually refreshes? For example, under the Properties tab, if I set the Display Update interval to 60 seconds, I'd like to know if an indicator with Calculate on Bar Close = false will recalculate every 60 seconds when the chart is refreshed, or on every tick. It makes a big difference to performance... thanks!
sledge is offline  
Reply With Quote
The following user says thank you to sledge for this post:
Old 09-09-2011, 08:40 PM   #3
JS999
Senior Member
 
Join Date: Mar 2009
Posts: 477
Thanks: 11
Thanked 1 time in 1 post
Default

Thanks for the response... that kind of sucks. I would suggest to NT that they look into possibly making an indicator setting that allows you to refresh it only when the chart refreshes. It seems kind of pointless to refresh an indicator every tick if the chart it is displayed on only refreshes every 60 seconds... so what about it NT, is that something you might consider? Thanks!
JS999 is offline  
Reply With Quote
Old 09-10-2011, 01:03 PM   #4
NinjaTrader_Cameron
NinjaTrader Customer Service
 
NinjaTrader_Cameron's Avatar
 
Join Date: Aug 2010
Location: Denver, CO
Posts: 935
Thanks: 49
Thanked 79 times in 77 posts
Default

Hello JS999,

Thank you for your posts.

Looks like sledge answered your question correctly.

I will take this suggestion and forward it to our Development Team.
NinjaTrader_Cameron is offline  
Reply With Quote
Old 09-10-2011, 01:31 PM   #5
JS999
Senior Member
 
Join Date: Mar 2009
Posts: 477
Thanks: 11
Thanked 1 time in 1 post
Default

Quote:
Originally Posted by NinjaTrader_Cameron View Post
Hello JS999,

Thank you for your posts.

Looks like sledge answered your question correctly.

I will take this suggestion and forward it to our Development Team.
Thanks Cameron... I would seriously consider this feature if I were you guys... one of the complaints some people used to have was the overall performance of NT, and often times people do put their indicators to Calculate on Bar Close to False... it just makes sense that the indicator shouldn't be calculating more often than the chart is repainting, and seems like a hidden waste of CPU cycles that could be improved. Thanks!
JS999 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
Trail Stop update tick by tick while calculate on bar close abarb26 Strategy Development 9 10-15-2010 10:36 AM
Does not update on every tick eventrader Indicator Development 1 07-06-2010 04:37 AM
CalcOnBarClose FALSE & BarsSince Pepperdog Automated Trading 1 12-04-2009 04:36 AM
MultiTimeFrame CalcOnBarClose Trade1953 Strategy Development 4 10-19-2009 10:54 PM
Tick Charts won't update garciaal Charting 3 08-11-2008 08:53 AM


All times are GMT -6. The time now is 01:48 AM.