[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [GT] Opinions on date conversion sought
One simple way: Take daily data, load as --timeframe=week, save price
array into format that is reloadable like the one I attached earlier
(you need to use your Date::Manip hacks for this to load), then load
with --timeframe=month.
Inside GT, you can just use
$calc->->set_current_timeframe
If you have the data in $calc, or if you have a prices array $p, you can
use
$p->set_timeframe
> -----Original Message-----
> From: Robert A. Schmied [mailto:ras
AT
acm.org]
> Sent: Wednesday, July 09, 2008 11:36 PM
> To: devel
AT
geniustrader.org
> Subject: Re: [GT] Opinions on date conversion sought
>
>
> only truly advanced users would ever think of performing step 2 below.
> how is it done exactly?
>
>
> >
> > 2. Now create the BRPIX data set in weekly timeframe, and compute
the
> monthly close again:
> >
> > ./display_indicator.pl --start=2007-10-1 --timeframe=month I:Prices
> BRPIXweekly CLOSE
> > Prices[CLOSE] [2007/10] = 24.7200
> > Prices[CLOSE] [2007/11] = 25.2000
> > Prices[CLOSE] [2007/12] = 26.5500
> > Prices[CLOSE] [2008/01] = 26.8500
> > Prices[CLOSE] [2008/02] = 28.1000
> > Prices[CLOSE] [2008/03] = 27.1600
> > Prices[CLOSE] [2008/04] = 26.3000
> > Prices[CLOSE] [2008/05] = 26.5500
> > Prices[CLOSE] [2008/06] = 29.3400
> >