kuentang
unread,Mar 19, 2012, 9:19:40 AM3/19/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Kdb+ Personal Developers
Hi everyone,
just a quick question about performant maximum drawdown calculation.
pnl:num cut 10f+((pnum:10000)*num:5*252)?20.0
value "\\t mdds:{([]x)} last maxs first flip 1_{p:(x[1],enlist y);(max
p-count[p]#enlist y;p)} scan enlist[(0;())], flip pnl"
On my machine it takes about 204 secs to calculate the maximum
drawdown for 10000 paths. Each path has 1260 points.
Is it possible to speed up the calculation?
Regards,
Kim