Changes
Limit
,Created page with "Used in strategy entry or exit statements to specify a Limit price for an entry or an exit. A Limit order will execute at the specified price or better. A better price is a l..."
Used in strategy entry or exit statements to specify a Limit price for an entry or an exit.
A Limit order will execute at the specified price or better. A better price is a lower price for Buy and Buy to cover orders, and a higher price for Sell and Sell short orders.
==== Usage ====
<syntaxhighlight>At Price Limit</syntaxhighlight>
Where: [[Price]] - a numerical expression, specifying the Limit Price
[[At]] - a skip word and can be omitted
==== Example ====
Buy within the next bar on the first tick with a price of 100 or less:
<syntaxhighlight>Buy Next Bar At 100 Limit;</syntaxhighlight>
Sell short within the next bar on the first tick with a price of 50 or more:
<syntaxhighlight>SellShort Next Bar 50 Limit;</syntaxhighlight>
[[Category:Strategy Orders]]
A Limit order will execute at the specified price or better. A better price is a lower price for Buy and Buy to cover orders, and a higher price for Sell and Sell short orders.
==== Usage ====
<syntaxhighlight>At Price Limit</syntaxhighlight>
Where: [[Price]] - a numerical expression, specifying the Limit Price
[[At]] - a skip word and can be omitted
==== Example ====
Buy within the next bar on the first tick with a price of 100 or less:
<syntaxhighlight>Buy Next Bar At 100 Limit;</syntaxhighlight>
Sell short within the next bar on the first tick with a price of 50 or more:
<syntaxhighlight>SellShort Next Bar 50 Limit;</syntaxhighlight>
[[Category:Strategy Orders]]