DislikedThis is a really nice EA - i like the idea. one thing i would test is to restrict the max. distance in pips to the daily trend EMA, an overshot is usually rejected fast. {image} {image}Ignored
you can see in the pictures - the higher the distance the higher the odds for a losing trade.
//+---------------------------------------------------------------------+
double DT=iMA(NULL,PERIOD_M5,288,0,MODE_EMA,PRICE_CLOSE,0);
if(Buy* && Ask >= DT && Ask <= (DT+20*pt)) return(buy);
if(Sell* && Bid <= DT && Bid >= (DT-20*pt)) return(sell);
*your trigger; "20*pt" = 20xPoint
//+---------------------------------------------------------------------+
sure this will cause far less trades, probably a better solution is a dynamic distance to the DT EMA based on average daily range or something other that
isnt static.
just do it