Dominant Cycle Tuned RsiIntroduction
Adaptive technical indicators are importants in a non stationary market, the ability to adapt to a situation can boost the efficiency of your strategy. A lot of methods have been proposed to make technical indicators "smarters" , from the use of variable smoothing constant for exponential smoothing to artificial intelligence.
The dominant cycle tuned rsi depend on the dominant cycle period of the market, such method allow the rsi to return accurate peaks and valleys levels. This indicator is an estimation of the cycle finder tuned rsi proposed by Lars von Thienen published in Decoding the Hidden Market Rhythm/Fine-tuning technical indicators using the dominant market vibration/2010 using the cycle measurement method described by John F.Ehlers in Cybernetic Analysis for Stocks and Futures .
The following section is for information purpose only, it can be technical so you can skip directly to the The Indicator section.
Frequency Estimation and Maximum Entropy Spectral Analysis
“Looks like rain,” said Tom precipitously.
Tom would have been a great weather forecaster, but market patterns are more complex than weather ones. The ability to measure dominant cycles in a complex signal is hard, also a method able to estimate it really fast add even more challenge to the task. First lets talk about the term dominant cycle , signals can be decomposed in a sum of various sine waves of different frequencies and amplitudes, the dominant cycle is considered to be the frequency of the sine wave with the highest amplitude. In general the highest frequencies are those who form the trend (often called fundamentals) , so detrending is used to eliminate those frequencies in order to keep only mid/mid - highs ones.
A lot of methods have been introduced but not that many target market price, Lars von Thienen proposed a method relying on the following processing chain :
Lars von Thienen Method = Input -> Filtering and Detrending -> Discrete Fourier Transform of the result -> Selection using Bartels statistical test -> Output
Thienen said that his method is better than the one proposed by Elhers. The method from Elhers called MESA was originally developed to interpret seismographic information. This method in short involve the estimation of the phase using low amount of information which divided by 360 return the frequency. At first sight there are no relations with the Maximum entropy spectral estimation proposed by Burg J.P. (1967). Maximum Entropy Spectral Analysis. Proceedings of 37th Meeting, Society of Exploration Geophysics, Oklahoma City.
You may also notice that these methods are plotted in the time domain where more classic method such as : power spectrum, spectrogram or FFT are not. The method from Elhers is the one used to tune our rsi.
The Indicator
Our indicator use the dominant cycle frequency to calculate the period of the rsi thus producing an adaptive rsi . When our adaptive rsi cross under 70, price might start a downtrend, else when our adaptive rsi crossover 30, price might start an uptrend. The alpha parameter is a parameter set to be always lower than 1 and greater than 0. Lower values of alpha minimize the number of detected peaks/valleys while higher ones increase the number of those. 0.07 for alpha seems like a great parameter but it can sometimes need to be changed.
The adaptive indicator can also detect small top/bottoms of small periods
Of course the indicator is subject to failures
At the end it is totally dependent of the dominant cycle estimation, which is still a rough method subject to uncertainty.
Conclusion
Tuning your indicator is a great way to make it adapt to the market, but its also a complex way to do so and i'm not that convinced about the complexity/result ratio. The version using chart background will be published separately.
Feel free to tune your indicators with the estimator from elhers and see if it provide a great enhancement :)
Thanks for reading !
References
for the calculation of the dominant cycle estimator originally from www.davenewberg.com
Decoding the Hidden Market Rhythm (2010) Lars von Thienen
Ehlers , J. F. 2004 . Cybernetic Analysis for Stocks and Futures: Cutting-Edge DSP Technology to Improve Your Trading . Wiley
在腳本中搜尋"Cycle"
Quarterly Cycles [Daye's Theory]This is entirely based on quarters theory by Daye (@traderdaye in Twitter). I'm merely the creator of the indicator and full credits for the underlying concept goes to Daye.
The idea is to split year, month, week and day into quarters at specific times which lead to PO3 (Accumulation-Manipulation-Distribution) cycles within those quarters.
They present in one of these two forms:
Q1. (A)ccumulation - Consolidation
Q2. (M)anipulation - Judas Swing
Q3. (D)istribution - Low Resistance Liquidity Run
Q4. (X) - Continuation/Reversal of previous quarter
(OR)
Q1. (X) - Continuation/Reversal of previous quarter
Q2. (A)ccumulation - Consolidation
Q3. (M)anipulation - Judas Swing
Q4. (D)istribution - Low Resistance Liquidity Run
As of now, the indicator assumes everything as AMDX, but if some clever idea comes in the future, I'll try to implement XAMD as well.
Similar to True Day Opens, there are True Monthly Opens, True Weekly Opens and True Session Opens, all of which form during the second quarters of those periods, all of which are marked by the indicator. For timeframes in H1 and below, the indicator shows weekly, daily and session quarter cycle phases. For higher timeframes, it shows yearly, monthly and weekly cycle phases.
Short-Only Cycle IndicatorThis script is a follow-up to my previous 60-day Cycle, Long-Only Indicator.
The "Short-Only Cycle Indicator" is designed to help traders navigate optimal shorting opportunities by analyzing cyclical price behavior over a defined period. It focuses on recognizing distribution phases (ideal for shorting) and accumulation phases (where shorting should be avoided). It should be used with assets that the trader has an existing thesis for downward price movement.
Key Features:
1. Cycle Length: The indicator uses a 60-day cycle to identify high and low points in price, which are then used to determine the current market phase.
2. Distribution Phase: When the price is near the cycle high, the indicator signals a distribution phase, indicating potential shorting opportunities.
3. Accumulation Phase: When the price is near the cycle low, the indicator signals an accumulation phase, advising traders to avoid shorting.
4. Short Signal: A short signal is triggered when the price crosses below the cycle high, which is visually marked on the chart for easy identification.
This indicator is particularly useful for traders who prefer a short-only strategy, as it helps them time their entries and avoid shorting during unfavorable market conditions.
Bitcoin Golden Pi CyclesTops are signaled by the fast top MA crossing above the slow top MA, and bottoms are signaled by the slow bottom MA crossing above the fast bottom MA. Alerts can be set on top and bottom prints. Does not repaint.
Similar to the work of Philip Swift regarding the Bitcoin Pi Cycle Top, I’ve recently come across a similar mathematically curious ratio that corresponds to Bitcoin cycle bottoms. This ratio was extracted from skirmantas’ Bitcoin Super Cycle indicator . Cycle bottoms are signaled when the 700D SMA crosses above the 137D SMA (because this indicator is closed source, these moving averages were reverse-engineered). Such crossings have historically coincided with the January 2015 and December 2018 bottoms. Also, although yet to be confirmed as a bottom, a cross occurred June 19, 2022 (two days prior to this article)
The original pi cycle uses the doubled 350D SMA and the 111D SMA . As pointed out this gives the original pi cycle top ratio:
350/111 = 3.1532 ≈ π
Also, as noted by Swift, 111 is the best integer for dividing 350 to approximate π. What is mathematically interesting about skirmanta’s ratio?
700/138 = 5.1095
After playing around with this for a while I realized that 5.11 is very close to the product of the two most numerologically significant geometrical constants, π and the golden ratio, ϕ:
πϕ = 5.0832
However, 138 turns out to be the best integer denominator to approximate πϕ:
700/138 = 5.0725 ≈ πϕ
This is what I’ve dubbed the Bitcoin Golden Pi Bottom Ratio.
In the spirit of numerology I must mention that 137 does have some things going for it: it’s a prime number and is very famously almost exactly the reciprocal of the fine structure constant (α is within 0.03% of 1/137).
Now why 350 and 700 and not say 360 and 720? After all, 360 is obviously much more numerologically significant than 350, which is proven by the fact that 360 has its own wikipedia page, and 350 does not! Using 360/115 and 720/142, which are also approximations of π and πϕ respectively, this also calls cycle tops and bottoms.
There are infinitely many such ratios that could work to approximate π and πϕ (although there are a finite number whose daily moving averages are defined). Further analysis is needed to find the range(s) of numerators (the numerator determines the denominator when maintaining the ratio) that correctly produce bottom and top signals.
CT Reverse Pi Cycle Bitcoin Top IndicatorIntroducing the Reverse BTC Pi Market Cycle Top indicator
Much respect to Philip Swift the original creator of this idea and big thanks to Tradingview author Ninorigo for sharing the script which this indicator is based on.
Philip Swift has noted that:
Using the x2 multiple of the 350 day moving average along with the 111 day moving average provides an interesting market cycle indicator.
Over the past three market cycles, when the 350DMA x2 crosses below the 111DMA, Bitcoin price peaks in its market cycle, this has been accurate to within three days of Bitcoin price topping out.
Here I have modified an existing script by Tradingview author @Ninorigo which shows the moving averages and gives signals upon crossover by adding the following features:
A function which shows the price at which the 350DMA will Cross Below the 111DMA.
(This is calculated from the prior bar closing data and does not repaint)
An “anticipated cross” function which may give a 1 bar advanced warning of a cross.
(this is calculated from current bar values and may change and repaint)
The crossover levels are shown in an info label to the right of the current price.
When there is a BTC Pi Market Cycle Top anticipated cross on the next bar there will be an orange background signal.
When there is an actual BTC Pi Market Cycle Top cross there will be a red background signal
When there is an anticipated cross back there will be a blue background signal
When there is an actual cross back there will be a green background signal
This indicator will show the appropriate moving averages and crossover information from the daily timeframe regardless of the timeframe you are using.
This should be helpful in more accurately identifying the price level where the Pi Market Cycle moving averages will cross denoting a possible market cycle top.
It is interesting to note:
350 / 111 = 3.153
Which is the closest we can get to Pi when dividing 350 by another whole number.
This is a script to give another view and metric on an interesting experimental idea. This is not financial advice.
Enhanced Schaff Trend Cycle IndicatorThis is an "Enhanced Schaff Trend Cycle Indicator" variant that I heavily modified. Yes, almost 3 decades old and it's now even better. I thought this had decent characteristics to it, and maybe members out there may find a good use for it. Surely let me know if you do appreciate it in the comments below with any suggestions, settings modifications, whatever... Modifications included are rescaling the range from 0 /100 to -100/100 yielding a zero mean indicator with perfect balance on the vertical axis. 30/70, 20/80, and 15/85. Who wants to remember all those settings? This one is set to -80/80, nothing significant about those about those numbers at all, be forewarned! It seems reactive and takes mostly full swings from -100 to 100 without exceeding those numbers. The indicator itself has a multitude of adjustments you may fiddle with, as many as I can pack into it. I also included a centered medial zone that you may adjust for an additional set of thresholds. If I was to receive a 100 comments requesting to add multiple time frames, I would most likely consider that, given I have some spare time available in the future to get around to it, probably converting it into a DUAL multi time frame indicator. Like it if you like it, enjoy!
DFT - Dominant Cycle Period 8-50 bars - John EhlerThis is the translation of discret cosine tranform (DCT) usage by John Ehler for finding dominant cycle period (DC).
The price is first filtered to remove aliasing noise(bellow 8 bars) and trend informations(above 50 bars), then the power is computed.
The trick here is to use a normalisation against the maximum power in order to get a good frequency resolution.
Current limitation in tradingview does not allow to display all of the periods, still the DC period is plot after beeing computed based on the center of gravity algo.
The DC period can be used to tune all of the indicators based on the cycles of the markets. For instance one can use this (DC period)/2 as an input for RSI.
Hope you find this of some interrest.
Ehlers Cycle Amplitude [CC]The Cycle Amplitude was created by John Ehlers (Trend Modes and Cycle Modes) and this indicator wasn't meant to give buy and sell signals by itself but I'm publishing this open source script in case someone comes up with a cool way to use this indicator for buy and sell signals. This indicator essentially tells you the distance between the peaks from the Cycle BandPass Filter and I will be including the last script tomorrow most likely. I'm reusing the same exact buy and sell signals from the cycle bandpass filter so if you have any questions then feel free to refer to the link I posted.
Let me know if there are any other scripts you would like to see me publish!
Enhanced Commodity Channel Index(CCI) Cycle Indicator - MTFThis is a heavily modified and enhanced version of CCI Cycle and my first indicator released using Pine Script version 4.0, something I contributed to often in a small role, and will continue to do, in my free time. This indicator is highly reactive and does a magnificent job of identifying fluctuations in market cycles when they are not trending. Compared to my free "Enhanced Schaff Trend Cycle Indicator" presented above along side this indicator, CCI Cycle is superior in it's own way, but a superb companion for providing a more accurate signals analysis. I packed as much tech as I could into this indicator along with astounding color and agility, and I'm unsure if there is any room for major improvements in the near future.
Features List Includes:
I.P.O.C.S.(Initial Public Offering Clean Start) Technology - plotting from day one, minute one of IPO
Fully adjustable M.T.F. ( Multiple Time Frame ) is enable/disable capable
Enable/disable dark background for enhanced visibility
"Source" Selection
Multiple CCI Cycle adjustments
Moving average selection
Ranges and thresholds are enable/disable capable
Upper threshold adjustment
Red/green secondary range that adjusts +/- from the upper/lower thresholds
Lower threshold adjustment
Adjustable centered medial zone
Highlighting is enable/disable capable
Normalized zero mean to +/-1
This is not a freely available indicator, FYI. To witness my Pine poetry in action, properly negotiated requests for unlimited access, per indicator, may ONLY be obtained by direct contact with me using TV's "Private Chats" or by "Message" in my member name above. The comments section below is solely just for commenting and other remarks, ideas, compliments, etc... If you do have any questions or comments regarding this indicator, I will consider your inquiries, thoughts, and ideas presented below in the comments section, when time provides it. As always, "Like" it if you like it, and also return to my scripts list occasionally for additional postings. Have a profitable future everyone!
Missile RSI (RSI of momentum w/ Dominant Cycle length + Fisher)This is a predictive indicator that looks for explosions in momentum of the cycles in price and large shifts in Momentum (Fisher turns the Bimodal PDF into Guassian like) as statistically unlikely events, showing points to exit or reverse positions.
You can adjust the lowpass frequency cuttoff (Aka what cycles you want to remove from the calculations through the super smoother filter).
To be honest you can monkey trade the direction of the Signal if you'd like but the Divergences and Maxing of the values is whats most useful.
Let me know if you guys want me to add anything else.
Pi Cycle IndicatorThe Pi Cycle Top is a timing tool used to spot Bitcoin cycle peaks. It tracks the 111-day Simple Moving Average (SMA) and twice the 350-day SMA. When the faster 111-day SMA crosses above 2× the 350-day SMA, it has historically signaled major Bitcoin tops — often within days.
Core Idea: Measures market euphoria and overheated conditions by blending price and time dynamics. Designed to catch tops when momentum peaks.
Important: High historical accuracy, but not bulletproof. Works best as a macro cycle indicator — not for precise exits.
Gabriel's Crypto Cycle Master [Multi-Asset]🧠 Gabriel's Crypto Cycle Master
Gabriel’s Crypto Cycle Master is a comprehensive macro valuation tool designed to identify long-term accumulation and distribution zones for any crypto asset using custom on-chain and price-based models.
🔹 Fully Multi-Asset Support
Manually input full tickers from COINMETRICS, GLASSNODE, or INDEX to track:
Realized Market Cap
On-chain Supply
Total Transaction Volume
USD-denominated Price
🔹 Core Metrics Modeled
This script computes major macroeconomic valuation layers based on widely researched concepts:
Realized Price – Network's cost basis
Top Cap – 35× average historical cap
Delta Top – Gap between Realized Price and Average Cap
CVDD – Cumulative Value Days Destroyed
Terminal Price – Network floor based on age and velocity
Balanced Price – Realized minus Terminal (via regression)
🔹 Advanced Bands for Over/Undervaluation
Around Realized Price, this tool dynamically plots:
Golden Ratio Band (×φ) — "Warm Zone" undervaluation
Euler's e Band (×e) — "Caution Zone" deeper value
Pi Band (×π) — "Overheated" zone when crossed upward
🔹 Built-in Alerts
Alerts fire when:
Price crosses below or above any band
Price drops under Terminal Price
Price recovers above the network floor
🔹 Ideal For
Long-term crypto cycle investors
On-chain analysts
DCA accumulation and distribution timing
Macro-level Bitcoin or ETH valuation zones
⚙️ Setup
Manually enter tickers for Market Cap, Supply, Volume, and Price for your preferred crypto asset.
Adjust CVDD cap (21M for BTC, ~120M for ETH) if analyzing a different coin.
Enable/disable specific valuation layers and alert bands via checkboxes.
Built by OneWallStreetQuant | Dynamic adaptation by Gabriel
Published for educational and cycle analysis use — not financial advice.
Ideal for Daily Charts, since the estimate formula was created on that timeframe.
Pi Cycle Bottom IndicatorBack in June 2021, I was able to find two moving averages that crossed when Bitcoin reached it's cycle bottom, similar to Philip Swift's Pi-Cycle Top indicator.
The moving average pair used here was the x0.475 multiple of the 471 MA and the 150 EMA ( EMA to take into account of short term volatility ).
I have a more in-depth analysis and explanation of my findings on my medium page .
Trader Dončić.
Pi Cycle Bitcoin top indicatorThe Pi Cycle Top Indicator has historically been effective in picking out the timing of market cycle highs to within 3 days.
It uses the 111 day moving average (111DMA) and a newly created multiple of the 350 day moving average, the 350DMA x 2.
Note: The multiple is of the price values of the 350DMA not the number of days.
For the past three market cycles, when the 111DMA moves up and crosses the 350DMA x 2 we see that it coincides with the price of Bitcoin peaking.
It is also interesting to note that 350 / 111 is 3.153, which is very close to Pi = 3.142. In fact, it is the closest we can get to Pi when dividing 350 by another whole number.
It once again demonstrates the cyclical nature of Bitcoin price action over long time frames. Though in this instance it does so with a high degree of accuracy over the past 7 years.
Full Credit to PositiveCrypto
Relative Vigor Index with Dominant Cycle Detection (RVI)Relative Vigor Index with Dominant Cycle Detection. As Ehler's mentioned, fixed length look back is inherently flawed when it is possible to extract a length from a dominant price cycle. may be less effective if signal to noise ratio is greater than 2, but that usually would not happen at >5m candles, and honestly shouldn't be looking at RV(igor)I when price is moving sideways.
Read just like an RVGI, but adjusted to the current time frame. To reduce noise, changing to heiken ashi will help with signals as well. Let me know if there are improvements!
Made for JD, the OG.
The Perfect RSI (Ehler's Cycle RSI Modified with Discriminator)This is the RSI indicator that I use. It combines two concepts of John Ehler. It integrates the idea of Highpass filtering the Price data, along with the the idea of automatically determining the Dominant price cycle through a Homodyne Discriminator, and using half of a cycle length as the input for the RSI. Not only determines the most effective range for the RSI by setting it based on the cycle, but also makes the RSI PDF(Probability Distribution Function) adjustable as shown in John Ehler's papers. Still needs some tweaking on determining the best calculations for cycles, and whether or not to better filter the price data into the discriminator.
Works just like a normal RSI, but should have less false signals, and also has the option for super smoothing. Play around it and see if theres any new indications or signals that come from it ;)
Let me know if there's any concerns or additions!
Wave Cycle StochasticThis is based of a modified stochastic numbers. The settings come from Barry Burn's foundation and advanced courses.
There are two stochastic indicators one on top of another. at the same time, you can turn off the lines and show the moving averages of percent D and percent K, this is something I added personally to farther investigate if they can be helpful or not.
Those who went through Barry's courses know that is oscillator is being used to find cycle high and cycle low in waves. Also Barry teaches what he calls mini-divergence and for that he uses this same oscillator. If you switch to weekly chart, the settings will automatically switch to those Barry teach for non 1 to 3 ratio situations so you don't need to worry about that. If seeing the higher time frame cycle indicator on the same oscillator is bothering you, you can again add another copy and only keep that one and turn off the rest.
Hybrid, Zero lag, Adaptive cycle MACD Backtest (Simple) [Loxx]Simple backtest for Hybrid, Zero lag, Adaptive cycle MACD Backtest (Simple) found here:
What this backtest includes:
-Customization of inputs for MACD calculation
-Take profit 1 (TP1), and Stop-loss (SL), calculated using standard RMA-smoothed true range
-Activation of TP1 after entry candle closes
-Zero-cross entry signal plots
-MACD-Signal cross entry continuations
-Longs and shorts
Happy trading!
Mercury Retrograde Cycles V2 [Moon]Plots Mercury Retrograde cycles from start to end.
What is Mercury Retrograde?
Mercury Retrograde is when the planet Mercury appears to be traveling in reverse or backwards across the night sky with respect to the stars, the zodiac, and other bodies in the celestial canopy.
It happens when Mercury goes in between the Earth and the Sun. Basically, Mercury is lapping or passing Earth during this period.
An illusion created by the way that Earth and Mercury orbit around the sun. In reality, this is both planets perpetually orbiting in the same uniform direction.
In ancient Roman mythology Mercury is supposed to rule all types of communication including - buying, selling, speaking, reading or contractual agreements.
Does this work or mean anything
I don't hold the answers to the universe you'll have to go looking for yourself.
Works best right now on the Daily (D) timeframe.
Send me a DM if interested.
Ehlers Dominant Cycle Tuned Bypass Filter [CC]The Dominant Cycle Tuned Bypass Filter was created by John Ehlers (Stocks & Commodities V. 26:3 (16-22)) and this is a particularly unique indicator because this does a pretty good job at predicting the future stock movements. If the blue line crosses over the red then a few bars from now the stock price will most likely go up and if the blue line crosses below the red then a few bars from now the stock price should go down. Since this is such a unique indicator to use with entry and exit points, I don't have them color coded but try this out and let me know what you think.
This was a special request so let me know what other scripts you would like to see me publish or if you want anything custom done!
Note: I'm republishing this because the original script couldn't be found in searches so this will fix that.
Ehlers Correlation Cycle IndicatorThe Correlation Cycle Indicator was created by John Ehlers (Stocks & Commodities V. 38:06 (8–15)) and this is technically part of three indicators in one so I'm splitting each one to a separate script. This particular indicator was designed for trend direction and trend strength and simply buy when it is green and sell when it turns red. Also keep in mind that the higher the indicator is above the signal then the stronger the trend and when they are close together, conditions get choppy.
Let me know if you would like to see me publish other scripts or if you want something custom done!
TSP Cycles DoubleDouble Cycles
You can setup higher timeframe cycle period's as argument, default is M30