EnterLongOnClose

Top  Previous  Next

Enters a long position on the next close. This function is generally used by an Entry Block to initiate a position.

 

Syntax

 

EnterLongOnClose( [ protectStopPrice] )

 

Parameters

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 on the next close.

broker.EnterLongOnClose