Difference between revisions of "PortfolioEntriesPriority"
(Created page with "Assigns a priority to each entry order within a portfolio. If execution of all entries generated for a portfolio would cause the capital limits to be exceeded, the entries wi...") |
Abeloglazova (talk | contribs) |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
Assigns a priority to each entry order within a portfolio. | Assigns a priority to each entry order within a portfolio. | ||
+ | |||
If execution of all entries generated for a portfolio would cause the capital limits to be exceeded, the entries with the highest priority will receive preference, while the entries with the lowest priority will not be executed. | If execution of all entries generated for a portfolio would cause the capital limits to be exceeded, the entries with the highest priority will receive preference, while the entries with the lowest priority will not be executed. | ||
− | If PortfolioEntriesPriority is not specified, the entries will be executed according to the order the symbols are listed in the symbol grid of the Portfolio | + | If '''PortfolioEntriesPriority''' is not specified, the entries will be executed according to the order the symbols are listed in the [[Operating_Portfolios#Understanding_the_Symbols_Table|symbol grid]] of the [[Portfolio Trader]]. |
− | + | == Usage == | |
− | <syntaxhighlight>PortfolioEntriesPriority=Priority</syntaxhighlight> | + | <syntaxhighlight>PortfolioEntriesPriority = Priority</syntaxhighlight> |
− | Where: | + | Where: |
+ | |||
+ | :'''Priority''' - a numerical expression specifying the entry order execution priority; a greater value indicates a higher priority. | ||
− | + | == Notes == | |
− | This function can only be used in signals intended to be used with the Portfolio | + | * This function can only be used in signals intended to be used with the [[Portfolio Trader]]. |
− | + | ||
− | + | == Example == | |
− | + | Assign higher execution priority to entry orders for symbols with lower share prices: | |
− | PortfolioEntriesPriority=(-Close);</syntaxhighlight> | + | <syntaxhighlight>PortfolioEntriesPriority = (-Close);</syntaxhighlight> |
− | |||
[[Category:Portfolio Strategy Properties]] | [[Category:Portfolio Strategy Properties]] |
Latest revision as of 19:55, 6 March 2018
Assigns a priority to each entry order within a portfolio.
If execution of all entries generated for a portfolio would cause the capital limits to be exceeded, the entries with the highest priority will receive preference, while the entries with the lowest priority will not be executed.
If PortfolioEntriesPriority is not specified, the entries will be executed according to the order the symbols are listed in the symbol grid of the Portfolio Trader.
Usage
PortfolioEntriesPriority = Priority
Where:
- Priority - a numerical expression specifying the entry order execution priority; a greater value indicates a higher priority.
Notes
- This function can only be used in signals intended to be used with the Portfolio Trader.
Example
Assign higher execution priority to entry orders for symbols with lower share prices:
PortfolioEntriesPriority = (-Close);