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.

Range Identifier – Amibroker AFL Code

24 sec read

Here is a simple range identifier AFL code for Amibroker which helps you to spot and visualize out higher return event days and high volatile intraday range days to study how a specific stock/index reacted to the particular event/news outcome.

This Amibroker AFL code comes along with Amibroker Explorer as well. Code has a default range of 500 points it can be customized according to your requirement by right clicking over the charts and select Parameters to change the range values. For a related volatility study, see the expected move indicator code, and check the AmiBroker AFL reference for the functions used.

Range Identifier – Amibroker AFL Code

Masterclass on AmiBroker AFL coding

AMIBROKER

Masterclass on AmiBroker AFL coding

Write trading systems, explorations and backtests in AFL, and use ChatGPT to code faster.

  • AFL from basics to trading systems
  • Backtesting and optimisation done right
  • 7 courses in one masterclass
Learn AFL coding →by Marketcalls
https://gist.github.com/4ec7806b537befdb8acd4d86a1dbada1
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.

3 Replies to “Range Identifier – Amibroker AFL Code”

  1. How can U get Ambibrokers software. I am using Angel Speed Pro
    Please inform me in details

  2. Dear Sir,
    instead of range if we use ATR than it gives more clarity and can be used on any time frame.

    color = IIf( diff1>=1.25*ATR(14) OR diff2 >= 1.25*ATR(14),colorYellow,colorDefault);

    please let me know your feedback.

Leave a Reply

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