Leading T3Hello Fellas,
Here, I applied a special technique of John F. Ehlers to make lagging indicators leading. The T3 itself is usually not realling the classic lagging indicator, so it is not really needed, but I still publish this indicator to demonstrate this technique of Ehlers applied on a simple indicator.
The indicator does not repaint.
In the following picture you can see a comparison of normal T3 (purple) compared to a 2-bar "leading" T3 (gradient):
The range of the gradient is:
Bottom Value: the lowest slope of the last 100 bars -> green
Top Value: the highest slope of the last 100 bars -> purple
Ehlers Special Technique
John Ehlers did develop methods to make lagging indicators leading or predictive. One of these methods is the Predictive Moving Average, which he introduced in his book “Rocket Science for Traders”. The concept is to take a difference of a lagging line from the original function to produce a leading function.
The idea is to extend this concept to moving averages. If you take a 7-bar Weighted Moving Average (WMA) of prices, that average lags the prices by 2 bars. If you take a 7-bar WMA of the first average, this second average is delayed another 2 bars. If you take the difference between the two averages and add that difference to the first average, the result should be a smoothed line of the original price function with no lag.
T3
To compute the T3 moving average, it involves a triple smoothing process using exponential moving averages. Here's how it works:
Calculate the first exponential moving average (EMA1) of the price data over a specific period 'n.'
Calculate the second exponential moving average (EMA2) of EMA1 using the same period 'n.'
Calculate the third exponential moving average (EMA3) of EMA2 using the same period 'n.'
The formula for the T3 moving average is as follows:
T3 = 3 * (EMA1) - 3 * (EMA2) + (EMA3)
By applying this triple smoothing process, the T3 moving average is intended to offer reduced noise and improved responsiveness to price trends. It achieves this by incorporating multiple time frames of the exponential moving averages, resulting in a more accurate representation of the underlying price action.
Thanks for checking this out and give a boost, if you enjoyed the content.
Best regards,
simwai
---
Credits to @loxx
Norepaint
Adaptive Fisherized Z-scoreHello Fellas,
It's time for a new adaptive fisherized indicator of me, where I apply adaptive length and more on a classic indicator.
Today, I chose the Z-score, also called standard score, as indicator of interest.
Special Features
Advanced Smoothing: JMA, T3, Hann Window and Super Smoother
Adaptive Length Algorithms: In-Phase Quadrature, Homodyne Discriminator, Median and Hilbert Transform
Inverse Fisher Transform (IFT)
Signals: Enter Long, Enter Short, Exit Long and Exit Short
Bar Coloring: Presents the trade state as bar colors
Band Levels: Changes the band levels
Decision Making
When you create such a mod you need to think about which concepts are the best to conclude. I decided to take Inverse Fisher Transform instead of normalization to make a version which fits to a fixed scale to avoid the usual distortion created by normalization.
Moreover, I chose JMA, T3, Hann Window and Super Smoother, because JMA and T3 are the bleeding-edge MA's at the moment with the best balance of lag and responsiveness. Additionally, I chose Hann Window and Super Smoother because of their extraordinary smoothing capabilities and because Ehlers favours them.
Furthermore, I decided to choose the half length of the dominant cycle instead of the full dominant cycle to make the indicator more responsive which is very important for a signal emitter like Z-score. Signal emitters always need to be faster or have the same speed as the filters they are combined with.
Usage
The Z-score is a low timeframe scalper which works best during choppy/ranging phases. The direction you should trade is determined by the last trend change. E.g. when the last trend change was from bearish market to bullish market and you are now in a choppy/ranging phase confirmed by e.g. Chop Zone or KAMA slope you want to do long trades.
Interpretation
The Z-score indicator is a momentum indicator which shows the number of standard deviations by which the value of a raw score (price/source) is above or below the mean value of what is being observed or measured. Easily explained, it is almost the same as Bollinger Bands with another visual representation form.
Signals
B -> Buy -> Z-score crosses above lower band
S -> Short -> Z-score crosses below upper band
BE -> Buy Exit -> Z-score crosses above 0
SE -> Sell Exit -> Z-score crosses below 0
If you were reading till here, thank you already. Now, follows a bunch of knowledge for people who don't know the concepts I talk about.
T3
The T3 moving average, short for "Tim Tillson's Triple Exponential Moving Average," is a technical indicator used in financial markets and technical analysis to smooth out price data over a specific period. It was developed by Tim Tillson, a software project manager at Hewlett-Packard, with expertise in Mathematics and Computer Science.
The T3 moving average is an enhancement of the traditional Exponential Moving Average (EMA) and aims to overcome some of its limitations. The primary goal of the T3 moving average is to provide a smoother representation of price trends while minimizing lag compared to other moving averages like Simple Moving Average (SMA), Weighted Moving Average (WMA), or EMA.
To compute the T3 moving average, it involves a triple smoothing process using exponential moving averages. Here's how it works:
Calculate the first exponential moving average (EMA1) of the price data over a specific period 'n.'
Calculate the second exponential moving average (EMA2) of EMA1 using the same period 'n.'
Calculate the third exponential moving average (EMA3) of EMA2 using the same period 'n.'
The formula for the T3 moving average is as follows:
T3 = 3 * (EMA1) - 3 * (EMA2) + (EMA3)
By applying this triple smoothing process, the T3 moving average is intended to offer reduced noise and improved responsiveness to price trends. It achieves this by incorporating multiple time frames of the exponential moving averages, resulting in a more accurate representation of the underlying price action.
JMA
The Jurik Moving Average (JMA) is a technical indicator used in trading to predict price direction. Developed by Mark Jurik, it’s a type of weighted moving average that gives more weight to recent market data rather than past historical data.
JMA is known for its superior noise elimination. It’s a causal, nonlinear, and adaptive filter, meaning it responds to changes in price action without introducing unnecessary lag. This makes JMA a world-class moving average that tracks and smooths price charts or any market-related time series with surprising agility.
In comparison to other moving averages, such as the Exponential Moving Average (EMA), JMA is known to track fast price movement more accurately. This allows traders to apply their strategies to a more accurate picture of price action.
Inverse Fisher Transform
The Inverse Fisher Transform is a transform used in DSP to alter the Probability Distribution Function (PDF) of a signal or in our case of indicators.
The result of using the Inverse Fisher Transform is that the output has a very high probability of being either +1 or –1. This bipolar probability distribution makes the Inverse Fisher Transform ideal for generating an indicator that provides clear buy and sell signals.
Hann Window
The Hann function (aka Hann Window) is named after the Austrian meteorologist Julius von Hann. It is a window function used to perform Hann smoothing.
Super Smoother
The Super Smoother uses a special mathematical process for the smoothing of data points.
The Super Smoother is a technical analysis indicator designed to be smoother and with less lag than a traditional moving average.
Adaptive Length
Length based on the dominant cycle length measured by a "dominant cycle measurement" algorithm.
Happy Trading!
Best regards,
simwai
---
Credits to
@cheatcountry
@everget
@loxx
@DasanC
@blackcat1402
Market Structure [Truth Indie]Market Structure
Market structure is a crucial component of various trading methodologies. If you can accurately map the market structure, tailored to the volatility or assets you are trading, it helps you identify trends clearly and enhances the accuracy of your trading strategies.
This indicator facilitates easy and swift mapping of market structure for traders. The market structure in this indicator consists of 3 types:
1.Fractal structure
2.Internal structure
3.External structure
FRACTAL STRUCTURE MAPPING
-Wick breaks are sufficient for a Fractal break of structure.
-The precise moment when the price breaks a Fractal high or low confirms the break.
BULLISH & BEARISH FRACTAL STRUCTURE
Bullish Fractal Structure:
-A Fractal high is validated when the subsequent candle fails to surpass its high (fractal pullback).
-A Fractal higher low is validated once the price breaches the Fractal high (always identify the NEAREST Fractal low). This will be the most recent candle that was unable to exceed the high of the previous candle.
Bearish Fractal Structure:
-A Fractal low is validated when the following candle fails to break its low (fractal pullback).
-A Fractal lower high is validated once the price breaks the Fractal low (always identify the NEAREST Fractal high). This will be the most recent candle that was unable to surpass the low of the previous candle.
Settings
-Show or hide text and lines, including adjusting the color of text and lines.
-Adjust the size of text, and change the type of lines, including modifying text when there is a BoS and CHoCH.
-Mark swing when there is a valid pullback, adjust the size and color.
INTERNAL STRUCTURE MAPPING
Body breaks confirm an internal structure break.
BULLISH & BEARISH INTERNAL STRUCTURE
Bullish Internal Structure:
-An internal high is validated with 4 optional criteria.
-An internal higher low is validated when the internal high structure is broken. A higher low refers to the lowest price.
Bearish Internal Structure:
-An internal low is validated with 4 optional criteria.
-An internal lower high is validated when the internal high structure is broken. A lower high refers to the highest price.
Settings
-Show or hide text and lines, including adjusting the color of text and lines.
-Adjust the size of text, and change the type of lines, including modifying text when there is a BoS and CHoCH.
-Mark swing when there is a valid pullback, adjust the size and color.
Validation of pullback has 4 options for exploration, with the default value set to Fractal CHoCH 1 time:
1.Fractal CHoCH 1 time.
2.Fractal CHoCH and wait for Fractal BoS/Fractal CHoCH 3 times in a row.
3.PIP Rule, using PIP to determine the distance of a valid pullback.
-Show or hide lines and values. This option will only display results when you activate the PIP Rule. Change the style of lines and change the color of lines.
-In the PIP field, enter the PIP value you want to explore. In the 1 PIP Size field, enter the decimal places in the asset you are trading. For example, for the EUR/USD pair with decimals at position 4.
4.ATR Rule, utilizing ATR multiples to establish the range of a valid pullback.
-Show or hide lines and values. This option will only display results when you activate the ATR Rule. Change the style of lines and change the color of lines.
-ATR type allows you to choose from 5 ma types. ATR Period adjusts the backward-looking average value you want to explore. Multiple: Enter a multiplier value for ATR to match the volatility or asset you are trading.
If you choose only ATR Rule, the result is the validation of the pullback with ATR Rule only. If you choose more than 1 option, whichever condition is true, the validation pullback occurs immediately. If you don't choose anything, the default value is Internal CHoCH 1 time.
Swing internal structure
-Show or hide text and lines, including adjusting the color of text and lines.
-Adjust the size of text, and change the type of lines, including modifying text.
Equilibrium internal
-Show or hide text and lines, including adjusting the color of text and lines.
-Adjust the size of text, and change the type of lines, including modifying text.
-Adjust the percentage of Equilibrium.
EXTERNAL STRUCTURE MAPPING
Body breaks confirm an internal structure break.
BULLISH & BEARISH EXTERNAL STRUCTURE
Bullish external Structure:
-An external high is validated with 4 optional criteria.
-An external higher low is validated when the external high structure is broken. A higher low refers to the lowest price.
Bearish external Structure:
-An external low is validated with 4 optional criteria.
-An external lower high is validated when the external high structure is broken. A lower high refers to the highest price.
Settings
-Show or hide text and lines, including adjusting the color of text and lines.
-Adjust the size of text, and change the type of lines, including modifying text when there is a BoS and CHoCH.
-Mark swing when there is a valid pullback, adjust the size and color.
Validation of pullback has 4 options for exploration, with the default value set to Internal CHoCH 1 time:
1.Internal CHoCH 1 time.
2.Internal CHoCH and wait for Internal BoS/Internal CHoCH 3 times in a row.
3.PIP Rule, using PIP to determine the distance of a valid pullback.
-Show or hide lines and values. This option will only display results when you activate the PIP Rule. Change the style of lines and change the color of lines.
-In the PIP field, enter the PIP value you want to explore. In the 1 PIP Size field, enter the decimal places in the asset you are trading. For example, for the EUR/USD pair with decimals at position 4.
4.ATR Rule, utilizing ATR multiples to establish the range of a valid pullback.
-Show or hide lines and values. This option will only display results when you activate the ATR Rule. Change the style of lines and change the color of lines.
-ATR type allows you to choose from 5 ma types. ATR Period adjusts the backward-looking average value you want to explore. Multiple: Enter a multiplier value for ATR to match the volatility or asset you are trading.
If you choose only ATR Rule, the result is the validation of the pullback with ATR Rule only. If you choose more than 1 option, whichever condition is true, the validation pullback occurs immediately. If you don't choose anything, the default value is Internal CHoCH 1 time.
Swing external structure
-Show or hide text and lines, including adjusting the color of text and lines.
-Adjust the size of text, and change the type of lines, including modifying text.
Equilibrium external
-Show or hide text and lines, including adjusting the color of text and lines.
-Adjust the size of text, and change the type of lines, including modifying text.
-Adjust the percentage of Equilibrium.
The values of these 4 options are: 1. PIP Rule in the internal structure 2. ATR Rule in the internal structure 3. PIP Rule in the external structure 4. ATR Rule in the external structure
These 4 options will be displayed only when the rule is selected along with choosing to display the value.
DISCLAIMER
All investments involve risks. Profit or loss depends on your knowledge, understanding, and decisions.
My scripts/indicators/strategies are created for researching past price behavior only. They are not investment advice, and future results are not guaranteed.
SMC Fair Value Gap[Truth Indie]FVG (Fair Value Gap)
FVG is another component used in the SMC Concept.
This indicator will help you quickly identify FVG along with customizable market structure.
HISTORY FVG SETTING
-You can choose to show or hide the FVG (Fair Value Gap).
-You can choose to expand the History FVG to the right.
-You can change the number of History Internal FVG.
-You can change the number of History External FVG.
FVG Setting
-You can adjust the strength of the imbalance candlestick.
An example:
The imbalance candlestick in the image has a strength of 124.6 times compared to the previous candlestick.
FVG TEXT/COLOR SETUP
-You can change the name of FVG.
-Adjust the font size and color.
-Adjust the color of the FVG BOX and History BOX.
Market Structure
Comprising the process of breaking the price structure, resulting in BOS (Breakout of Structure) or CHoCH (Change of Character High), and creating new High or Low based on the price structure.
Structure Setting
1.You can choose to show or hide the swing of the structure.
2.Adjust the font size and color.
3.When the market forms a price structure with High and Low, when the price moves to disrupt the structure in either direction, it will lead to BOS or CHoCH, resulting in a new High or Low. You can adjust the method of breaking the structure using the close, high, or low.
Miner Inducement Setting
4.You can choose to show or hide the Minor Inducement.
5.You can choose to show or hide the Fibo Minor Inducement.
6.When price break the price structure, a High or Low will be formed on one side, and it will lead to an Inducement Swing. When the price moves and collides, it will create a price range of High and Low. You can adjust the method of breaking the structure using the close, high, or low.
7.There is an option for testing Fibonacci (Fibo). Its function is similar to the Inducement Swing. You can adjust the Fibonacci settings.
8.Adjust the length of the Minor Inducement swing.
- In this section, it functions similarly to Pivot Points High Low, capturing swings based on the specified length.
9.Adjust Fibo Minor Inducement.
- Fibo IDM helps filter Swing IDM.
- When the market is in an uptrend, IDM will be lower than Fibo IDM.
- When the market is in a downtrend, IDM will be higher than Fibo IDM.
-Adjust the font size.
-Adjust the color of the Fibo Minor Inducement.
-Adjust the color of the Fibo for break.
-Show or hide the Label Swing.
An example of a market in a downtrend.
1. Fibo IDM filters out Swing IDM that is above the Fibo line.
2. IDM occurs above the Fibo line in a downtrending market and below the Fibo line in an uptrending market.
3. An example of the Pivot Points High Low indicator with the length set to 3.
Premium & Discount Zone
-The Premium & Discount Zone will appear based on the current price structure. It helps you see the price zones you are interested in.
-You can adjust the %Premium & Discount as needed.
-Show or hide the premium & discount zone.
-Adjust the font size.
-Adjust the color of the premium & discount zone.
SMC Order Block [Truth Indie]Smart Money Concept (SMC)
For me, SMC is a trading philosophy that stems from those with knowledge and understanding of the structure of the Smart Money group's trading system. It is developed through the observation of price behavior.
SMC is related to the Smart Money group or those entities that can influence the market, such as financial institutions, banks, or funds. Market movements are often driven by market fundamentals or economics. The Smart Money group possesses extensive research data for analyzing the market's fundamentals and has the ability to steer the market in various directions based on market and economic fundamentals at a given time.
The SMC concept is adapted from the ICT concept, and it was developed and shared by The Inner Circle Trader.
I have been studying and trying to understand SMC for some time, and I have many questions I would like to explore. The challenge lies in the fact that different sources of knowledge on this topic often have varying teachings, and my proficiency in the English language is limited. As a result, I haven't had the opportunity to study from the primary source, The Inner Circle Trader.
This indicator was created for the purpose of researching Market Structure and Order Blocks, which are integral parts of the SMC Concept.
The fundamental principle for identifying Order Blocks is as follows:
1.Locate swings that create candlestick imbalances.
2.An imbalance refers to a candlestick that is larger than the preceding one and contains a Fair Value Gap (FVG).
This indicator categorizes Order Blocks into four types, and you are encouraged to customize them to suit your preferences.
OB Type1
1.The closing price of candle has an opposite direction to the candle .
2.Candle has a wick longer than its body, by at least 1 times or more (adjustable).
3.Candle has a wick longer than candle , by at least 2 times or more (adjustable).
4.There is a Fair Value Gap (FVG) between the wicks of candle and .
OB Type1_HTF
-This condition is the same as OB Type1, but it involves analyzing 6 candles instead. This means looking at a larger time frame, twice as big as the original one.
OB Type2
1.The closing price of candle has the opposite direction to candle .
2.Candle has a body larger than its wick by at least 1 times or more (adjustable).
3.Candle has a body larger than candle by at least 2 times or more (adjustable).
4.There is a Fair Value Gap (FVG) between the wicks of candle and .
OB Type2_HTF means observing a larger time frame, specifically twice as big as the previous one.
OB Type3
1.The closing price of candle has the same direction as candle .
2.Candle has a wick longer than its body, by at least 1 times or more (adjustable).
3.Candle has a wick longer than candle , by at least 2 times or more (adjustable).
4.There is a Fair Value Gap (FVG) between the wicks of candle and .
OB Type3_HTF means observing a larger time frame, specifically twice as big as the previous one.
OB Type4
1.The closing price of candle has the same direction as candle .
2.Candle has a body larger than its wick by at least 1 times or more (adjustable).
3.Candle has a body larger than candle by at least 2 times or more (adjustable).
4.There is a Fair Value Gap (FVG) between the wicks of candle and .
OB Type4_HTF is an indicator that involves looking at a larger time frame, specifically twice as big as the original one.
Order Block Setting
1.Click to activate the OB search in different Types.
2.Adjust the body of the candle .
3.Adjust the strength of the candle or the Imbalance candle.
4.You can change the name of OB.
5.Adjust the font size and color.
6.Adjust the color of the OB BOX and History BOX.
7.Adjust the font of OB HTF.
1.It refers to the value of W for a specific candle.
2.It refers to the value of Im for a specific candle.
3.It refers to the values of W and Im in the HTF.
4.For OB Type1 and Type3, a higher W value will search for candles with a larger wick and a smaller body. When the W value is lower, it will search for candles with a smaller wick and a larger body, moving from low to high.
5.For OB Type2 and Type4, a lower W value will search for candles with a smaller wick and a larger body. When the W value is higher, it will search for candles with a larger wick and a smaller body, moving from high to low.
Market Structure
Comprising the process of breaking the price structure, resulting in BOS (Breakout of Structure) or CHoCH (Change of Character High), and creating new High or Low based on the price structure.
1.When the market forms a price structure with High and Low, when the price moves to disrupt the structure in either direction, it will lead to BOS or CHoCH, resulting in a new High or Low. You can adjust the method of breaking the structure using the close, high, or low.
2.When you break the price structure, a High or Low will be formed on one side, and it will lead to an Inducement Swing. When the price moves and collides, it will create a price range of High and Low. You can adjust the method of breaking the structure using the close, high, or low.
3.There is an option for testing Fibonacci (Fibo). Its function is similar to the Inducement Swing. You can adjust the Fibonacci settings.
Premium & Discount Zone
1.The Premium & Discount Zone will appear based on the current price structure. It helps you see the price zones you are interested in.
2.You can adjust the %Premium & Discount as needed.
3.The OB (Order Block) will be displayed when a price structure of High and Low forms within the Premium & Discount Zone. The OB in this indicator is not a recommendation to buy or sell. You need to research and test various conditions before making trading decisions.
Everyone's trading strategies are different, and it comes down to backtesting and selecting the strategy that suits your individual needs. Hopefully, this indicator will assist the TradingView community of traders in their trading endeavors.
Adaptive Fisherized ROCIntroduction
Hello community, here I applied the Inverse Fisher Transform, Ehlers dominant cycle determination and smoothing methods on a simple Rate of Change (ROC) indicator
You have a lot of options to adjust the indicator.
Usage
The rate of change is most often used to measure the change in a security's price over time.
That's why it is a momentum indicator.
When it is positive, prices are accelerating upward; when negative, downward.
It is useable on every timeframe and could be a potential filter for you your trading system.
IMO it could help you to confirm entries or find exits (e.g. you have a long open, roc goes negative, you exit).
If you use a trend-following strategy, you could maybe look out for red zones in an in uptrend or green zones in a downtrend to confirm your entry on a pullback.
Signals
ROC above 0 => confirms bullish trend
ROC below 0 => confirms bearish trend
ROC hovers near 0 => price is consolidating
Enjoy! 🚀
Multi Supertrend with no-repaint and HTF optionThis indicator has 2 Supertrends to filter the trend.
The Default one uses the same timeframe as chart.
The additional Supertrend is non-repaint type and can run on higher timeframes.
It has an auto-higher timeframe selection option, thanks to LonesomeTheBlue, the original author.
It is accurate on current timeframe also.
NVME Trend-MeterNVME Trend Meter is a trend confirming indicator that uses our main algorithm to help confirm trends on multi-timeframes. This can be useful for your analysis and trading style for any pair you go to. The NVME Trend Meter can be used to see if the market sentiment is looking bullish or bearish and with this you will know what direction to trade in too!
There are 5 Timeframes displayed on the indicator: The daily, the 4 hourly, the hourly, the 30 minutes and the 15 minutes timeframe.
NVME Trend Meter is to be used as a confluence with your analysis or trading style and should not in anyway shape or form be used as a indication to buy or sell just because the signal says so, it is there to give you a higher chance of having a high probability trade though past results is not indicative of future results and getting access doesn't mean you will become a millionaire in a day as it is not a get rich quick indicator so it won't guarantee 100% success.
Does it support all chart types?
Yes, all charts are supported with the trend meter.
Features:
/Basic Settings
-Trend Significance (Input value, this will change the strength of the trend to be analysed)
-Trend Period (Input Value, this will change the calculation module's intake period in order to confirm a trend)
/Miscellaneous
-Transparency (Input Value, this will change the transparency of the bars)
-Colour Scheme (Changes the colour scheme from the following options: Default, Blue and Orange, Strawberry and Lime, Apple and Mango, Orange and Passionfruit, Rhubarb and Custard, Black and White, Forest Greens, Galaxy)
/Dashboard Settings
-Enable/Disable Dashboard
-Dashboard X Position (Changes the x position of the dashboard)
-Text Colour (Changes the text colour of the dashboard)
GOAT Signals - Real Time Baby! Custom Alert ScriptWELCOME to GOAT Signals - Real Time Baby! Custom No Repaint Buy Sell Moving Average (MA) Alert Script!
This script can be set to send GOAT Signals Custom Indicator Alerts.
The Step input gives price action some breathing space if desired. Steps can be added or subtracted.
The strategy tester does not calculate in trading fees, therefore in most cases will work better on longer time frames.
Personally, I use the Daily and Weekly charts except during high volatility , and use a one or two bar trail depending on price action.
Past performance does NOT guarantee future gains but keep in mind Bitcoin , Litecoin and a few others are on deflationary cycles.
Access included with GOAT Signals Custom No Repaint Buy Sell Arrow Strategy Tester.
For full invite only access please contact DogeyBlaze.
Not Certified Financial Advice.
Simple 𝔇 Oscillators𝔻𝕚𝕧𝕖𝕣𝕘𝕚𝕟𝕘 𝕆𝕤𝕔𝕚𝕝𝕝𝕒𝕥𝕠𝕣𝕤
No Offset's, No delay
There is 6 Oscillators diverging in release version
For micro tf charting -requires manual tune on input menu
Peak/Valley EstimationEarly Signal
Estimating the Peaks and Valleys or extrema of the price is one of the best way to catch up early movements of a trend. Of course there is no perfect way to do so, if we want a perfect estimation of peaks and valleys then we must use a non causal indicator ( repainting ), if we want a causal indicator ( non repainting ) then we will need to tradeoff accuracy for allowing our indicator to be causal, its always a matter of tradeoff at the end when trying to have a desired effect (smoothness/lag for filters) .Our indicator is causal, it wont repaint but the accuracy will depend on various parameters.
In order to detect peaks and valleys in a certain period we must detrend the price, this mean subtracting it by its moving average. We take the absolute value of this result and we filter it with a local linear regression ( LSMA ) in order to eliminate noise, then we make the assumption that the highest of our result is or a peak or a valley of the price, so we divide our detrended calculation by its highest and we get a scaled result. Lets call this final result the peak index .
Parameters
There are 3 parameters in this indicator, a length parameter who control the period of the highest mentioned above, a smooth parameter who smooth our detrended price, and finally a mod parameter who select the trigger method for estimating a peak/valley.
Here are how mods work :
mod = 1 : when the peak index is equal to 1 and the previous value is not equal to 1 then we have a peak/valley. Its the fastest of the 3 mods but the one with less accuracy.
mod = 2 : when the peak index crossunder 0.8 then we have a peak/valley. This method is more robust but slower than the previous one.
mod = 3 : when the peak index is not equal to 1 and the previous peak index is equal to 1 then we have a peak/valley. Its an average of the precedents mod in term of speed and accuracy.
Lower length values tend to estimate the peak/valley of short periods of time but can also lead to the reverse desired effect ( breakouts signals ). Smoothing is important since it reduce the number of noise in our calculation and therefore help to get better results, its a parameter that should be high, sometimes higher than length if this one is low.
Estimation of medium terms peaks/valleys with length and smooth parameter both period 100 and mod = 3
Estimation peaks in palladium way to early, an example of bad accuracy. Such behaviour can be fixed with a change in the parameters.
Complementarity With Classics Indicators
As i said before its always a matter of tradeoff, here we get faster signals but we loose in accuracy, at the contrary classics indicators often have slower signals but with more accuracy. Mixing both of them can provide additional robustness in a strategy, lets take back our palladium case, using mod 3 could have been better, but its still not optimal, so lets use a classic indicator such as a moving average of period 200, our conditions are :
Long when our peak/valley estimator estimated a valley and the price crossover our moving average.
Short when our peak/valley estimator estimated a peak and the price crossunder our moving average.
here is an exemple of such signal :
We balanced our tradeoff in a way to fix both methods problems, of course its still not a perfect fix but it provide more robustness.
Other Uses
The indicator can also be used only as an order closing indicator, its safer than taking a position based on its estimation. The indicator can also give a use to the peak index used in the calculation as a trend strength indicator.
Values below 0.5 indicate a ranging market while values over 0.5 indicate a trending market.Since its a scaled measure you can use it a smoothing constant in a adaptive filter.
Conclusions
I showed how to estimate peaks and valleys and how to use such information in order to make better decision when using classical indicators, of course at the end nothing is perfect and considering the non stationarity of the markets the parameters efficiency could change drastically.
For any questions/demands feel free to pm me, i would be happy to help you