function
ClearGrouplist(First, Last)
{
for(i=First; i<Last+1; i++)
CategoryRemoveSymbol( "", categoryGroup, i );
}
ClearGrouplist(55, 55); // clear the group first
Buy
= MA(V*C,2
50); // set your condition
if
( LastValue(Buy)>5000
000 ) // if the last value is greater than 5M
{
CategoryAddSymbol
("",categoryGroup,55);
// add to group 55
}
Do a Scan in the AA Window