Download MetaTrader 5

Experts: error EA but with run with profit!

To add comments, please log in or register
MetaQuotes Software Corp.
Moderator
182412
MetaQuotes Software Corp. 2010.10.20 07:39 

error EA but with run with profit!:

an EA , run with a profit this is Error EA in error, so you can correct the EA, But no use EA

Author: Lam K

MQL4 Comments
16319
MQL4 Comments 2010.10.21 08:22  
abstract_mind:
In the indicator function, variable Xobv2 does not take a value. Assuming it is zero, the EA fires OP_BUY orders only.
int Indicator()
{
   double Xobv1,Xobv2;
   Xobv1=iADX(NULL,PERIOD_D1,14,PRICE_HIGH,MODE_PLUSDI,0);//MODE_MAIN
   Xobv1=iADX(NULL,PERIOD_D1,14,PRICE_HIGH,MODE_MINUSDI,0); 
   if(Xobv1<Xobv2) return(OP_SELL);
   if(Xobv1>Xobv2) return(OP_BUY);
   return(Flowing);
}


Xobv1=iADX(NULL,PERIOD_D1,14,PRICE_HIGH,MODE_PLUSDI,0);//MODE_MAIN
Xobv2=iADX(NULL,PERIOD_D1,14,PRICE_HIGH,MODE_MINUSDI,0);

if(Xobv1<Xobv2) return(OP_SELL);
if(Xobv1>Xobv2) return(OP_BUY);
MQL4 Comments
16319
MQL4 Comments 2010.10.22 12:57  

Hello,

I try to backtest your ea on FXCM an no trade is made, do we have to change something in the original settings in order to make it start.

Best regards

Rosalie

zenoforex zeno
11
zenoforex zeno 2010.10.23 00:56  
Hello to all
Dear... you kindly send another opens Expert buy and sell, not buy, only
Thank you
rplust
244
rplust 2010.10.25 07:32  

The corrected code does open trades in both directions. I've run it through the Optimizer on FXCM, eurusd, 1h. The drawdown is anywhere between 47 - 77%, which will empty your account.

ahtc98
12
ahtc98 2010.10.25 16:00  

Hi...

I am trying ur EA after download at Demo account..Its opening buy position continouesly..not 1 .3 positions at a time..How can I pause ur EA not to open more position..can u tell me ?this EA is only open Buy not for Sell ?

ahtc98
12
ahtc98 2010.10.26 17:30  

This is not good EA..because its opeining only Buy position without caring any trend direction..If u want to clean ur account then its a good EA to help u very fast...^^^^^^

Lam K
85
Lam K 2010.10.27 04:39  

Yes...

this is the type mistake!!!!

But the time frame is only buy then make profit!!!

I say this is a ERROR EA!!!

cvnx21
7
cvnx21 2010.11.14 11:51  
ahtc98:

This is not good EA..because its opeining only Buy position without caring any trend direction..If u want to clean ur account then its a good EA to help u very fast...^^^^^^


Hahahahahah
MQL4 Comments
16319
MQL4 Comments 2011.01.06 19:26  
is there a way to get also sell positions?
To add comments, please log in or register