Download MetaTrader 5

ea don t take trade

To add comments, please log in or register
The entire MQL5.community history on a single page!
danjeu
38
danjeu 2013.10.14 00:18 

my ea don t  take any trade

can you help me thanks

Files:
kkkkk.mq5 8 kb
Alain Verleyen
Moderator
30731
Alain Verleyen 2013.10.14 00:46  
So, you finally found the solution to your last request ?
danjeu
38
danjeu 2013.10.14 00:51  
angevoyageur:
So, you finally found the solution to your last request ?
danjeu
38
danjeu 2013.10.14 00:56  

i resolve the problem on my last request ,the ExpertTrade.mqh file was missing in my folder of mql5

then i re install mql5  program

Alain Verleyen
Moderator
30731
Alain Verleyen 2013.10.14 01:12  
danjeu:

i resolve the problem on my last request ,the ExpertTrade.mqh file was missing in my folder of mql5

then i re install mql5  program

Another time, please post that. So if someone goes to the same problem, he can find the solution.
Alain Verleyen
Moderator
30731
Alain Verleyen 2013.10.14 01:14  
danjeu:

my ea don t  take any trade

can you help me thanks

You have to implement LongCondition and ShortCondition method. See this article Create Your Own Trading Robot in 6 Steps.

danjeu
38
danjeu 2013.10.14 22:50  

No I can not understand: the difference between LongCondition and CheckOpenLong and ShortCondition and CheckCloseLong

 if i  use in my ea  LongCondition and ShortCondition i don' t understand how to close my postion ( There is no command LongConditionClose

and no command  ShortConditionClose )

thanks for your help 

Alain Verleyen
Moderator
30731
Alain Verleyen 2013.10.15 00:20  
danjeu:

No I can not understand: the difference between LongCondition and CheckOpenLong and ShortCondition and CheckCloseLong

 if i  use in my ea  LongCondition and ShortCondition i don' t understand how to close my postion ( There is no command LongConditionClose

and no command  ShortConditionClose )

thanks for your help 

Your question was about "take a trade". So you have to implement your opening condition in LongCondition/ShortCondition.

About closing or reversing a position, the condition have also to be implemented in LongCondition/ShortCondition. The threshold returned by LongCondition is used to close a short position, if this value is >= to Signal_ThresholdClose. And of course ShortCondition for closing long position.

To add comments, please log in or register