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.
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
- Download the zip file above and extract the .afl file.
- Copy it to the
Formulas\Customfolder inside your AmiBroker installation folder. - Open AmiBroker, go to the Charts window, right-click the Custom folder and choose Refresh if the file does not appear.
- Drag the formula onto a price chart, or double-click it to open it in a new pane.
- 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.
Learn by watching: free videos every week
Market Profile, order flow, Python, AI and OpenAlgo tutorials on YouTube.



I Have ami verson 5.4 and changed the code first line to 5.4 verson, but it wont works. Help me
Is it possible to get MT4 format AFL code for the above Indicator?
@RSD Prasad
Few Correction has been done to the code. Kindly check out with the new code. It should work.
sIR.
shows error. …>> sbrall—– is not initialised??? I am using version 5.1 changed the first line accodingly.plz help
what to do for ver 5.0?
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
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….
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.
@Prithiviraj
Just close the chart goto view->Charts->Basic Charts->and Select Price thats it your basic price chart is restored
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!
How to use it….??
Dear Ranjandran
I am new to trade in mcx commodity can you help me.
how can change black background ???????
can we scan / explore the pattern??
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,,,
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
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); }
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