Contare quante candele dopo la big white generano il segnale

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #230863 quote
    pj4ever
    Participant
    New

    Buonasera Roberto,

    partendo da questo contatore vorrei generare uno screener che identifichi il segnale nel seguente modo:

    si genera una candela bianca (big white) che abbia un corpo almeno pari al 20% (close>open*1,2) e volumi il triplo la media degli ultimi 5gg, dopodichè TUTTE le candele successive devono avere una chiusura all’interno di max e min della big white iniziale. Il contatore N deve definire quante candele dopo la big white generano il segnale.

    Grazie mille

    pj

    #230943 quote
    robertogozzi
    Moderator
    Master

    Per favore non aggiungere nuove richieste ad argomenti esistenti, ma creane uno nuovo. Adesso l’ho creato io.

    Grazie 🙂

    Te lo faccio quanto prima.

    #231005 quote
    robertogozzi
    Moderator
    Master

    Questo è lo screener:

    ONCE N   = 0
    IF low <> high THEN
    Bianca   = close > open
    Corpo    = abs(close - open)
    Big      = corpo >= (range * 0.2)
    volumi   = volume >= (average[5,0](volume[1]) * 1)
    BigWhite = Bianca AND Big AND Volumi
    IF BigWhite THEN
    MaxWhite = high
    MinWhite = low
    N        = 0
    ELSIF BigWhite[1] THEN
    N = N + 1
    BigWhite = BigWhite[1]
    IF low <= MinWhite OR high >= MaxWhite THEN
    N = 0
    BigWhite = 0
    ENDIF
    ELSE
    N = 0
    ENDIF
    ENDIF
    SCREENER[N](N as "Nummero")

    e questo è l’indicatore, così vedi anche sul grafico i dati:

    ONCE N   = 0
    Bianca   = close > open
    Corpo    = abs(close - open)
    Big      = corpo >= (range * 0.2)
    volumi   = volume >= (average[5,0](volume[1]) * 1)
    BigWhite = Bianca AND Big AND Volumi
    IF BigWhite THEN
    MaxWhite = high
    MinWhite = low
    N        = 0
    ELSIF BigWhite[1] THEN
    N = N + 1
    BigWhite = BigWhite[1]
    IF low <= MinWhite OR high >= MaxWhite THEN
    N = 0
    BigWhite = 0
    ENDIF
    ELSE
    N = 0
    ENDIF
    RETURN BigWhite,N
    #240608 quote
    pj4ever
    Participant
    New

    Buonasera Roberto,

    tralasciando l’evento bigwhite con volumi, come posso invece semplicemente avere un contatore per il numero di candele inside che si generano senza però che il setup sia una candela con caratteristiche particolari, semplicemente è una candela che determina un range Min-Max che poi rimane inviolato per almeno 7 candele. Nel chart in allegato arriviamo anche oltre 20 per esempio.

    Grazie mille

    pj

    #240634 quote
    robertogozzi
    Moderator
    Master

    Eccolo:

    N  = 7
    HH = high[N]
    LL = low[N]
    c1 = (summation[N]((high <= HH) AND (low >= LL)) = N)
    c2 = high <> low
    SCREENER[c1 AND c2]
    #240641 quote
    pj4ever
    Participant
    New

    Grazie Roberto,

    scusa ma questo screener recepisce il fatto che le candele inside devono essere ALMENO 7 (quindi anche quelle che lo sono da un numero superiore)?

    Chiedo perchè lo screener non dà risultati e sembra molto strano.

     

    Si potrebbe avere anche l’indicatore associato per avere accortezza del contatore?

    Grazie mille

    pj

    #240643 quote
    robertogozzi
    Moderator
    Master

    Si, contava solo quelle con 7.

    Adesso l’ho fatto partire da 50 barre prima (ma le puoi aumentare fino a circa 250, più sono più si rallenta) ed inizia a visualizzare l’istogramma dopo che ne ha contate almeno 7 (vedi foto allegata).

    Questo è l’indicatore:

    DA = 50
    N  = 7
    j  = 0
    HH = high[DA + 1]
    LL = low[DA + 1]
    FOR i = DA DownTo 0
       IF (high[i] >= HH) OR (low[i] <= LL) THEN
          HH = high[i]
          LL = low[i]
          j  = 0
       ELSE
          j  = j + 1
       ENDIF
    NEXT
    c1 = (j >= N)
    RETURN c1 AS "Inside"

    e questo è lo screener:

    DA = 50
    N  = 7
    j  = 0
    HH = high[DA + 1]
    LL = low[DA + 1]
    FOR i = DA DownTo 0
       IF (high[i] >= HH) OR (low[i] <= LL) THEN
          HH = high[i]
          LL = low[i]
          j  = 0
       ELSE
          j  = j + 1
       ENDIF
    NEXT
    c1 = (j >= N)
    c2 = high <> low
    SCREENER[c1 AND c2]
Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.

Contare quante candele dopo la big white generano il segnale


Supporto ProScreener

New Reply
Author
author-avatar
pj4ever @pj4ever Participant
Summary

This topic contains 6 replies,
has 2 voices, and was last updated by robertogozzi
1 year, 2 months ago.

Topic Details
Forum: Supporto ProScreener
Language: Italian
Started: 04/01/2024
Status: Active
Attachments: 2 files
Logo Logo
Loading...