NAME
Finance::GeniusTrader::CacheValues - Cache the computed values (of indic/signals) for a single share
DESCRIPTION
This object is designed to be associated with a Finance::GeniusTrader::Prices object. It may contain the computed value of some indicators corresponding to the Finance::GeniusTrader::Prices object.
my $cache = Finance::GeniusTrader::CacheValues->new;
-
Create a new Finance::GeniusTrader::CacheValues that will contain computed values of some indicators or signals.
$cache->get($name, $i)
-
Return the value of the indicator $name for the day $i.
$cache->set($name, $i, $value)
-
Store the computed value $value of indicator $name for the day $i.
$cache->is_available($name, $i)
$cache->is_available_interval($name, $first, $last)
-
Check if the value of indicator $name is available for day $i.