QQE Signals Conversion

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #233958 quote
    AzkuneAzkune
    Participant
    New

    Hello,

    I would like to have this indicator in ProRealCode. The indicator is in Pine Script.

    Thanks in advance.

    study(“QQE signals”, overlay=true)
    RSI_Period = input(14, title=’RSI Length’)
    SF = input(5, title=’RSI Smoothing’)
    QQE = input(4.238, title=’Fast QQE Factor’)
    ThreshHold = input(10, title=”Thresh-hold”)
    src = close
    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 < shortband[1] ? min(shortband[1], newshortband) : newshortband
    cross_1 = cross(longband[1], RSIndex)
    trend := cross(RSIndex, shortband[1]) ? 1 : cross_1 ? -1 : nz(trend[1], 1)
    FastAtrRsiTL = trend == 1 ? longband : shortband
    // Find all the QQE Crosses
    QQExlong = 0
    QQExlong := nz(QQExlong[1])
    QQExshort = 0
    QQExshort := nz(QQExshort[1])
    QQExlong := FastAtrRsiTL < RSIndex ? QQExlong + 1 : 0
    QQExshort := FastAtrRsiTL > RSIndex ? QQExshort + 1 : 0
    //Conditions
    qqeLong = QQExlong == 1 ? FastAtrRsiTL[1] – 50 : na
    qqeShort = QQExshort == 1 ? FastAtrRsiTL[1] – 50 : na
    // Plotting
    plotshape(qqeLong, title=”QQE long”, text=”Long”, textcolor=color.white, style=shape.labelup, location=location.belowbar, color=color.green, transp=0, size=size.tiny)
    plotshape(qqeShort, title=”QQE short”, text=”Short”, textcolor=color.white, style=shape.labeldown, location=location.abovebar, color=color.red, transp=0, size=size.tiny)
    // Alerts
    alertcondition(qqeLong, title=”Long”, message=”Long”)
    alertcondition(qqeShort, title=”Short”, message=”Short”)
    #233974 quote
    JSJS
    Participant
    Master
    #233994 quote
    AzkuneAzkune
    Participant
    New

    It is not the same. The difference between the QQE in TradingView and that code is different. Look the Indicator in TradingView.

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

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

QQE Signals Conversion


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
Azkune @azkune Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by AzkuneAzkune
2 years, 3 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 06/16/2024
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...