Citazione Originariamente Scritto da bergamin Visualizza Messaggio
Ecco, io mi fermo qui,
questa è la partenza per arrivare al punto 1 ...

da questo punto per proseguire basta che scrivi tutte le condizioni che desideri (mettile come input così le puoi far ottimizzare!)



# Trovo il Trend
SET LowestTrend = LLV(@trendLengthBars)
SET HighestTrend = HHV(@trendLengthBars) - LowestTrend
SET PercentTrend = (HighestTrend * 100.0 / LowestTrend) - 100.0

# Scrivo lo Zig-Zag
SET Zig = LLV(@patternLengthBars)
SET Zag = HHV(@patternLengthBars)
SET ZTrend = Zag - Zig
SET ZTrendDown = (Zig * 100.0 / Zag) - 100.0
SET ZTrendUp = (Zag * 100.0 / Zig) - 100.0
SET absZTrendDown = ABS(ZTrendDown)

# Fisso la condizione al punto1
SET condizionePunto1 = (PercentTrend > = 0.7)
Ottimo sei stato molto gentile
Grazie mille