sellShortLimit()

eSignal EFS 2

sellShortLimit()

Top  Previous  Next

 

sellShortLimit( symbol, quantity, limit [, route] [, expiry] )

 

Submit a limit order to broker.

 

Parameters

 

symbol

the symbol for which to initiate the trade

quantity

the number of shares/contracts

limit

the limit 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

 

sellShortLimit( "IDC", 100, 19.00 );

sellShortLimit( getSymbol(), 200, 100.00, null, SB_GTC );