EnterShortOnStopClose

Top  Previous  Next

Enters a short position if the close is at or below than the specified price. This function is generally used by an Entry Block to initiate a position.

 

Syntax

 

EnterShortOnStopClose( stopPrice, [ protectStopPrice] )

 

Parameters

stopPrice

 

the entry stop price of the order

protectiveStopPrice

 

This sets the protective stop price of the order, and the position. Note that close orders are excluded from same day exits, so this protective stop is not used on the day of entry.

 

Example

 

' Enter the market if the close is at or below the entry price

broker.EnterShortOnStopClose( entryPrice )