Indicatore Bollinger

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #70575 quote
    Hendrix
    Participant
    Senior

    Buongiorno,

    è possibile indicare con un cerchio o rettangolo quando una o più candele Heikin Ashi la loro ombra per un valore di 5 punti esce dalla BB+ e BB-.

     

    Grazie

    Cattura.png Cattura.png
    #70579 quote
    Nicolas
    Keymaster
    Master

    Questo indicatore farebbe quello che vuoi. Fateci sapere se è ok per voi.
    Se lo desideri, puoi modificare il periodo e il moltiplicatore delle bande di Bollinger nel codice.

    //HA
    IF BarIndex=0 THEN
    xClose = (open+high+low+close)/4
    xOpen = open
    xHigh = high
    xLow = low
    ELSE
    xClose = (open+high+low+close)/4
    xOpen = (xOpen[1]+xClose[1])/2
    xHigh = Max(max(high, xOpen), xClose)
    xLow = Min(min(Low, xOpen), xClose)
    endif
    
    //Bbands
    nbb=20
    coeffbb=2
    mabb = average[nbb]
    upperbb = mabb+coeffbb*std[nbb]
    lowerbb = mabb-coeffbb*std[nbb]
    
    if(xLow<lowerbb) then 
    drawtext("▲",barindex,xlow)
    endif
    
    if(xhigh>upperbb) then 
    drawtext("▼",barindex,xhigh)
    endif
    
    return
    heikin-ashi-breaks-bollinger-bands.png heikin-ashi-breaks-bollinger-bands.png
    #70581 quote
    Hendrix
    Participant
    Senior

    THANKSSSSSS!

    #70588 quote
    Hendrix
    Participant
    Senior

    @Nicolas

     

    Scusami Nicolas ma per filtrare i falsi segnali è possibile che l’indicatori disegni un triangolo solo per le candele che sono di 5 superiori alle Bande.

     

    Grazie

    #70599 quote
    Nicolas
    Keymaster
    Master
    //HA
    IF BarIndex=0 THEN
    xClose = (open+high+low+close)/4
    xOpen = open
    xHigh = high
    xLow = low
    ELSE
    xClose = (open+high+low+close)/4
    xOpen = (xOpen[1]+xClose[1])/2
    xHigh = Max(max(high, xOpen), xClose)
    xLow = Min(min(Low, xOpen), xClose)
    endif
    
    //Bbands
    nbb=20
    coeffbb=2
    mabb = average[nbb]
    upperbb = mabb+coeffbb*std[nbb]
    lowerbb = mabb-coeffbb*std[nbb]
    
    if(xLow<lowerbb-5*pointsize) then 
    drawtext("▲",barindex,xlow)
    endif
    
    if(xhigh>upperbb+5*pointsize) then 
    drawtext("▼",barindex,xhigh)
    endif
    
    return
    #70610 quote
    Hendrix
    Participant
    Senior

    Grazie !!!!!!!!

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

Indicatore Bollinger


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
author-avatar
Hendrix @hendrix Participant
Summary

This topic contains 5 replies,
has 2 voices, and was last updated by Hendrix
7 years, 10 months ago.

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 05/16/2018
Status: Active
Attachments: 2 files
Logo Logo
Loading...