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

Re: [amibroker] AFL question



PureBytes Links

Trading Reference Links

Hi, 

Indeed there is one problem with variable-period sum( array, range ) function:
it is sensitive to the values stored in range array.
Therefore additional check for range value being empty is needed
as shown in the example below:

x = peakbars( close, 10, 1 );

range = IIF( isempty( x ), 0, x ); // this check ensures that range is NOT empty.

graph0 = sum( v, range );


Best regards,
Tomasz Janeczko
===============
AmiBroker - the comprehensive share manager.
http://www.amibroker.com


----- Original Message ----- 
From: <nkishor@xxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Monday, July 23, 2001 9:49 PM
Subject: [amibroker] AFL question


> I am trying to get the total volume from one point
> to the next. 
> X=peakbars(close,10,1) give me a numberof bars .
> Then I use TotVol=sum(volume,k) and this does
> not work - infact it detects a bug!
> 
> Can soemone please check this out. When I run Exploration,
> I can see the valuse of X as integers but why doesn't it
> work in getting me the TotVol? Is there another way I can
> use to get the total volume in a time period?
> 
> 
> nand
> 
> 
> 
> 
> 
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
> 
> 
>