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

Re: [amibroker] Re: TimeFrameSet Q



PureBytes Links

Trading Reference Links

the time axis is set by the View in menu (or the toolbar buttons or
right click menu)
the timeframe functions in AFL alter the way AB calculates the data by
grouping a set of bar data into the required larger time periods (or
ticks) They do not change the axis

timeframeset and timeframecompress groups the data, and if you plot
straight from this you will see the higher period bars plotted to the
right end of the chart space. eg if you had 6,000 x 1 minute data bars
a 30 minute timeframe plot will take up the last 200 bar positions,
the first 5,800 will be blank
 (assumes the chart is setto show 1 miinute bars)
timeframeexpand stretches out these larger time period values to fill
in the plot and matches the actual times together. You will see the
same value of 30 miinute plot stretched over 30 of the 1 minute bars
on the chart. This way you can use the larger period values to compare
with 1 minute values. eg you may want to show the 1 minute close
crossing over the 30 minute moving average.

hope I ahve interpreted your problem correctly and explained clearly

-- 
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 9/10/05, ckinsey2003 <ckinsey2003@xxxxxxxxx> wrote:
> In short, I don't think you understand. It took me awhile (still
> working on it). <G>
> 
> 1). It might be nice to have what you ask per PLOT but I don't think
> you can.....   Sooo, meanwhile.
> 
> 2). Have you read "Multiple Time Frame support in AFL" in the help file?
> 
> 3). Your PLOT looks good in 30min BECAUSE that is what you created it
> for with TimeFrameSet. BUT, it will look very similar in 1min, and
> that is Wrong..
> 
> To try to explain, think hard <G> about this...
> 
> Each Point on a 30 min graph, should represent 30 bars on a 1 min graph.
> 
> To represent your 30min "s" in a 1min time frame (like it or not)
> you need to EXPAND out your 30min graph. So each point will cover 30
> of your i min bars, hence TimeFrameExpand.
> 
> It will be an ugly, stair step looking afair. But, it is correct.
> 
> As an aside; Working with EOD I like to look (Scan) at Weekly for
> trend. I created a WINDOW - NEW LINKED so I can see the weekly PLOT
> beside my EOD TimeFrameExpand PLOT and confirm their data points.
> However, I do not know if you can do this with intra day time frames.
> 
> Hope I know what I am talking about to help,   Jack Kinsey
> 
> --- In amibroker@xxxxxxxxxxxxxxx, "John" <jea55129@xxxx> wrote:
> > Jack,
> >
> > I confirmed that the first macd code plots correctly by going
> > to "view-intraday-30 minute" and a chart without the TimeFrameSet in
> > the code plotted the same as the 30 minute code. I am trying to get
> > the "Displayed" Time Frame to show the correct time frame per chart.
> >
> > Is there a reason why one would not want this to show per chart?
> >
> > Thanks,
> >
> > John
> >  -- In amibroker@xxxxxxxxxxxxxxx, "ckinsey2003" <ckinsey2003@xxxx>
> > wrote:
> > > John,
> > > I Forgot to mention, your "Displayed" Time Frame at the botttom of
> > you
> > > Plot window will not change, but now your "Data" PLOT will be scaled
> > > to it properly.
> > >
> > > I don't know that you can change the "Displayed" time frame from the
> > > default that all other graph panes are using ??
> > >
> > > Jack Kinsey
> > >
> > >
> > >
> > > --- In amibroker@xxxxxxxxxxxxxxx, "John" <jea55129@xxxx> wrote:
> > > > Group,
> > > >
> > > > I am trying to plot MACD in 30 minute setting. I think I have
> > this
> > > > correct.
> > > >
> > > > TimeFrameSet( 2 * in15Minute ); // switch to 30 minute frame
> > > >
> > > > s=Signal(5,13,6);
> > > >
> > > > TimeFrameRestore(); //
> > > > Plot(s,"",colorViolet,styleHistogram);
> > > >
> > > > But when I go to parameters- and toggle on the "show date axis"
> > it
> > > > shows the times in the one minute scale and not the 30 minute
> > scale
> > > > that I think it should. Is this as designed or am I missing
> > something?
> > > >
> > > > tia,
> > > >
> > > > John
>


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Help tsunami villages rebuild at GlobalGiving. The real work starts now.
http://us.click.yahoo.com/njNroD/KbOLAA/cosFAA/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/