Generic Broker: sellStop()

ICE Data Services -

sellStop()
Previous  Top  Next


sellStop( symbol, quantity, stop [, route] [, expiry] )

Submit a stop order to broker.

Parameters

symbol
the symbol for which to initiate the trade
quantity
the number of shares/contracts
stop
the stop price
route
optional. the route or exchange for the trade (broker specific)
expiry
optional. expiration for the order:

SB_DAY
SB_GTC
SB_IOC


Usage

sellStop( "IDC"10015.00 );
sellStop( getSymbol(), 
20099.00null, SB_GTC );

Interactive Broker Examples

 

sellStop(getSymbol(), 100, 15.00);  // Equities

sellStop(getSymbol(), 1, 1925.25, "GLOBEX", "200506");  // Futures