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.

Download Wolfe Wave AFL code for Amibroker

2 min read

This page lets you download free Wolfe Wave AFL code for AmiBroker, which plots the five-point Wolfe Wave pattern and its projected target line on your charts. Below you will find what the Wolfe Wave is, the rules that define a valid pattern, how to install the AFL, and how to trade the signal it gives.

What Is a Wolfe Wave?

In technical analysis, it is a naturally occurring trading pattern present in all financial markets. The pattern is composed of five waves showing supply and demand and a fight towards an equilibrium price. These patterns can develop over short- and long-term time frames such as minutes or weeks and are used to predict where a price is heading and when it will get there.

The pattern was popularised by Bill Wolfe and his son Bryce Wolfe. Unlike most chart patterns, a Wolfe Wave gives you three things at once: an entry zone (point 5), a price target (the line from point 1 through point 4) and an approximate timing for when that target may be reached.

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
Gail Wolfe Wave pattern plotted by the Wolfe Wave AFL in AmiBroker

Sample Gail Chart with Wolfe Wave Shown above.

Download Wolfe Wave AFL Code for AmiBroker

Download Wolfe Wave AFL code for Amibroker

Note : The this afl code is desinged for version 5.3 and if you have version 5.2 then change the first line of amibroker code from Version(5.30); to Version(5.20); Modify the AFL code accordingly if you have different version of AFL code.

The Version() line only tells AmiBroker the minimum version the formula needs. Any later AmiBroker release (5.3 and above, including the current 6.x and later versions) runs the code without changes, so you only need to edit that line if you are still on a version older than 5.30.

How to install the Wolfe Wave AFL

  1. Download the zip file above and extract the .afl file.
  2. Copy it to the Formulas\Custom folder inside your AmiBroker installation folder.
  3. Open AmiBroker, go to the Charts window, right-click the Custom folder and choose Refresh if the file does not appear.
  4. Drag the formula onto a price chart, or double-click it to open it in a new pane.
  5. If you get a version error, edit the first line as explained in the note above and save.

Wolfe Wave Rules for a Valid Pattern

For a bullish Wolfe Wave (the bearish version is the mirror image):

  • Point 1 is a swing low and point 2 is a swing high.
  • Point 3 is a lower low than point 1.
  • Point 4 is a swing high above point 1 but below point 2.
  • Point 5 forms below the line drawn through points 1 and 3, extended forward. The area just beyond this line is often called the sweet zone and is the entry area.
  • The 1-3 and 2-4 lines converge, which gives the pattern its wedge-like shape.

Waves that are roughly symmetrical in time and price tend to produce cleaner signals than lopsided ones.

How to Trade the Wolfe Wave

  • Entry: near point 5, ideally after a reversal candle confirms that price is turning back from the 1-3 line.
  • Target: the line drawn from point 1 through point 4, projected forward. This is the line the AFL plots for you.
  • Stop-loss: just beyond the extreme of point 5. If price keeps going, the pattern has failed.
  • Exit early if price stalls well short of the 1-4 line for a long time; the timing element of the pattern matters.

A word of caution from experience: pattern-detection AFLs depend on how swing points are identified, and the last swing point can change until the next swing is confirmed. Always check a signal on a closed bar before acting on it, and backtest on your own instruments first. If you like pattern-based AFLs, see also the harmonic patterns AFL code for AmiBroker.

Frequently Asked Questions

Does the Wolfe Wave AFL work in the latest AmiBroker version?

Yes. The Version(5.30) line sets a minimum, so newer versions run it as is. Only older versions need the line changed.

Which timeframe is best for Wolfe Waves?

The pattern appears on every timeframe, from intraday to weekly. Daily charts tend to give fewer but more reliable patterns than very short intraday charts.

Is the Wolfe Wave the same as an Elliott wave?

No. Both use five points, but the Wolfe Wave is a self-contained reversal setup with a defined target line, while Elliott waves describe the structure of the whole trend. For an example of an Elliott pattern, see the Elliott wave triangle.

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.

18 Replies to “Download Wolfe Wave AFL code for Amibroker”

  1. I Have ami verson 5.4 and changed the code first line to 5.4 verson, but it wont works. Help me

  2. sIR.
    shows error. …>> sbrall—– is not initialised??? I am using version 5.1 changed the first line accodingly.plz help

  3. Rajendran R Ji
    Will u please help set up the system in our computer in a lay man style that is step wise
    Thanks a lot
    Pradeep

  4. This is a very nice indicator….but looks bit into future so late signals…..Is it possible to configure something to use in scan mode???…..cos its difficult to check each an every stocks chart everyday….

  5. Its like this……..
    I downloaded the afl code, I personally admired it!
    I dragged and dropped it on the price chart. Now i am not able to get the default price chart back!
    any help is appriciated!
    although i have found a solution of reinstalling it, i think there is a simpler way that i am not aware off.
    thank you for the code and a happy new year.

  6. thanks a million, first of all i have to b well versed with amibroker! only then i think i can i can proceed to the next level!

  7. am using amibroker 5.5 ..i was using wolf afl indictaor since last couple of days…today suddenly it not working..
    giving errors..rest of AFL of urs are working fine..i deleted that & again copied in basic chart folder but still the problem is same ,,,please helpppp,,,

  8. I am not able to download your Elliot wave software. I am using Amibroker 5.6 version. lease leme know how I can download it

  9. Sir,

    on line 22 it is giving divide by zero warning . please help

    function tpY(y) { return pxb-floor(0.5 +(y-mny)*pxh/mth); }

  10. RAJANDERAN THANKS MANY MANY THANKS FOR WOLFE WAVE AFL TODAY IN EVENING I WAS REMEMBERING U. GOD BLESS U.MY BLESSING R WITH U.

    THANKS
    SUDERSHAN

Leave a Reply

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