Haiz...I am not sure how many times must I say this. I will repeat it anyway.
The problem is not on the EA. It is on the way you set it up.
In most martingale system, you just have to take care of 3 things:
1) Your starting lot size. Always start with 0.01 lots to be really safe (even if you have 50K account) because if you start with 0.1 lots, it leaves very little room for your EA to "step up" before it meets the maximum 50 lots set by most brokers. Check what is your maximum lot size allowed by your broker for the pair you are running. If they say 100 lots, then by all means, go 0.1 lot if you have a big account. Otherwise stick with 0.01 or 0.02 as starting!
2) Your account size. At 10K and using 0.1 lots for 2 pairs, you are effectively only having $5,000 for each pair at 0.1 lots! And you are using Alpari, which means at 0.1 lots, that's $1 a pip. $1 a pip on a $5,000 a pair??? You are commiting suicide my friend. Even at 10 cents a pip, it would be almost suicide. Didn't you read the manual that says if you want to use 0.1 lots, you need to have a size of 50K? Even that I think is not safe. Should use 0.01 or 0.02 lots as starting as long your broker has a max of 50 lots. Ar 10k, you should be using interbankFx mini demo where 0.01 is at 1 cents a pip, and for 10K, you can run up to 4 pairs safely with that account.
3) The third point is for all people running martingale. Don't be greedy!!! Aim for 1-2% gain a day. That's all!If you try to double your account in 2 weeks, then you need a lot of luck and quite often, that would blow up your account.
If people take care of the 3 points above, martingale systems are very profitable. I have been running FxPormaker, Blessing 2, forex funnel and I have yet to blow one account.