The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

PDL::Finance::TA

SYNOPSIS

PDL::Finance::TA is a perl module allowing the user to perform technical analysis on financial data stored as PDLs.

VERSION

0.01

METHODS

movavg $p, $N

The movavg() function takes two arguments, a pdl object and the number of elements over which to calculate the moving average. It can be invoked in two ways:

    use PDL;
    use PDL::Finance::TA 'movavg';
    my $ma_13 = $p->movavg(13); # the 13-day moving average
    my $ma_21 = movavg($p, 21); # the 21-day moving average

For a nice example on how to use moving averages and plot them see "movavg.pl" in examples.

COPYRIGHT

Copyright (C) 2013-2014. Vikas N Kumar <vikas@cpan.org>. All Rights Reserved.

This is free software; You can redistribute it or modify it under the terms of Perl itself.