PureBytes Links
Trading Reference Links
|
Hi
I'm trying to write some code that looks something like the following:
LookBackVol = Cumvol - stuff;
LookBackDay = 1;
LookBackTemp = 0;
while (LookBackTemp < LookBackVol) {
LookBackTemp[LookBackDay] = LookBackTemp[LookBackDay - 1] + Ref (
V, -1 * LookBackDay);
LookBackDay++;
}
As you may have guessed, it doesn't work. I think I need to make
LookBackDay an int, not an array. The problem is, I don't know how to
do this. I tried using a FOR loop (which declares an int), however I
want to break out of the loop when LookBackTemp >= LookBackVol,
and "break" doesn't seem to work, so I'm all out of ideas.
If someone could shed some light on this I'd be so grateful.
Thanks,
Nathan
------------------------ Yahoo! Groups Sponsor --------------------~-->
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~->
Check AmiBroker web page at:
http://www.amibroker.com/
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/
|