open orders on start

Back to topics list To post a new topic, please log in or register
avatar
220
luisneves 2016.03.31 17: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 

  

Attached files:
  trend_v7.mq4  (10.13 KB)
avatar
12985
WHRoeder 2016.03.31 20: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.
Back to topics list  

To add comments, please log in or register