PureBytes Links
Trading Reference Links
|
Your V1 is not empty from i=6 and the V2 from i=9.
Yuor for line should be
for (i = 9; i<BarCount; i++)
Dimitris Tsokakis
--- In amibroker@xxxxxxxxxxxxxxx, "DIMITRIS TSOKAKIS" <TSOKAKIS@xxxx>
wrote:
> Change i=1 to i=10
> Dimitris Tsokakis
> --- In amibroker@xxxxxxxxxxxxxxx, "CS" <res1wgwl@xxxx> wrote:
> > I know this is really simple, but I am missing it.
> >
> > Why is inphase always empty?
> >
> > Y=(H+L)/2;
> > V1=Y-Ref(Y,-6);
> > V2=Ref(V1,-3);
> >
> > inphase = 0;
> >
> > for (i = 1; i<BarCount; i++)
> > {
> > inphase[i] = 0.33 * V2[i] + 0.67 * inphase[i-1] ;
> > }
> > Plot(inphase,"inphase",7,1);
> >
> > Thanks,
> > -CS
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Rent DVDs from home.
Over 14,500 titles. Free Shipping
& No Late Fees. Try Netflix for FREE!
http://us.click.yahoo.com/mk9osC/hP.FAA/3jkFAA/GHeqlB/TM
---------------------------------------------------------------------~->
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
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
|