Download MetaTrader 5

Experts: error EA but with run with profit!

To add comments, please log in or register
MetaQuotes Software Corp.
Moderator
187233
MetaQuotes Software Corp.  

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  
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  

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  
Hello to all
Dear... you kindly send another opens Expert buy and sell, not buy, only
Thank you
rplust
244
rplust  

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  

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  

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
84
Lam K  

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  
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  
is there a way to get also sell positions?
To add comments, please log in or register