PaPP v2: flag escursione resettano solo a mediana, non bordo banda
This commit is contained in:
@@ -182,8 +182,9 @@ void OnTick()
|
|||||||
int nBuy = CountPos(POSITION_TYPE_BUY);
|
int nBuy = CountPos(POSITION_TYPE_BUY);
|
||||||
int nSell = CountPos(POSITION_TYPE_SELL);
|
int nSell = CountPos(POSITION_TYPE_SELL);
|
||||||
|
|
||||||
//--- Reset escursion flags quando price rientra nel cluster
|
//--- Reset escursion flags solo quando price torna alla mediana
|
||||||
if(bid>=buyBand && bid<=sellBand) { buyFired=false; sellFired=false; }
|
if(bid>=median) buyFired=false;
|
||||||
|
if(bid<=median) sellFired=false;
|
||||||
|
|
||||||
//--- MA alignment: se tutte monotone = trend, blocca mean reversion
|
//--- MA alignment: se tutte monotone = trend, blocca mean reversion
|
||||||
bool trendUp=true, trendDown=true;
|
bool trendUp=true, trendDown=true;
|
||||||
|
|||||||
Reference in New Issue
Block a user