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
I have also changed the looping FOR iteration and put return on every closing but still it keep closing other pair orders. what's wrong with this code?
I have also changed the looping FOR iteration and put return on every closing but still it keep closing other pair orders. what's wrong with this code?
It just a function for checking trading time. There is no orderselect function
And what is NewsHandling() ?
Hi WHRoeder,
Thank you for your advice. Looking for the example, does it a must for function OrdersTotal() pass to the variable?
Or can I do like this ? OrdersTotal included in the loop without pass it to the variable at first. Does it make a different?
gooly,
The magicnumber is same to all pair.
So how could one EA determine whether its a position of its own or from another EA?
The comment is not fail safe a the broker can change it!
So how could one EA determine whether its a position of its own or from another EA?
The comment is not fail safe a the broker can change it!
It should determine by pair symbol whether same magic number or not. Even though same magic number but the pair is different as example from this Loops and Closing or Deleting Orders - MQL4 forum
But I dont know what is wrong with my code.
It should determine by pair symbol whether same magic number or not. Even though same magic number but the pair is different as example from this Loops and Closing or Deleting Orders - MQL4 forum
But I dont know what is wrong with my code.
So any of your EAs will close all Orders of the same Symbol() no matter whether it has opened it itself or it was opened by another EA.
Normally each EA has its own MagicNumber so it can detect its own Orders and does not disturb other EAs!