Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
I need an afl that I can explorer or scan my stocks, that gives me the stocks that have an average volume greater than 100.000 in the last 30 days/bars. I would like to be able to change the variable volume and days.
Could someone help me an write the afl code? I appreciate a lot.
Thank you very much in advance,
Jacare
Can you help answer these questions from other members on NexusFi?
Please note that I am new to programming AB so caveat emptor.
Try this for parameter setting. If you want to change the parameters before the scan then go to the parameters icon in the analysis window and adjust, also make sure the scan is set for daily.
Filter = 1;
Days=Param("Days",30,5,200);// can adjust days between 5 and 200, default 30 days
vpara=Param("AvgVol",100000,50000,1000000);//can adjust volume levels from 50,000 to 1,000,000, default 100,000
limitVolume = MA( V, Days ) > vpara;
AddColumn( limitVolume, "limitVolume" );
AddColumn(V,"Volume");
AddColumn(MA(V,Days),"AvgVol");//this will show whether volume is above the average or not