stock scanner condition = percentuale H / L periodo

Collapse
X
 
  • Ora
  • Show
Clear All
new posts
  • fnet
    Senior Member
    • Aug 2010
    • 738

    #1

    stock scanner condition = percentuale H / L periodo

    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


    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
    "Tempus omnia medetur" .... e fà guadagnare di Theta
Working...