How can I set color of RSI oversold or overbought zones?
Author: mrsic
Creation Date: 9/28/2017 2:33 PM
profile picture

mrsic

#1
Hi,
Could someone please check this Strategy for me. I am not a programmer but i do my best.

CODE:
Please log in to see this code.


@ how can i set a color here (RSI) instead of a bar? See Picture.

thanks.

greetings damir.
profile picture

Eugene

#2
Hi Damir,

QUOTE:
@ how can i set a color here (RSI) instead of a bar? See Picture.

Since by "here" you mean oversold/overbought areas I've renamed topic's title accordingly. For a how-to please refer to PlotSeriesOscillator in the QuickRef. And here's a nice example of the method's application to create multi-level shading:

Indicators | Plot Oscillators with Different Shades of Colors


QUOTE:
Could someone please check this Strategy for me

From a syntax standpoint, it looks OK on the surface.
profile picture

mrsic

#3
Hi Eugene,

QUOTE:
From a syntax standpoint, it looks OK on the surface.

Thanks.

QUOTE:
Since by "here" you mean oversold/overbought areas I've renamed topic's title accordingly. For a how-to please refer to PlotSeriesOscillator in the QuickRef. And here's a nice example of the method's application to create multi-level shading:

I have expressed myself wrong. I did not think of shading within the oscillator. If i set Color for one Bar than i like to see a piece of the line also in a color. See another Picture.
Do you know what i mean?

profile picture

Eugene

#4
Damir,

Then SetSeriesBarColor should do the trick. See the QuickRef code example.
profile picture

Cone

#5
Better yet, use PlotSeriesOscillator. The example in the QuickRef even uses RSI.
profile picture

mrsic

#6
Thanks Eugene & Cone.

Greetings Damir.