bandes vwap semaine , mensuel année

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #225180 quote
    graff.laetitiagraff.laetitia
    Participant
    Junior

    Bonjour , j’ai essayer de coder un indicateur de bande vwap semaine mensuel et année mais j’ais un message d’erreur ” caractères manquants suggestion : fin du code ” . Je ne sais pas comment corriger mon erreur , pouvez vous m’aider ?

    voila la fin du code

    SDlw2a = VWAPmonthly-sda*1.50
    SDup3a = VWAPmonthly+sda*2.25
    SDlw3a = VWAPmonthly-sda*2.25

    if VWAPmonthly>VWAPmonthly[1] then
    color = 1
    else
    color = -1
    endif

    p1b = SUMMATION[dYearly](volume*typicalprice)
    p2b = SUMMATION[dYearly](volume)
    p3b = SUMMATION[dYearly](volume*typicalprice*typicalprice)
    mab = p1b/p2b
    ma2b = p3b/p2b
    sdb = sqrt(abs(ma2b – mab * mab))

    SDup1b = VWAPyearly+sdb*0.75
    SDlw1b = VWAPyearly-sdb*0.75
    SDup2b = VWAPyearly+sdb*1.50
    SDlw2b = VWAPyearly-sdb*1.50
    SDup3b = VWAPyearly+sdb*2.25
    SDlw3b = VWAPyearly-sdb*2.25

    if VWAPyearly>VWAPyearly[1] then
    color = 1
    else
    color = -1
    endif
    return
    return
    RETURN VWAPweekly coloured by color as “VWAPweekly”, SDup1 coloured(103, 113, 121) as “upper 1 STD”, SDlw1 coloured(103, 113, 121) as “lower 1 STD”, SDup2 coloured(15, 157, 232) as “upper 2 STD”, SDlw2 coloured(15, 157, 232) as “lower 2 STD”, SDup3 coloured(187, 11, 11) as “upper 3 STD”, SDlw3 coloured(187, 11, 11) as “lower 3 STD”,
    VWAPmonthly coloured by color as “VWAPmonthly”, SDup1a coloured(103, 113, 121) as “upper 1 STDa”, SDlw1a coloured(103, 113, 121) as “lower 1 STDa”, SDup2a coloured(15, 157, 232) as “upper 2 STDa”, SDlw2a coloured(15, 157, 232) as “lower 2 STDa”, SDup3a coloured(187, 11, 11) as “upper 3 STDa”, SDlw3a coloured(187, 11, 11) as “lower 3 STDa”
    endif VWAPyearly coloured by color as “VWAPyearly”, SDup1b coloured(103, 113, 121) as “upper 1 STDb”, SDlw1b coloured(103, 113, 121) as “lower 1 STDb”, SDup2b coloured(15, 157, 232) as “upper 2 STDb”, SDlw2b coloured(15, 157, 232) as “lower 2 STDb”, SDup3b coloured(187, 11, 11) as “upper 3 STDb”, SDlw3b coloured(187, 11, 11) as “lower 3 STDb”
    return

    Capture-decran-indicateur.png Capture-decran-indicateur.png
    #225256 quote
    JC_BywanJC_Bywan
    Moderator
    Master

    Bonjour,

    on peut lire 4 lignes return à la fin, il n’en faut qu’une, en l’occurrence il faut garder la 3e avec toutes les variables, et supprimer la 1ère la 2ème et la 4ème celles sans variables.

    On voit aussi qu’il y a un endif à supprimer en plein milieu des variables de la ligne return gardée, sans doute une anomalie issue d’un copier-coller.

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

bandes vwap semaine , mensuel année


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by JC_BywanJC_Bywan
2 years, 9 months ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 12/13/2023
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...