Erreur sur mon code de sorties des bandes de Bollinger

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #132480 quote
    LurubuLurubu
    Participant
    Senior

    Bonjour,

    Je pose des condition pour trouver un plus bas qui soit compris entre la Bande de Bollinger  basse et une limite = MM – 1.5 * Ecart.

    Je distingue par une flèche verte ce cas.

    mais je m’aperçois que la condition que ce plus bas ne dépasse pas la Bollinger basse n’est pas respectée.

    Afin de vérifier, j’ai implémenter une flèche noire pour visualiser ces dépassement.

    On voit clairement la contradiction.

    Mon code est-il faux ?

    Merci .

    //Construction Bollinger
    MM = Average[20]
    Ecart = STD[20](close)
    BollSup = MM + 2 * Ecart
    BollInf = MM - 2 * Ecart
    LimInf = MM - 1.5 * Ecart
    
    //Condition
    If Low[1] < Low[2] and Low[1] < Low  and Low[1] < LimInf and low[1] > bollInf then
    Drawarrow(barindex-1,Low[1])coloured(0,195,0)
    endif
    
    //Vérification
    If Low < BollInf then
    DrawArrowDown(BarIndex,High)
    endif
    
    return BollSup as "BollSup",BollInf as"BollInf" ,MM style(DottedLine) as "MM",LimInf coloured(0,0,0) style(DottedLine,1) as "MLimInf"
    Mèches-exterieures.png Mèches-exterieures.png
    #132774 quote
    NicolasNicolas
    Keymaster
    Legend

    Je pense que ton problème vient du fait que tu compares les Low de la bougie précédente [1] avec les bandes de la bougie courante [0]. A vérifier.

    #132952 quote
    LurubuLurubu
    Participant
    Senior

    Mais oui,bien sur.

    Encore une erreur de débutant !

    Merci

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

Erreur sur mon code de sorties des bandes de Bollinger


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
Lurubu @lurubu Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by LurubuLurubu
6 years, 4 months ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 05/20/2020
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...