la seguente condizione identifica i titoli che rientrano nella percentuale High / Low impostata ( riferita al periodo )
per esempio i valori di default INPUTS: @periods(100), @PiuDi(0), @MenoDi(33),
cercano i titoli il cui close è sotto al 33% del valore High / Low delle precedenti 100 barre
per esempio i valori di default INPUTS: @periods(100), @PiuDi(0), @MenoDi(33),
cercano i titoli il cui close è sotto al 33% del valore High / Low delle precedenti 100 barre
Codice:
# When a Condition is applied as an Alert to a chart, the minimum time interval # between successive evaluations of the Condition status is equal to 10 seconds. INPUTS: @periods(100), @PiuDi(0), @MenoDi(33), SET H = HighestHighValue(@periods) SET L = LLV(@periods) SET C = CLOSE SET Perc = ( ( C - L ) / ( H - L ) * 100 ) Perc > @PiuDi AND Perc < @MenoDi


