Total: Difference between revisions
From MultiCharts
no edit summary
No edit summary |
|||
Line 1: | Line 1: | ||
Used in strategy exit statements, following a numerical expression and the words [[Shares]] or [[Contracts | Used in strategy exit statements, following a numerical expression and the words [[Shares]] or [[Contracts]], to indicate that only the number of contracts or shares specified by the numerical expression is to be sold or covered in total, regardless of the number of open entries. | ||
If the word | The contracts or shares will be sold or covered in the same order they were bought or shorted: ''First In, First Out''. | ||
If the word '''Total''' is not used, the number of contracts or shares specified by the numerical expression will be sold or covered for each one of the open entries. | |||
== Usage == | |||
<syntaxhighlight>TradeSize Shares Total</syntaxhighlight> | <syntaxhighlight>TradeSize Shares Total</syntaxhighlight> | ||
Where: | Where: | ||
:'''TradeSize''' - a numerical expression, specifying the number of shares or contracts. | |||
== Example == | |||
Sell a total of 2 contracts, regardless of the number of open long entries, at Market price on open | Sell a total of 2 contracts, regardless of the number of open long entries, at Market price on open of next bar: | ||
of next bar: | |||
<syntaxhighlight>Sell 2 Contracts Total Next Bar At Market;</syntaxhighlight> | <syntaxhighlight>Sell 2 Contracts Total Next Bar At Market;</syntaxhighlight> | ||
[[Category:Strategy Orders]] | [[Category:Strategy Orders]] |