OK....use whatever color the plot is when it's not in the oversold or overbought condition instead of white!where did the "White" come from?
Search found 5 matches
- 12 Dec 2011
- Forum: User Contributed Studies and Indicator Library
- Topic: CCI prebuilt set plot color to bar close
- Replies: 3
- Views: 2503
Re: CCI prebuilt set plot color to bar close
- 10 Dec 2011
- Forum: User Contributed Studies and Indicator Library
- Topic: problem incorporating data series to plotpaintbar
- Replies: 5
- Views: 2546
Re: problem incorporating data series to plotpaintbar
If you run code below on a 1 minute chart and compare it to a 1 min adx ploted on a one min chart and a 5 min adx ploted on a 5 min chart you will see instances were the 5 min adx is closed up and later if the 1 min turns up the candlestick does turn green until the one minute charts falls on the ne...
- 10 Dec 2011
- Forum: User Contributed Studies and Indicator Library
- Topic: problem incorporating data series to plotpaintbar
- Replies: 5
- Views: 2546
Re: problem incorporating data series to plotpaintbar
I tried your suggestion with the 1 minute ADX added and it did not seem to work properly. I also noticed a similar problem when I used different data series when plotting my cci indicator. The indicator only plotted on the closing bar of the high time frame. In other words a 5 min adx or cci plotted...
- 09 Dec 2011
- Forum: User Contributed Studies and Indicator Library
- Topic: CCI prebuilt set plot color to bar close
- Replies: 3
- Views: 2503
Re: CCI prebuilt set plot color to bar close
If you add this code you problem will be solved simply:
if var0 > OverBought then
SetPlotColor( 1, OverBColor )
else if var0 < OverSold then
SetPlotColor( 1, OverSColor )
else SetPlotColor (1, White) ;
if var0 > OverBought then
SetPlotColor( 1, OverBColor )
else if var0 < OverSold then
SetPlotColor( 1, OverSColor )
else SetPlotColor (1, White) ;
- 09 Dec 2011
- Forum: User Contributed Studies and Indicator Library
- Topic: problem incorporating data series to plotpaintbar
- Replies: 5
- Views: 2546
problem incorporating data series to plotpaintbar
Hello, In the simple code below I using a one minute chart of the S&P Emini and I've added a 5min data series of the same symbol (data2). When the the 5 min adx is turned up (ADX2Value > ADX2Value[1]) I want the 1 min candlesticks to be painted green when and stay green while this condition is met. ...