Close, High, Low del giorno precedente - Indicator - Smash

Collapse
X
 
  • Ora
  • Show
Clear All
new posts
  • Andrea Cagalli
    Senior Member
    • Oct 2010
    • 3995

    #1

    Close, High, Low del giorno precedente - Indicator - Smash

    Indicatore che plotta rispettivamente la chiusura, il massimo ed il minimo del giorno precedente, ovvero i 3 vettori che servono per poter calcolare i Pivot Points.

    Codice:
    # Individuazione del cambiamento di data
    SET ConditionDateChange = DATE > REF(DATE, 1)
    
    # Individuazione numerica delle barre intraday giornaliere
    SET BarsOfDay = LASTIF(ConditionDateChange)
    SET Bars = BarsOfDay + 1
    
    # Calcolo della CHIUSURA del giorno precedente
    SET PreviousDayClose = CHANGEIF(ConditionDateChange, REF(CLOSE, 1))
    
    # Calcolo del MASSIMO del giorno precedente
    SET IntradayHigh = HighestHighValue(Bars)
    SET PreviousDayHigh = CHANGEIF(ConditionDateChange, REF(IntradayHigh, 1))
    
    # Calcolo del MINIMO del giorno precedente
    SET IntradayLow = LowestLowValue(Bars)
    SET PreviousDayLow = CHANGEIF(ConditionDateChange, REF(IntradayLow, 1))
    
    
    SET PLOT1 = PreviousDayClose
    SET PLOT2 = PreviousDayHigh
    SET PLOT3 = PreviousDayLow
    
    SET PLOTCOLOR1 = COLOR_LIGHT_YELLOW
    SET PLOTCOLOR2 = COLOR_LIGHT_GREEN
    SET PLOTCOLOR3 = COLOR_LIGHT_RED
    Click image for larger version

Name:	Per Pivot.jpg
Views:	2
Size:	118.6 KB
ID:	164663
    Last edited by Andrea Cagalli; 31-10-13, 12:45.
    Manuale beeTrader
Working...