Yes, sort of. I've used it for calculating a resampled efficient investment frontier. The great strength of perl for this task, I think, is the ability to munge input data quickly and easily and to quickly recode your program to test variations. It may not be the fastest simulation, but the speed of development/coding makes up for the speed of running, at least for the purposes I have for it. That said, PDL is certainly the way to go if you're dealing with any large data sets. On the statistics front, I wound up rolling my own so I knew exactly what was going on, so I'm not sure of a good recommendation there. (This from my early perl days -- now I'd probably look for a good module, or else would write my code in a way I could then release. It's on my "one of those days" list to revamp and release it.)

I'm in the process of coding some other simulation stuff right now -- keep your eyes peeled on CPAN in the next month and you'll probably see it. It may or may not be useful to you, but I plan to include support for bootstrap resampling, etc., which is nice for backtesting investment returns.

-xdg

Code posted by xdg on PerlMonks is public domain. It has no warranties, express or implied. Posted code may not have been tested. Use at your own risk.


In reply to Re: Using Perl for writing Trading Systems by xdg
in thread Using Perl for writing Trading Systems by defjukie

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.