Pouvez-vous modifier le script team viewer WAE en prorealtime ?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #257226 quote
    deakondeakon
    Participant
    Junior

    Voici le script :


    study(“Waddah Attar Explosion V2 [SHK]”, shorttitle=“WAE [SHK]”)

    sensitivity = input(150, title=“Sensitivity”)

    fastLength=input(20, title=“FastEMA Length”)

    slowLength=input(40, title=“SlowEMA Length”)

    channelLength=input(20, title=“BB Channel Length”)

    mult=input(2.0, title=“BB Stdev Multiplier”)


    DEAD_ZONE = nz(rma(tr(true),100)) * 3.7


    calc_macd(source, fastLength, slowLength) =>

        fastMA = ema(source, fastLength)

        slowMA = ema(source, slowLength)

        fastMA – slowMA


    calc_BBUpper(source, length, mult) => 

        basis = sma(source, length)

        dev = mult * stdev(source, length)

        basis + dev


    calc_BBLower(source, length, mult) => 

        basis = sma(source, length)

        dev = mult * stdev(source, length)

        basis – dev


    t1 = (calc_macd(close, fastLength, slowLength) – calc_macd(close[1], fastLength, slowLength))*sensitivity


    e1 = (calc_BBUpper(close, channelLength, mult) – calc_BBLower(close, channelLength, mult))


    trendUp = (t1 >= 0) ? t1 : 0

    trendDown = (t1 < 0) ? (-1*t1) : 0


    plot(trendUp, style=columns, linewidth=1, color=(trendUp<trendUp[1])?lime:green, transp=45, title=“UpTrend”)

    plot(trendDown, style=columns, linewidth=1, color=(trendDown<trendDown[1])?orange:red, transp=45, title=“DownTrend”)

    plot(e1, style=line, linewidth=2, color=#A0522D, title=“ExplosionLine”)

    plot(DEAD_ZONE, color=blue, linewidth=1, style=cross, title=“DeadZoneLine”)

    #257228 quote
    deakondeakon
    Participant
    Junior

    J’ai déjà une grosse ébauche qui est la suivante. Seulement je rencontre quelques problèmes :

    • Il me manque le fait de pouvoir configurer les paramètres (sensivity, fastlenght,…) depuis l’interface PRT, je dois le faire à travers le script et c’est fastidieux
    • Je ne réussi pas a faire ressortir les “essoufflement” de la tendance (à savoir quand le rouge passe orange et quand le vert foncé passe vert clair).

    Cdt

    Ebauche en cours :


    // — parameters

    sensitivity = 150

    fastLength = 20 //”FastEMA Length”

    slowLength = 40 //”SlowEMA Length”

    channelLength = 20 //”BB Channel Length”

    mult = 2.0 //”BB Stdev Multiplier”)

    deadZone = 30 //”No trade zone threshold”


    // indis

    if barindex>slowLength then

    calcMACD = MACD[fastLength,slowLength,9](customclose)

    calcBBUpper = average[channelLength](customclose)+(mult*std[channelLength](customclose))

    calcBBLower = average[channelLength](customclose)-(mult*std[channelLength](customclose))


    t1 = (calcMACD-calcMACD[1])*sensitivity

    e1 = calcBBUpper – calcBBLower


    if t1>=0 then

    trendUP = t1

    trendDOWN = 0

    else

    trendUP = 0

    trendDOWN = -1*t1

    endif


    if trendUP<trendUP[1] then

    color = -1

    else

    color = 1

    endif


    if trendDOWN<trendDOWN[1] then

    color = -1

    else

    color = 1

    endif

    endif


    RETURN trendUP coloured by color style(histogram) as “UP”, trendDOWN coloured by color style(histogram) as “DOWN”, e1 as “Explosion line”, deadzone*pipsize as “Dead Zone Line”

    #257231 quote
    NicolasNicolas
    Keymaster
    Legend

    Je n’ai pas vérifié si il s’agit de la même exacte version puisque c’est très ancien cet indicateur, mais l’original se trouve ici : https://www.prorealcode.com/prorealtime-indicators/waddah-attar-explosion/

    Si ce n’est pas exactement pareil, alors on modifiera bien entendu.

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

Pouvez-vous modifier le script team viewer WAE en prorealtime ?


Support Plateforme : Graphiques, Données & Courtiers

New Reply
Author
author-avatar
deakon @deakon Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by NicolasNicolas
8 months ago.

Topic Details
Forum: Support Plateforme : Graphiques, Données & Courtiers
Language: French
Started: 02/01/2026
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...