DIVERGENZE SU BULL BEARS

Forums ProRealTime forum Italiano Supporto ProScreener DIVERGENZE SU BULL BEARS

Viewing 2 posts - 1 through 2 (of 2 total)
  • #139018

    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”

    #139027

    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)

Create your free account now and post your request to benefit from the help of the community
Register or Login