How to close multi currency?

 

How to close multi currency?

So I manage to get a multi-currency script working.

However when I close, it only closes the pair of chart it is attached to.

How do I close multi currency when ea is attached to only a single chart?

 

Do not close at Ask or Bid, use MarketInfo to get the Bid or Ask of the symbol.

Alternatively, if the order has been selected, you can close at OrderClosePrice()

 
johnnybegoode: How to close multi currency?
Do not trade multiple currencies
  • You can't use any predefined variables, can't use the tester, must poll (not OnTick,) and usually other problems.
  • Code it to trade the chart pair only. Look at the others if you must.
  • Then put it on other charts to trade the other pairs. Done.
Reason: