PaPP v2 EA: monotonicita su MA2-MA6 (estromesso MA7-noise)
This commit is contained in:
@@ -192,7 +192,7 @@ void OnTick()
|
||||
|
||||
//--- MA alignment: se tutte monotone = trend, blocca mean reversion
|
||||
bool trendUp=true, trendDown=true;
|
||||
for(int m=2;m<7;m++)
|
||||
for(int m=2;m<6;m++)
|
||||
if(mv[m] > mv[m+1]) trendUp=false;
|
||||
else if(mv[m] < mv[m+1]) trendDown=false;
|
||||
else { trendUp=false; trendDown=false; }
|
||||
|
||||
Reference in New Issue
Block a user