I'm a newbie here and in the MQL4 programming. I've modified an EA, and run it trough backtest, and it just did what i wanted it to do. But, the problem is, when it comes to live account, the EA doesnt open any orders, without any errors in journal or experts.
So, this EA will calculate the range of high and low from 14:00 to 16.15 server time plus 6 spreads both sides. If the range is below 70, then it will set one BUY STOP at the high+spread with TP 1x the range and SL 0.5x the range, same will happen with SELL STOP (the idea is to make R:R=1:2 so that hopefully with only 50% win rate we will still get some money). One important thing this EA need to do is to set the PENDING ORDER not on 16:15 time, but on 16:30 time. And then, when one pending order is executed, we don't cancel the opposite. We only delete the remaining pending order(s) at the 13:59 the next day (before we start calculate the range again).
I have tried to build this EA using freely available breakout EA called BSL breakout. The copyright sectiom implies that i can modify, rename the name, as long as i dont delete the copyright section. So i build my EA from that. I have managed to calculate the range, set the proper positioning size, and to delete the remaining pending orders in the next day. I even managed to get succeed backtesting it from Jan '10 to May '10 with some decent success.
I attached the original BSL EA and my modification version (EA Malam).
So, any idea why my EA works on backtest but not on live?