Buon pomeriggio Roberto,
avrei bisogno di sapere come potrei fare per :
individuare i titoli il cui minimo giornaliero odierno è inferiore/superiore al minimo/massimo registrato da inizio mese (01/09) ad oggi oppure dal 01/08 al 31/08 oppure 01/07 al 31/07 oppure dal 01/07 al 31/08 (una volta capito il sistema penso io a creare diversi screeners).
Grazie 1000
p.s. vedi le frecce arancioni
Questo ti segnala con 1 quelli > massimo del mese precedente e con 2 quelli < minimo:
If barindex < 2 Then
PrevMeseHI = 0
PrevMeseLO = 0
MeseHI = high
MeseLO = low
Endif
If OpenMonth <> OpenMonth[1] Then
PrevMeseHI = MeseHI
PrevMeseLO = MeseLO
MeseHI = high
MeseLO = low
Endif
MeseHI = max(MeseHI,high)
MeseLO = min(MeseLO,low)
Risultato = 0
If close > PrevMeseHI Then
Risultato = 1
Endif
If close < PrevMeseLO Then
Risultato = 2
Endif
SCREENER[Risultato](Risultato AS “1=⬆️, 2=⬇️”)
Questo le chiusure correnti con minimi e massimi del mese in corso:
If barindex < 2 Then
MeseHI = high
MeseLO = low
Endif
If OpenMonth <> OpenMonth[1] and IntraDayBarIndex = 0 Then
MeseHI = high
MeseLO = low
Endif
Risultato = 0
If close > MeseHI Then
Risultato = 1
Endif
If close < MeseLO Then
Risultato = 2
Endif
MeseHI = max(MeseHI,high)
MeseLO = min(MeseLO,low)
SCREENER[Risultato](Risultato AS “1=⬆️, 2=⬇️”)
Nel primo sostituisci la riga 7 con:
If OpenMonth <> OpenMonth[1] and IntraDayBarIndex = 0 Then