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
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
Timeframe(Daily)
stDl=closeCROSSES OVERSupertrend[3,10]
stDs=closeCROSSES UNDERSupertrend[3,10]
sigD=9000
IFstDlTHEN
SigD=1000
ELSIFstDsTHEN
SigD=2000
ENDIF
//
Timeframe(2hour)
st2l=closeCROSSES OVERSupertrend[3,10]
st2s=closeCROSSES UNDERSupertrend[3,10]
Sig2=900
IFst2lTHEN
Sig2=100
ELSIFst2sTHEN
Sig2=200
ENDIF
//
Timeframe(30minute)
st3l=closeCROSSES OVERSupertrend[3,10]
st3s=closeCROSSES UNDERSupertrend[3,10]
Sig3=90
IFst3lTHEN
Sig3=10
ELSIFst3sTHEN
Sig3=20
ENDIF
//
Timeframe(5minute)
st5l=closeCROSSES OVERSupertrend[3,10]
st5s=closeCROSSES UNDERSupertrend[3,10]
Sig5=9
IFst5lTHEN
Sig5=1
ELSIFst5sTHEN
Sig5=2
ENDIF
//
Timeframe(default)
Signal=SigD+Sig2+Sig3+Sig5
IFSignal=9999THEN
Signal=0
ENDIF
SCREENER[Signal](SignalAS"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.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.