indicateur avec Bollinger en exponentielle

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #242204 quote
    bourik
    Participant
    New

    Bonjour

    je voulais me faire un petit indicateur qui m’indique quand une bougie commence et fini en dehors des Bollinger paramétrées en exponentielle sur une période de 20. Existe t’il une fonction que je peux utiliser?

    Merci

    #242206 quote
    fifi743
    Participant
    Master

    voila le code des bandes en exponentielle si j’ai bien compris

    p = 20
    dev = 1.5
     
    BollInf = Average[p,1](close)-dev*std[p](close)
    BollSup = Average[p,1](close)+dev*std[p](close)
    robertogozzi, JS and Iván González thanked this post
    #242235 quote
    bourik
    Participant
    New

    Merci 😉

    #242244 quote
    JS
    Participant
    Senior

    Petit Indicateur…

    // Calculate the Bollinger Bands with exponential moving average
    Period = 20 //20 periods
    Deviation = 2 //2x standard deviation
    MiddleBand = Average[Period,1](Close)
    BollUp = MiddleBand + Deviation * Std[Period](Close)
    BollDown = MiddleBand - Deviation * Std[Period](Close)
    
    // Check for conditions where candle starts or ends outside the bands
    CandleAboveBB = (Open > BollUp and Close > BollUp)
    CandleBelowBB = (Open < BollDown and Close < BollDown)
    
    // Draw signals on the chart
    IF CandleAboveBB THEN
    DrawArrowUp(BarIndex,High)Coloured("Green")
    EndIf
    
    If CandleBelowBB THEN
    DrawArrowDown(BarIndex,Low)Coloured("Red")
    EndIf
    
    RETURN MiddleBand,BollUp coloured("Green"),BollDown coloured("Red")
    Iván González thanked this post
    #242262 quote
    bourik
    Participant
    New

    ah ba voila c’est l’utilisation que je voulais en faire

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.

indicateur avec Bollinger en exponentielle


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
bourik @bourik Participant
Summary

This topic contains 4 replies,
has 3 voices, and was last updated by bourik
1 year ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 01/05/2025
Status: Active
Attachments: 1 files
Logo Logo
Loading...