BULL BEARS MONTHLY

Viewing 5 posts - 16 through 20 (of 20 total)
  • Author
    Posts
  • #138450 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Questo è un indicatore, siamo nel supporto ProBuilder.

    Ti serve uno screener?

    #138548 quote
    massimogpmassimogp
    Participant
    Senior

    Se si potesse poi avere un pro-screener dei 2 indicatori (questo sopra) e quello che stai costruendo sarebbe il massimo. Grazie.

    #138562 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Grazie roberto, vorrei che si auto-parametrasse ogni giorno che apro la piattaforma e terminasse il 21 gg successivo esatto. (cioè da infra-mese a infra-mese dal 5/6 al 5/7 dal 6/6 al 6/7 ecc.)

    Non si può. Perché in realtà lo fa già. Tu lo metti su un grafico giornaliero e guardi le ultime 21 barre!

    Ad ogni cambio giornaliero si aggiorna automaticamente, al limite si possono evidenziare le ultime 21 candele con una linea verticale, come questa:

    defparam DrawOnLastBarOnly = true
    Periodi = 21
    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
    DRAWVLINE(Barindex - Periodi) coloured(0,0,255,255)
    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"
    x.jpg x.jpg
    #138566 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Per lo screener, quali sono le condizioni per cui un titolo/valuta dovrebbe essere evidenziata?

    #138580 quote
    massimogpmassimogp
    Participant
    Senior

    La linea inserita è perfetta Roberto, per lo screener vorrei estrarre delle divergenze LONG che si creano sull indicatore BULL BEAR a 21 gg come dall esempio che allego sul titolo Leonardo, che in questo caso l RSI non mi evidenziava. Un secondo screener da usare per gli ETF dove si evidenzia una eventuale divergenza Short.  Spero di essermi spiegato. Grazie mille.

    LEONARDO-DIVERGENZA.png LEONARDO-DIVERGENZA.png
Viewing 5 posts - 16 through 20 (of 20 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

BULL BEARS MONTHLY


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
author-avatar
massimogp @massimogp Participant
Summary

This topic contains 19 replies,
has 2 voices, and was last updated by massimogpmassimogp
6 years, 2 months ago.

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 06/22/2020
Status: Active
Attachments: 5 files
ProRealCode ProRealCode
Loading...