bandes vwap semaine , mensuel année

Forums ProRealTime forum Français Support ProBuilder bandes vwap semaine , mensuel année

Viewing 2 posts - 1 through 2 (of 2 total)
  • #225180

    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

    #225256

    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)

Create your free account now and post your request to benefit from the help of the community
Register or Login