Download MetaTrader 5
To add comments, please log in or register
How to earn at Come and find out!
jon 2016.02.22 22:34 

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
Keith Watford 2016.02.23 01:09  

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 2016.02.23 01:16  
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