Conversion of Rsi histo Mt4 to prorealtime

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #157213 quote
    yepyep
    Participant
    New

    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!

    #157226 quote
    Vonasi
    Moderator
    Master

    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.

    #158886 quote
    Nicolas
    Keymaster
    Master

    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
    
    
    DamianFaz thanked this post
    #160108 quote
    r45Mu5
    Participant
    New

    Hi Nicholas

    Do you perhaps have a download file for this RSI Histo for PRT?

    Thanks

    #160109 quote
    Nicolas
    Keymaster
    Master

    No, just copy/paste it into your platform and you are done.

    #160122 quote
    r45Mu5
    Participant
    New

    Ok, thanks Nicolas…I’m still figuring out the platform. Thanks

    #202354 quote
    DamianFaz
    Participant
    New

    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.

    #202360 quote
    Nicolas
    Keymaster
    Master

    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.

    DamianFaz thanked this post
    #202391 quote
    DamianFaz
    Participant
    New

    Thanks so much!

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.

Conversion of Rsi histo Mt4 to prorealtime


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
yepyep @yepyep Participant
Summary

This topic contains 8 replies,
has 5 voices, and was last updated by DamianFaz
3 years, 4 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 01/10/2021
Status: Active
Attachments: 5 files
Logo Logo
Loading...