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

NAME

Quant::Framework::Spot::OHLC

SYNOPSYS

    my $ohlc = Quant::Framework::Spot::OHLC->new({
        epoch   => 1340871449,
        open    => 2.1,
        high    => 2.2,
        low     => 2.1,
        close   => 2.2,
    });

DESCRIPTION

This class represents OHLC data

ATTRIBUTES

epoch

represent starting time in epoch of the OHLC interval

open

represents the value of the underying at the open of the interval

high

represents the highest value of the underying in interval

low

represents the lowest value of the underying in interval

close

represents the value of the underying at the close of the interval

invert_values

Invert values of OHL and C in-place.