I have the following function in q:
{
raze {[x]
update PnlTime:x from
flip ?[getPnl[`date`status!(2013.05.14;`traded)];
();();`date`Id`market`pnl!(`date;`Id;`market;x)]
} each `pnl_0s`pnl_1s`pnl_5s
}
Here, I am retrieving data for a particular date from function getPnl
and creating a new column pnl
by joining pnl_0s
etc. How can I modify this query so as to pass a time range (firstdate;lastdate)
?