Taglio MMA più filtro

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #217486 quote
    andrea trevisan
    Participant
    Average

    Questo Prosreener prevede il Taglio di MMA (9), (16), (36), (60),(200), con due filtri obbligatori (Espansione) e (Corpocandela) che determinano il tipo di candela.

    Sembrerebbe funzionare tranne che stranamente mi trova solo candele (Short).

    Questo è il codice:

    result = 0
    // MMA
    MMA = ExponentialAverage[9](close)
    c1 = MMA < High
    c2 = MMA > low
    Media1 = c1 and c2

    MMA = ExponentialAverage[16](close)
    c1 = MMA < High
    c2 = MMA > low
    Media2 = c1 and c2

    MMA = ExponentialAverage[36](close)
    c1 = MMA < High
    c2 = MMA > low
    Media3 = c1 and c2

    MMA = ExponentialAverage[60](close)
    c1 = MMA < High
    c2 = MMA > low
    Media4 = c1 and c2

    MMA = ExponentialAverage[200](close)
    c1 = MMA < High
    c2 = MMA > low
    Media5 = c1 and c2
    // Filtri base
    Espansione = range > average[5,0](range[1])

    Ampiezza = (Range /100 * CORPO)
    Corpocandela = open – close > Ampiezza

    if Espansione and Corpocandela then

    if Media1 or Media2 or Media3 or Media4 or Media5 Then

    result = 1

    endif
    endif

    SCREENER[result]

    #217523 quote
    robertogozzi
    Moderator
    Master

    Dove c’è Corpocandela = open – close > Ampiezza, aggiungi ABS(), come segue:

    Corpocandela = abs(open - close) > Ampiezza

    altrimenti prende solo quelle che hanno APERTURA > CHIUSURA (cioè quelle Short).

    #217538 quote
    andrea trevisan
    Participant
    Average

    Grazie funziona perfettamente.

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

Taglio MMA più filtro


ProScreener: Scansione Mercati & Screener

New Reply
Author
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by andrea trevisan
2 years, 8 months ago.

Topic Details
Forum: ProScreener: Scansione Mercati & Screener
Language: Italian
Started: 07/10/2023
Status: Active
Attachments: No files
Logo Logo
Loading...