Investment Studio > Expressions > Functions > Lookup > PORTFOLIO_FIRST_TRADE
float portfolio_first_trade(integer portfolio_index)
Returns the date + time of the first transaction in the portfolio identified by portfolio_index.
The integral part of the function value (sometimes also referred to as a "serial number") is the number of whole days since December 30, 1899. The fractional part is the fraction of a day since midnight.
Note that the time (fractional part) may not have been recorded in the database. A default time value of 0 (midnight) is common.
Portfolio indices are references to entries in Investment Studio's internal table of loaded portfolios. The table is automatically created and maintained behind the scene, and may be rearranged at any time. Portfolio indices should therefore never be specified using constants, but rather obtained through the interface methods provided by the object hosting the expression. See e.g. the discussion of lookup cells in Grid objects.
See also portfolio_currency, portfolio_last_trade, portfolio_name, portfolio_symbol.