MikeInMA
01-02-2011, 11:19 AM
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.
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.