View Single Post
  #4 (permalink)  
Old 05-20-2007, 05:43 PM
ryanklefas's Avatar
ryanklefas ryanklefas is offline
Senior Member
 
Join Date: Apr 2006
Location: USA
Posts: 439
ryanklefas is on a distinguished road
Quote:
Originally Posted by wolfe
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);
Well, that is the complicated way to do it.
__________________
"Don't work harder, work smarter." -- my Java professor

Coder for Hire:
http://www.firecell-fx.com
Reply With Quote