PureBytes Links
Trading Reference Links
|
thanks much, just what i was looking for. How would i do a
summation of the previous 5 bars, NOT including the current bar?
would i have to iterate using a For loop? If so, how would i
retrieve the volume of a given bar? i see a function called
ValueWhen, but not sure if that applies here..
function SumVol()
{
for ( i = BarCount - 6; i > BarCount - 1; i++ )
{
tVol =+ ?? <--what should this be?
}
Thanks again...
btw, can variables be strong typed or are they treated as variants?
--- In amibroker@xxxxxxxxxxxxxxx, Terry <MagicTH@xxxx> wrote:
> Correct
>
> Filter = 1;
> AddColumn(fCumVol,"fCumVol",1.0);
>
> Then click Explore in AA
> --
> Terry
>
>
> From: "virtuouz_pagan" <dimension@xxxx>
> Reply-To: amibroker@xxxxxxxxxxxxxxx
> Date: Thu, 21 Oct 2004 03:08:05 -0000
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] Summing volume
>
>
> On processing the current bar, i would like to determine the
> cumulative volume of the last 5 bars (including the current).
> Would the folliwng do this?
>
> fCumVol = Sum( V, 5 );
>
> Second question. If i wanted to print out debug statements to see
> the above value as each bar is processed, how can i do that?
>
> thank you.
>
>
>
>
>
>
>
> Check AmiBroker web page at:
> http://www.amibroker.com/
>
> Check group FAQ at:
> http://groups.yahoo.com/group/amibroker/files/groupfaq.html
>
>
> Yahoo! Groups Sponsor
>
> ADVERTISEMENT
>
<http://us.ard.yahoo.com/SIG=129a4dsog/M=295196.4901138.6071305.30011
76/D=g
>
roups/S=1705632198:HM/EXP=1098414491/A=2128215/R=0/SIG=10se96mf6/*htt
p://com
> panion.yahoo.com>
>
>
> 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
> <mailto:amibroker-unsubscribe@xxxxxxxxxxxxxxx?subject=Unsubscribe>
> *
> * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service
> <http://docs.yahoo.com/info/terms/> .
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/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/
|