Trade once in one time

To add comments, please log in or register
Michael Wijaya
17
Michael Wijaya  

How to make code for mql 4 to buy/sell just once time?

Because in my ea, it makes open/buy many times in one time.

Bartlomiej Gorski
11388
Bartlomiej Gorski  

before order execution you can check OrdersTotal()>0

however if you are using some other variables (magic number, symbol) then you should make a function that will count orders with specified property (symbol, magic number, order type etc)

Michael Wijaya
17
Michael Wijaya  
It's work. Thank you.
To add comments, please log in or register