Skip to main content

Richard Wyckoff’s Mean Reversion

Finding false breakouts and looking for the price to return to the mean

Updated yesterday

The Wyckhoff Algorithm

Wyckoff identified something that has not changed in over a century: large market participants — whether 1920s railroad barons or today's algorithmic funds — must accumulate and distribute positions over time. That process creates ranges. The false breakout at the extremes of those ranges (the Spring and Upthrust) exists because large operators benefit from sweeping the liquidity that accumulates just beyond obvious support and resistance levels.

Step 0: Access the Strategy Concept Template [1 Min]

Click the button to load the trading bot directly onto your canvas:

Templates are for educational purposes only.

Your canvas should display these blocks. Check? Let's continue!

Wykoff Mean Reversion trading system Profectus AI Expert Advisor MT5

Step 1: Export the Trading Bot [1 Min]

Before diving into customization, export the bot with the upper-right export button to download the file.

Step 2: Upload to MetaTrader 5 [4 Min]

Don’t know how? Refer to our help article "Exporting Your First Strategy".

Step 3: Understand the Logic [10 Min]

Let’s build the Wyckoff system together in Profectus AI, it will only take a few minutes. We can divide the creation of this no-code EA for the Wyckoff Strategy into 6 steps.

1. Calculate the range. Using the Once per candle block we calculate the range values using 6 variables and 2 inputs. We use a formula block to calculate these values. Let’s have a look at those first:

highestprice = highest price of the last 15 candles

lowestprice = lowest price of the last 15 candles

closeprice = close of the most recent completed candle (candle 1)

openprice = open of the oldest candle in the range (candle 15)

differentspoints = the width of the range

difference 2 = used to calculate the invalidation threshold (50% of the range)

highcancel = short invalidation threshold (50% above the range high)

lowcancel = long invalidation threshold (50% below the range low)

totalsize = range size in normalized points

Using these variables, we’re creating a second formula block to get the actual outcomes we need to continue the strategy. The formulas for the second formula block are:

highcancel = highestprice + difference2

lowcancel = lowestprice − difference2

totalsize = differencepoints × multiplier (1000)

2. Build the absorption filter. This is a simple element of the strategy where we simply check, once every candle, if the body size of the last closed candle is smaller than 40% of the total range size. This then changes the variable greenlights to 1 to signal the EA is ready to continue.

‍3. Check for false breakouts. If the greenlight is OK at 1, we check if price crosses the range high or range low for an Upthrust or Spring. For this example, let’s say that price is crossing the range high, creating an Upthrust. If no sell orders or trades are open yet, we than place a sell pending order on the lowest price of the last 10 candles (using the lookback input). The stoploss is set at 0.3% of the price and the Take Profit at 400% of the stoploss for a 1:4 risk-to-reward ratio.

‍4. Monitor for range invalidation. Running continuously on every price tick:

If price crosses above highcancel (range top + 50% buffer), the sell setup is invalidated and all pending sell orders are cancelled. The process can start again from step 1 to find a new range.

This is what the strategy looks like on a chart.

Wykhoff Strategy Mean Reversion MT5 Expert Advisor

Step 4: Make It Your Own [10 Min]

You can adjust and experiment:

  • Add more strategy rules or include the Wyckoff pattern component in your own strategies

    • EXPORT and see the differences.

  • Play around with timeframes and assets

    • EXPORT and see the differences.

  • Refine the rules to fit your own interpretation of the Wyckoff Mean Reversion concept

    • EXPORT and see the differences.

This template is designed to run on all timeframes.

Conclusion

The Wyckoff Mean Reversion system is a unique method to identify false breakouts and continuations. It's mechanical and universally applicable across all markets. Now it’s your turn — backtest it, tweak it, and evolve it into your own winning system.

👉 Try the PRO version today

Templates are for educational purposes only.

Now it's your turn—apply the template, tweak the logic, and make it yours. 🚀

Did this answer your question?