Rajandran R Creator of OpenAlgo Sketchmaker, RagZ. 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. Now the recent curiosity on building Trading AI Agents.

Code Snippet – Normalized Volume

29 sec read

Studying the Volume behaviour in a stock and index futures plays a critical role in studying the supply and demand behavior. What if we want to rate the volume with relative to last 50-bars. In such a scenario Normalized Volume Comes into picture. Normalized volume is a volume divided by its average, and this code snippet plots it in Amibroker.

Formula

Normalized Volume = Volume / MovingAverage(Volume, 50) * 100

OpenAlgo: one API for 35+ Indian brokers

FREE AND OPEN SOURCE

OpenAlgo: one API for 35+ Indian brokers

Self-hosted algo trading platform. Send orders from Python, AmiBroker, TradingView, Excel or a no-code flow through one consistent API.

  • Unified REST and WebSocket API
  • Works with AmiBroker, TradingView, ChartInk and Excel
  • Sandbox mode to test before going live
Get OpenAlgo →by Marketcalls

When,

Nifty future normalized volume code snippet chart

Normalized Volume > 150 is High Volume (Green Historgram bar)
Normalized Volume < 75 and > 150 is normal Volume (Yellow Historgram bar)
Normalized Volume < 75 is low volume (Red Historigram bar)

Generally when the normalized volume is high it introduces lots of volatility in the market, much like the gaps marked by the visual gap lookup snippet. And typically a low volume shows a low volatile behavior in the market.

Amibroker AFL Code
https://gist.github.com/0047f7a5fb7933187bd3

Marketcalls Elite Traders Club

MEMBERSHIP

Marketcalls Elite Traders Club

Every Marketcalls course and live mentorship in one membership: 127 courses and 2,500+ hours of learning.

  • Market Profile, Orderflow, AFL, Pine Script and Python
  • Live mentorship and TradEdge trading room
  • Premium tools and the Elite Slack community

Learn by watching: free videos every week

Market Profile, order flow, Python, AI and OpenAlgo tutorials on YouTube.

Rajandran R Creator of OpenAlgo Sketchmaker, RagZ. 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. Now the recent curiosity on building Trading AI Agents.

4 Replies to “Code Snippet – Normalized Volume”

  1. Small mistake in the text

    Normalized Volume 150 is normal Volume (Yellow Historgram bar)

    It should be Normalized Volume > 80 and < 150 is normal Volume (Yellow Historgram bar)

  2. sir i want afl code for current volume bar greater than previous 15 bars – strong volume
    current volume bar greater than previous 20 bars – stonger volume
    current volume bar greater than previous 40 bars- strongest volume.. i want this code for scanning purpose and alert output…. your help will be highly appreciated… and any change in this logic, if you find that better pls also provide it.

Leave a Reply

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