Wave Anchor IndicatorThe Wave Anchor Indicator is designed to mark the crossing of overbought and oversold levels of higher time frame momentum waves, based on the VuManChu Cipher B+Divergences Wave Trend Indicator. This tool is inspired by the TP Mint trading strategy, which relies heavily on the momentum waves of Market Cipher B or VuManChu Cipher B for identifying optimal entry and exit points.
Key Concept: Anchored Waves
In the TP Mint strategy, momentum waves in overbought (above 60) or oversold (below -60) conditions on higher time frames are considered "anchored." These anchored waves provide strong signals for entries and take-profit points when viewed on lower time frames. The Wave Anchor Indicator focuses on these anchor conditions to help traders make informed decisions by seeing higher time frame anchor states directly on the entry time frame chart.
How It Works
Labeling Signals:
- On lower time frames, such as the 15-minute chart, the indicator shows labels when higher
time frame momentum waves (1-hour and 4-hour) cross the overbought or oversold levels.
- Labels above price indicate overbought conditions, with green labels when the wave crosses
upward and red labels when crossing downward.
- Labels below price signal oversold conditions, with red for a downward cross and green for an
upward cross.
- Each label displays the time frame of the crossing momentum wave, providing context for
traders at a glance.
Time Frame Pairings:
- On the 15-minute time frame, the indicator tracks anchor conditions from the 1-hour and 4-
hour time frames.
- On the 1-hour chart, it monitors 4-hour and daily time frame anchor conditions.
Customization and Alerts
Flexible Display Options : Users can choose to display none, one, or both of the grouped higher time frame labels, depending on their strategy and preferences.
Alerts : The indicator also allows for custom alerts when a label appears, helping traders stay on top of key market movements without constantly monitoring the chart.
Use Cases
This indicator is ideal for traders who use momentum-based strategies across multiple time frames. It simplifies the process of identifying key entry and exit points by focusing on the anchor conditions from higher time frames, making it easier to execute the TP Mint strategy or similar methods.
Thank you to VuManChu and LazyBear for mamking the momentum wave code open source and allowing it’s use in this indicator.
Cari dalam skrip untuk "wave"
Wavelet Smoothed Moving Average (TechnoBlooms)Wavelet Smoothed Moving Average (WSMA) is a part of the Quantum Price Theory (QPT) Series of indicators.
Overview:
The Wavelet Smoothed Moving Average (WSMA) is a trend-following indicator inspired by multi-level Haar Wavelet decomposition. Rather than using traditional wavelet basis functions, it emulates the core wavelet concept of multi-resolution analysis using nested simple moving averages (SMA).
How It Works:
WSMA applies three levels of smoothing:
• Level 1: SMA on price (base smoothing)
• Level 2: SMA on Level 1 output (further denoising)
• Level 3: SMA on Level 2 output (final approximation)
Why Use WSMA:
• Multi-Level Smoothing: Captures price structure across multiple time scales, unlike single-length MAs.
• Noise Reduction: Filters out short-term volatility and focuses on the underlying trend.
• Low Lag, High Clarity: Unlike traditional moving averages that react slowly or miss subtle shifts, WSMA’s layered smoothing delivers cleaner and more adaptive trend detection.
Unique Value:
• Wavelet-Inspired Design: Mimics core wavelet decomposition logic without the complexity of downsampling or basis functions.
• Perfect for Trend Confirmation: The final line (a3) can act as a trend filter, while the detail levels can help identify momentum shifts and volatility bursts.
• Fits Into Quantum Price Theory: As part of the QPT framework, WSMA bridges scientific theory with trading application, giving traders a deeper understanding of market structure and signal compression.
Wave Master ProThis indicator is built on Stochastics and uses multiple timeframes to give you a heatmap style view of where overbought and oversold levels are across 25 different timeframes.
Here's a few things you'll want to watch out for when using this indicator:
OVERBOUGHT
When a wave goes into overbought or is approaching overbought, you'll notice the heatmap transitioning from orange to red. Probably wise to move up stop losses or close the position out, especially when the entire vertical time slot is completely red.
OVERSOLD
Opposite of overbought, when a wave goes into oversold, the heatmap will transition from orange to green. This could be a good place to close out short positions or be on the lookout for long positions. Again, especially when the entire vertical time slot is completely green.
TIMEFRAMES
This indicator is dynamic in that it will automatically adjust the heatmap timefrmaes as you change the timeframe of your chart.
LIMITATIONS
Due to there being so many different timeframes that are utilized in this indicator, you will find that this indicator works best on 1H timeframes or lower, but it will work up to 4H timeframes. Currently, anything above 4H is not optimal for this indicator. I would recommend using the regular Wave Master indicator if you like using high timeframes.
OTHER USEFUL INFORMATION
This is a vidual aid in determining when many timeframes approach and reach extended levels based on the configuration of the Stochastics that we have found to be most optimal, especially in lower timeframes. It is wise to refer back to the Wave Master indicator for a raw view of the waves.
Waves CorrectionsWave theory tool for tracking waves relations and their corrections. It filters out a sets of formations and count how often correction from them are reaching characteristic correction levels marked on the chart as CL1, CL2, CL3.
It supports 2 rulesets/wave variants:
Low - Based on more sensitive trend detection.
Medium - Based on less sensitive trend detection.
Script settings:
| SCANNER |
Trend type - Trend used by scanner to detect sets of waves.
L - Low
M - Medium
<= W1/W2 * 100% <= - Tresholds describing proportions between 1 and 2 wave in the set.
<= W3/W1 * 100% <= - Tresholds describing proportions between 3 and 1 wave in the set.
<= W3/W2 * 100% <= - Tresholds describing proportions between 3 and 2 wave in the set.
Show potencial areas - Showing underway sets
Show Arrows - Showing arrows with possible correction on underway set.
Correction from trend UP - Background and border colors for found sets in up trends
Correction from trend Down - Bakcground and border colors for found sets in down trends.
History - Showing sets in historic data.
Stats - Type of statistic table shown on the screen:
H - Hide
% - Statistics with normal font
%s - Statistics with small font
Wn n= - Picking how many waves are taken into account when calculating statistics .
| TREND VISUALIZATION |
Type - Trend visualization types:
H - Hidden
L - Low
M - Medium
B - Both
Alfred - AI assistant that informs about wave confirmation or trend changes (With "Both" type Alfred will monit only Medium wave).
Shadow - Showing second reprezentation of the trend with drawing with the use of minimal and maximal values. It's usefull to determine the delay between the peak and a wave change signal.
Low/Med Line width/color - Width/color of drawn line. Separate setting for Low and Medium trend type.
| IMPULS VISUALIZATION |
Impuls - Drawing impuls modes:
H - Hidden
F - First
S - Second
A - Auto
Impuls color - Color of the first bullish arrow.
Draw arrow - Drawing arrow at the end of the first bullish arrow.
Troubleshooting:
In case of any problems, send error details to the author of the script.
WaveTrend 4h/24mWaveTrend 4h/24m is a trading tool based on two WaveTrend timeframes.
For this script the WaveTrend calculations made by LazyBear were used. WaveTrend is a widely used indicator for finding direction of an asset.
The strategy is developed by Youtuber Jayson Casper. The main strategy on the 4 hour and 24 minute timeframes, this will be the default timeframes. Timeframes can be adjusted in the indicator interface.
With Jaysons' we wait for both timeframes to have last printed a green dot for longs, and both timeframes to have last printed a red dot for shorts. When this occurs a green diamond will be printed for longs, a red diamond for shorts.
Make sure to always use the chart from the smallest timeframe you're using, so by defaults use the 24 minute chart.
Features of the indicator:
- WaveTrend Timeframe 1 (Blue/Lightblue wave).
- WaveTrend Timeframe 2 (Blue/Purple line with filled background between the lines).
- VWAP (Yellow wave which is turned off by default)
- Green/Red Diamonds
What to look for?
This script is all about the Green and Red Diamonds.
A Green diamond will be printed when on both the 4 hour and 24 minute timeframe the last printed dot was a green dot.
A Red diamond will be printed when on both the 4 hour and 24 minute timeframe the last printed dot was a red dot.
What are the Green and Red Diamonds based on?
When both VWAP timeframes are ABOVE 0, a green diamond will be printed. This is equivalent to the last dot on both WaveTrend timeframes being a green dot.
When both VWAP timeframes are BELOW 0, a red diamond will be printed. This is equivalent to the last dot on both WaveTrend timeframes being a red dot.
Happy Trading!
WaveTrend Divergences, Candle Colouring and TP Signal [LuciTech]WaveTrend is a momentum-based oscillator designed to track trend strength, detect divergences, and highlight potential take-profit zones using Bollinger Bands. It provides a clear visualization of market conditions to help traders identify trend shifts and exhaustion points.
The WaveTrend Oscillator consists of a smoothed momentum line (WT Line) and a signal line, which work together to indicate trend direction and possible reversals. When the WT Line crosses above the signal line, it suggests bullish momentum, while crossing below signals bearish momentum.
Candle colouring changes dynamically based on WaveTrend crossovers. If the WT Line crosses above the signal line, candles turn bullish. If the WT Line crosses below the signal line, candles turn bearish. This provides an immediate visual cue for trend direction.
Divergence Detection identifies when price action contradicts the WaveTrend movement.
Bullish Divergence appears when price makes a lower low, but the WT Line forms a higher low, suggesting weakening bearish pressure.
Bearish Divergence appears when price makes a higher high, but the WT Line forms a lower high, indicating weakening bullish pressure.
Plus (+) Divergences are stronger signals that occur when the first pivot of the divergence happens at an extreme level—above +60 for bearish divergence or below -60 for bullish divergence. These levels suggest the market is overbought or oversold, making the divergence more significant.
Bollinger Band Signals highlight potential take-profit zones by detecting when the WT Line moves beyond its upper or lower Bollinger Band.
If the WT Line crosses above the upper band, it signals stretched bullish momentum, suggesting a possible pullback or reversal.
If the WT Line crosses below the lower band, it indicates stretched bearish momentum, warning of a potential bounce.
How It Works
The WaveTrend momentum calculation is based on an EMA-smoothed moving average to filter out noise and provide a more reliable trend indication.
The WT Line (momentum line) fluctuates based on market momentum.
The signal line smooths out the WT Line to help identify trend shifts.
When the WT Line crosses above the signal line, it suggests buying pressure, and when it crosses below, it indicates selling pressure.
Divergences are detected by comparing pivot highs and lows in price with pivot highs and lows in the WT Line.
A pivot forms when a local high or low is confirmed after a certain number of bars.
The indicator tracks whether price action and the WT Line are making opposite movements.
If a divergence occurs and the first pivot was beyond ±60, it is marked as a Plus Divergence, making it a stronger reversal signal.
Bollinger Bands are applied directly to the WT Line instead of price, identifying when the WT Line moves outside its volatility range. This helps traders recognize when momentum is overstretched and a potential reversal or retracement is likely.
Settings
Channel Length (default: 8) controls the period used to calculate the WT Line.
Average Length (default: 16) smooths the WT Line for better trend detection.
Divergences (on/off) enables or disables divergence plotting.
Candle colouring (on/off) applies or removes trend-based candle colour changes.
Bollinger Band Signals (on/off) toggles take-profit signals when the WT Line crosses the bands.
Bullish/Bearish colours allow customization of divergence and signal colours.
Interpretation
The WaveTrend Oscillator helps traders assess market momentum and trend strength.
Crossovers between the WT Line and signal line indicate potential trend reversals.
Divergences warn of weakening momentum and possible reversals, with Plus Divergences acting as stronger signals.
Bollinger Band Crosses highlight areas where momentum is overstretched, signaling potential profit-taking opportunities.
Wavetrend Moving Average (WTMA) [Loxx]Wavetrend Moving Average (WTMA) is a Wavetrend indicator morphed into a moving average. Use this indicator as you would any other moving average.
What is the Wavetrend indicator?
Wavetrend's original name was TCI created by the The Trading Center. The TCI (Trading Channel Index) displays the ratio between the average daily price and the smoothed averaged value of the average daily price.
You can read about TCI here: tradingcenter.org
How do you morph Wavetrend into a moving average?
1. Calculate Wavetrend
2. Normalize Wavetrend from a range of -1 to 1 to a range of 0 to 1
3. Find high/low values of X bars back of Wavetrend,
4. Subtract high from low to find the simple range of Wavetrend
5. Calculate upper and lower boundaries
6. Calculate the HL2 of using these new boundaries
Included:
Bar coloring
Signals
Alerts
Loxx's Expanded Source Types
WaveTrend with Crosses [LazyBear]Here we can more clearly see the correlation between the WaveTrend indices
Wave Trend With SignalsBased on Wave Trend With Signals ...thx bro. Added RSI and a little of fine tuning.
Enjoy!
Wave LineWave Line is a chart type obtained by plotting the High and Low values in each time interval according to their sequential order. This method produces a continuous line rather than bars, which is beneficial for analyzing changes within each interval rather than focusing on the price range and open/close values. E.g for Wave Analysis.
How to use:
1. Adjust the interval unit and multiplier for the main timeframe.
2. Ideally, select a lower timeframe on your chart, approximately 5 times smaller than the one specified for the script.
3. Lower Timeframe is the timeframe which will be the scripts reference when the high and low of the main timeframe align on a single bar of the opened chart. This timeframe may also be 5-10 times smaller than the main timeframe. It is important to note that this should not be excessively smaller as the script may fail in retrieving data. An alternative method is included to estimate the order if it is not clear in the fetched data.
4. Set a preferred value for Monowave Length, indicating the number of bars a monowave will cover horizontally. Set the value to be half of the Interval Multiplier for the Wave Line to align with the bar chart. However if the multiplier is an odd number, perfect alignment may not be achieved.
5. Ensure that the product of Max Polyline Segments and Monowave length does not exceed 5000, and adjust the value for Max Polyline Segments accordingly.
Wave Chart v1##Wave Chart v1##
For analyzing Neo-wave theory
Plot the market's highs and lows in real-time order.
Then connect the highs and lows
with a diagonal line. Next, the last plot of one day (or bar) is connected with a straight line to the
first plot of the next day (or bar).
##How To Use##
if you want a weekly chart you drop the time frame to the daily chart.
Then you set the range to 7(if the market opens 7 days per week).
Then you click "highlight the bar that runs to plot" and you must shift the highlight to the last day that the weekly chart bar close(Sunday / Friday)
##Example 1
Weekly chart BTCUSDT on BINANCE
first open daily chart, set range = 7 and Bars_shift = 3 (shift highlight to Sunday)
##Example 2
Weekly chart XAUUSD on FXOPEN
first open daily chart, set range = 5 (market open 5 days per week) and Bars_shift = 1 (shift highlight to Friday)
##Note##
If the market has a special holiday Wave Chart may be inaccurate.
Waves in Price (Volume Waves)Waves in Price (Volume Waves)
TheDowVolumeBigot>0 (Bullish) =Lime color
Very High=Dark Green color
High=Green color
TheDowVolumeBigot<0 (Bearish) =Orange color
Low=Red color
Very Low=Dark Red color
Barcolor
Wave Channel 3D Wave Channel 3D
Built by Ricardo idea from JR & Aloakdutt from indieTrades Jan. 2010
This indicator is very easy to build. We utilize Moving Averages with a set multiplier and an offset. Specially we try to use Fibonacci sequence series numbers (1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144...) as time space and multiplier (default 89, 8). Also included is Donchian Channel to locate strong trends and possible future support - resistance.
Examples of support/resistance on chart.
Dominant Price Trends
Future Support Resistance
Comparing Fibonacci Series Time Space - Multiplier
When Comparing make note of confluence support/resistance showing up with Fibonacci Series
Example uses DC
When Comparing make note of confluence support/resistance showing up with Fibonacci Series
Example without DC / Smooth MA
WavesTrend visualization tool in Wave theory. Unlike Elliot waves, it has a constant pattern length. The formation consists of impulse and 3 corrections.
The script analyzes candle relationships in the currect trend, trend will be continueted until candle are not breaking trend rules.
Currently it supports 2 rulesets/wave variants:
Low - More sensitive (trend will change more ofter).
Meddium - Less sensitive ( trend will change less ofter).
Simultaneous observation of both types allows to detect consolidation before the overlapping movement and increase the probability of indicating the moment of the movement occurrence.
Trend visualization tools is a starting point that can be conected with different technics, to achive better performance.
"Waves" is the primary script of the Waves script series with test free period that consists of:
- Waves + XABCD
- Waves + ZOOnes
- Waves Change Signals
- ... and more in developement.
Features:
- Show Low and Middle type/order waves
- Draw both Wave types at once.
- Shadow mode that show second wave moved to the wave max/min bars.
- "Alfred" assist - Label notifications about trend confirmations or changes.
Script settings:
Trend visualization
Type - Trend visualization types:
H - Hidden
L - Low
M - Medium
B - Both
Alfred - AI assistant that informs about wave confirmation or trend changes (With "Both" type Alfred will monit only Medium wave).
Shadow - Showing second reprezentation of the trend with drawing with the use of minimal and maximal values. It's usefull to determine the delay between the peak and a wave change signal.
Low/Med Line width/color - Width/color of drawn line. Separate setting for Low and Medium trend type.
Impuls visualization
Impuls - Drawing impuls modes:
H - Hidden
F - First
S - Second
A - Auto
Impuls color - Color of the first bullish arrow.
Draw arrow - Drawing arrow at the end of the first bullish arrow.
Extensions
Waves + XABCD - Showing base information about Waves + XABCD script
Waves + ZOOnes - Showing base information about Waves + ZOOnes script
Waves Change Signals - Showing based information about Waves Change Signals script.
more in developement...
Troubleshooting:
In case of any problems, send error details to the author of the script.
WaveTrend Anomaly by HypesterAs requested by the Alpha community, here's our release.
This is a different type of Wavetrend indicator; here, we have a statistical approach to the waves. We normalize the trends as a reference to measure how much every move differs from the average.
If the move is too far out, it tends to go back to the average as a rule. This indicator yields a %. As you can see, most of the moves tend to stay within 0.5 and -0.5. Remember the fact that 0.5 means 50%, the negative factor here only determines direction.
Funny the fact that most crossings happen within the 0.5 and -0.5, which means they occur before the odds are against them all the time. That highlights the chaotic nature of the markets.
However, the outliers, the moves that extrapolate the 50%, tend to go back to the average quickly, and the big triangles highlight this crossing.
You can also display every single crossing and its direction in the options panel.
There're more customization capabilities in the panel, too, like length, source, and so on.
Now to the background color options, when it's green, we have a confirmed bull movement, and red is a confirmed bear.
The area oscillator is the slope between the fast and slow oscillator lines. Here you can see when the trend is reversing or losing its strength. The orange slope color happens when you have a bearish trend, for instance. The yellow slope happens with a bull trend but a negative momentum. By mixing the colors, you can evaluate if it's strong enough for a full reversal and so on.
This same approach could be handy to spot bottoms and tops.
Wavelet & Fourier Smoothed Volume zone oscillator (W&)FSVZO Indicator id:
USER;e7a774913c1242c3b1354334a8ea0f3c
(only relevant to those that use API requests)
MEANINGFUL DESCRIPTION:
The Volume Zone oscillator breaks up volume activity into positive and negative categories. It is positive when the current closing price is greater than the prior closing price and negative when it's lower than the prior closing price. The resulting curve plots through relative percentage levels that yield a series of buy and sell signals, depending on level and indicator direction.
The Wavelet & Fourier Smoothed Volume Zone Oscillator (W&)FSVZO is a refined version of the Volume Zone Oscillator, enhanced by the implementation of the Discrete Fourier Transform. Its primary function is to streamline price data and diminish market noise, thus offering a clearer and more precise reflection of price trends.
By combining the Wavalet and Fourier aproximation with Ehler's white noise histogram, users gain a comprehensive perspective on volume-related market conditions.
HOW TO USE THE INDICATOR:
The default period is 2 but can be adjusted after backtesting. (I suggest 5 VZO length and NoiceR max length 8 as-well)
The VZO points to a positive trend when it is rising above the 0% level, and a negative trend when it is falling below the 0% level. 0% level can be adjusted in setting by adjusting VzoDifference. Oscillations rising below 0% level or falling above 0% level result in natural trend.
ORIGINALITY & USFULLNESS:
Personal combination of Fourier and Wavalet aproximation of a price which results in less noise Volume Zone Oscillator.
The Wavelet Transform is a powerful mathematical tool for signal analysis, particularly effective in analyzing signals with varying frequency or non-stationary characteristics. It dissects a signal into wavelets, small waves with varying frequency and limited duration, providing a multi-resolution analysis. This approach captures both frequency and location information, making it especially useful for detecting changes or anomalies in complex signals.
The Discrete Fourier Transform (DFT) is a mathematical technique that transforms discrete data from the time domain into its corresponding representation in the frequency domain. This process involves breaking down a signal into its individual frequency components, thereby exposing the amplitude and phase characteristics inherent in each frequency element.
This indicator utilizes the concept of Ehler's Universal Oscillator and displays a histogram, offering critical insights into the prevailing levels of market noise. The Ehler's Universal Oscillator is grounded in a statistical model that captures the erratic and unpredictable nature of market movements. Through the application of this principle, the histogram aids traders in pinpointing times when market volatility is either rising or subsiding.
DETAILED DESCRIPTION:
My detailed description of the indicator and use cases which I find very valuable.
What is oscillator?
Oscillators are chart indicators that can assist a trader in determining overbought or oversold conditions in ranging (non-trending) markets.
What is volume zone oscillator?
Price Zone Oscillator measures if the most recent closing price is above or below the preceding closing price.
Volume Zone Oscillator is Volume multiplied by the 1 or -1 depending on the difference of the preceding 2 close prices and smoothed with Exponential moving Average.
What does this mean?
If the VZO is above 0 and VZO is rising. We have a bullish trend. Most likely.
If the VZO is below 0 and VZO is falling. We have a bearish trend. Most likely.
Rising means that VZO on close is higher than the previous day.
Falling means that VZO on close is lower than the previous day.
What if VZO is falling above 0 line?
It means we have a high probability of a bearish trend.
Thus the indicator returns 0 when falling above 0 (or rising bellow 0) and we combine higher and lower timeframes to gauge the trend.
In the next Image you can see that trend is positive on 4h, neutral on 12h and positive on 1D. That means trend is positive.
I am sorry, the chart is a bit messy. The idea is to use the indicator over more than 1 Timeframe.
What is approximation and smoothing?
They are mathematical concepts for making a discrete set of numbers a
continuous curved line.
Fourier and Wavelet approximation of a close price are taken from aprox library.
Key Features:
You can tailor the indicator to your preferences with adjustable parameters such as VZO length, noise reduction settings, and smoothing length.
Volume Zone Oscillator (VZO) shows market sentiment with the VZO, enhanced with Exponential Moving Average (EMA) smoothing for clearer trend identification.
Noise Reduction leverages Euler's White noise capabilities for effective noise reduction in the VZO, providing a cleaner and more accurate representation of market dynamics.
Choose between the traditional Fast Fourier Transform (FFT), the innovative Double Discrete Fourier Transform (DTF32) and Wavelet soothed Fourier soothed price series to suit your analytical needs.
Image of Wavelet transform with FAST settings, Double Fourier transform with FAST settings. Improved noice reduction with SLOW settings, and standard FSVZO with SLOW settings:
Fast setting are setting by default:
VZO length = 2
NoiceR max Length = 2
Slow settings are:
VZO length = 5 or 7
NoiceR max Length = 8
As you can see fast setting are more volatile. I suggest averaging fast setting on 4h 12h 1d 2d 3d 4d W and M Timeframe to get a clear view on market trend.
What if I want long only when VZO is rising and above 15 not 0?
You have set Setting VzoDifference to 15. That reduces the number of trend changes.
Example of W&FSVZO with VzoDifference 15 than 0:
VZO crossed 0 line but not 15 line and that's why Indicator returns 0 in one case an 1 in another.
What is Smooth length setting?
A way of calculating Bullish or Bearish FSVZO.
If smooth length is 2 the trend is rising if:
rising = VZO > ta.ema(VZO, 2)
Meaning that we check if VZO is higher that exponential average of the last 2 elements.
If smooth length is 1 the trend is rising if:
rising = VZO_ > VZO_
Rising is boolean value, meaning TRUE if rising and FALSE if falling.
Mathematical equations presented in Pinescript:
Fourier of the real (x axis) discrete:
x_0 = array.get(x, 0) + array.get(x, 1) + array.get(x, 2)
x_1 = array.get(x, 0) + array.get(x, 1) * math.cos( -2 * math.pi * _dir / 3 ) - array.get(y, 1) * math.sin( -2 * math.pi * _dir / 3 ) + array.get(x, 2) * math.cos( -4 * math.pi * _dir / 3 ) - array.get(y, 2) * math.sin( -4 * math.pi * _dir / 3 )
x_2 = array.get(x, 0) + array.get(x, 1) * math.cos( -4 * math.pi * _dir / 3 ) - array.get(y, 1) * math.sin( -4 * math.pi * _dir / 3 ) + array.get(x, 2) * math.cos( -8 * math.pi * _dir / 3 ) - array.get(y, 2) * math.sin( -8 * math.pi * _dir / 3 )
Euler's Noice reduction with both close and Discrete Furrier approximated price.
w = (dft1*src - dft1 *src ) / math.sqrt(math.pow(math.abs(src- src ),2) + math.pow(math.abs(dft1 - dft1 ),2))
filt := na(filt ) ? 0 : c1 * (w*dft1 + nz(w *dft1 )) / 2.0 /math.abs(dft1 -dft1 ) + c2 * nz(filt ) - c3 * nz(filt )
Usecase:
First option:
Select the preferred version of DFT and noise reduction settings based on your analysis requirements.
Leverage the script to identify Bullish and Bearish trends, shown with green and red triangle.
Combine Different Timeframes to accurately determine market trend.
Second option:
Pull the data with API sockets to automate your trading journey.
plot(close, title="ClosePrice", display=display.status_line)
plot(open, title="OpenPrice", display=display.status_line)
plot(greencon ? 1 : redcon ? -1 : 0, title="position", display=display.status_line)
Use ClosePrice, OpenPrice and "position" titles to easily read and backtest your strategy utilising more than 1 Time Frame.
Indicator id:
USER;e7a774913c1242c3b1354334a8ea0f3c
(only relevant to those that use API requests)
WAVES II by WestmontWAVES II by Westmont is a next-generation evolution of the original WAVES indicator, designed to offer improved responsiveness , enhanced functionality , and clearer visual clarity . By incorporating advanced momentum filtering and smoother transitions in the VWAP (Volume Weighted Average Price) area , WAVES II provides users with a more dynamic and actionable tool for market analysis.
This indicator introduces new methodologies , visual enhancements , and advanced forecasting capabilities , making it an ideal tool for traders seeking faster insights and sharper reactions to market movements.
Key Features of WAVES II
WaveTrend Calculation
The core of WAVES II is the WaveTrend , which is calculated using the HLC3 (High + Low + Close) price .
The WaveTrend is smoothed through two processes:
EMA (Exponential Moving Average): Applied to the HLC3 to capture faster price movements .
SMA (Simple Moving Average): Applied to the first wave to smooth out shorter-term fluctuations.
VWAP Area Crossover
WAVES II calculates the VWAP area by subtracting the second wave from the first .
The indicator detects when this VWAP area crosses key levels :
Bullish Signal : When the VWAP area crosses upward with positive momentum.
Bearish Signal : When the VWAP area crosses downward with negative momentum.
Momentum Detection
Momentum is calculated by measuring the price change between bars and smoothing this change over a short period .
Positive momentum signals increasing price movement , while negative momentum indicates a slowing or reversing trend .
This momentum detection filters out weaker price movements , highlighting only the significant trend shifts and giving users confirmation of market movements.
Visual Enhancements
Glowing VWAP Lines : The VWAP area is plotted with multiple layers of colors, gradually fading in opacity. This highlights areas of strong price movement and reversals.
Fading Gradient Effect : The VWAP line is filled with a gradient that adjusts its opacity based on the distance from the center line, visually indicating market strength and reinforcing key levels.
VWAP Projection
WAVES II projects the VWAP area forward , based on its recent slope, to offer a forward-looking view of potential price movements. This projection helps traders anticipate short-term market direction and react faster to potential trend changes.
Key Differences Between WAVES and WAVES II
Smoothing and WaveTrend Calculation Adjustments
WAVES : Uses fixed smoothing parameters for WaveTrend calculation, resulting in a relatively stable and slower response to market changes.
The first smoothing (wavetrend1) uses an EMA with a fixed length.
The second smoothing (wavetrend2) uses a simple moving average (SMA) with a fixed length.
WAVES II : Introduces more responsive settings like smoothing_length, deviation_length, first_wave_length, and second_wave_length for faster reaction times to market movements. These adjustments make WAVES II ideal for traders who need quicker feedback and sharper market transitions.
Momentum Detection
WAVES : Does not incorporate momentum-based logic, relying only on the VWAP area and its relationship to historical values.
WAVES II : Adds momentum detection, which calculates the difference between current and previous price movements, smoothed over a defined period. This helps identify bullish and bearish trends more accurately, providing additional confirmation and improving signal reliability.
VWAP Area Cross Detection
WAVES : Detects VWAP area crossovers based on recent high and low values.
WAVES II : Refines cross detection by incorporating a momentum filter. A Bullish cross is confirmed when the VWAP area crosses upwards with positive momentum, while a Bearish cross is confirmed when it crosses down with negative momentum. This dual-condition approach enhances signal accuracy and offers better context for trade decisions.
Plotting and Visualization
WAVES : Plots the VWAP line, center line, and uses color transitions for VWAP area fills to represent market conditions.
WAVES II : Introduces a multi-layer glow effect for the VWAP line, with varying opacities, creating a visually dynamic experience. The gradient glow effect provides a clearer representation of market strength and proximity to the center line, making it easier to spot market shifts and interpret momentum at a glance.
Why WAVES II Was Created as a Separate Indicator
New Features and Functionality :
WAVES II introduces key features like momentum detection and VWAP projections , which significantly alter how the indicator operates. These are not minor updates but represent a shift in how the tool functions , providing faster and more detailed insights for traders. WAVES II gives traders sharper market feedback with improved responsiveness to price changes.
Targeted for Different Trading Styles :
WAVES II is aimed at traders who need faster reactions and more dynamic , reliable signals . While WAVES remains a solid choice for those who prefer a more stable, traditional approach, WAVES II caters to traders who require quicker feedback and more granular market insights. By offering both tools, traders can select the one that aligns with their style, whether that’s for faster decision-making or a more conservative approach .
Visual Clarity :
The enhanced visual effects in WAVES II, such as the multi-layer glow and gradient VWAP transitions , offer greater clarity and a more intuitive charting experience . These visual improvements allow traders to quickly interpret changes in the market, making WAVES II a more effective tool for detailed and actionable market analysis.
Clear Value for Traders :
WAVES II brings significant enhancements over the original WAVES, including more advanced features , faster momentum detection , and better visual representation of market dynamics . This makes WAVES II a more powerful tool for traders seeking dynamic market insights . It is an ideal choice for those who need quicker and more reliable feedback than traditional tools can provide.
How to Use WAVES II
Users can watch for WaveTrend crossovers (when the line crosses 0) and VWAP area dots (bullish or bearish) to spot potential buy or sell signals.
Users can use momentum to confirm signals, helping you identify whether the market is gaining or losing strength.
WAVES II offers advanced features , faster responsiveness , and clearer visuals compared to the original WAVES indicator. By introducing momentum detection and refining the handling of VWAP crossovers , WAVES II enhances the overall trading experience, providing more dynamic, actionable insights for traders. While WAVES remains an excellent tool for those who prefer a simpler, more stable approach, WAVES II is designed for traders who seek a more detailed , faster-reacting tool for market analysis.
Waves + ZOOnes TimeFrameTrend visualization tool in Wave theory. Unlike Elliot waves, it has a constant pattern length. The formation consists of impulse and 3 corrections.
The script analyzes candle relationships in the currect trend, trend will be continueted until candle are not breaking trend rules.
Currently it supports 2 rulesets/wave variants:
Low - More sensitive (trend will change more ofter).
Meddium - Less sensitive ( trend will change less ofter).
Simultaneous observation of both types allows to detect consolidation before the overlapping movement and increase the probability of indicating the moment of the movement occurrence.
Script with limited access, contact author to get authorization
Features:
- Allow to pick timeframe used for visualization.
- Show Low and Middle type/order waves
- Show support/resistance areas for the Low and Middle type/order waves.
- Types for waves and support areas are picked independently. Script can show Middle Waves with Low Waves support areas.
- Shadow mode that show second wave moved to the wave max/min bars.
- Show historical support/resistance areas that are not valid any more.
Script settings:
Timeframe - Time frame used for visualization. It should be less precise or equal as the chart one. e.g. it can show 1D visualization over 1H chart.
TREND VISUALIZATION
Type - Kind of waves should be drawn.
H(idden) - Do not draw any waves.
L(low) - Draw low waves
M(edium) - Draw medium waves
B(oth) - Draw both low and medium waves
Confirmation - Showing confirmation lavel over current bar If wave direction will not change on this bar
Shadow - Showing second reprezentation of the trend with drawing with the use of minimal and maximal values. It's usefull to determine the delay between the peak and a wave change signal.
Line width - Width of drawn line. Separate setting for Low and Medium trend type.
Color - Color of drawn line. Separate settings for Low and Medium trend type.
Change trend signals - Showing places where alerts are generated (debug feature).
u - trend change to UP
d - trend change to DOWN
U - trand change to UP from the zone
D - trand change to down from the zone
IMPULS VISUALIZATION
Impuls - Picking graphical reprezentation of first bullish arrow.
H - Hidden
F - First
S - Second
A - Auto
Color - Color of the first bullish arrow.
Draw arrow - Turning on/off drawing arrow at the end of the impuls wave.
ZOONES
ZOOnes type - Determines what type of trend is used to designate areas of support.
D - Disabled
L - Low
M - Medium
Only nearest zones - Drawing only one nearest zone above and below current price.
Only nearest potencial zones - Drawing only one nearest potencial zone above and below current price.
Resistance - Set of colors (resistance zone background, resistance zone border, potencial resistance zone background, potencial resistance zone border) used for drawing resistance zones and potencial resistance zones.
Support - Set of colors (support zone background, support zone border, potencial support zone background, potencial support zone border) used for drawing support zones and potencial support zones
Show history - Showing zones in historical data
Show fake potencials - Showing historical potencial zonnes that were rejected (debug purpose).
Double count - Treated support and resistance zoones as one zoone
Zone precision - Determines how many bars are included in area calculation.
Alerts:
Low trend DOWN - When Low trend type is changing from UP to DOWN
Low trend UP - When Low trend type is changing from DOWN to UP
middle trend DOWN - When Middle trend type is changing from UP to DOWN
middle trend UP - When Middle trend type is changing from DOWN to UP
middle trend from ZOOnes DOWN - When Middle trend type is changing from UP to DOWN after hiting resistance area .
middle trend from ZOOnes UP = When Middle trend type is changing from DOWN to UP after hiting support area .
Troubleshooting:
In case of any problems, send error details to the author of the script.
Waves TimeframeCustom timeframe trend wisualization tool in Wave theory. In script setting you can specify based on which timeframe (1D by default) data visaulizaction will be made. It's usefull in short time/day traiding where on the small interval you would like to see more global/bigger interval situation. If it's you case, please check "Waves Pro Trends", that gives posibility to easie check up to 3 different intervals.
Script settings:
• Timeframe – The interval based on which waves are calculated. Script is working correct only for intervals that are equal or more precise than picked here value. In case of picking lower interval than current, error message will appear.
• Type – Type of waves that are drawn:
o H(ide) – Not drawing any waves
o L(ow) – Drawing low level waves
o M(edium) – Drawing mid level waves
o B(oth) – Drawing both low and mid level waves
• Alfred – Showing extra informations about waves in the context of current candle.
• Wave – How script should visualize wave:
o H(ide) - Not drawing waves.
o S(olid line) – Drawng as solid line
o A (Solid line with Arrow) – Drawing as solid line with arrow
o D(otted line) – Drawing as dotted line.
• Shadow – How script should visualise wave shadows. Waves shadow it's a drawing mode in which wave is draw based on it's extrems instead of moment od detection.
o H(ide) - Do not draw any shadows
o S(olid line) – Draw with a solid line
o A (Solid line with Arrow) – Draw as solid line with arrorw
o D(otted line) – Draw as dotted line
• Low line – Color and line width for low level waves
• Medium line – Color and line width for mid level waves
• Impuls – Color and picking impuls mode:
o H(idden) – Do not show impuls
o F(irst) – Impuls is draw starting from the first wave up
o S(econd) – Impuls jis draw starting from the second wave up
o Auto – The algorithm performs an automatic analysis and selects which of the impulse drawing methods presents impulses with greater price dynamics.
Wave Modulation Demo█ OVERVIEW
This script demonstrates Stacked Wave Modulation by visualizing four interconnected waves. Wave 1 is the base wave, influencing Wave 2's frequency, which in turn modulates Wave 3's amplitude, and finally, Wave 3 modulates Wave 4's phase. Explore the fascinating effects of wave modulation by adjusting the inputs for each wave and their modulation scales.
══════════════════════════════════════════════════
█ CONCEPTS
This script visualizes a cascade of wave modulations:
1 — Base Wave (Wave 1): This is the foundational wave. Its parameters (type, frequency, amplitude, phase, vertical shift) are directly controlled and serve as the basis for subsequent modulations.
2 — Frequency Modulation (Wave 2): Wave 2's frequency is modulated by Wave 1 . As Wave 1 oscillates, it dynamically changes the frequency of Wave 2 , creating interesting frequency variations. The Frequency Mod Scale input controls the intensity of this modulation.
3 — Amplitude Modulation (Wave 3): Building upon the cascade, Wave 3 's amplitude is modulated by Wave 2 . The peaks and troughs of Wave 2 influence the amplitude of Wave 3 , resulting in amplitude variations. The Amplitude Mod Scale input adjusts the strength of this amplitude modulation.
4 — Phase Modulation (Wave 4): Finally, Wave 4 's phase is modulated by Wave 3 . Wave 3 's oscillations shift the phase of Wave 4 , leading to phase-related distortions and dynamic wave patterns. The Phase Mod Scale input determines the extent of phase modulation.
5 — Stacked Wave (Average): The script calculates and plots the average of all four waves, providing a composite view of the combined modulation effects.
══════════════════════════════════════════════════
█ FEATURES
The script is organized into input groups for each wave, allowing for detailed customization:
1 — Wave 1: Base Wave
• Type : Select the waveform type for Wave 1 (Sine, Cosine, Triangle, Square).
• Frequency (Hz) : Sets the base frequency of Wave 1 in Hertz (cycles per second).
• Amplitude : Controls the vertical amplitude or height of Wave 1.
• Phase Shift (deg) : Adjusts the phase shift of Wave 1 in degrees, shifting the wave horizontally.
• Vertical Shift : Sets the vertical position of Wave 1 on the chart.
2 — Wave 2: Frequency Modulation
• Type : Select the waveform type for Wave 2.
• Base Frequency (Hz) : Sets the base frequency of Wave 2, before modulation.
• Amplitude : Controls the amplitude of Wave 2.
• Phase Shift (deg) : Adjusts the phase shift of Wave 2.
• Vertical Shift : Sets the vertical position of Wave 2.
• Frequency Mod Scale : Determines the degree to which Wave 1 modulates Wave 2's frequency. Higher values increase the modulation effect.
3 — Wave 3: Amplitude Modulation
• Type : Select the waveform type for Wave 3.
• Base Frequency (Hz) : Sets the base frequency of Wave 3.
• Amplitude : Controls the base amplitude of Wave 3, before modulation.
• Phase Shift (deg) : Adjusts the phase shift of Wave 3.
• Vertical Shift : Sets the vertical position of Wave 3.
• Amplitude Mod Scale : Determines the degree to which Wave 2 modulates Wave 3's amplitude. Higher values increase the modulation effect.
4 — Wave 4: Phase Modulation
• Type : Select the waveform type for Wave 4.
• Base Frequency (Hz) : Sets the base frequency of Wave 4.
• Amplitude : Controls the amplitude of Wave 4.
• Phase Shift (deg) : Sets the base phase shift of Wave 4, before modulation.
• Vertical Shift : Sets the vertical position of Wave 4.
• Phase Mod Scale : Determines the degree to which Wave 3 modulates Wave 4's phase. Higher values increase the modulation effect.
══════════════════════════════════════════════════
█ HOW TO USE
1. Add the "Stacked Wave Modulation Demo" script to your TradingView chart.
2. Explore the input settings. Each wave has its own group of customizable parameters.
3. Adjust the Type , Frequency , Amplitude , Phase Shift , and Vertical Shift for each wave to define their base characteristics.
4. Experiment with the modulation scales ( Frequency Mod Scale , Amplitude Mod Scale , Phase Mod Scale ) to control the intensity of the modulation effects between the waves.
5. Observe how the waves interact and how the modulations shape their forms and the final stacked wave (average).
══════════════════════════════════════════════════
█ NOTES
* This script utilizes the `waves` and `hsvColor` libraries. Look for other scripts on my profile.
* The frequencies are set in Hertz (cycles per second), which relate to bars on the chart. A frequency of 0.5 Hz means 0.5 cycles per bar, or 1 cycle every 2 bars.
* Adjusting the modulation scales allows you to fine-tune the visual impact of the modulation effects.
* The color of each wave plot is dynamically generated based on its value using the HSV color model for visual distinction.
* Feel free to modify and experiment with the script to create different modulation schemes or stacking methods.
Let me know if you have any other questions or would like further refinements!
WAVES by WestmontWAVES by Westmont is a trading indicator that combines WaveTrend analysis with VWAP dynamics to provide traders with insights into market momentum , volatility , and trends . Users can rely on this tool to help identify market shifts , potential trend reversals , and momentum changes . The script integrates custom logic with standard public domain functions to enhance signal accuracy and market analysis.
WAVES builds on familiar tools, such as the Exponential Moving Average ( EMA ), Simple Moving Average ( SMA ), and basic fractal analysis , to create a comprehensive view of price behavior. Users can interpret this indicator to gain a clearer picture of market conditions, utilizing both WaveTrend’s trend-following signals and VWAP’s volume-weighted price reference.
How the Components Work Together:
Divergence Functions
WAVES uses the bottom_fractal and bot_fractal functions to detect local highs and lows, helping identify potential reversal points in the market. These functions work alongside the WaveTrend and VWAP analysis to confirm or challenge potential turning points.
WaveTrend Calculation
ESA (Exponential Smoothing Average): Provides a smoothed base for price direction.
DE (Deviation): Measures volatility, indicating how much price is fluctuating.
CI (Commodity Channel Index): Tracks cycles between price and the smoothed ESA, identifying potential price shifts.
These values are smoothed using EMA and SMA for greater stability. Users can rely on these smoothed signals to reduce noise and improve trend clarity.
VWAP Area Calculation
Users can observe the VWAP area , calculated from the difference between two WaveTrend lines ( wavetrend1 and wavetrend2 ), to understand market equilibrium in relation to volume-weighted price action. The VWAP area provides a clearer picture of price movement relative to market volume.
Signal Dots and Visualization
Bullish Signals: Users can look for blue dots when the VWAP area crosses upwards , indicating that price is above the VWAP and suggesting upward momentum .
Bearish Signals: Users can look for purple dots when the VWAP area crosses downwards , indicating that price is below the VWAP and suggesting downward momentum .
Smooth VWAP Gradient Fill
Users can visually track momentum using the smooth gradient fill between the VWAP plot and the center line . The fill color changes from blue ( positive momentum ) to purple ( negative momentum ), and turquoise ( neutral ), helping traders quickly assess market sentiment and trend strength.
How to Use WAVES by Westmont :
Bullish Momentum : Users can look for blue dots when the VWAP area crosses upward . This suggests the market is in an uptrend as price moves above the VWAP , potentially indicating upward price action .
Bearish Momentum : Users can look for purple dots when the VWAP area crosses downward . This suggests the market is in a downtrend as price moves below the VWAP , indicating potential for downward price action .
Neutral Market Conditions : Users can observe when the VWAP area remains near the center line ( turquoise ), indicating market consolidation or indecision .
Code Usage :
The indicator uses TradingView’s built-in functions (EMA, SMA, and fractals), which are well-optimized for standard technical analysis. These functions serve as a foundation for the indicator’s calculations. Users can trust that the public domain functions ensure efficient performance, while the added customizations enhance signal quality by integrating WaveTrend and VWAP dynamics.
MATHR3E WAVES█ OVERVIEW
MATHR3E WAVES automatically draws Elliott Waves on your charts with their potential associated targets.
█ CONCEPTS
Disclaimer
MATHR3E RETRACEMENTS indicator is intended for advanced traders and may fit your profile, whether you are a day trader or a long-term investor.
It was originally developed by a renowned market analyst and documented in numerous books. Among them is the author Jason Perl.
It is recommended to have read the trading techniques mentioned in the books covering this indicator beforehand.
How to use:
MATHR3E WAVES indicator can provide a roadmap of market direction that you can use to determine price targets and isolate exhaustion points from potential trends in conjunction with other indicators by the same author.
Be aware the indicator's approach is derived from the Elliott wave theory and may slightly diverge from the cardinal rules of Elliott waves.
Principle of the Elliott Wave Theory
Movement in the direction of the trend is unfolding in 5 waves (called motive wave) while any correction against the trend is in three waves (called corrective wave). The movement in the direction of the trend is labeled as 1, 2, 3, 4, and 5. The three-wave correction is labeled as a, b, and c. These patterns can be seen in the long term as well as short term charts.
Wave 1:
Wave one is rarely obvious at its inception. When the first wave of a new bull market begins, the fundamental news is almost universally negative. The previous trend is considered still strongly in force. Fundamental analysts continue to revise their earnings estimates lower; the economy probably does not look strong. Sentiment surveys are decidedly bearish, put options are in vogue, and implied volatility in the options market is high. Volume might increase a bit as prices rise, but not by enough to alert many technical analysts.
Wave 2:
Wave two corrects wave one, but can never extend beyond the starting point of wave one. Typically, the news is still bad. As prices retest the prior low, bearish sentiment quickly builds, and "the crowd" haughtily reminds all that the bear market is still deeply ensconced. Still, some positive signs appear for those who are looking: volume should be lower during wave two than during wave one, prices usually do not retrace more than 61.8% of the wave one gains, and prices should fall in a three-wave pattern.
Wave 3:
Wave three is usually the largest and most powerful wave in a trend. The news is now positive and fundamental analysts start to raise earnings estimates. Prices rise quickly, corrections are short-lived and shallow. Anyone looking to "get in on a pullback" will likely miss the boat. As wave three starts, the news is probably still bearish, and most market players remain negative; but by wave three's midpoint, "the crowd" will often join the new bullish trend. Wave three often extends wave one by a ratio of 1.618:1.
Wave 4:
Wave four is typically clearly corrective. Prices may meander sideways for an extended period, and wave four typically retraces less than 38.2% of wave three. Volume is well below that of wave three. This is a good place to buy a pullback if you understand the potential ahead for wave 5. Still, fourth waves are often frustrating because of their lack of progress in the larger trend.
Wave 5:
Wave five is the final leg in the direction of the dominant trend. The news is almost universally positive and everyone is bullish. Unfortunately, this is when many average investors finally buy-in, right before the top. Volume is often lower in wave five than in wave three, and many momentum indicators start to show divergences (prices reach a new high but the indicators do not reach a new peak).
Wave A:
Corrections are typically harder to identify than impulse moves. In wave A of a bear market, the fundamental news is usually still positive. Most analysts see the drop as a correction in a still-active bull market. Some technical indicators that accompany wave A include increased volume, rising implied volatility in the options markets, and possibly a turn higher in open interest in related futures markets.
Wave B:
Prices reverse higher, which many see as a resumption of the now long-gone bull market. Those familiar with classical technical analysis may see the peak as the right shoulder of a head and shoulders reversal pattern. The volume during wave B should be lower than in wave A. By this point, fundamentals are probably no longer improving, but they most likely have not yet turned negative.
Wave C:
Prices move impulsively lower in five waves. Volume picks up, and by the third leg of wave C, almost everyone realizes that a bear market is firmly entrenched. Wave C is typically at least as large as wave A and often extends to 1.618 times wave A or beyond.
█ FEATURES & BENEFITS
Versatile
The indicator works on relative price action, so you can apply it without having to change any of the default settings.
Targets:
Customize the high and low wave targets to identify possible price target areas.
Adjustable Rules:
• Shift Wave 2: if Wave 4 closes below the low close of Wave 2.
• Shift Wave 4: if Wave A closes below the low close of Wave 4.
• Allow Wave 4 to overlap Wave 1
• Allow truncated Wave 5
• Allow truncated Wave C
Price ratio:
Force waves 2/4 to retrace to a specific Fibonacci level.
Force Waves 3/5 size to a specific Fibonacci level.
Time Ratio:
Force selected waves to last a required number of bars.
Alerts:
Set up your alerts and receive notifications on wave completion.
Alerts format can be adapted to be received on Discord servers.
WaveTrend 3D█ OVERVIEW
WaveTrend 3D (WT3D) is a novel implementation of the famous WaveTrend (WT) indicator and has been completely redesigned from the ground up to address some of the inherent shortcomings associated with the traditional WT algorithm.
█ BACKGROUND
The WaveTrend (WT) indicator has become a widely popular tool for traders in recent years. WT was first ported to PineScript in 2014 by the user @LazyBear, and since then, it has ascended to become one of the Top 5 most popular scripts on TradingView.
The WT algorithm appears to have origins in a lesser-known proprietary algorithm called Trading Channel Index (TCI), created by AIQ Systems in 1986 as an integral part of their commercial software suite, TradingExpert Pro. The software’s reference manual states that “TCI identifies changes in price direction” and is “an adaptation of Donald R. Lambert’s Commodity Channel Index (CCI)”, which was introduced to the world six years earlier in 1980. Interestingly, a vestige of this early beginning can still be seen in the source code of LazyBear’s script, where the final EMA calculation is stored in an intermediate variable called “tci” in the code.
█ IMPLEMENTATION DETAILS
WaveTrend 3D is an alternative implementation of WaveTrend that directly addresses some of the known shortcomings of the indicator, including its unbounded extremes, susceptibility to whipsaw, and lack of insight into other timeframes.
In the canonical WT approach, an exponential moving average (EMA) for a given lookback window is used to assess the variability between price and two other EMAs relative to a second lookback window. Since the difference between the average price and its associated EMA is essentially unbounded, an arbitrary scaling factor of 0.015 is typically applied as a crude form of rescaling but still fails to capture 20-30% of values between the range of -100 to 100. Additionally, the trigger signal for the final EMA (i.e., TCI) crossover-based oscillator is a four-bar simple moving average (SMA), which further contributes to the net lag accumulated by the consecutive EMA calculations in the previous steps.
The core idea behind WT3D is to replace the EMA-based crossover system with modern Digital Signal Processing techniques. By assuming that price action adheres approximately to a Gaussian distribution, it is possible to sidestep the scaling nightmare associated with unbounded price differentials of the original WaveTrend method by focusing instead on the alteration of the underlying Probability Distribution Function (PDF) of the input series. Furthermore, using a signal processing filter such as a Butterworth Filter, we can eliminate the need for consecutive exponential moving averages along with the associated lag they bring.
Ideally, it is convenient to have the resulting probability distribution oscillate between the values of -1 and 1, with the zero line serving as a median. With this objective in mind, it is possible to borrow a common technique from the field of Machine Learning that uses a sigmoid-like activation function to transform our data set of interest. One such function is the hyperbolic tangent function (tanh), which is often used as an activation function in the hidden layers of neural networks due to its unique property of ensuring the values stay between -1 and 1. By taking the first-order derivative of our input series and normalizing it using the quadratic mean, the tanh function performs a high-quality redistribution of the input signal into the desired range of -1 to 1. Finally, using a dual-pole filter such as the Butterworth Filter popularized by John Ehlers, excessive market noise can be filtered out, leaving behind a crisp moving average with minimal lag.
Furthermore, WT3D expands upon the original functionality of WT by providing:
First-class support for multi-timeframe (MTF) analysis
Kernel-based regression for trend reversal confirmation
Various options for signal smoothing and transformation
A unique mode for visualizing an input series as a symmetrical, three-dimensional waveform useful for pattern identification and cycle-related analysis
█ SETTINGS
This is a summary of the settings used in the script listed in roughly the order in which they appear. By default, all default colors are from Google's TensorFlow framework and are considered to be colorblind safe.
Source: The input series. Usually, it is the close or average price, but it can be any series.
Use Mirror: Whether to display a mirror image of the source series; for visualizing the series as a 3D waveform similar to a soundwave.
Use EMA: Whether to use an exponential moving average of the input series.
EMA Length: The length of the exponential moving average.
Use COG: Whether to use the center of gravity of the input series.
COG Length: The length of the center of gravity.
Speed to Emphasize: The target speed to emphasize.
Width: The width of the emphasized line.
Display Kernel Moving Average: Whether to display the kernel moving average of the signal. Like PCA, an unsupervised Machine Learning technique whereby neighboring vectors are projected onto the Principal Component.
Display Kernel Signal: Whether to display the kernel estimator for the emphasized line. Like the Kernel MA, it can show underlying shifts in bias within a more significant trend by the colors reflected on the ribbon itself.
Show Oscillator Lines: Whether to show the oscillator lines.
Offset: The offset of the emphasized oscillator plots.
Fast Length: The length scale factor for the fast oscillator.
Fast Smoothing: The smoothing scale factor for the fast oscillator.
Normal Length: The length scale factor for the normal oscillator.
Normal Smoothing: The smoothing scale factor for the normal frequency.
Slow Length: The length scale factor for the slow oscillator.
Slow Smoothing: The smoothing scale factor for the slow frequency.
Divergence Threshold: The number of bars for the divergence to be considered significant.
Trigger Wave Percent Size: How big the current wave should be relative to the previous wave.
Background Area Transparency Factor: Transparency factor for the background area.
Foreground Area Transparency Factor: Transparency factor for the foreground area.
Background Line Transparency Factor: Transparency factor for the background line.
Foreground Line Transparency Factor: Transparency factor for the foreground line.
Custom Transparency: Transparency of the custom colors.
Total Gradient Steps: The maximum amount of steps supported for a gradient calculation is 256.
Fast Bullish Color: The color of the fast bullish line.
Normal Bullish Color: The color of the normal bullish line.
Slow Bullish Color: The color of the slow bullish line.
Fast Bearish Color: The color of the fast bearish line.
Normal Bearish Color: The color of the normal bearish line.
Slow Bearish Color: The color of the slow bearish line.
Bullish Divergence Signals: The color of the bullish divergence signals.
Bearish Divergence Signals: The color of the bearish divergence signals.
█ ACKNOWLEDGEMENTS
@LazyBear - For authoring the original WaveTrend port on TradingView
@PineCoders - For the beautiful color gradient framework used in this indicator
@veryfid - For the inspiration of using mirrored signals for cycle analysis and using multiple lookback windows as proxies for other timeframes