3 incroci al ribasso sul massimo della settimana [2]

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #247655 quote
    EdisoneEdisone
    Participant
    Average

    Ciao a tutti,
    sto cercando di costruire uno screener (su time frame intraday) che identifichi i titoli che soddisfano la seguente condizione:
    Il prezzo nella settimana [1] (cioè la settimana scorsa) ha incrociato al ribasso 3 volte il massimo della settimana [2] (cioè di due settimane fa).
    Nello specifico:
    Calcolo il massimo (Max W[2]) e minimo (Min W[2]) della settimana [2];
    Nella settimana [1], il prezzo deve superare al rialzo e poi tornare sotto il Max W[2] per almeno 3 volte (quindi 3 incroci ribassisti);
    Lo screener deve identificare questa condizione nella settimana corrente.
    Time frame di riferimento: intraday (preferibilmente 1h).
    L’evoluzione dello script è che mi individui anche in alternativa 3 incroci al rialzo sul minimo della settimana [2].
    Grazie mille in anticipo per l’aiuto !
    Allego anche uno schema per chiarezza.

    Screener-1.jpg Screener-1.jpg
    #247678 quote
    Iván GonzálezIván González
    Moderator
    Legend

    Ciao! Vi darò lo screener per gli incroci superiori al massimo della settimana. Come minimo si farebbe in modo simile.

    if opendayofweek<opendayofweek[1] then
    
    maxweek1=maxweek
    crossweek1=cross
    maxweek=high
    bars=0
    cross=0
    else
    maxweek=max(maxweek,high)
    bars=bars+1
    if close crosses under maxweek1 then
    cross=cross+1
    endif
    endif
    
    screener[crossweek1>=3]
    
    robertogozzi and Edisone thanked this post
    #247680 quote
    Iván GonzálezIván González
    Moderator
    Legend

    Con questo indicatore è possibile verificarlo.

    if opendayofweek<opendayofweek[1] then
    drawvline(barindex)
    drawsegment(barindex[bars+1],maxweek1,barindex,maxweek1)
    maxweek2=maxweek1
    minweek2=minweek2
    maxweek1=maxweek
    minweek1=minweek
    crossweek1=cross
    maxweek=high
    minweek=low
    bars=0
    cross=0
    else
    maxweek=max(maxweek,high)
    minweek=min(minweek,low)
    bars=bars+1
    if close crosses under maxweek1 then
    cross=cross+1
    drawarrowdown(barindex,maxweek)coloured("red")
    endif
    endif
    
    if islastbarupdate then
    drawsegment(barindex[bars],maxweek1,barindex,maxweek1)
    drawsegment(barindex[bars],maxweek2,barindex,maxweek2)
    drawtext("lastweekCross=#crossweek1#",barindex+5,maxweek2)
    endif
    
    return
    
    robertogozzi and Edisone thanked this post
    BKNG-1-hour.png BKNG-1-hour.png
Viewing 3 posts - 1 through 3 (of 3 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

3 incroci al ribasso sul massimo della settimana [2]


ProScreener: Scansione Mercati & Screener

New Reply
Author
author-avatar
Edisone @edisone Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Iván GonzálezIván González
1 year, 3 months ago.

Topic Details
Forum: ProScreener: Scansione Mercati & Screener
Language: Italian
Started: 05/27/2025
Status: Active
Attachments: 2 files
ProRealCode ProRealCode
Loading...