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 01-10-2008, 09:26 AM   #1
mwyatt
Junior Member
 
Join Date: Sep 2007
Posts: 12
Thanks: 0
Thanked 1 time in 1 post
Default MACD CalculateOnBarClose=false

Hi,

I would like the MACD to repaint on every tick, rather than the close of each bar so i see its direction on the forming candle.

I have tried adding CalculateOnBarClose = false to the Initialize method of the default MACD indicator but it aint working for me. Any help would be great.

cheers
Mat
mwyatt is offline  
Reply With Quote
Old 01-10-2008, 09:31 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

When you add the indicator to a chart, make sure the "Calculate on bar close" parameter is set to false.
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
Identifying Close of Bar when CalculateOnBarClose = false OnePutt General Programming 8 04-20-2011 11:20 AM
CalculateOnBarClose not working? gluebunny Indicator Development 10 04-09-2009 10:31 AM
Indicator line goes to zero when CalculateOnBarClose set to True ThePatientOne Indicator Development 1 08-30-2007 11:42 AM
False Open Position momentom Miscellaneous Support 1 08-24-2007 05:25 AM
CalculateOnBarClose=true vs FirstTickOfBar ceesvh Automated Trading 1 07-27-2007 08:33 AM


All times are GMT -6. The time now is 05:13 AM.