NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > Suggestions and Feedback > Suggestions And Feedback

Suggestions And Feedback New feature suggestions and feedback.

Reply
 
Thread Tools Display Modes
Old 01-02-2011, 12:19 PM   #1
MikeInMA
Senior Member
 
Join Date: Jul 2007
Location: Taunton, MA
Posts: 202
Thanks: 1
Thanked 0 times in 0 posts
Default Suggestion: Recalculate indicators when chart style changes

I have an indicator that colors data bars based on specific criteria. The indicator is sensitive to the chart style, as candles must be hollow or filled to distinguish up candles from down candles, while bars are always a solid color. This works fine when the indicator is initially applied, but there can be problems if the chart style changes. Note the three screen shots below.

The first shows the result when a bar chart was created and then the indicator was applied. This is correct.

The second shows the result after the chart style was changed from OHLC to Candlestick. This is incorrect, as all candles are filled; there's no way to distinguish up candles from down candles.

The third shows the result after the Indicators window was opened and then immediately closed by clicking OK. The indicator recalculated and detected the new chart style, so now the candles are colored properly.

Hence my suggestion, as this problem would not occur if indicators were recalculated when the chart style changed.
Attached Images
File Type: png BarChart.png (25.6 KB, 7 views)
File Type: png Candlestick1.png (25.4 KB, 6 views)
File Type: png Candlestick2.png (24.6 KB, 6 views)
MikeInMA is offline  
Reply With Quote
Old 01-02-2011, 02:04 PM   #2
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 24,536
Thanks: 386
Thanked 1,395 times in 1,364 posts
Default

Thanks for the suggestions Mike, we'll add to our list - would you see the correct outcome if you pressed F5 to reload the NinjaScript's applied?

Thanks,
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 01-02-2011, 02:42 PM   #3
MikeInMA
Senior Member
 
Join Date: Jul 2007
Location: Taunton, MA
Posts: 202
Thanks: 1
Thanked 0 times in 0 posts
Default

Yes, F5 takes care of it. But it would be nice if that weren't necessary.

The ship that has probably sailed at this point was making BarColor be the interior of a candle. If you had BarColor as the candle outline and something like CandleInteriorColor for the inside, there'd be a much smoother transition between bars and candles. But I suspect it's too late now....
MikeInMA is offline  
Reply With Quote
Old 01-03-2011, 05:18 AM   #4
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 24,536
Thanks: 386
Thanked 1,395 times in 1,364 posts
Default

I see, thanks for clarifying matters Mike.
NinjaTrader_Bertrand 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
Need help with what chart style to use in bollinger. Draven Charting 4 12-30-2010 05:55 AM
Chart Style Suggestion yamdigger Version 7 Beta General Questions & Bug Reports 1 07-28-2010 04:19 PM
Custom Chart Style TradingDreamer General Programming 3 09-28-2009 03:15 PM
Custom chart style terenyi General Programming 1 07-14-2009 12:21 PM
Speeding things up: If Indicators Dialog Applied, not need to recalculate on Closing NinjaCustomer Suggestions And Feedback 6 12-12-2008 10:56 PM


All times are GMT -6. The time now is 12:11 PM.