PaPP v2 EA: monotonicita su MA2-MA7 (esclusi MA0/MA1 stale)

This commit is contained in:
pietro_giacobazzi
2026-06-16 11:16:49 +02:00
parent cd04d6fbd7
commit 2c09955da7
+1 -1
View File
@@ -192,7 +192,7 @@ void OnTick()
//--- MA alignment: se tutte monotone = trend, blocca mean reversion
bool trendUp=true, trendDown=true;
for(int m=0;m<7;m++)
for(int m=2;m<7;m++)
if(mv[m] > mv[m+1]) trendUp=false;
else if(mv[m] < mv[m+1]) trendDown=false;
else { trendUp=false; trendDown=false; }