Mean recursion envelopeFree for public consumption
There is very little original here, the idea is discussed in the underground traders alliance, (google em), and was apparently the basis of what was at one time myfxbooks most profitable strategy.
I can't find the original video that was floating around on youtube, but if i find it again, i'll link it here.
This is bascially just the TV default envelope code copied and modified.
The idea is to have an envelope based on a low length, exponential basis. Then to manually "tune" the percent input so that the envelopes engulf most bars. Whenever price goes outside the envelopes (especially at key levels), look for a change to enter a reversion back to the ema.
This manual tuning when switching between time-frames and symbols of the percentage input, becomes arduous.
Instead this script uses the TV envelope code, but gets a setting based on the average of true range and "autotunes" with this.
Anything that protrudes beyond that level, especially at key levels, is likely to revert back to the ema. Bear in mind, a run away trend will also push past the envelopes and continue running for several (3-5) bars so, use it mindfully and thoughtfully with all the usual cautions about risk management.
Reversion
Range StrengthRange Strength is a super simple indicator designed for the mean reversion (range trading) strategy, it shows you how strong the market is ranging or trending. When the indicator is positive (green color) the market is a range mode, when the indicator is negative (red color) it is in a trending mode.
It's best used together with our Buy Sell Bands indicator to identify entry and exit signals within the range, ideally only taking trades when the Range Strength indicator is showing positive (green) readings.
How Is It Different From Other Indicators?
- Designed specifically for the mean reversion (range trading) strategy
- Shows one simple reading and graphical representation of range strength
- Identify the best times to take mean reversion trades versus trend trades
- Works well in conjunction with the Buy Sell Bands indicator to validate entry & exit signals
- Can be applied to all markets and timeframes
How To Use The Indicator?
1) Visit our website URL shown below this description and signup
2) We will then grant your TradingView username permission to use our indicators
3) Go to your Indicators window, then the Invite-Only section and add our indicators to your chart
4) Our indicators will then show on every chart you now look at
5) You can set up alerts to be notified in real time of trading signals from our indicators
6) Read our user manual for all the best tips on how to use our indicators as part of a range trading strategy
7) Feel free to reach out to us for personal one-on-one help with getting setup
What Markets and Conditions Does It Work Best On?
All markets cycle between trending and ranging modes, and the key to successfully using our indicators is identifying when the market is in or about to go into a range trading mode, and as such it can be applied to all markets and timeframes.
Some markets and timeframes trade within ranges more predictably than others, for example Forex, Cryptocurrencies, and Futures on the 15 minute timeframe during the US night session can work well due to the lack of price sensitive news creating lasting trends. With Stocks & ETFs on the 5 minute timeframe during the midday session on large cap blue chip stocks with no recent news releases can show strong range trading environments to use our indicators in.
In addition to single markets, you can also use our indicators on pair charts, for example Coca Cola(KO) versus Pepsi(PEP), you can do this by entering KO/PEP inside your TradingView chart quote box and it will bring up a pair chart. Our indicators will show buy and sell signals right on the pair chart just like any other single instrument chart. You can get very creative with what type of pairs you can come up with.
Our indicators are primarily designed for day trading and swing trading, however they can also be used for position trading and investing by identifying technically oversold and overbought range levels that are based on current and past volatility around a dynamic average price, for this we recommend using a weekly chart to identify longer trading opportunities.
As always indicators should be used as part of a trading strategy to assist in making decisions, you can't just blindly follow every signal they produce, you should always seek to compliment technical trading signals with additional analysis to reduce your risk and increase your odds of making a winning trade.
Examples Of Use On Various Markets and Timeframes
GBP vs CHF Forex Pair 15 Minute Chart
Tesla Stock 1 Minute Chart
Bitcoin vs USD Crypto Pair 15 Minute Chart
Micro E-Mini SP500 Futures 1 Minute Chart
Mastercard vs Visa Stock Daily Pair Chart
To gain access to the Range Strength and Buy Sell Bands Indicators visit our website shown below.
Happy Range Trading :)
Buy Sell BandsBuy Sell Bands is a super simple indicator based on the mean reversion (range trading) strategy that shows you exactly where to buy, sell and close trades on every chart, market and timeframe.
It's best used together with our Range Strength indicator to identify when the market is in a range mode, this is the best time to take the entry signals from the Buy Sell Bands.
How Is It Different From Other Indicators?
- Designed specifically for the mean reversion (range trading) strategy
- Upper and lower bands are based on current and past volatility
- Aren't as sensitive to "squeezes" after periods of contracted volatility
- Works well in conjunction with the Range Strength Indicator to confirm entry signals
- Helps identify good "pair trading" opportunities
- Can be applied to all markets and timeframes
How To Use The Indicator?
1) Visit our website URL shown below this description and signup
2) We will then grant your TradingView username permission to use our indicators
3) Go to your Indicators window, then the Invite-Only section and add our indicators to your chart
4) Our indicators will then show on every chart you now look at
5) You can set up alerts to be notified in real time of trading signals from our indicators
6) Read our user manual for all the best tips on how to use our indicators as part of a range trading strategy
7) Feel free to reach out to us for personal one-on-one help with getting setup
What Markets and Conditions Does It Work Best On?
All markets cycle between trending and ranging modes, and the key to successfully using these indicators is identifying when the market is in or about to go into a range trading mode, and as such it can be applied to all markets and timeframes.
Some markets and timeframes trade within ranges more predictably than others, for example Forex, Cryptocurrencies, and Futures on the 15 minute timeframe during the US night session can work well due to the lack of price sensitive news creating lasting trends. With Stocks & ETFs on the 5 minute timeframe during the midday session on large cap blue chip stocks with no recent news releases can show strong range trading environments to use our indicators in.
In addition to single markets, you can also use our indicators on pair charts, for example Coca Cola(KO) versus Pepsi(PEP), you can do this by entering KO/PEP inside your TradingView chart quote box and it will bring up a pair chart. Our indicators will show buy and sell signals right on the pair chart just like any other single instrument chart. You can get very creative with what type of pairs you can come up with.
Our indicators are primarily designed for day trading and swing trading, however they can also be used for position trading and investing by identifying technically oversold and overbought range levels that are based on current and past volatility around a dynamic average price, for this we recommend using a weekly chart to identify longer trading opportunities.
As always indicators should be used as part of a trading strategy to assist in making decisions, instead of just blindly following every signal they produce you should always seek to compliment technical trading signals with additional analysis to reduce your risk and increase your odds of making a winning trade.
Examples Of Use On Various Markets and Timeframes
GBP vs CHF Forex Pair 15 Minute Chart
Tesla Stock 1 Minute Chart
Bitcoin vs USD Crypto Pair 15 Minute Chart
Micro E-Mini SP500 Futures 1 Minute Chart
Mastercard vs Visa Stock Daily Pair Chart
To gain access to the Buy Sell Bands and Range Strength Indicators visit our website shown below.
Happy Range Trading :)
Mean Reversion w/ Bollinger BandsThis is a more advanced version of my original mean reversion script.
It employs the famous Bollinger Bands.
This robot will buy when price falls below the lower Bollinger Band, and sell when price moves above the upper Bollinger Band.
I've only tested it on the S&P 500, though you could try it out on other assets to see the backtest performance.
During the recent COVID-19 bear market drop, it produced several buy signals on the S&P which I followed, and made some nice gains so far.
I still think this would make a better investing strategy (buy undervalued / sell over-valued), rather than a trading strategy.
I use this robot for my long term portfolio.
Bars above/below EMACount of previous bars above or below a chosen Exponential Moving Average. Typically price reconnects with well defined EMAs regularly. If the price has been above/below an EMA for too long, you can expect a reconnect in a short order and bet on mean reversion strategies.
YJ Mean ReversionMean reversion strategy, based upon the price deviation (%) from a chosen moving average (bars). Do note that the "gains" are always relative to your starting capital, so if you set a smaller starting capital (e.g. $10000) your gains will look bigger. Also when the strategy tester has finished calculating, check the "Open P/L", as there could still be open trades.
Some Tips:
- Was designed firstly to work on an index like the S&P 500 , which over time tends to go up in value.
- Avoid trading too frequently (e.g. Daily, Weekly), to avoid getting eaten by fees.
- If you change the underlying asset, or time frame, tweaking the moving average may be necessary.
- Can work with a starting capital of just $1000, optimise the settings as necessary.
- Accepts floating point values for the amount of units to purchase (e.g. Bitcoin ).
- If price of units exceeds available capital, script will cancel the buy.
- Adjusted the input parameters to be more intuitive.
Mean Street V1script for mean reversion conditions - tweak-able based on the volatility of the asset its used on, and the time frame
Mean Reversion IndicatorThis is a mean reversion indicator that anticipates a local trend reversion. Basically, it is a channel with the mid-line serving as a moving mean baseline. Each of the two curves run up and down within this channel bouncing off from the top and bottom bounds. Touching the bounds serves as an indication of a local trend reversal. The reversal signal is stronger when there exists a resonance (symmetry) in the two curves. The background histogram shows a Karobein oscillator that contributes support or resistance for the signal.
Bollinger Band Strategy (Basic) Version 1 This strategy is for learning purposes only. Pay special attention to these strategies on longer aggregation periods (like 1 hr chart or more). Don't expect accurate results when you set a limit to 10 cents above your entry to be accurate. For example if you set the chart to 1 day, the price may move down and hit a stop 10 times then tag your limit. If this doesn't make sense, just don't use strategies here. Learn more first. That being said, I don't have specific recommendations for each aggregation period, backtesting isn't always perfect.
Now then, this strategy can be used as the traditional BB method by setting the "Stop" and "Limit Out" to like 10000, check "Reversal Entry" and uncheck "Limit Time of Day" This will keep the strategy running just reverse your position when price crosses outside each band.
INPUTS:
Length - length of WMA that I used for mean of Bollinger Band (this may suppose to be SMA, too bad)
Source - O-H-L-C basis for WMA
Deviation - normal Standard deviation that would be set when using Bollinger Band
Trailing stop check box - your stop value will be either a hard stop or trailing stop for an exit
Stop - the stop value - remember you can set this really high and it won't stop out
Limit Out - the limit value for exit
Reversal Entry check box - This changes each entry from a reversal (traditional idea of BB) to enter a trend trade - hopefully version 2 will have choice to trend one direction and reversal in the other.
Limit Time of Day - Especially when trading futures, you may want to only trade a specific time of day, when this box is checked, you can set the entry times below, exit will still only occur based on limit/stop or a flip entry order (the opposite entry condition is met)
Tips:
when I don't know a thing about a price range, like gold. I can set the limit out to 10000 and play with a trailing stop to get a better idea of what is even possible before tuning further.
VIX reversion-Buschi
English:
A significant intraday reversion (commonly used: 3 points) on a high (over 20 points) S&P 500 Volatility Index (VIX) can be a sign of a market bottom, because there is the assumption that some of the "big guys" liquidated their options / insurances because the worst is over.
This indicator shows these reversions (3 points as default) when the VIX was over 20 points. The character "R" is then shown directly over the daily column, the VIX need not to be loaded explicitly.
Deutsch:
Eine deutliche Intraday-Umkehr (3 Punkte im Normalfall) bei einem hohen (über 20 Punkte) S&P 500 Volatility Index (VIX) kann ein Zeichen für eine Bodenbildung im Markt sein, weil möglicherweise einige "große Jungs" ihre Optionen / Versicherungen auflösen, weil das schlimmste vorbei ist.
Dieser Indikator zeigt diese Umkehr (Standardwert: 3 Punkte), wenn der VIX vorher über 20 Punkte lag. Der Buchstabe "R" wird dabei direkt über dem Tagesbalken angezeigt, wobei der VIX nicht explizit geladen werden muss.
[HOF] IMRNALL - v4 - STOCKS - LONG ONLY!I recently published this script for Cryptocurrencies.
The robustness of this script can be seen from the fact that the same script can be used for stocks on a 1D timeframe.
I have used a commission of Rs. 20/order (ZERODHA?)
Also, I selected a universe ofrandom stocks (each from different industries) for the current chart. I have seen similar results when you combine any 5+ stocks from different industries.
[HOF] IMRNALL - v4Strategy created for backtesting of rules described in WhatsApp group.
Source code will not be shared.
Script has very smooth equity curves, and works on all CRYPTO pairs on 1h and 2h timeframes. Takes no parameters except a minimal option on how to split orders based on various conditions.
NO REPAINTING!! NO RENKO CHARTS!!
Script works on the principle of mean-reversion, which is why you see High Win Rate. Also, PF is high since we are only entering the market on very favourable conditions and sell as soon as possible.
Using `POS1 - High Returns` results in very few trades with increased profits - around 2700% profit for this chart.
Mean Reversion and Momentum - Updated with gaussiana smoothingMean Reversion and Momentum
Interpretation:
- Divergence means trend reversal
- Parallel movement means trend continuation
Squares above serve as a confirming signal
Mean Reversion and Momentum - Indicator versionMean Reversion and Momentum
Interpretation:
- Divergence means trend reversal
- Parallel movement means trend continuation
Squares above serve as a confirming signal
Nick's Momentum Trading Strategy - Beats Buy and Hold manifolds!This script works on the principle of short-term mean reversion and long term trend following, and uses minimal parameters to ensure no overfitting.
The scripts beats buy and hold for almost all major pairs that satisfy the following conditions:
- are trading on multiple exchanges as either ALTBTC or ALTUSD pairs
- have good volume available with them
- have an established history - (try not to use this script with really new pairs)
To run the script, follow these rules:
- script should be run on ALTBTC pair
- set first parameter such that when multiplied with resolution of chart, we get a whole day/week/month, etc. e.g. for a '4H' chart, set this to multiples of 6. The reason being that most algorithmic rebalancing in cryptosphere happens at these times, and we want to make effective use of this.
- set second parameter in the range of 1-6 - this is the smoothing factor (ema) we want to apply to our indicator (governed by our first parameter) - more smoothing = lesser trades. See what works for you.
- Last parameter is a filter condition. Just check/uncheck it once to see if market works better with this on or off.
- If script does not beat buy and hold on this pair (rarely), don't use script on this pair at all.
Access available only to friends. I do code trading strategies on request - so, let me know if you have a good set of rules to create a strategy.
Moving Average Mean Reversion StrategyA basic mean-reversion strategy. Shorts when the close is 10% above the MA, and goes long when it's 10% below the MA.
KCWThis TA is called Keltner Channel Width(KCW). It consists of a black line measuring the percentage difference between the upper and the lower channel and a blue line which is the 20-sma of KCW. Based on true range, KCW can be interpreted in two ways: (1) falling width reflects decreasing volatility and (2) rising width reflects increasing volatility.
KCW is a powerful weapon for identifying The Squeeze. This occurs when volatility falls to a very low level, as evidenced by decresing value (negative crossover). After a Squeeze, might be a positive crossover, it signals the start of a new move. A new advance starts with a Squeeze and subsequent break above the upper channel. A new decline starts with a Squeeze and subsequent break below the lower channel.
Done for today. Look forward to your comments and most importantly, your subscription.
Lonelygrass
B3 ALMA PendulumB3 Pendulums, quick little indicators that do change print inside the current bar, so beware. It is good for anticipation, but it is important to make sure the current and next bars follow through.
Ever wanted an indicator that really points out the micro term action in the form of a pendulum swing? This my attempt to show the market ups and downs in the smallest amount of lag possible. This indicator is designed to bounce back and forth from 100 to -100 as it shows you the price's relationship to ALMA. Really its just a simple deviance from mean study made to amplify the quick ups and downs, and kind of the neatest on Heikin Ashi setups. It looks like Arabic language at first glance, lol.
This should be easy to template out to your own MA's. ~I hope you are enjoying the B3 scripts, that is now 9 open source shares and a couple protected ones. I still plan on a few more give-a-ways, as I prepare some of the algorithmic things I do for subscription. Feel free to comment about things you would like to see! ~B3
Internal Bar Strength Indicator | Reversion systemThis strategy buy at the next open when close = low . Then it closes the position after either a small profits OR a (very) small losses. Works with several TF
UCS_TTM - Reversion BandsOk, Here we go - Version 1 of TTM Reversion Band goes live.
Link to TTM Reversion Band - www.tradethemarkets.com
Link to TTM Reversion Band Guide - kb.simplertrading.com
John Carters Mastering the trade - www.amazon.com
For the amount of information this has, the price tag is not hefty.
John's RTM Chapter Synopsis - www.tradethemarkets.com
What did I modify?
1. Automated the Daily + and Intraday settings. So Switching to intraday will change the setting automatically.
2. Added text callouts for RTM condition
a. John Carter's Indicator
b. Slope Based (my addition).
Future Improvement Planned.
1. Will Convert this into a system based on John's Indicator from TS.
2. Custom Options for Slope and MA setting for Trade filter.