Bollinger%B

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #113342 quote
    HendrixHendrix
    Participant
    Senior

    Buonasera,

    vorrei indicare per l’indicatore riportato in oggetto e nella foto che venga indicato sul prezzo:

    • quando l’indicatore tocca la banda inferiore della Bollinger (20,1.8) indichi una freccia “UP”
    •  quando l’indicatore tocca la banda inferiore della Bollinger (20,1.8) indichi una freccia “DOWN”
    •  quando incrocia la media a 9 periodi un tondo

    Foto in allegato

    Grazie

     

    Saluti

     

    quando l’indicatore tocca la Bollinger

    Cattura-BB.png Cattura-BB.png
    #113354 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Eccolo:

    Offset1= 25 * pipsize                               //5    Pips di distanza dal bordo BB
    Offset2= Offset1 * 4                               //pips per
    BBVal  = 20                                        //20   periodi BB
    BBdev  = 1.8                                       //1.8  deviazione BB
    BBavg  = average[BBval,0](close)                   //BB   mean (middle line)
    BollUp = BBavg + ((std[BBval](close)) * BBdev)     //BB   Upper Band
    BollDn = BBavg - ((std[BBval](close)) * BBdev)     //BB   Lower Band
    MyInd  = average[50,0](close)                      //mettere qui il proprio indicatore
    IF MyInd CROSSES OVER BollUP THEN
       DRAWARROWUP(BarIndex,BollDN - Offset1) coloured(0,255,0,255)   //Verde
    ELSIF MyInd CROSSES UNDER BollDN THEN
       DRAWARROWDOWN(BarIndex,BollUP + Offset1) coloured(255,0,0,255) //Rossa
    ELSIF (MyInd CROSSES OVER BBavg) OR (MyInd CROSSES UNDER BBavg) THEN
       DRAWELLIPSE(BarIndex,BBavg + Offset2,BarIndex - 4,BBavg - Offset2) COLOURED(0,0,255,255)
    ENDIF
    RETURN

    ProRealTime v10.3 non prevede un cerchio, ma un’ellisse, per cui non è esattamente centrata sul punto.

    x-18.jpg x-18.jpg
Viewing 2 posts - 1 through 2 (of 2 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%B


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
author-avatar
Hendrix @hendrix Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzirobertogozzi
6 years, 10 months ago.

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 11/21/2019
Status: Active
Attachments: 2 files
ProRealCode ProRealCode
Loading...