Bollinger BandWidth

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #43135 quote
    PlscapPlscap
    Participant
    Veteran

    Bonjour Nicolas, bonjour à tous,

    En utilisant l’indicateur bollinger Bandwidth, je me demandais s’il était possible de borner cet indicateur?

    Par exemple le borner à 100/0 ou 100/-100.

     

    Merci à tous 🙂

    #43166 quote
    NicolasNicolas
    Keymaster
    Legend

    Borner cet indicateur revient à le normaliser sur une échelle qu’il faut au préalable définir. Il y a “mille et une façon” de définir l’échelle 0-100% sur laquelle viendra se calculer la largeur des bandes de bollinger : largeur historique sur X périodes, largeur définit par l’utilisateur en pips/points fixes, etc.

    Merci donc de bien vouloir nous indiquer comment créer ce rapport d’échelle entre la largeur des bandes et une échelle définie au préalable ou dynamique donc 🙂

    #43172 quote
    supertitisupertiti
    Participant
    Master

    Voici le Bandwith avec moyenne de Hull que Sohocool avait fait en son temps

    nota : la Hull est plus “rapide” que la construction normale des Bollinger

    //  BAND WIDTH bandes de Bollinger avec  moyenne de Hull
    /////   by sohocool //  le 1/11/2012
    
    /////// Moyenne Mobile de HULL
    demiP = round(P/2)
    temp = 2*WeightedAverage[demiP](customclose) - WeightedAverage[P](customclose)
    racineP = round(SQRT(P))
    MMHULL = WeightedAverage[racineP](temp)
    /////////////////////////////////
    av=mmhull
    /////////////////////////////////
    som=0
    for i=0 to p-1 do
    	som = som + SQUARE( customclose[i]-av)
    next
    som=som / p
    ecart = SQRT(som)
    //////////////////////////////////
    bas = av - coef*ecart
    haut= av + coef*ecart
    /////////////////////////////////
    abc=100*(haut-bas)/MMHULL
    return abc as "BAND WIDTH BB Hull",0 as "zero %"
    
    //variables
    //    p = entier = période moyenne de Hull -par défaut =12
    //    coef= coefficiant bande Bolinger =décimal -par défaut = 1
    
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

Bollinger BandWidth


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
Plscap @flodefacebook Participant
Summary

This topic contains 2 replies,
has 3 voices, and was last updated by supertitisupertiti
9 years, 1 month ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 08/14/2017
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...