Conversion of Rsi histo Mt4 to prorealtime
Forums › ProRealTime English forum › ProBuilder support › Conversion of Rsi histo Mt4 to prorealtime
- This topic has 8 replies, 5 voices, and was last updated 2 years ago by DamianFaz.
Viewing 9 posts - 1 through 9 (of 9 total)
-
-
01/10/2021 at 4:08 PM #15721301/10/2021 at 7:08 PM #15722601/22/2021 at 9:14 AM #158886
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.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546RSIPeriod=8MASignal=13MAMode=0//BuyAlertLevel=-1//SellAlertLevel=1RSIPrice=customcloseRSIHistoModify=1.5RSIMain=((rsi[rsiperiod](rsiprice)-50)*RSIHistoModify)curr=RSIMainprev=RSIMain[1]if(curr>prev) thenup=1endifif(curr<prev) thenup=0endifif up thenif curr>0 thenr=0g=0b=255elser=255g=127b=80endifelseif curr<0 thenr=255g=0b=0elser=100g=149b=237endifendifRSIsignal = average[MAsignal,MAmode](rsimain)return rsimain coloured(r,g,b) style(histogram),rsisignal1 user thanked author for this post.
02/02/2021 at 10:31 AM #16010802/02/2021 at 10:41 AM #16010902/02/2021 at 11:19 AM #16012210/12/2022 at 10:29 AM #202354Hi 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.
10/12/2022 at 11:08 AM #202360Just add this variation of the code onto the price chart, not below:
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455level = 20RSIPeriod=8MASignal=13MAMode=0//BuyAlertLevel=-1//SellAlertLevel=1RSIPrice=customcloseRSIHistoModify=1.5RSIMain=((rsi[rsiperiod](rsiprice)-50)*RSIHistoModify)curr=RSIMainprev=RSIMain[1]if(curr>prev) thenup=1endifif(curr<prev) thenup=0endifif up thenif curr>0 thenr=0g=0b=255elser=255g=127b=80endifelseif curr<0 thenr=255g=0b=0elser=100g=149b=237endifendif//RSIsignal = average[MAsignal,MAmode](rsimain)if rsimain crosses over 20 thendrawarrowup(barindex,low) coloured("green")endifif rsimain crosses under 20 thendrawarrowdown(barindex,low) coloured("red")endifreturn //rsimain coloured(r,g,b) style(histogram),rsisignaldefine what level, with “level” variable at top of the code.
1 user thanked author for this post.
10/12/2022 at 5:24 PM #202391 -
AuthorPosts
Viewing 9 posts - 1 through 9 (of 9 total)
Find exclusive trading pro-tools on
Similar topics: