DIVERGENZE SU BULL BEARS

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

    Buon giorno Roberto, dall indicatore Bull Bears daily che mi hai creato, possiamo estrarre un pro-screener che individui le divergenze daily sullo stesso, come nell esempio Leonardo che allego? Grazie mille.

    if openmonth <> openmonth[1] then
    Count = 1
    ELSE
    Count = Count + 1
    ENDIF
    myopen = open
    myclose = close[1]
    diff = myclose – myopen[1]
    if myclose <> 0 and myopen[1] <> 0 then
    if diff > 0 and diff[1] < 0 then
    flag = 1
    endif
    if diff < 0 and diff[1] > 0 then
    flag = -1
    endif
    if diff > 0 and diff[1] > 0 then
    flag = flag + 1
    endif
    if diff < 0 and diff[1] < 0 then
    flag = flag – 1
    endif
    endif
    maxdown = min(flag, maxdown)
    maxup = max(flag,maxup)
    if flag < 0 and flag[1] > 0 then
    up = up + flag[1]
    upcount = upcount + 1
    endif
    if flag > 0 and flag[1] < 0 then
    down = down + flag[1]
    downcount = downcount + 1
    endif
    upave = up/upcount
    downave = down/downcount
    return flag as “Month Up or Down”, maxup as “Longest ever up run”,maxdown as “Longest ever down run”, upave as “Avg months up before a down”,downave as “Avg months down before an up”

    LEONARDO-DIVERGENZA-1.png LEONARDO-DIVERGENZA-1.png
    #139027 quote
    robertogozzi
    Moderator
    Master

    Per favore usa sempre il pulsante “Insert PRT code” quando inserisci il codice nei tuoi post per facilitare la lettura degli altri.

    Ti è già stato fatto notare più volte, credo sia il momento di rispettare le regole, ma sopratutto gli altri trader!

    Grazie 🙂

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

DIVERGENZE SU BULL BEARS


ProScreener: Scansione Mercati & Screener

New Reply
Author
author-avatar
massimogp @massimogp Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzi
5 years, 8 months ago.

Topic Details
Forum: ProScreener: Scansione Mercati & Screener
Language: Italian
Started: 07/11/2020
Status: Active
Attachments: 1 files
Logo Logo
Loading...