Proscreener che chiama Proscreener

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #243010 quote
    Alessandro Furlani
    Participant
    Junior

    E ‘possibile realizzare un proscreener che è la somma di altri e che ne richiama altri dal suo interno ?

    #243013 quote
    robertogozzi
    Moderator
    Master

    Si possono richiamare solo gli indicatori.

    E’ possibile creare un unico screener che ne racchiuda altri al suo interno, occorre prendere il codice degli screener che vuoi “assemblare” e crearne uno unico, con una variabile che ti dica qual’è lo screener che ha dato il segnale.

    L’importante è che nessuno degli screener usi gli stessi nomi di variabili degli altri.

    Esempio con 3 screener:

    // restituisce 100 se è il primo screener, 20 se è il secondo e 3 se è il terzo, se tutti
    // e tre danno un segnale uscirà il numero 123.
    //
    ScreenerID = 0
    Segnale    = 0
    // --- screener 1
    // segnala quando il MASSSIMO supera quello delle ultime 100 barre
    //
    ca1 = high crosses over highest[100](high[1])
    IF ca1 THEN
       ScreenerID = ScreenerID + 100
       Segnale = 1
    ENDIF
    //
    // --- screener 2
    // segnala quando il MINIMO supera quello delle ultime 100 barre
    //
    ca2 = low crosses under lowest[100](low[1])
    IF ca2 THEN
       ScreenerID = ScreenerID + 20
       Segnale = 1
    ENDIF
    //
    // --- screener 3
    // segnala quando c'è un incrocio rialzista conuna media e non ce ne sono altri
    // nelle ultime 10 barre
    //
    CrossUP3 = close crosses over  average[100,0](close)
    CrossDN3 = close crosses under average[100,0](close)
    Cross3   = CrossUP3 OR CrossDN3
    ca3      = (summation[10](Cross3[1]) = 0) AND CrossUP3
    IF ca3 THEN
       ScreenerID = ScreenerID + 3
       Segnale = 1
    ENDIF
    //
    SCREENER[Segnale](ScreenerID AS "Screener")
    #243034 quote
    Alessandro Furlani
    Participant
    Junior

    ingegnoso grazie

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

Proscreener che chiama Proscreener


Supporto ProScreener

New Reply
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Alessandro Furlani
1 year ago.

Topic Details
Forum: Supporto ProScreener
Language: Italian
Started: 01/23/2025
Status: Active
Attachments: No files
Logo Logo
Loading...