Indicatore Bollinger

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #70575 quote
    HendrixHendrix
    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
    NicolasNicolas
    Keymaster
    Legend

    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
    HendrixHendrix
    Participant
    Senior

    THANKSSSSSS!

    #70588 quote
    HendrixHendrix
    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
    NicolasNicolas
    Keymaster
    Legend
    //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
    HendrixHendrix
    Participant
    Senior

    Grazie !!!!!!!!

Viewing 6 posts - 1 through 6 (of 6 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

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 HendrixHendrix
8 years, 4 months ago.

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