Which chart is an order on?

 

Is there a function that can tell me which chart an order is on?

If I shutdown then restart MT4... my EA thinks the order is on all my charts

 

orders are not on charts, they are on symbols.

 

OrderSymbol()

Thanks

 
dougie_II:

Is there a function that can tell me which chart an order is on?

If I shutdown then restart MT4... my EA thinks the order is on all my charts

Hi Dougie,

Add Magic Numbers to your EA's so that each EA is different.

When you restart MT4...they will know which trades belong to which EA.

You can also add the Magic Numbers to your order comments to see them in your account history log.

Hope this helps.

Robert

Reason: