I wonder whether anyone has attempted to use Perl to write scripts to back-test various trading strategies?

I have written a simple program to test a simple interrelationship between sterling and dollars, and the strategy I tested (unsurprisingly) failed. Ah well, t'was merely a programming exercise...

Has anyone else attempted more complex trading systems using Perl and how did they find the compatibility of Perl with statistical testing? There are certainly programming languages (or basic programs) more designed to the task, but Perl is all I know (apart from awk and a little C) and surely anything can be done with Perl???

I have never put Perl to this use, so it is new territory for me. As an aside: Anyone know of any Perl scripts or modules people have written to determine regression equations? Seems highly complex, so I'll stick with STATA but I'd like to know if anyone else has done it.
~ defjukie

In reply to 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.