Mean Reversion Strategy in Sierra Chart — Step-by-Step Guide & Transcript

BUILD and BACKTEST an automated VWAP mean reversion strategy for crude oil futures with Sierra Chart

0h 09m video Published Jul 30, 2019 Transcribed Sep 16, 2026 Markus Varga @ CEED.trading Markus Varga @ CEED.trading
9.8K views Recent velocity 0.0 views/hour View full performance history →
Intermediate 4 min read For: Traders and quantitative enthusiasts with basic knowledge of trading platforms and technical indicators.
AI Trust Score 70/100
⚠️ Average / Some Fluff

"Delivers exactly what the title promises — a quick, practical tutorial with no fluff."

AI Summary

This video demonstrates how to automate a simple mean reversion strategy using the Sierra Chart trading platform, complete with a backtest, in under 10 minutes. The tutorial walks through adding studies, creating custom buy/sell formulas, and running a bar-based backtest.

[00:17]
Chart Setup

Uses a KIN chart of September 2019 crude oil futures with volume-based bars (3,000 contracts per bar).

[00:50]
Adding Studies

Adds rolling VWAP and ask/bid volume delta bar to identify institutional activity and market aggression.

[01:52]
Spreadsheet System Setup

Configures the Spreadsheet System for Trading with max position size 3 and multiple entries in the same direction.

[02:42]
Custom Calculation

Calculates standard deviation of volume delta bars to set a condition for above-average institutional activity.

[03:25]
Buy Entry Formula

Buy entry requires volume delta less than -2 times its standard deviation and last price below the bottom standard deviation band.

[04:41]
Sell Entry Formula

Sell entry requires volume delta greater than 2 times its standard deviation and last price above the top band.

[05:46]
Exit Conditions

For mean reversion, buy exit when last price > VWAP; sell exit when last price < VWAP.

[06:26]
Backtest Optimization Tip

Clear unused rows and columns to speed up the backtest significantly.

[07:13]
Running Bar-Based Backtest

Bar-based backtest is faster than tick-based but less accurate; tick-based is more resource-intensive.

[07:56]
Results

Strategy is profitable with ~70% win rate, typical for mean reversion, but suffers in trending markets.

The video successfully shows how to build and backtest a mean reversion strategy in Sierra Chart, emphasizing the importance of understanding strategy behavior in different market conditions.

Mentioned in this Video

Tutorial Checklist

1 00:17 Open a chart (e.g., KIN chart of crude oil futures) with volume-based bars.
2 00:50 Add Rolling VWAP study with default settings.
3 01:18 Add Ask/Bid Volume Delta study to see which side removes liquidity.
4 01:52 Add Spreadsheet System for Trading; set max position size to 3 and enable multiple entries.
5 02:42 In column O, enter formula to calculate standard deviation of volume delta (e.g., =STDEV(range)).
6 03:25 In buy entry column, enter formula: volume delta < -2 * STDEV(volume delta) AND last price < bottom band.
7 04:41 In sell entry column, enter formula: volume delta > 2 * STDEV(volume delta) AND last price > top band.
8 05:46 Set buy exit: last price > VWAP; set sell exit: last price < VWAP.
9 06:26 Clear unused rows and columns to speed up backtest.
10 07:13 Run bar-based backtest from Trade menu; review results in Trade Activity Log.

💡 Key Takeaways

🔧

Buy Entry Logic

Shows how to combine volume delta and price bands to trigger entries.

03:25
💡

Backtest Speed vs Accuracy

Explains the trade-off between bar-based and tick-based backtesting.

07:13
⚖️

Mean Reversion Limitations

Highlights the risk of mean reversion in trending markets, a key principle.

08:11

[00:00] Hi, my name is Markus. In this short video, you'll learn how to automate a simple mean regression strategy in Serachart in less than 10 minutes. This video is for educational and informational purposes only and does not constitute investment or financial advice. Let's get to it.

[00:17] Here we have a KIN chart of the September 2019 crude oil futures contract and these

[00:36] are volume based bars where every bar represents 3,000 contracts traded. Next Next we are going to add the studies from which we would like to pull the data for our

[00:50] buy and sell algorithms. First we are going to add the rolling volume weighted average price. Since this is still a common benchmark used by big institutions to measure order execution

[01:04] quality, we can leave the default settings as they are and click OK. Next we're going to add the ask bit volume different bar, which will tell us which side

[01:18] of the market is removing liquidity more aggressively. Now in the center you will see the VWAP line and above that the top band of the mean variance

[01:33] standard deviation and below that the bottom band. Next we are going to add the spreadsheet system for trading where we will create our custom calculations using the chart data and enter our buy and sell formulas.

[01:52] Click on the settings. We want to set the maximum position size to 3 and we would also like to have multiple

[02:04] entries in the same direction. So we click yes and then ok The spreadsheet will open in a new window In the columns B through E we have the price data displayed like open buy and close of

[02:29] the bar. In columns K through N, we can enter the formulas for our buy and sell entries and exits respectively. In column O, we can enter our own calculation.

[02:42] Since we want to add a condition that may indicate above average institutional activity, let's calculate the standard deviation of the volume delta bars for this purpose. We're going to enter the Excel style formula into the cell.

[02:59] Open bracket. Scroll to the cell for volume delta. Select the range. close the bracket and click OK

[03:13] and as you can see all the cells are populated for you right here in the buy entry column we want to have multiple conditions to be true

[03:25] before submitting the order First, we want the volume delta to be less than 2 times the standard deviation of volume delta.

[03:40] And we multiply this by minus 1, since we want to compare it to a negative number. And the second condition is that we want the last price to be less than the bottom standard

[04:03] deviation band. Click OK.

[04:22] Go to the chart and see what we got. There is an entry signal right there We do the same thing in the cell entry where we want the volume delta to be greater than

[04:41] And we want the last price to be greater than the top.

[05:10] the top band of the mean variance standard deviation.

[05:28] We check the chart and we see that the cell entries have been created for us. Next are the by exit, since this is a mean reversion strategy, we want to exit when the last price is greater

[05:46] than VWAP. for our sell exit, we want our last price to be less than we want.

[06:12] So now that we've entered our formulas, we can run a backtest. Before we do so, there is a little tip. We can clear all rows and columns that are not referenced in the formulas.

[06:26] And that will speed up the backtest significantly. So here I just marked all the rows and cleared the selection. And we can do the same thing with the columns that we don't need.

[06:42] Scroll over select the columns right click and hit clear selection

[06:59] Then we can go back to the chart window, click on trade and do a bar based backtest. Click on yes, click ok.

[07:13] So the bar based backtest is much faster than a tick based backtest because it only evaluates the open and the close of the bar instead of every tick inside of the bar. So the tick based backtest is more accurate.

[07:28] However it's also more demanding on your computing resources. Once the backtest is finished, we are going to open a trade activity log window to look

[07:44] at the performance of our strategy. As you can see, our strategy is actually positive, it is profitable.

[07:56] The win percentage is in the area of 70%, which we would expect for a mean reversion strategy. But at the same time, we would expect it to perform poorly in strongly trending periods,

[08:11] which would also serve as a clue how passive institutional algos that use VWAP as a benchmark would struggle when price moves away without any meaningful reversion.

[08:26] So in this case we see these big drawdowns before the trades actually close out, either with a small gain or a smaller loss.

[08:38] You can also look at the period stats. Overall, now you know how to automate a simple mean reversion strategy in Sealtrack and run

[08:53] a quick backtest in less than 10 minutes. Thanks for watching. Please also check out the next video in this mini-series on trade automation with Serachart

[09:05] or join our Seed Accelerator Pro Trader Preparation Training today.

⚡ Saved you 0h 09m reading this? Transcribe any YouTube video for free — no signup needed.