Puoi usare HighestBars[40](high) per ottenere l’indice della barra che ha quel valore indicato tra parentesi tonde (può essere anche una media, o Rsi, ecc…). Restituisce 0=barra corrente, 1=prima barra precedente, ecc…
Nel tuo caso:
1
Barra=HighestBars[40](high)//barra dove si è verificato il massimo nelle ultime 40 barre
Puoi utilizzare la variabile BARRA per sapere quante barre sono passate, 0 significa che la barra attuale contiene il massimo, 5 significa che il massimo si è verificato 5 barri prima, ecc…
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.Ok