proscreener Bollinger band

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #167455 quote
    lowbatlowbat
    Participant
    Senior

    buonasera,

    sarebbe possibile impostare un proscreener che mi evidenzi (magari con una freccia) la 5′ candela che chiude sopra la upper Bollinger band impostate a 20 periodi con deviazione 0,382?

     

    grazie a tutti in anticipo

    #167476 quote
    NicolasNicolas
    Keymaster
    Legend

    Le bande di Bollinger con un fattore di deviazione di 0,382 sono bande molto strette! Sei sicuro di voler essere avvisato quando una candela si chiude sopra di essa? Ci saranno molti avvisi!

    bollinger-bands-0.382.png bollinger-bands-0.382.png
    #167493 quote
    lowbatlowbat
    Participant
    Senior

    forse mi sono spiegato male….vorrei, se possibile, uno screener che mi evidenzi quando il prezzo proveniente da sotto le bb fa una serie di 5 candele che chiudono sopra la BB (20 – o,382)

    #167495 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Vengono da sotto la banda inferiore, quindi basta che chiudano sopra la banda inferiore, non quella superiore?

    #167525 quote
    lowbatlowbat
    Participant
    Senior

    il prezzo proviene da sotte le bande e successivamente le attraversa facendo 5 chiusure al di sopra della upper bb tarata a 20 periodi con dev 0,382

    #167528 quote
    lowbatlowbat
    Participant
    Senior

    allego schermata

    1-2.png 1-2.png
    #167530 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Eccolo:

    IF BarIndex <= 1 THEN
       Cross1 = 0
       Cross2 = 0
    ENDIF
    UpperBB = Average[20](close)+0.382*std[20](close)
    LowerBB = Average[20](close)-0.382*std[20](close)
    IF Cross1 = 0 THEN
       Cross1 = close CROSSES OVER LowerBB
    ELSE
       IF close CROSSES UNDER LowerBB THEN
          Cross1 = 0
       ELSE
          IF Cross2 = 0 THEN
             Cross2 = close CROSSES OVER UpperBB
          ELSE
             IF close CROSSES UNDER UpperBB THEN
                Cross2 = 0
             ENDIF
          ENDIF
       ENDIF
    ENDIF
    Cond = (summation[5](close > UpperBB) = 5)
    screener[Cond AND Cross2]
    #167532 quote
    lowbatlowbat
    Participant
    Senior

    perdonami Roberto, io intendevo SOLO le prime 5 chiusure sopra la upper bb dopo che il prezzo ha incrociato le bb dal basso verso l’alto, se possibile

     

    grazie

    #167535 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Fatto:

    IF (BarIndex <= 1) THEN
       Cross1 = 0
       Cross2 = 0
       Conto  = 0
    ENDIF
    IF Conto = 5 THEN
       Conto  = 0
       Cross1 = 0
       Cross2 = 0
    ENDIF
    UpperBB = Average[20](close)+0.382*std[20](close)
    LowerBB = Average[20](close)-0.382*std[20](close)
    IF Cross1 = 0 THEN
       Cross1 = close CROSSES OVER LowerBB
       Cross2 = 0
    ELSIF close CROSSES UNDER LowerBB THEN
       Cross1 = 0
    ENDIF
    IF (Cross2 = 0) AND Cross1 THEN 
       IF close CROSSES OVER UpperBB THEN
          Cross2 = 1
          Conto  = 0
       ENDIF
    ELSIF close CROSSES UNDER UpperBB THEN
       Cross2 = 0
    ENDIF
    IF (Close > UpperBB) AND Cross2 AND (Conto < 5) THEN
       Conto = Conto + 1
    ELSIF close <= UpperBB THEN
       Conto  = 0
       Cross1 = 0
       Cross2 = 0
    ENDIF
    screener[(Conto = 5) AND Cross2]
    #167538 quote
    lowbatlowbat
    Participant
    Senior

    perfetto grazie Roberto..!!

    #170175 quote
    StenozarStenozar
    Participant
    Master

    Scusa lowbat se mi intrometto; hai verificato che lo screener serva per identificare la persistenza di un trend positivo o a cosa serve? chiedo per imparare naturalmente.

    GRAZIE

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

proscreener Bollinger band


ProScreener: Scansione Mercati & Screener

New Reply
Author
author-avatar
lowbat @lowbat Participant
Summary

This topic contains 10 replies,
has 4 voices, and was last updated by StenozarStenozar
5 years, 3 months ago.

Topic Details
Forum: ProScreener: Scansione Mercati & Screener
Language: Italian
Started: 04/18/2021
Status: Active
Attachments: 2 files
ProRealCode ProRealCode
Loading...