Modified Weis Wave

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #171409 quote
    carlvancarlvan
    Participant
    Average

    Bonjour,

    Serait-il possible de convertir ce code Tradingview on formule PRT ?
    Il s’agit d’une version modifiée des Weis Wave ; la version initiale existe dans la librairie PRT mais est assez différente de celle-ci.
    Voici le code, ci-dessous – merci d’avance, Nicolas.
    Pour la clarté, voici le lien de la page tradingview, où l’auteur donne le code, explique sa démarche, et explique comment appliquer le code:
    https://www.tradingview.com/script/rksN65xY-My-Wave/

    Carl

    //@version=3
    study(“My Wave”,overlay=true)
    percent1 = input(title=”Percent, 1 = 1%”, defval=0.5, minval=0.001, maxval=20, step=0.001,type=float )
    percent=percent1*0.01
    weisup=volume
    weisdown=volume

    hh=0.00 //Highest High
    hh:=nz(hh[1])
    hhh=0.000
    hhh:=nz(hhh[1])

    ll=0.00 //Lowest Low
    ll:=nz(ll[1])
    lll=0.000
    lll:=nz(lll[1])

    count=0
    count:=nz(count[1])+1

    trend=0
    trend:=nz(trend[1])
    minimo=close //low
    maximo=close //high
    support=0.000
    support2=0.000
    support3=0.000
    support4=0.000
    resistance=0.000
    resistance2=0.000
    resistance3=0.000
    resistance4=0.000

    if barstate.isfirst
    count:=0
    ll := minimo //Lowest low
    hh := maximo //Highest high
    lll := low //Lowest low low
    hhh := high //Highest high high
    if count==1
    if maximo >= hh[1]
    hh := maximo
    hhh := high
    trend:= 1 //up
    else
    ll:= minimo
    lll:=low
    trend:= -1 //down

    if count>1

    if trend[1] > 0 //if trend up
    hhh:=max(hhh[1],high)
    if maximo >= hh[1] //if High greater or equal to Highest high
    hh:= maximo

    else //else (High is smaller than Highest high)
    if minimo < hh[1] – hh[1] * percent //if low < Highest high – Highest high * Percent
    ll:= minimo //Lowest low = low
    lll:=low

    trend:= -1 //trend down

    else //else (trend down)
    lll:=min(lll[1],low)

    if minimo ll[1] + ll[1] * percent //if high > Lowest low + Lowest low * Percent
    hh:= maximo //Highest high = high
    hhh:=high

    trend := 1 //trend up

    ct=trend>trend[1]?1:trendll[1]) ?nz(weisup[1])+volume:na
    weisdown:=trend==-1 or (trend[1]==1 and maximo<hh[1])?nz(weisdown[1])+volume:na
    plot (weisup,color=green,style=columns,linewidth=2,title="histup",transp=50)
    plot (weisdown,color=red,style=columns,linewidth=2,title="histdown",transp=50)

    #171412 quote
    NicolasNicolas
    Keymaster
    Legend

    Je m’en occupe dés que possible, aurais-tu des images à poster de cet indicateur stp ?

    #171417 quote
    carlvancarlvan
    Participant
    Average

    Merci d’avance; normalement, dans le lien que j’ai donné, il y a la page tradingview qui montre et le code, et le graphique, mais voici une illustration attachée.

    ModWaveWeis.jpg ModWaveWeis.jpg
    #224692 quote
    sacram14sacram14
    Participant
    New

    Bonjour
    ce code a-t-il été traduit ?
    Merci

Viewing 4 posts - 1 through 4 (of 4 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

Modified Weis Wave


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
carlvan @carlvan Participant
Summary

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

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 06/08/2021
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...