QQE MOD TRADINGVIEW

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #186324 quote
    CIRONETCIRONET
    Participant
    New

    Hola, os dejo “parte” (porque aparece protegido) de este indicador de Tradingview para su conversión a PRT. Gracias.

    //@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)

    QQE-MOD-TRADINGVIEW.png QQE-MOD-TRADINGVIEW.png
Viewing 1 post (of 1 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 MOD TRADINGVIEW


ProBuilder: Indicadores y Herramientas

New Reply
Author
author-avatar
CIRONET @cironet Participant
Summary

This topic contains 1 voice and has 0 replies.

Topic Details
Forum: ProBuilder: Indicadores y Herramientas
Language: Spanish
Started: 01/22/2022
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...