Download MetaTrader 5

How to close multi currency?

To add comments, please log in or register
jon
491
jon  

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?

Keith Watford
Moderator
10369
Keith Watford  

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()

whroeder1
15331
whroeder1  
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.
To add comments, please log in or register