To display RSI with candlestick  [SOLVED]

Questions about MultiCharts and user contributed studies.
hendrix
Posts: 54
Joined: 27 Dec 2013
Has thanked: 21 times
Been thanked: 5 times

To display RSI with candlestick

Postby hendrix » 25 Jul 2015

Hello

Is there a way to display RSI indicator using candlesticks? as you can see on the attachement (prorealtime platform)

thanks

Image[/img]

Image

User avatar
CrazyNasdaq
Posts: 321
Joined: 02 Sep 2009
Location: ITALY
Has thanked: 98 times
Been thanked: 89 times

Re: To display RSI with candlestick

Postby CrazyNasdaq » 25 Jul 2015

Hello

Is there a way to display RSI indicator using candlesticks? as you can see on the attachement (prorealtime platform)

thanks

Image[/img]

Image
Here is what you search
Image

Code: Select all

{RSI candlestick by CrazyNasdaq 20150725}

inputs:
Length( 14 ),
OverSold( 30 ),
OverBought( 70 ),
OverSColor( red ),
OverBColor( blue ),
Up.color(rgb(50,205,50)),
Dn.color(red);

variables: var0(0), var1(0), var2(0), var3(0), color(0) ;

var0 = RSI( open, Length ) ;
var1 = RSI( High, Length ) ;
var2 = RSI( Low, Length ) ;
var3 = RSI( close, Length ) ;

if var0 > var3 then color = Dn.color;
if var0 < var3 then color = Up.color;

Plot1(Overbought, "Over Bought", OverSColor );
Plot2(OverSold, "Over Sold", OverBColor);

Plot3(var0, "Open RSI", color); // plot style as left tick
Plot4(var1, "High RSI"); // plot style as bar high
Plot5(var2, "Low RSI"); // plot style as bar low
Plot6(var3, "Close RSI", color); // plot style as right tick

hendrix
Posts: 54
Joined: 27 Dec 2013
Has thanked: 21 times
Been thanked: 5 times

Re: To display RSI with candlestick

Postby hendrix » 25 Jul 2015

Hi CrazyNasdaq!

thank you for your help

When I try to set your RSI, it doesn't display like your's, ie, I don't see candle wick, instead I juste see some dots above or below candlestick

What is your Multichart version please? (I use 9.1 beta / build 11373)

Image

User avatar
CrazyNasdaq
Posts: 321
Joined: 02 Sep 2009
Location: ITALY
Has thanked: 98 times
Been thanked: 89 times

Re: To display RSI with candlestick  [SOLVED]

Postby CrazyNasdaq » 25 Jul 2015

Hi CrazyNasdaq!

thank you for your help

When I try to set your RSI, it doesn't display like your's, ie, I don't see candle wick, instead I juste see some dots above or below candlestick

What is your Multichart version please? (I use 9.1 beta / build 11373)
Hi hendrix,
that's because you use point bars /range bars and with them you affects the logic of RSI which looks for a ratio between >>> Average of x days' up closes / Average of x days' down closes where up close or down close are calculated by the difference from open and close (positive or negative)
Point bar is a kind of bar where you always have "OPEN" upper or lower then previous "CLOSE" bar which generates the new bar. This behaviour affects the logic of RSI function when you calculate it on High or LOW RSI candlestick
Try that code with a different kind of bar (time, volume, ticks ecc....) and you will find the wicks you are looking for


Return to “MultiCharts”