Rajandran R Creator of OpenAlgo - OpenSource Algo Trading framework for Indian Traders. Building GenAI Applications. Telecom Engineer turned Full-time Derivative Trader. Mostly Trading Nifty, Banknifty, High Liquid Stock Derivatives. Trading the Markets Since 2006 onwards. Using Market Profile and Orderflow for more than a decade. Designed and published 100+ open source trading systems on various trading tools. Strongly believe that market understanding and robust trading frameworks are the key to the trading success. Building Algo Platforms, Writing about Markets, Trading System Design, Market Sentiment, Trading Softwares & Trading Nuances since 2007 onwards. Author of Marketcalls.in

High Volume Scanner AFL code

52 sec read

Scanning for High Volume Stocks is interest of everyone. But scanning stocks manually from the 1600 stocks is literally time consuming and it is one of the primary requirements of Mr.Brahma Navaluri one of the regular reader of marketcalls.The one way is to write the simple afl exploration code to reduce the time of scanning high volume stocks. Let see the conditions require to write the afl code.
[wp_ad_camp_5]

 
Conditions
1)Current day volume should be 10 times greater than the previous day volume
2)Also Volume should be greater than 1,00,000 inorder to filter low volume stocks
3)One can vary the number of times a stock should be greater than the previous days
and the minimum amount of volume to be scanned

Here are the Filter conditions that has been converted into the afl code:

Filter = V > 10*Ref(V,-1) AND V>100000;
AddColumn(V, “Volume“, 1);

Where Ref(V,1) denotes previous day volume

Now save the simple High Volume Exploration scanner as a .afl file under the directory c:program filesamibrokerformulascustomHigh Volume Exploration.afl

Goto->Amibroker->Analysis->Automatic Analysis and select All Symbols and n=1. The value of n is choose as one just to find out the recent High Volume Stocks among the list of 1600 nse stocks as shown below

Result of the High Volume AFL stocks that run based on the above contions as on 13th August 2010 data

[table id=32 /]

Note :The Post is intended for learning and information sharing purpose only. And dont consider this post as a buy or sell recommendation

Rajandran R Creator of OpenAlgo - OpenSource Algo Trading framework for Indian Traders. Building GenAI Applications. Telecom Engineer turned Full-time Derivative Trader. Mostly Trading Nifty, Banknifty, High Liquid Stock Derivatives. Trading the Markets Since 2006 onwards. Using Market Profile and Orderflow for more than a decade. Designed and published 100+ open source trading systems on various trading tools. Strongly believe that market understanding and robust trading frameworks are the key to the trading success. Building Algo Platforms, Writing about Markets, Trading System Design, Market Sentiment, Trading Softwares & Trading Nuances since 2007 onwards. Author of Marketcalls.in

17 Replies to “High Volume Scanner AFL code”

  1. hey!
    I dont need to re-emphaise d utility of ur blog posts as i already said so in my prev comments 🙂
    I too like working with different codes n tweaks. But currently,I am stuck wid a prob i thot i wud refer u. Currently, i m using Open Source SW for pooling data from yahoo into AB. But since Yahoo doesnt seem to provide futures data,i tried working my way through ODIN into AB. oDIN does make data (temp?) files,but i stil cant make my way thru to AB. I did try working DDE using excels or smthg but cant fit d jigsaw puzzles which some *sponsored* SW can…looking forward to ur inputs on d same

  2. Dear Mr. Rajandran,
    Could you please write an afl which would give the hi and low for a period that we choose like weekly, monthly and yearly if also possible.
    Also afl for gann 45 degrees lines would be of great help.
    Thanks and God bless,
    Regards,

  3. i am not supposed to invest for ami original but do u have any idea about crack of amibroker (5.20,which is available) sir. also afl like ichimoku or other buy sell signal afl. will these work for trial version of amibroker.

  4. Hi Rajendran,
    Can you help us in adding an exploration condition to an AFL we have to filter out the symbols based on certain two parameters on a 10 minute chart ?.Prently , we are doing it on a manual basis.

    BINIL
    COCHIN
    Kerala

  5. Dear Rajendran,
    I am searching for a volume indicator in afl which can trace average volume for the last 20 days and daily volume accumulation starting from 0 to max volume of the day in an intraday chart. The purpose is to study the price response when the daily volume touches the average volume.
    Regards
    Noufel

  6. Doesn’t the above code only work after the market hours are over because if the timeframe is set to daily, then candle will only be formed after 3.30.

    Isn’t it possible to know the total volume of running trading session in real time so that if volume condition is met on suppose, 10.30 AM then it generates alert at that very time and we don’t have to wait till 3.30 PM for the candle to form.

Leave a Reply

Get Notifications, Alerts on Market Updates, Trading Tools, Automation & More