Ways to separate orders each other??

To add comments, please log in or register
Konstantinos Papamarkou
4121
Konstantinos Papamarkou  
I am developing a really complicated strategy and i have already used Magic Number and Comment, is there any other way to separate orders?
Keith Watford
Moderator
14467
Keith Watford  
KONSTANTINOS PAPAMARKOU:
I am developing a really complicated strategy and i have already used Magic Number and Comment, is there any other way to separate orders?
Use more than 1 magic number?
Konstantinos Papamarkou
4121
Konstantinos Papamarkou  
Keith Watford:
Use more than 1 magic number?
I already use multiple Magic Numbers and Comments.I am trying to find a third way.
Keith Watford
Moderator
14467
Keith Watford  
KONSTANTINOS PAPAMARKOU:
I already use multiple Magic Numbers and Comments.I am trying to find a third way.
Write trade details to a file?
Konstantinos Papamarkou
4121
Konstantinos Papamarkou  
Keith Watford:
Write trade details to a file?
That sounds good, may help, i will try it.
Fernando Carreiro
4737
Fernando Carreiro  
KONSTANTINOS PAPAMARKOU: I already use multiple Magic Numbers and Comments.I am trying to find a third way.

Don't depend on Order Comments. Most brokers change the contents and even completely delete or replace them!

The only fail-safe way to identify EA Orders is via Magic-Number. Since that number allows for a "large" range, you can easily accomplish very complex groupings by bit mapping the Magic Number.

Dua Yong Rew
5483
Dua Yong Rew  
Fernando Carreiro:

Don't depend on Order Comments. Most brokers change the contents and even completely delete or replace them!

The only fail-safe way to identify EA Orders is via Magic-Number. Since that number allows for a "large" range, you can easily accomplish very complex groupings by bit mapping the Magic Number.

I second that. The best way is by magic number. I don't understand why the need for other method.
whroeder1
17928
whroeder1  
MN and pair (for the forgetful human,) is all you need. MN can also be a function of TF (for the forgetful human, same pair, multiple TFs,) and/or strategy.
Using OrdersTotal 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 forum
To add comments, please log in or register