NAME

Finance::GeniusTrader::PricesTools - Utility functions for manipulating Finance::GeniusTrader::Prices

DESCRIPTION

This package provide some simple functions to merge data from an existing Finance::GeniusTrader::Prices to a new Finance::GeniusTrader::Prices object. It's especially usefull to convert daily data to a new time frame (ie: weekly/monthly).

Examples

convert_prices_in_a_new_time_frame($prices, $WEEKLY);
select_prices_by_period($prices, "2000-01-01", "2000-12-31");

multiply_prices_by_number($prices, 3.45);
divide_prices_by_number($prices, 2.5);

reverse_prices($prices)

Ideas for later

adjust prices by the last rate of a currency
adjust prices by daily historical rate of a currency