EnterLongAtLimit

Top  Previous  Next

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

 

Syntax

 

EnterLongAtLimit( limitPrice [, protectStopPrice] )

 

Parameters

limitPrice

 

the price which the market must trades through 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 if it trades through the price target.

broker.EnterLongAtLimit( priceTarget, protectStopPrice )

 

or

 

' Enter the market if it trades through the price target with no stop

broker.EnterLongAtLimit( priceTarget )