EnterLongAtLimitClose

Top  Previous  Next

Enters a long position if the close of the next bar trades through the specified price. This function is generally used by an Entry Block to initiate a position.

 

Syntax

 

EnterLongAtLimitClose( limitPrice, [ protectStopPrice] )

 

Parameters

limitPrice

 

the entry limit order price

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 trades through the price target

broker.EnterLongAtLimitClose( priceTarget )