Periodical Trend [BigBeluga]The Periodical Trend indicator is designed to provide a detailed analysis of market trends and volatility. It utilizes a combination of Moving Averages and volatility measures to plot trend line, highlight potential trend reversals, and indicate mean reversion opportunities. The indicator offers customizable display options, allowing traders to adjust for sensitivity, volatility bands, and price deviation visibility.
🔵 KEY FEATURES
● Periodical Trend Analysis
Uses (high + volatility) or (low - volatility) as the foundation for trend analysis with a set period.
// Condition to update the AVG array based on the selected mode
if mode == "Normal"
? bar_index == 122
: bar_index % period == 0
AVG.push(close) // Add the close price to the AVG array
// Update AVG array based on the period and price comparison
if bar_index % period == 0
if close > AVG.last() // If the current close is greater than the last stored value in AVG
AVG.push(low - vlt) // Add the low price minus volatility to the array
if close < AVG.last() // If the current close is lower than the last stored value in AVG
AVG.push(high + vlt) // Add the high price plus volatility to the array
Provides adjustable sensitivity modes ("Normal" and "Sensitive") for different market conditions.
Trend direction is visualized with dynamic color coding based on the relationship between the trend line and price.
● Volatility Bands
Displays upper and lower volatility bands derived from a moving average of price volatility (high-low).
The bands help identify potential breakout zones, overbought, or oversold conditions.
Users can toggle the visibility of the bands to suit their trading style.
● Mean Reversion Signals
Detects mean reversion opportunities when price deviates significantly from the trend line.
Includes both regular and strong mean reversion signals, marked directly on the chart.
Signals are based on oscillator crossovers, offering potential entry and exit points.
● Price Deviation Oscillator
Plots an oscillator that measures the deviation of price from the average trend line.
The oscillator is normalized using standard deviation, highlighting extreme price deviations.
Traders can choose to display the oscillator for in-depth analysis of price behavior relative to the trend.
● Dynamic Trend Coloring
The indicator colors the background on the direction of the trend.
Green indicates bullish trends, while blue indicates bearish trends.
The trend colors adapt dynamically to market conditions, providing clear visual cues for traders.
🔵 HOW TO USE
● Trend Analysis
The trend line represents the current market direction. A green trend line suggests a bullish trend, while a blue trend line indicates a bearish trend.
Use the trend line in conjunction with volatility bands to confirm potential breakouts or areas of consolidation.
● Volatility Bands
Volatility bands offer insight into potential overbought or oversold conditions.
Price exceeding these bands can signal a strong trend continuation or a possible reversal.
● Mean Reversion Strategies
Look for mean reversion signals (regular and strong) when price shows signs of reverting to the trend line after significant deviation.
Regular signals are represented by small dots, while strong signals are represented by larger circles.
These signals can be used as entry or exit points, depending on the market context.
● Price Deviation Analysis
The oscillator provides a detailed view of price deviations from the trend line.
A positive oscillator value indicates that the price is above the trend, while a negative value suggests it is below.
Use the oscillator to identify potential overbought or oversold conditions within the trend.
🔵 USER INPUTS
● Period
Defines the length of the period used for calculating the trend line. A higher period smooths out the trend, while a shorter period makes the trend line more sensitive to price changes.
● Mode
Choose between "Normal" and "Sensitive" modes for trend detection. The "Sensitive" mode responds more quickly to price changes, while the "Normal" mode offers smoother trend lines.
● Volatility Bands
Toggle the display of upper and lower volatility bands. These bands help identify potential areas of price exhaustion or continuation.
● Price Deviation
Toggle the display of the price deviation oscillator. This oscillator shows the deviation of the current price from the trend line and highlights extreme conditions.
● Mean Reversion Signals
Toggle the display of mean reversion signals. These signals highlight potential reversal points when the price deviates significantly from the trend.
● Strong Mean Reversion Signals
Toggle the display of stronger mean reversion signals, which occur at more extreme deviations from the trend.
● Width
Adjust the thickness of the trend line for better visibility on the chart.
🔵 CONCLUSION
The Periodical Trend indicator combines trend analysis, volatility bands, and mean reversion signals to provide traders with a comprehensive tool for market analysis. By offering customizable display options and dynamic trend coloring, this indicator can adapt to different trading styles and market conditions. Whether you are a trend follower or a mean reversion trader, the Periodical Trend indicator helps identify key market opportunities and potential reversals.
For optimal results, it is recommended to use this indicator alongside other technical analysis tools and within the context of a well-structured trading strategy.
Meanreversersion
Market Meanness Index [CC]The Market Meanness Index was created by Johann Christian Lotter and I added some smoothing of my own, so feel free to try it without any smoothing to see the differences. This indicator relies on the mean reversion theory that all prices will eventually revert to the mean over a long period of time. Obviously there is more to the theory but the basic idea is if you plot a sma or other typical moving average, you will see the price moving up or below the long term moving average such as a 200 day sma but usually heads back to the average in the short term. This is a good statistical analysis used for volatility which is where this indicator comes in. Simply put, we calculate volatility based on how often a price is both above the median and above the previous price or vice versa.
A rising Market Meanness Index means that the market is becoming more volatile and that there is a high likelihood of a change in the underlying trend. A falling Market Meanness Index means that the current trend is dying and there is a high likelihood of a trend reversal. Typically I put general buy and sell signals in red or green but in this particular case, this indicator works best as a overall trend filter and you would want to place a trade when this indicator has a peak or valley. Let me know if you find a good overall buy and sell signal system of course.
I know I keep saying that I will get active again and post more indicators but life is very hectic for me. For those who have been following my updates, my twins were finally born a little over a month ago and as you can imagine, they keep me up at all hours of the day so it is hard to create new indicator scripts when I'm getting no sleep lol. I will do my best to start publishing the giant backlog of scripts I have created but in the meantime, please be patient with me. This indicator was a special request so let me know if you have any special requests of your own!