Download MetaTrader 5
To add comments, please log in or register
Having troubles understanding the code? Articles can help you!
18081961
682
18081961 2016.03.31 15:10 

Hi all,

 I come across  with an issue;

When I put the ea for the first time an order is opened, then when that order closes the next one opens normally, meaning that the ea waits for price goes up or down the OpenLevel

What I expect the ea to do is from the very beginning it should wait until the price goes up or down and when it reaches the OpenLevel an order should  open.

Any help on this?

 

Thank you in advance

 

Luis 

Files:
trend_v7.mq4 11 kb
whroeder1
14457
whroeder1 2016.03.31 18:56  
luisneves: What I expect the ea to do is from the very beginning it should wait until the price goes up or down and when it reaches the OpenLevel an order should  open.
Print your variables before your if statements find find out why.
/
To add comments, please log in or register