sellShortStopLimit()

eSignal EFS 2

sellShortStopLimit()

Top  Previous  Next

 

sellShortStopLimit( symbol, quantity, stop, limit [, route] [, expiry] )

 

Submit a stop/limit order to broker.

 

Parameters

 

symbol

the symbol for which to initiate the trade

quantity

the number of shares/contracts

stop

the stop price

limit

the limit price, must be <= 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

 

sellShortStopLimit( "IDC", 100, 15.00, 14.50 );

sellShortStopLimit( getSymbol(), 200, 98.75, 98.00, null, SB_GTC );