Help me fix my EA on Market execution !

alvintran

Trader
Sep 1, 2011
7
0
12
Hi every body, i am a new in EA, i wirted an EA with tragery Signal :



double Buy1_1 = iMA(NULL, 0, 55, 0, MODE_EMA, PRICE_CLOSE, Current + 1);

double Buy1_2 = iMA(NULL, 0, 200, 0, MODE_EMA, PRICE_CLOSE, Current + 1);

double Buy2_1 = iMA(NULL, 0, 55, 0, MODE_EMA, PRICE_CLOSE, Current + 0);

double Buy2_2 = iMA(NULL, 0, 200, 0, MODE_EMA, PRICE_CLOSE, Current + 0);

double Buy3_1 = iSAR(NULL, 0, 0.005, 0.05, Current + 1);

double Buy3_2 = iSAR(NULL, 0, 0.005, 0.05, Current + 0);

double Buy4_1 = iMACD(NULL, 0, 12, 26, 9, PRICE_CLOSE, MODE_SIGNAL, Current + 1);

double Buy4_2 = iMACD(NULL, 0, 12, 26, 9, PRICE_CLOSE, MODE_SIGNAL, Current + 0);

double Sell1_1 = iMA(NULL, 0, 55, 0, MODE_EMA, PRICE_CLOSE, Current + 1);

double Sell1_2 = iMA(NULL, 0, 200, 0, MODE_EMA, PRICE_CLOSE, Current + 1);

double Sell2_1 = iMA(NULL, 0, 55, 0, MODE_EMA, PRICE_CLOSE, Current + 0);

double Sell2_2 = iMA(NULL, 0, 200, 0, MODE_EMA, PRICE_CLOSE, Current + 0);

double Sell3_1 = iSAR(NULL, 0, 0.005, 0.05, Current + 1);

double Sell3_2 = iSAR(NULL, 0, 0.005, 0.05, Current + 0);

double Sell4_1 = iMACD(NULL, 0, 12, 26, 9, PRICE_CLOSE, MODE_SIGNAL, Current + 1);

double Sell4_2 = iMACD(NULL, 0, 12, 26, 9, PRICE_CLOSE, MODE_SIGNAL, Current + 0);



if (Buy1_1 < Buy1_2 && Buy2_1 >= Buy2_2 && Buy3_1 < Buy3_2 && Buy4_1 < Buy4_2) Order = SIGNAL_BUY;

if (Sell1_1 > Sell1_2 && Sell2_1 <= Sell2_2 && Sell3_1 > Sell3_2 && Sell4_1 > Sell4_2) Order = SIGNAL_SELL;



But I don't understand why my EA can work fine on Instant Execution (I think so) but on market execution it do nothing, I am trader in easy-forex, Their demo account is Instant execution my EA work fine, but on live account with Market execution my EA do nothing, i mean it can not analyze chart on that MT4, not error, do nothing.

I am contact easy-forex support and they tell me because by different Instant execution and Market execution. So i find someone who have expirence about EA and trading. Please ! help me modify my EA.



Thank you so much !
 
1. Please highlight MQL code in your posts.

2. There's no such thing as Instant and Market execution in MQL code. There are market orders and pending orders? Do they allow only pending orders in live accounts?

Enivid !

Not have any problem, just do nothing, my EA is do nothing on live account but work fine on demo account, MT4 of easy-forex. I don't know why.

This EA by me, not buy, not trial version, not any limited. Weird.

Thank you reply . Please ! help
 
1. It would help if you could attach your EA .mq4 file here.
2. It would be nice if you could copy & paste the exact answer of Easy-Forex support on this issue.
3. It would also help if you could provide a link to the page on Easy-Forex site that explains their MT4 EA limitations.