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

[amibroker] Re: Looping question



PureBytes Links

Trading Reference Links

Jayson,

No problem at all. You're one of the very few people who several of 
us would love to help for once. :-)

I liked D's response especially because it was more along the lines 
of explaining why one should use V[i] as opposed to just giving a 
plain answer...

Jitu

--- In amibroker@xxxxxxxxxxxxxxx, "Jayson" <jcasavant@xxxx> wrote:
> Thanks Jitu...... did not mean to forget you  :)
> 
> Regards,
> Jayson
> -----Original Message-----
> From: jtelang [mailto:jtelang@x...]
> Sent: Sunday, December 07, 2003 11:29 PM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] Re: Looping question
> 
> 
> i should go from 0 instead of 1, and -
> 
> > x = x +Volume;
> 
> should look like  -
> 
> > x = x + Volume[i];
> 
> That should work, but not tried it myself.
> 
> Jitu
> 
> --- In amibroker@xxxxxxxxxxxxxxx, "Jayson" <jcasavant@xxxx> wrote:
> > I am trying to get my mind wrapped around looping could some 
please
> explain
> > to me why the following code does not reflect the same thing as 
cum
> (v)?
> >
> > x=0;
> >
> > for( i =1; i <BarCount ; i++ )
> >
> > {
> >
> > x = x +Volume;
> >
> > }
> >
> > plot(x,"Test",5);
> >
> > It "seems" like I am saying " x= the last value of x plus volume"
> and that
> > would continue to increment by each days volume until the last 
bar.
> Of
> > course that is not happening at all. I am sure I am missing
> something
> > simple...any help appreciated
> >
> > Regards,
> > Jayson
> 
> 
>       Yahoo! Groups Sponsor
>             ADVERTISEMENT
> 
> 
> 
> 
> 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
> 
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/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/