To issue, say, a buy limit order, I use :
m_trade.OrderOpen(Symbol(),ORDER_TYPE_BUY_LIMIT, no_contracts, 0, price,stop ,0)
where m_trade is an object of class CTrade. Note that I include the stop value but not the target. Once the position is opened, I immediately issue a sell limit order (the...