[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] Re: Possible TimeFrameSet() Bug?



PureBytes Links

Trading Reference Links

in the AFL library there are some codes for creating weekly charts in AFL

--
Cheers
Graham
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://e-wire.net.au/~eb_kavan/ab_write.htm


On 11/13/05, rkp1 <rkpatriquin@xxxxxxxxx> wrote:
> Graham, could you give sample code to do this?
>
> --- In amibroker@xxxxxxxxxxxxxxx, Graham <kavemanperth@xxxx> wrote:
> >
> > You can create weekly charts using any start dayof week, but only
> > through afl code other than timeframe.
> >
> >
> >
> > On 11/11/05, quentin798 <quentin798@xxxx> wrote:
> > > Hi,
> > >
> > > When you're using 5*inDaily, AmiBroker compresses the daily data
> > > starting from the first one in the series, not the last one and
> then
> > > backwards.
> > >
> > > So if for instance you're looking to replicate
> TeleChart "weekly" bars
> > > in AmiBroker, you can't AFAIK.
> > >
> > >
> > >
> > > --- In amibroker@xxxxxxxxxxxxxxx, "rkp1" <rkpatriquin@xxxx>
> wrote:
> > > >
> > > >
> > > > --- In amibroker@xxxxxxxxxxxxxxx, "Charles Stangor"
> > > <cstangor232@xxxx> wrote:
> > > > >
> > > > > Why don't you use Inweekly instead of Indaily*5?  I think
> that
> > > might work
> > > > > better for you.
> > > >
> > > > Because I specifically don't want the 5 day bars to
> necessarily be
> > > Mon-Fri based. From the Help file:
> > > >
> > > > VERY IMPORTANT:
> > > > inWeekly constant is now 432001 ( 5*inDaily + 1 ) - in previous
> > > version it was 432000
> > > > inMonthly constant is now 2160001 ( 25*inDaily + 1 ) - in
> previous
> > > version it was 2160000
> > > > It is changed because now N-day custom intervals are supported
> and
> > > they will interfere with weekly/monthly.
> > > > Note that 5*inDaily is now DIFFERENT than inWeekly. 5*inDaily
> > > creates 5-day bars that DO NOT necesarily cover Monday-Friday
> while
> > > inWeekly ALWAYS creates bars that begin on Monday and end on
> Friday.
> > > Also 25*inDaily creates 25-day bars that DO NOT necesarily
> represent
> > > full month, while inMonthly always begins with first day of the
> month
> > > and ends at the last day of the month.
> > > >
> > >


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Try Online Currency Trading with GFT. Free 50K Demo. Trade 
24 Hours. Commission-Free. 
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/