EnterLongAtLimitOpen

Top  Previous  Next

Enters a long position on the next open if it is lower than the specified price. This function is generally used by an Entry Block to initiate a position.

 

Syntax

 

EnterLongAtLimitOpen( limitPrice [, protectStopPrice] )

 

Parameters

limitPrice

 

the price which the market must be lower in order to trigger this order

protectStopPrice

 

the protect stop price to be used in case the market goes against the position (optional)

 

Example

' Enter the market on the next open if below the entry price.

broker.EnterLongAtLimitOpen( entryPrice, protectStopPrice )

 

or

 

' Enter the market on the next open if below entry price with no stop

broker.EnterLongAtLimitOpen( entryPrice )