What is the correct way to proceed if you have several strategies that can be applied to the same symbol?

 
Hello,

What is the correct way to proceed if you have several strategies that can be applied to the same symbol?
How to distinguish a purchase or a sale related to this strategy or to this other strategy?

Thanks,
Pierre8r
 
Hi, use a magic number to describe individual strategies. Regards Greg
 

If you run each strategy as a separate EA, then you can use a separate magic number as @Greg Pawlak suggests.

You could have two separate trading accounts and run each EA on its own instance of MT5. Thus all trading results shown in the MT5 history only correspond to that strategy.

If you are using only one EA, you would have to track this information internally.

 

Alternatively you can use the order comment to name the strategy that is related to the order.

Documentation on MQL5: Constants, Enumerations and Structures / Trade Constants / Order Properties
Documentation on MQL5: Constants, Enumerations and Structures / Trade Constants / Order Properties
  • www.mql5.com
Requests to execute trade operations are formalized as orders. Each order has a variety of properties for reading. Information on them can be obtained using functions Position identifier that is set to an order as soon as it is executed. Each executed order results in a deal that opens or modifies an already existing position. The...
 
Thanks to all.
Reason: