Hello
Is there any body who Knows how to buy or sell two or more currencies with OrderSend command in an Expert advisor.when I use this two lines:
ticket1=OrderSend("EURUSD",OP_BUY,LotsOptimized(),Ask,3,Ask-Stoploss*Point,Ask+TakeProfit*Point,"macd sample",16384,0,Green);
ticket2=OrderSend("USDCHF",OP_BUY,LotsOptimized(),Ask,3,Ask-Stoploss*Point,Ask+TakeProfit*Point,"macd sample",16384,0,Green);
only the currency which is selected in the strategy tester is activated and the other one dose not work.
<!-- / message -->
Is there any body who Knows how to buy or sell two or more currencies with OrderSend command in an Expert advisor.when I use this two lines:
ticket1=OrderSend("EURUSD",OP_BUY,LotsOptimized(),Ask,3,Ask-Stoploss*Point,Ask+TakeProfit*Point,"macd sample",16384,0,Green);
ticket2=OrderSend("USDCHF",OP_BUY,LotsOptimized(),Ask,3,Ask-Stoploss*Point,Ask+TakeProfit*Point,"macd sample",16384,0,Green);
only the currency which is selected in the strategy tester is activated and the other one dose not work.
<!-- / message -->