How to close multi currency?

Back to topics list To post a new topic, please log in or register
avatar
102
johnnybegoode 2016.02.22 23: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?

avatar
Moderator
3405
GumRai 2016.02.23 02: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()

avatar
12985
WHRoeder 2016.02.23 02: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.
Back to topics list  

To add comments, please log in or register