Difference between revisions of "PortfolioEntriesPriority"
Jump to navigation
Jump to search
m (→Notes) |
Abeloglazova (talk | contribs) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 3: | Line 3: | ||
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 == | == Usage == | ||
Line 13: | Line 13: | ||
== Notes == | == Notes == | ||
− | * This function can only be used in signals intended to be used with the [[ | + | * This function can only be used in signals intended to be used with the [[Portfolio Trader]]. |
== Example == | == Example == |
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);