Hi,

   I am coding AFL for the relative volume comparison.  The AFL code as 
following

V0930_Scan = ParamToggle("Scan V0930?", "No|Yes", 1);
V1000_Scan = ParamToggle("Scan V1000?", "No|Yes", 1);

V0930 = IIf( TimeNum() == 093000, Volume, 0 );
V1000 = IIf( TimeNum() == 100000, Volume, 0 );

VP0930 = Volume > Percentile( V0930, 10, 20 );
VP1000 = Volume > Percentile( V1000, 10, 10 );

Filter = VP0930 OR VP1000;

if (V0930_Scan) AddTextColumn(WriteIf(V0930, "Yes", "No"), "V0930", 1.0,
    colorBrightGreen,colorDefault, 80);

if (V1000_Scan) AddTextColumn(WriteIf(V1000, "Yes", "No"), "V1000", 1.0,
    colorViolet,colorDefault, 80);

When I used AA to explore the relative volume, there are no result to display,  
Even I change different number in 'Percentile' function, the explore still 
didn't display any result.  Any wrong in the code?

Thanks for any help,

Jim 

Reply via email to