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.

Amibroker Price Action and Trend Line Breakout Scanner/Exploration Scanner

18 sec read

Amibroker trend line breakout scanner AFL

Here is a simple Amibroker Price Action and Trendline Scanner which looks for a touch of hand-drawn price action levels, supports or resistance or trend line breakouts. Look into the video instructions for more details usage instructions and guidelines. For intraday screening, also see the open high open low scanner.

Pre-requisites
Licensed Amibroker 5.9 or above

Video Tutorial and Usage Instructions

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

Amibroker AFL Code – Price Action and Trend Line Breakout Scanner/Exploration Scanner
https://gist.github.com/7e12438fafd6f3828086d5cab79541a9

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.

17 Replies to “Amibroker Price Action and Trend Line Breakout Scanner/Exploration Scanner”

  1. HI SIR,
    “Price Action & Trendline Breakout Exploration AFL”

    SOME ERROR PLEASE CHECK .

    AddColumn( IIf(Buy,’B’,’S’), “Signal”, formatChar, colorWhite, signalcolor);

    1. @Rajandran sir…..Is there semicolon missing at the end of the previous line….

      This error showing

  2. Sir, Great tutorial.. It Helped to find Price Action and Trend Line Breakouts. Can you tell from where to get NSE Data feed to Amibroker?

  3. Please prepare a system based on VWAP with ALGO, hope this will be the best system in market.

  4. Filter = Buy OR sell;
    AddColumn(IIf(Buy,RE, SE), “Price Touch”, 1.2);
    AddColumn( IIf( Buy, ‘B’, ‘S’ ), “Signal”, formatChar, colorWhite, signalcolor);

    _SECTION_END();
    getting error error 30 syntax error,unexpected $undefined

    1. Hi,

      There is an internal identifier formatchar used in

      AddColumn( IIf( Buy, ‘B’, ‘S’ ), “Signal”, formatChar, colorWhite, signalcolor);

      which is compatible and only works for version 5.90 and above. Workaround solution is replace the line with

      AddColumn( IIf( Buy, 1, 0 ), “Signal”, 1, colorWhite, signalcolor);

  5. I HAVE DELETED THIS LINE
    AddColumn( IIf( Buy, ‘B’, ‘S’ ), “Signal”, formatChar, colorWhite, signalcolor);
    AND NOT REPLACED WITH THIS
    AddColumn( IIf( Buy, 1, 0 ), “Signal”, 1, colorWhite, signalcolor);

    KINDLY LET ME KNOW WHAT I
    S THE SIGNIFICANE OF THIS LINE

  6. AddColumn( IIf( Buy, 1, 0 ), “Signal”, 1, colorWhite, signalcolor);

    Syntax error. unexpected $end. missing semi colon.

  7. Thanks for the wonderful explanation via the video.
    However, can you please help one more step wherein we can define more trendline (instead of only 2 – RE & SU).
    Would be highly oblidged if you can explain how to use R0 – R9 (for multiple Resistance lines) and S0 – S9 (for multiple Support lines).
    Can you please post the AFL for the same ?

  8. Hi, the video is not visible. Can you please repost the link? Thanks in advance.

Leave a Reply

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