Forex Forum - EarnForex
Serving Traders Since 2005
 

Go Back   Forex Forum - EarnForex > MetaTrader > MetaTrader Expert Advisors

MetaTrader Expert Advisors Post and discuss the MetaTrader expert advisors here.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 3rd November 2011, 13:02
Default Avatar
Junior Member
 
Join Date: Sep 2011
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Thumbs down Help me fix my EA on Market execution !

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 !
Reply With Quote
  #2 (permalink)  
Old 3rd November 2011, 14:55
Enivid's Avatar
Administrator
 
Join Date: Nov 2008
Posts: 1,542
Thanks: 18
Thanked 20 Times in 16 Posts
Default

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?
__________________
Please, read the Forum Rules and the Signature Rules to avoid termination of your account.
Reply With Quote
  #3 (permalink)  
Old 3rd November 2011, 14:55
Enivid's Avatar
Administrator
 
Join Date: Nov 2008
Posts: 1,542
Thanks: 18
Thanked 20 Times in 16 Posts
Default

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?
__________________
Please, read the Forum Rules and the Signature Rules to avoid termination of your account.
Reply With Quote
  #4 (permalink)  
Old 3rd November 2011, 17:46
Default Avatar
Junior Member
 
Join Date: Sep 2011
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Enivid View Post
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
Reply With Quote
  #5 (permalink)  
Old 4th November 2011, 08:29
Enivid's Avatar
Administrator
 
Join Date: Nov 2008
Posts: 1,542
Thanks: 18
Thanked 20 Times in 16 Posts
Default

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.
__________________
Please, read the Forum Rules and the Signature Rules to avoid termination of your account.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
The Difference Between the Stock Market and the Forex Market kuazlan Trading Systems and Strategies 2 12th May 2012 21:34
FXAS - Forex Automatic signals execution rpchost Trading Systems and Strategies 0 20th February 2010 14:20


All times are GMT. The time now is 03:02.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Inactive Reminders By Icora Web Design

SEO by vBSEO 3.3.2