I also have the same problem. Ea works great on backtesting but not on live trade. There s no problem with my brooker. The script s below. I dont know anything about writing an expert advisor. Please have look and tell why it s not working.
This EA seems to wok in higher timeframe and trend markets. Look for your backtest for a longer period of a flat market....
Or just change the timeframe for this EA to e.g. m1 and you'll see it isn't profitable even in the backtests.
Thank you so much for your answer. but i change settings of it(MA, profit, stop loss, trailing stop loss) while i m adding it on chart. And i set the time frame on chart to 30M before i add the expert advisor. i use EUR/USD
Still it doesnt work. When i add the ea on chart there s a smile at right corner but it doesnt trade. I think it has a problem on script. Isnt it?
total = OrdersTotal();
if(total < 1)
OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES);
OrderClose(OrderTicket(),OrderLots(),Bid,3,Violet); // close position
return(0); // exit
To add comments, please log in or register