INDICATOR QQE MOD

Viewing 3 posts - 1 through 3 (of 3 total)
  • #231151

    Hello Ivan,
    Would it be possible to convert the code of this QQE MOD indicator which accompanies SSL HYBRID?

    Here is the code:

    //@version=4
    //By Glaz, Modified
    //
    study(“QQE MOD”)
    RSI_Period = input(6, title=’RSI Length’)
    SF = input(5, title=’RSI Smoothing’)
    QQE = input(3, title=’Fast QQE Factor’)
    ThreshHold = input(3, title=”Thresh-hold”)
    //

    src = input(close, title=”RSI Source”)
    //

    //
    Wilders_Period = RSI_Period * 2 – 1

    Rsi = rsi(src, RSI_Period)
    RsiMa = ema(Rsi, SF)
    AtrRsi = abs(RsiMa[1] – RsiMa)
    MaAtrRsi = ema(AtrRsi, Wilders_Period)
    dar = ema(MaAtrRsi, Wilders_Period) * QQE

    longband = 0.0
    shortband = 0.0
    trend = 0

    DeltaFastAtrRsi = dar
    RSIndex = RsiMa
    newshortband = RSIndex + DeltaFastAtrRsi
    newlongband = RSIndex – DeltaFastAtrRsi
    longband := RSIndex[1] > longband[1] and RSIndex > longband[1] ?
    max(longband[1], newlongband) : newlongband
    shortband := RSIndex[1] < shortband[1] and RSIndex upper ? #00c3ff : RsiMa – 50 = 50 ? QQEzlong + 1 : 0
    QQEzshort := RSIndex longband2[1] and RSIndex2 > longband2[1] ?
    max(longband2[1], newlongband2) : newlongband2
    shortband2 := RSIndex2[1] < shortband2[1] and RSIndex2 = 50 ? QQE2zlong + 1 : 0
    QQE2zshort := RSIndex2 ThreshHold2 ? color.silver :
    RsiMa2 – 50 ThreshHold2
    Greenbar2 = RsiMa – 50 > upper

    Redbar1 = RsiMa2 – 50 < 0 – ThreshHold2
    Redbar2 = RsiMa – 50 < lower
    plot(Greenbar1 and Greenbar2 == 1 ? RsiMa2 – 50 : na, title=”QQE Up”, style=plot.style_columns, color=#00c3ff, transp=0)
    plot(Redbar1 and Redbar2 == 1 ? RsiMa2 – 50 : na, title=”QQE Down”, style=plot.style_columns, color=#ff0062, transp=0)

    #231232

    Ici

    1 user thanked author for this post.
    #231248

    Super merci beaucoup

Viewing 3 posts - 1 through 3 (of 3 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login