How to trade two or more paires in one EA. New comment Forex Trader 2006.10.16 17:29 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. I tried MarketInfo("EURUSD",MODE_ASK), but when i using "USDCHF" as based currency in tester it returns Zero number for MarketInfo("EURUSD",MODE_ASK). sell or buy in expert buy from the example in the metaquotes expert section How to code? [WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you. Forex Trader 2006.10.19 10:22 #1 Read at "Testing Features and Limits in MetaTrader 4" New comment
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.
I tried MarketInfo("EURUSD",MODE_ASK), but when i using "USDCHF" as based currency in tester it returns Zero number for MarketInfo("EURUSD",MODE_ASK).