indicatore che utilizza le bande di bollinger non std

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #210147 quote
    Gabriele BattistaGabriele Battista
    Participant
    Senior

    Buonasera, avrei la necessità di inserire in un indicatore che fornisca un segnale quando close e open della candela sono fuori delle bande di Bollinger settate a 1,5; 30.

    E’ possibile, grazie.

    #210208 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Eccolo:

    ONCE BBVal = 30                                    //30 periodi delle Bande
    ONCE BBdev = 1.5                                   //1.5 deviazione
    BBavg      = average[BBval,0](close)               //media centrale
    BollUP     = BBavg + ((std[BBval](close)) * BBdev) //Banda superiore
    BollDN     = BBavg - ((std[BBval](close)) * BBdev) //Banda inferiore
    Segnale    = 0
    IF low > BollUP THEN
       Segnale = 1
    ELSIF high < BollDN THEN
       Segnale = -1
    ENDIF
    RETURN Segnale AS "Segnale",0 AS "Zero"
    Gabriele Battista thanked this post
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

indicatore che utilizza le bande di bollinger non std


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Summary

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

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 02/22/2023
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...