if( OrderMagicNumber() == magic ) //Magic number of the specific EA { // Trailingcode for orders with this magic number only. }
Alain Verleyen:
Thank you, I'm new here. Ok for the next time
Marco vd Heijden:
Ok I understand, I found the article for explains:
MagicNumber: "Magic" Identifier of the Order
if the magicnumber is 0 -> Traded manualy
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 programmed just a function for trailing stop, I attached my Expert Advisor to a Chart/Symbol an I activated auto trading.
The problem ist that the my Expert Advisor modifie even the other symbols from other open charts in the order list which one runs with other expert advisors.
I tried to add a string with I've to add with the symbolname, but if i've other charts open with the same symbol the same problem
What have I to add, that my expert Advisor performs only the order(s) attached to the chart/symbol ?
Thanks for Feedbacks
Marcel