Hello all,
I was wondering if anyone can help to convert this indicator Rsi Histo alert from Mt4.
I will attach all the info what I have.
Thank you in advance!
Thanks for the additional info but you were supposed to add it to the first topic as requested rather than double post!
I have deleted your first topic to save everyone confusion.
I converted the indicator, this is just a standard RSI that change its color according to ascending/descending conditions above or below the mid level. An average is added to its value.
RSIPeriod=8
MASignal=13
MAMode=0
//BuyAlertLevel=-1
//SellAlertLevel=1
RSIPrice=customclose
RSIHistoModify=1.5
RSIMain=((rsi[rsiperiod](rsiprice)-50)*RSIHistoModify)
curr=RSIMain
prev=RSIMain[1]
if(curr>prev) then
up=1
endif
if(curr<prev) then
up=0
endif
if up then
if curr>0 then
r=0
g=0
b=255
else
r=255
g=127
b=80
endif
else
if curr<0 then
r=255
g=0
b=0
else
r=100
g=149
b=237
endif
endif
RSIsignal = average[MAsignal,MAmode](rsimain)
return rsimain coloured(r,g,b) style(histogram),rsisignal
Hi Nicholas
Do you perhaps have a download file for this RSI Histo for PRT?
Thanks
No, just copy/paste it into your platform and you are done.
Ok, thanks Nicolas…I’m still figuring out the platform. Thanks
Hi Nicholas
There is a variation of this Code called the RSI Histo Alert whereby if the histo level goes above or below a certain defined number (say 20) then an up or down arrow is posted under the candle.
Would this be possible to add ? I don’t have the MT4 code for this variation.
Just add this variation of the code onto the price chart, not below:
level = 20
RSIPeriod=8
MASignal=13
MAMode=0
//BuyAlertLevel=-1
//SellAlertLevel=1
RSIPrice=customclose
RSIHistoModify=1.5
RSIMain=((rsi[rsiperiod](rsiprice)-50)*RSIHistoModify)
curr=RSIMain
prev=RSIMain[1]
if(curr>prev) then
up=1
endif
if(curr<prev) then
up=0
endif
if up then
if curr>0 then
r=0
g=0
b=255
else
r=255
g=127
b=80
endif
else
if curr<0 then
r=255
g=0
b=0
else
r=100
g=149
b=237
endif
endif
//RSIsignal = average[MAsignal,MAmode](rsimain)
if rsimain crosses over 20 then
drawarrowup(barindex,low) coloured("green")
endif
if rsimain crosses under 20 then
drawarrowdown(barindex,low) coloured("red")
endif
return //rsimain coloured(r,g,b) style(histogram),rsisignal
define what level, with “level” variable at top of the code.