Amgad Samir Nassief Abdelmalek:
i have system generated magic number in every symbol in every account. in your issues do you mean... Hello, I want to use 2 strategies in one EA. So, I'll make 2 magic numbers
for example Buy (Magic 1) will have Close position (Magic 1)
and Buy (Magic 2) will have close position (if Magic == Magic 2)
and the same with Sell
But how to use position orders to make it have Magic 1 or 2 ?
CTrade trade trade.SetExpertMagicNumber(00001); trade.buy(...); trade.SetExpertMagicNumber(00002); trade.sell(...);

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
Hello, I want to use 2 strategies in one EA. So, I'll make 2 magic numbers
for example Buy (Magic 1) will have Close position (Magic 1)
and Buy (Magic 2) will have close position (if Magic == Magic 2)
and the same with Sell
But how to use position orders to make it have Magic 1 or 2 ?