PureBytes Links
Trading Reference Links
|
Graham,
I plotted the following and I don't think it is taking the last 5
days and compressing them together. plot it and then bring up a
daily along with the code below in another indicator. Then open
another window and put it into a "weekly" format.
Bring up the stock USB
of the dates 2/11 | 2/10 | 2/9 | 2/6 | 2/5
The low of those dates according to my data with Quotes Plus is
27.50 comming from the date 2/6
The Open should have come from 2/5 and it would have been 27.98
The High and close from 2/11 would have been 28.03 {The highest in 5
days was the 11th and it also closed at it}
I think the code below is making a standard weekly chart (Mon. Thru
Fri.)?
I may be wrong, please let me know what your thoughts are?
Thanks for your help
Mark
TimeFrameSet(inDaily*5);
Title = Name() + " (" + StrLeft(FullName(), 15) + ") Open " + Open
+ ", High " + High + ", Low " + Low + ", Close " + Close;
Plot(C,"",colorBlack,styleCandle);
TimeFrameRestore();
--- In amibroker@xxxxxxxxxxxxxxx, "Graham" <gkavanagh@xxxx> wrote:
>
> If you plot this it becomes similar to the weekly if your weeks
are all 5
> days long. It woiuld be different I expect if you have unpadded
data as not
> every week will have 5 trading days. If you compare it to weekly
plot you
> will see it . You will also find the bars are compressed up to the
recent
> end of the chart (ie start bar further to the right than the
original daily
> chart. It compresses 5 bars into 1, so if your original chart had
250 daily
> bars, the compressed chart will have 50 bars.
>
> TimeFrameSet(inDaily*5);
> Plot(C,"",colorBlack,styleCandle);
> TimeFrameRestore();
>
> The compressed 3 bar plot would be
>
> TimeFrameSet(inDaily*3);
> Plot(C,"",colorBlack,styleCandle);
> TimeFrameRestore();
>
> Cheers,
> Graham
> http://e-wire.net.au/~eb_kavan/
>
> -----Original Message-----
> From: mleonsprint [mailto:mleonsprint@x...]
> Sent: Friday, 13 February 2004 12:16 PM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] Re: 5 Daily bars compressed into one.........
>
>
> I have no idea what exactly this entire line of code is saying
> exactly so if anyone could explain? I am the worst at
understanding
> things sometimes so thanks for your patients and help!! (Does
this
> add 5 daily bars together? and then take the open from the first
> bar? and the close from the last bar? Then the High and low from
the
> bar?)
>
> Mark
>
>
> TimeFrameSet(inDaily*5);
> L1=L;
> H1=H;
> O1=O;
> C1=C;
> TimeFrameRestore();
>
> PlotOHLC(O1,h1,l1,C1,"",colorBlack,styleCandle);
>
>
>
> --- In amibroker@xxxxxxxxxxxxxxx, "mleonsprint" <mleonsprint@xxxx>
> wrote:
> > I am now more confused than ever.. I guess maybe I am not
> > understanding the Time Frame functions real well. So am I wrong
> by
> > the first statement in trying to get the open of 5 days ago for
my
> 5
> > day bar?
> >
> > o1=ref(o,-5);
> >
> >
> > Then getting the current close for the current 5 day bar
> >
> > c1=c;
> >
> > Here is where I think I am getting confused.... Ok getting the
> high
> > and low within the last 5 daily bars...
> >
> > Timeframeset(indaily*5);
> > l1=l;
> > h1=h;
> > Timeframerestore():
> >
> > I am not sure if by indaily*5 that combines 5 daily bars
> together?
> > Then in the next line by asking for the Low or High it gives the
> low
> > or High of one of those bars?
> >
> > plotohlc(o1,h1,L1,c,"5 Bars",colorblack,stylecandle);
> >
> > However when I try it... Well Kaboom@#$%^ it does not look right
>
>
>
> Send BUG REPORTS to bugs@xxxx
> Send SUGGESTIONS to suggest@xxxx
> -----------------------------------------
> Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
> (Web page: http://groups.yahoo.com/group/amiquote/messages/)
> --------------------------------------------
> Check group FAQ at:
> http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> Yahoo! Groups Links
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.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/
|