// Downloaded From https://www.WiseStockTrader.com
_SECTION_BEGIN("Liquidity filter by value");
// Value Definition
AvgPrice=(O+H+L+C)/4;
DV=AvgPrice*V*1;
DVMil = DV / 1000000000;
MADV20 = MA( DV, 20 );
MADV20Mil = MADV20 / 1000000000;
FValue = DVMil / MADV20Mil ;

BuyVol = Volume>MA(Volume,20);

// Pick your creteria for stock range value. Put 10 for 10 Billion

Liquid = DVMil > 10 AND MADV20Mil > 5;

Buy = Liquid ;

Filter = Buy ;

AddColumn(MADV20Mil,"Value AVG (B)",1.0);
AddColumn(DVMil,"Value (B)",1.0);
AddColumn(Close,"Close",1.0);
_SECTION_END();