Quote:
|
Originally Posted by ryanklefas
OrderSend(NULL, 0.... )
"NULL" specifies the pair for the order. Null means the current pair. You can put any string (that corresponds to a pair, such as GBPUSD) in there.
|
I thought you also had to use the market info function, I know this works:
extern string paircharta="EURUSD";//whatever symbol you want
tradeticketa = OrderSend(paircharta,OP_BUY,lotsize,MarketInfo(pai rcharta,MODE_ASK),slippage,MarketInfo(paircharta,M ODE_ASK)-stoploss*MarketInfo(paircharta,MODE_POINT),MarketI nfo(paircharta,MODE_ASK)+takeprofit*MarketInfo(pai rcharta,MODE_POINT),"orderstart",magica,0,Blue);