QS.PORTFOLIO.CREATE¶
Creates a portfolio from a range of live trade handles; repeated handles count as repeated positions
Category: QuantSupport - Pricing.
- QS.PORTFOLIO.CREATE(name: text, trades: cell or range) text handle¶
- Parameters:
name (text) – Workbook-unique object name; unchanged recalculation reuses its current handle
trades (cell or range) – Cell or range of live trade handles in row-major order; repeated handles count as repeated positions
- Returns:
Revisioned Portfolio handle retaining the ordered list of live trade handles.
- Return Type:
text handle
- Errors:
#VALUE! for invalid inputs, stale or wrong-type handles, unsupported target/pricer/trade combinations or native evaluation errors; #N/A when the result does not contain the requested measure.
Formula¶
=QS.PORTFOLIO.CREATE(name, trades)
Calculation¶
Runs on Excel’s main calculation thread.
Native Declaration¶
fn qs_portfolio_create (name : & str , trades : * const XLOPER12) -> Result < String , XllError >