Claudio Lasso:
Good morning,
i found a code to implement in my EA. My goal is simple: the EA must not opens more order if in the day there was an
order on that asset or if an order in in progress.
EA: today 01 - March the EA opens an order on USDCHF...if it close it during the day no more orders must be opened.
Here is the code I
found but it doens't work:-(
The code you show is only partial. After you insert this code into your EA, you also need to "call" this methods and use the results in your EA logic / code.
Can not say more without seeing the entire thing.
- Your code is looking at history - your variable should be called totalClosedOrders.
-
Using OrdersTotal (or OrdersHistoryTotal) directly and/or no Magic
number filtering on your OrderSelect loop means your code is incompatible
with every EA (including itself on other charts and manual trading.)
Symbol Doesn't equal Ordersymbol when another currency is added to another seperate chart . - MQL4 programming forum
MagicNumber: "Magic" Identifier of the Order - MQL4 Articles
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Good morning,
i found a code to implement in my EA. My goal is simple: the EA must not opens more order if in the day there was an order on that asset or if an order in in progress.
EA: today 01 - March the EA opens an order on USDCHF...if it close it during the day no more orders must be opened.
Here is the code I found but it doens't work:-(