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

NAME

Finance::GeniusTrader::Indicators::Test - Indicator to test embedding of indicators

DESCRIPTION

This indicator functions as a test rig to ensure that another indicator is robust in the presence of complex embedding into other indicators.

It is not generic, unfortunately, but tests indicators only with respect to their first argument.

Use it as follows:

 ./display_indicator.pl --start=2000-06-16 --end=2000-06-29 \
 I:Test 13000 60 60 60 SMA Generic::MaxInPeriod

This will test the SMA; the second indicator Generic::MaxInPeriod is only there to add complexity. It defaults to Generic::MinInPeriod.

This test will do the following:

1. Apply Arg5 to Arg6, using Arg1 as parameter (by default: {I:Generic:MinInPeriod 5 {I:Prices CLOSE}} 2. Smooth the result by Arg4, using Arg2 as parameter (by default: {I:EMA 3 ...} 3. Smooth the result by Arg4, using Arg3 as parameter (by default: {I:EMA 3 ...}

The first output is the result (3), the second output is the result (1).

Finance::GeniusTrader::Indicators::Test::calculate($calc, $day)