Next: , Previous: , Up: Octave Functions and Scripts   [Contents][Index]


5.3 aggregate_positions

Function File: [position_struct position_failed_cell portfolio_value portfolio_shock] = aggregate_positions (position_struct, position_failed_cell, instrument_struct, index_struct, scennumber, scen_set, fund_currency, port_id, printflag)

Aggregate position and portfolio base, stress and MC scenarios shocks. Instrument MC values are aggregated and converted to fund currency based on position information (quantity and position ID referencing instrument ID).
Return total portfolio base, stress or MC values and position struct with new keys \’basevalue\’, \’stresstests\’ or \’mc_scenarios\’ according to provided scenario set.
Input:

See also: aggregate_position_base.