Proscreener Long and Short

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #223656 quote
    Alessandro Furlani
    Participant
    Average

    Ho realizzato questo semplice screener che mi dovrebbe aiutare a selezionare i cross su cui lavorare settimana x settimana ma ho 2 problemi:

    1. Non sembra funzionare, non tira fuori nulla anche controllando i valori degli indici
    2. Vorrei che evidenziasse, sulla lista, in modo diverso segnali Long e Short, si può fare ?

    In allegato il codice

    ForexManual-scr1.0.itf
    #223666 quote
    JS
    Participant
    Veteran

    Try this (V12)…

    //----------------------------------------------------------------------
    //             ForexManual-scr1.0
    //----------------------------------------------------------------------
    
    Signal = 0
    
    // --------- Filtro Volumi giornalieri ----------
    //
    TIMEFRAME(daily)
    // volume attuale maggiore del volumen medio di 50 cnadele
    AVGVol = average[30](Volume)
    CondVol = Volume[1]>AVGVol
    
    TIMEFRAME(default)
    // ----------------------------------------------
    
    // ----------- Filtro RSI e CCI -----------------
    RSISignal = RSI[14](Close)
    CCISignal = CCI[20](Close)
    //Condizioni di segnale Long
    CondL1=RSISignal<=RSIDownThres
    CondL2=CCISignal<=CCIDownThres
    //Condizioni di segnale Short
    CondS1=RSISignal>=RSIUpThres
    CondS2=CCISignal>=CCIUpThres
    if CondVol and CondL1 and CondL2 then
    Signal=1
    elsif CondVol and CondS1 and CondS2 then
    Signal=-1
    endif
    
    SCREENER [Signal=1 or Signal=-1](1 as "Long", -1 as "Short")
    #223668 quote
    robertogozzi
    Moderator
    Master

    I valori negativi non li accetta:

    //----------------------------------------------------------------------
    //             ForexManual-scr1.0
    //----------------------------------------------------------------------
    
    Signal = 0
    x      = 0
    
    // --------- Filtro Volumi giornalieri ----------
    //
    TIMEFRAME(daily)
    // volume attuale maggiore del volumen medio di 50 cnadele
    AVGVol = average[30](Volume)
    CondVol = Volume[1]>AVGVol
    TIMEFRAME(default)
    // ----------------------------------------------
    
    // ----------- Filtro RSI e CCI -----------------
    RSISignal = RSI[14](Close)
    CCISignal = CCI[20](Close)
    //Condizioni di segnale Long
    CondL1=RSISignal<=RSIDownThres
    CondL2=CCISignal<=CCIDownThres
    //Condizioni di segnale Short
    CondS1=RSISignal>=RSIUpThres
    CondS2=CCISignal>=CCIUpThres
    if CondVol and CondL1 and CondL2 then
       Signal=1
       x = AVGVol
    elsif CondVol and CondS1 and CondS2 then
       Signal= 2
       x = -AVGVol
    endif
    SCREENER [Signal](x as "Average Volume")
    #223672 quote
    Alessandro Furlani
    Participant
    Average

    Come non accetta i valori negativi ? Allora anche la variabile CCIDownThres = -100 non va bene ?

    #223742 quote
    robertogozzi
    Moderator
    Master

    Tutte le volte che codifico segnali negativi ho risultati strani, se uso due valori diversi, ma positivi, funzionano.

    Devi verificarlo.

    Ad ogni modo non cambia molto tra segnali negativi e positvi, restituire 1 e 2 invece di 1 e -1 cambia poco!

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

Proscreener Long and Short


ProScreener: Market Scanners & Detection

New Reply
Summary

This topic contains 4 replies,
has 3 voices, and was last updated by robertogozzi
2 years, 4 months ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 11/13/2023
Status: Active
Attachments: 1 files
Logo Logo
Loading...