SimpleMeanReversion (2024)

Description

Simple Mean Reversion is a strategy created by Anthony Garner. It is based on the theory that when prices move too far away from the mean, there is a chance of price reversion. The strategy adds simulated buy and sell signals based on the following values: price, two simple moving averages, and zScore. The latter is the ratio of the difference between the price and its average to the standard deviation of the price.

The strategy adds simulated orders based on the following conditions:

  • Buy to open: zScore falls below -1.0 while the faster SMA is above the slower one;
  • Sell to close: zScore rises above -0.5;
  • Sell to open: zScore rises above 1.0 while the faster SMA is below the slower one;
  • Buy to close: zScore falls below 0.5.

By default, the faster SMA has the length equal to the length with which zScore is calculated. The slower SMA has the length ten times the length of zScore. All the mentioned numbers can be customized in the input parameters.

Input Parameters

Parameter

Description

price The price for which the averages and zScore are to be calculated.
length The length with which zScore is to be calculated.
fast length factor The factor by which length is to be multiplied to obtain the length of the faster moving average.
slow length factor The factor by which the length is to be multiplied to obtain the length of the slower moving average.
z score entry level Defines the critical value of zScore for triggering a simulated sell-to-open order. For simulated buy-to-open orders, the opposite number is used.
z score exit level Defines the critical value of zScore for triggering a simulated buy-to-close order. For simulated sell-to-close orders, the opposite number is used.

Plots

Plot

Description

FastMA The fast moving average plot.
SlowMA The slow moving average plot.

Further Reading

1. "Backtesting A Mean-Reversion Strategy In Python" by Anthony Garner. Technical Analysis of Stocks & Commodities, May 2019.

Backtesting is the evaluation of a particular trading strategy using historical data. Results presented are hypothetical, and there is no guarantee that the same strategy implemented today would produce similar results.

Technical analysis is not recommended as a sole means of investment research.

For educational purposes only. Not a recommendation of a specific security or investment strategy.

You may also like

MomentumPercentDiff

The Momentum Percent Diff is a momentum-based technical indicator. Unlike the regular Momentum ...

WilliamsAD

The Williams Accumulation/Distribution study is used to determine either the marketplace is ...

Stiffness

Stiffness is a technical indicator introduced by Markos Katsanos. This indicator helps assess ...

SimpleMeanReversion (2024)
Top Articles
Debt Settlement: What it is, How it Works & If it's Worth It
Visa Signature
What Times What Equals 86
Experience
Truist Sat Hours
Google Alerts Login
Geheimtipp Anna Maria Island- die schönsten Strände Floridas | Reiseblog und Fotografieblog aus Österreich
Project Zomboid Dynamic Skybox
Dom Tradingview
Aes Salt Lake City Showdown
Is Jackson On Jeopardy Transgender
Georgina Rodriguez Opium
Stigmata Of Sacrilege F95
Deluxeblondes Com
Discover Mia Malkova Bio/Wiki 2024 & Career Achievements – The Report
Chowrastha - Indian Eatery Nashua Reviews
Hindi Links 4U
Buzzr Tv Schedule Tonight
450 Miles Away From Me
Purdue Timeforge
800 Times 6
Cooktopcove Com
Chelsea Galos on LinkedIn: #cannabisindustry #cannabisnews #newstoreopening #cannabisculture #newyork
South Bend Weather Underground
Otterbrook Goldens
Craigs List Corpus Christi
Jesus Calling January 8:Whenever you feel inadequate, Remember that I am your ever-present Help.-是是誰 D+ 看世界~*|痞客邦
Dan Pfeiffer Message Box
Vmgma Patient Portal
Not Elaine from Seinfeld, Julia Louis-Dreyfus Missed Playing 1 TV Character the Most From Her Pre-Marvel Era
Marina Mascarenhas (Nina) on LinkedIn: Changing jobs wasn’t originally in my 2024 plans, but I truly believe in… | 62 comments
Shiftselect Carolinas
Watermarke Tower Shooting
Olivia Dunne says 'tears filled my eyes' as LSU won NCAA women's gymnastics championship
Inland Empire Personals Craigslist
Lesson 6 Becoming Familiar With Blueprint Systems Integration
R/Sellingsunset
Why Is 365 Market Troy Mi On My Bank Statement
Alineaciones De Rcd Espanyol Contra Celta De Vigo
Bustle Daily Horoscope
Ligue des champions 2024-2025 : calendrier, résultats, nouvelles règles
Little Caesars 92Nd And Pecos
Aeries Birmingham Portal
Vikram Vedha Download 2022
Hallmark White Coat Ceremony Cards
Www Publix Org Oasis Schedule
Streameast Io Soccer
Uhaul Service Tire Monitor System
No Man's Sky Teleport Receiver
First Mess Blog
Jelly Mario Unblocked 76
Craigslist Metal Roofing
Latest Posts
Article information

Author: Trent Wehner

Last Updated:

Views: 6350

Rating: 4.6 / 5 (76 voted)

Reviews: 91% of readers found this page helpful

Author information

Name: Trent Wehner

Birthday: 1993-03-14

Address: 872 Kevin Squares, New Codyville, AK 01785-0416

Phone: +18698800304764

Job: Senior Farming Developer

Hobby: Paintball, Calligraphy, Hunting, Flying disc, Lapidary, Rafting, Inline skating

Introduction: My name is Trent Wehner, I am a talented, brainy, zealous, light, funny, gleaming, attractive person who loves writing and wants to share my knowledge and understanding with you.