Supertrend incrocio su più tf

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #139262 quote
    Procor
    Participant
    New

    Buongiorno,

    è possibile creare un proscreener con le seguenti condizioni :

    1. prezzi che incrociano al rialzo / ribasso il supertrend 3-10
    2. che il proscreener controlli contemporaneamente su 4 tf  : 5 min 30 min  2h  daily
    3. che il segnale una volta attivato rimanga aperto fino alla chiusura di candela

    E’ possibile configurarlo in modo che nel caso il segnale si verichi su più tf contemporaneamente sulla stessa coppia/indice li mostri tutti ?

    grazie

    Corrado

    #139291 quote
    robertogozzi
    Moderator
    Master

    Eccolo, come puoi vedere nelle foto allegata restituisce 1 quando c’è l’incrocio al rialzo e 2 quando è al ribasso (9 quando non c’è nessun incrocio, non può essere 0 altrimenti toglie quelli iniziali), distintamente per i 4 time frame:

    • D = Daily
    • 2 = 2 ore
    • 3 = 30 minuti
    • 5 = 5 minuti
    Timeframe(Daily)
    stDl = close CROSSES OVER  Supertrend[3,10]
    stDs = close CROSSES UNDER Supertrend[3,10]
    sigD = 9000
    IF stDl THEN
       SigD = 1000
    ELSIF stDs THEN
       SigD = 2000
    ENDIF
    //
    Timeframe(2 hour)
    st2l = close CROSSES OVER  Supertrend[3,10]
    st2s = close CROSSES UNDER Supertrend[3,10]
    Sig2 = 900
    IF st2l THEN
       Sig2 = 100
    ELSIF st2s THEN
       Sig2 = 200
    ENDIF
    //
    Timeframe(30 minute)
    st3l = close CROSSES OVER  Supertrend[3,10]
    st3s = close CROSSES UNDER Supertrend[3,10]
    Sig3 = 90
    IF st3l THEN
       Sig3 = 10
    ELSIF st3s THEN
       Sig3 = 20
    ENDIF
    //
    Timeframe(5 minute)
    st5l = close CROSSES OVER  Supertrend[3,10]
    st5s = close CROSSES UNDER Supertrend[3,10]
    Sig5 = 9
    IF st5l THEN
       Sig5 = 1
    ELSIF st5s THEN
       Sig5 = 2
    ENDIF
    //
    Timeframe(default)
    Signal = SigD + Sig2 + Sig3 + Sig5
    IF Signal = 9999 THEN
       Signal = 0
    ENDIF
    SCREENER[Signal](Signal AS "D235")

    quello evidenziato nella foto segnala 0 nel TF Daily perché non c’è nessun incrocio, mentre negli altri tre TF c’è in tutti un incrocio al rialzo.

    x-3.jpg x-3.jpg
    #139351 quote
    Procor
    Participant
    New

    Grazie mille Roberto,

    appena caricato, mi sembra perfetto

    Cordiali saluti

    Corrado

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

Supertrend incrocio su più tf


ProScreener: Scansione Mercati & Screener

New Reply
Author
author-avatar
Procor @procor Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Procor
5 years, 7 months ago.

Topic Details
Forum: ProScreener: Scansione Mercati & Screener
Language: Italian
Started: 07/14/2020
Status: Active
Attachments: 1 files
Logo Logo
Loading...