Volume Percentage//@version=5
indicator("Volume Percentage", overlay=false)
// Input for the length of the period to calculate average volume
length = input.int(20, title="Average Volume Length", minval=1)
// Calculate the average volume over the specified length
avg_volume = ta.sma(volume, length)
// Calculate the volume percentage
volume_percent = (volume / avg_volume) * 100
// Plot the volume percentage
plot(volume_percent, title="Volume %", color=color.blue, linewidth=2)
// Optional: Add a horizontal line for 100% (baseline)
hline(100, title="100% Baseline", color=color.gray, linestyle=hline.style_dotted)
// Display the volume percentage value on the chart
label_text = "Vol %: " + str.tostring(volume_percent, "#.##") + "%"
label.new(bar_index, volume_percent, label_text, style=label.style_label_down, color=color.blue, textcolor=color.white)
Cycles
Alden Trading SystemĐây là một chỉ báo kết hợp RSI,để xác định tín hiệu giao dịch chính xác hơn nobitadinhquoctuan
Alden Trading SystemĐây là một chỉ báo kết hợp RSI, EMA, WMA, SMC, FVG và CVD để xác định tín hiệu giao dịch chính xác hơn - nobitadinhquoctuan
3 EMAs, 5 SMA, FiboISRS📈 Enhanced Indicator with 3 EMAs, 5 SMAs, and Dynamic Fibonacci Levels 🔥
Description:
This advanced indicator combines Exponential Moving Averages (EMAs), Simple Moving Averages (SMAs), and Dynamic Fibonacci Levels to provide a clear view of trends and potential price reaction zones.
🔹 What is it for?
✅ Trend Identification:
EMAs react faster to price changes, helping to spot trend shifts.
SMAs offer a more stable view of the overall market trend.
Dynamic Fibonacci Levels act as dynamic support and resistance based on moving averages.
✅ Key Trading Zones:
EMA & SMA Crossovers: Potential entry or exit points.
Dynamic Fibonacci Levels: Help identify areas where price may bounce or consolidate.
🔹 How to Use It?
🔹 Moving Averages (SMAs & EMAs):
EMA 4, 9, and 18: Useful for detecting short-term trends and scalping.
SMA 8, 20, 50, 200, and 800: Key references for medium- and long-term trends.
🔹 Dynamic Fibonacci:
Based on the selected moving average, adjusting support/resistance levels dynamically.
Helps detect high-probability reversal or continuation zones.
🔹 Customization:
✅ Adjust the length of SMAs and EMAs according to your strategy.
✅ Change the moving average type for Fibonacci levels (SMA, EMA, or WMA).
✅ Enable or disable lines as needed.
📊 Currently, we are analyzing BTCUSDT on the 1-hour timeframe.
🚀 Add it to your chart and try it out now!
If you like this indicator, give it a 👍 and share it with the community. Happy trading! 💰🔥
RSI + EMA + WMA + SMC + FVG + CVDĐây là một chỉ báo kết hợp RSI, EMA, WMA, SMC, FVG và CVD để xác định tín hiệu giao dịch chính xác hơn. nbt
RSI + EMA + WMA + SMC + FVG + CVDĐây là một chỉ báo kết hợp RSI, EMA, WMA, SMC, FVG và CVD để xác định tín hiệu giao dịch chính xác hơn
RSI + EMA + WMA + SMC + FVG + CVDĐây là một chỉ báo kết hợp RSI, EMA, WMA, SMC, FVG và CVD để xác định tín hiệu giao dịch chính xác hơn
RSI + EMA + WMA + SMC + FVG + CVD(dinhquoctuan)Đây là một chỉ báo kết hợp RSI, EMA, WMA, SMC, FVG và CVD để xác định tín hiệu giao dịch chính xác hơn
Electronic Trading Hours Session/CandlesThis indicator visually distinguishes the electronic trading session, spanning from the prior day's close (e.g., 5:00 PM EST) through the overnight period until the next day's opening bell (e.g., 9:30 AM EST).
It can be customized to highlight this period with a shaded zone or colored candles depending on the trader’s preference.
The overnight levels that create the opening range gap often act as critical zones of liquidity.
The indicator provides a clear visual cue of potential price magnets that smart money (institutional traders) may target during the opening bell session to trigger liquidity sweeps.
Gann & Fibonacci Analysis for MSTRYes! Below is a step-by-step guide to performing Gann Analysis on MSTR in TradingView for the last year.
Step 1: Set Up the Chart
Open TradingView and search for MSTR (MicroStrategy).
Select the 1-day (D) timeframe to analyze the past year.
Set your chart to logarithmic scale (⚙ Settings → Scale → Log).
Enable grid lines for alignment (⚙ Settings → Appearance → Grid Lines).
Step 2: Identify Key Highs and Lows (Last Year)
Find the 52-week high and 52-week low for MSTR.
As of now:
52-Week High: ~$999 (March 2024).
52-Week Low: ~$280 (October 2023).
Step 3: Plot Gann Angles
Using TradingView's Gann Fan Tool:
Select "Gann Fan" (Press / and type “Gann Fan” to find it).
Start at the 52-week low (~$280, October 2023) and drag upwards.
Adjust the angles to match key levels:
1x1 (45°) → Main trendline
2x1 (26.5°) → Strong uptrend
4x1 (15°) → Weak trendline
1x2 (63.75°) → Strong resistance
Repeat the process from the 52-week high (~$999, March 2024) downward to see bearish angles.
Step 4: Apply Fibonacci & Gann Retracement Levels
Using Fibonacci Retracement:
Select "Fibonacci Retracement" tool.
Draw from 52-week high ($999) to 52-week low ($280).
Enable key Fibonacci levels:
23.6% ($816)
38.2% ($678)
50% ($640)
61.8% ($550)
78.6% ($430)
Watch for price reactions near these levels.
Using Gann Retracement Levels:
Select "Gann Box" in TradingView.
Draw from 52-week high ($999) to low ($280).
Enable key Gann retracement levels:
12.5% ($912)
25% ($850)
37.5% ($768)
50% ($640)
62.5% ($550)
75% ($480)
87.5% ($350)
Identify confluences with Gann angles and Fibonacci levels.
Step 5: Identify Significant Dates & Time Cycles
Use "Date Range" Tool in TradingView.
Mark major turning points:
High → Low: ~180 days (Half-year cycle).
Low → High: ~90 days (Quarter cycle).
Use Square-Outs (Time = Price method):
Example: If MSTR hit $500, check 500 days from key events.
Mark key anniversaries of past highs/lows for possible reversals.
Step 6: Analyze and Trade Execution
✅ If MSTR is at a Gann angle + Fibonacci level + key date → Expect a reaction.
✅ Use RSI, MACD, and Volume for extra confirmation.
✅ Set Stop-Loss at nearest Gann support/resistance.
Pere's Weekly Analysis V3This indicator is very simple; it is basically composed of a series of thin vertical lines and thicker ones:
- The thin lines symbolize the opening of the London session, which marks the beginning of a new day in the forex market.
- The thick lines, due to their prominence, represent the end of a week with the closing of the Asian session.
The combination of these two lines allows for a deeper understanding of what happens each day, enabling market analysis in lower timeframes, such as a 5-minute or 10-minute chart, without losing sight of the daily opening and closing references.
This indicator can be used to identify previous days' highs and lows, mark them as potential liquidity zones, and look for price reactions to these areas during the current day. Traders can combine this indicator with their personal strategies, simplifying chart analysis.
It is essential to have a solid understanding of market behavior and always trade with optimal risk management.
ESPAÑOL:
Este indicador es muy sencillo, básicamente está compuesto por una serie de líneas verticales delgadas y otras más gruesas:
- Las delgadas simbolizan la apertura de la sesión de Londres, es decir el inicio de un día nuevo en el mercado del forex.
- Las gruesas por su saldo simbolizan el final de una semana con el cierre de la sesión asiática.
Las combinación de estas 2 líneas nos permite tener una comprensión más profunda de lo que ocurre en cada día, pudiendo analizar el mercado en temporalidades más bajas, como por ejemplo, una temporalidad de 5 minutos o de 10 minutos, Pero sin perder las referencias del inicio y final de cada día.
Este indicador se puede utilizar para identificar máximos y mínimos de los días anteriores, marcarlos como potenciales zonas de liquidez, y buscar reacciones a dichas zonas durante el día actual. Los trader puede combinar este indicar con sus estrategias personales simplificando la lectura de los gráficos.
Es importante tener una buena comprensión del comportamiento de los mercado y siempre operar con una óptima gestión del riesgo.
Trend CounterTREND COUNTER is a Trend Exhaustion Indicator that tracks the persistence of price movements over a series of bars, helping traders identify potential trend exhaustion and reversals.
It compares each bar's value (typically the closing price) to a previous bar from a set lookback period (the lookback bar), counting consecutive bullish or bearish price movements.
The count resets when the trend reverses, signaling a potential shift in momentum.
• Price movement is considered bullish if the current price exceeds the lookback bar's price, incrementing the bullish count with each consecutive occurrence.
• Price movement is considered bearish if the current price is lower than the lookback bar's price, incrementing the bearish count with each consecutive occurrence.
• The count resets when the trend reverses.
• The user sets the threshold for sequence resets by defining the maximum number of consecutive occurrences.
• The count may reset before a trend reversal if it surpasses the user-defined threshold.
This type of indicator is useful for detecting trends, trend exhaustion, overbought or oversold conditions, and potential reversal points, helping traders anticipate market turns.
• Sequential occurrences gauge trend strength.
A long sequence of bullish bars suggests strong upward momentum, while consecutive bearish bars indicate sustained downward pressure.
This helps traders assess whether a trend is likely to continue or weaken.
• Identify thresholds for potential reversal points.
Counting consecutive bullish or bearish price movements can highlight overextended trends.
A trend reaching a predefined threshold may signal an upcoming reversal or momentum slowdown.
• Identify potential entry or exit points.
If trends are showing signs of exhaustion after a certain number of consecutive price movements, traders may use this for timing adjustments to their position.
• Assess risk.
Understanding trend strength helps traders better adjust stop-loss or take-profit levels.
Sequential counting provides a structured approach to trade management.
Visualization & Customization
The Sequential Momentum indicator visually represents consecutive bullish or bearish price movements to define trends and highlight key shifts.
• The bullish/bearish bar sequences are based on user-defined thresholds.
• Customizable bar coloring, labels, and plot shapes enhanced trend visualization.
• Dynamic color transitions make trend shifts easily identifiable.
Tracking consecutive bullish or bearish price movements can be effective when combined with other indicators or applied in specific market conditions (e.g., trending or volatile markets).
However, its reliability depends on market conditions and the trader’s interpretation.
This indicator is best used as a complementary tool rather than a standalone signal, helping traders visualize and quantify market momentum within a broader strategy.
[GYTS] Filters ToolkitFilters Toolkit indicator
🌸 Part of GoemonYae Trading System (GYTS) 🌸
🌸 --------- 1. INTRODUCTION --------- 🌸
💮 Overview
The GYTS Filters Toolkit indicator is an advanced, interactive interface built atop the high‐performance, curated functions provided by the FiltersToolkit library . It allows traders to experiment with different combinations of filtering methods -— from smoothing low-pass filters to aggressive detrenders. With this toolkit, you can build custom indicators tailored to your specific trading strategy, whether you're looking for trend following, mean reversion, or cycle identification approaches.
🌸 --------- 2. FILTER METHODS AND TYPES --------- 🌸
💮 Filter categories
The available filters fall into four main categories, each marked with a distinct symbol:
🌗 Low Pass Filters (Smoothers)
These filters attenuate high-frequency components (noise) while allowing low-frequency components (trends) to pass through. Examples include:
Ultimate Smoother
Super Smoother (2-pole and 3-pole variants)
MESA Adaptive Moving Average (MAMA) and Following Adaptive Moving Average (FAMA)
BiQuad Low Pass Filter
ADXvma (Adaptive Directional Volatility Moving Average)
A2RMA (Adaptive Autonomous Recursive Moving Average)
Low pass filters are displayed on the price chart by default, as they follow the overall price movement. If they are combined with a high-pass or bandpass filter, they will be displayed in the subgraph.
🌓 High Pass Filters (Detrenders)
These filters do the opposite of low pass filters - they remove low-frequency components (trends) while allowing high-frequency components to pass through. Examples include:
Butterworth High Pass Filter
BiQuad High Pass Filter
High pass filters are displayed as oscillators in the subgraph below the price chart, as they fluctuate around a zero line.
🌑 Band Pass Filters (Cycle Isolators)
These filters combine aspects of both low and high pass filters, isolating specific frequency ranges while attenuating both higher and lower frequencies. Examples include:
Ehlers Bandpass Filter
Cyber Cycle
Relative Vigor Index (RVI)
BiQuad Bandpass Filter
Band pass filters are also displayed as oscillators in a separate panel.
🔮 Predictive Filter
Voss Predictive Filter: A special filter that attempts to predict future values of band-limited signals (only to be used as post-filter). Keep its prediction horizon short (1–3 bars) for reasonable accuracy.
Note that the the library contains elaborate documentation and source material of each filter.
🌸 --------- 3. INDICATOR FEATURES --------- 🌸
💮 Multi-filter configuration
One of the most powerful aspects of this indicator is the ability to configure multiple filters. compare them and observe their combined effects. There are four primary filters, each with its own parameter settings.
💮 Post-filtering
Process a filter’s output through an additional filter by enabling the post-filter option. This creates a filter chain where the output of one filter becomes the input to another. Some powerful combinations include:
Ultimate Smoother → MAMA: Creates an adaptive smoothing effect that responds well to market changes, good for trend-following strategies
Butterworth → Super Smoother → Butterworth: Produces a well-behaved oscillator with minimal phase distortion, John Ehlers also calls a "roofing filter". Great for identifying overbought/oversold conditions with minimal lag.
A bandpass filter → Voss Prediction filter: Attempts to predict future movements of cyclical components, handy to find peaks and troughs of the market cycle.
💮 Aggregate filters
Arguably the coolest feature: aggregating filters allow you to combine multiple filters with different weights. Important notes about aggregation:
You can only aggregate filters that appear on the same chart (price chart or oscillator panel).
The weights are automatically normalised, so only their relative values matter
Setting a weight to 0 (zero) excludes that filter from the aggregation
Filters don't need to be visibly displayed to be included in aggregation
💮 Rich visualisation & alerts
The indicator intelligently determines whether a filter is displayed on the price chart or in the subgraph (as an oscillator) based on its characteristics.
Dynamic colour palettes, adjustable line widths, transparency, and custom fill between any of enabled filters or between oscillators and the zero-line.
A clear legend showing which filters are active and how they're configured
Alerts for direction changes and crossovers of all filters
🌸 --------- 4. ACKNOWLEDGEMENTS --------- 🌸
This toolkit builds on the work of numerous pioneers in technical analysis and digital signal processing:
John Ehlers, whose groundbreaking research forms the foundation of many filters.
Robert Bristow-Johnson for the BiQuad filter formulations.
The TradingView community, especially @The_Peaceful_Lizard, @alexgrover, and others mentioned in the code of the library.
Everyone who has provided feedback, testing and support!
Combined Sequences (Tribonacci, Tetranacci, Lucas)🎯 Combined Sequences (Tribonacci, Tetranacci, Lucas) Indicator 🎯
Unlock the power of advanced mathematical sequences in your trading strategy with the **Combined Sequences Indicator**! This tool integrates **Tribonacci**, **Tetranacci**, and **Lucas** levels to help you identify key support and resistance zones with precision. Whether you're a day trader, swing trader, or long-term investor, this indicator provides a unique perspective on price action by combining multiple sequence-based levels.
---
### **Key Features:**
1. **Multiple Sequence Levels**:
- **Tribonacci Levels**: Based on the Tribonacci sequence, these levels are ideal for identifying dynamic support and resistance.
- **Tetranacci Levels**: A more advanced sequence that adds depth to your analysis.
- **Lucas Levels**: Derived from the Lucas sequence, these levels offer additional insights into market structure.
2. **Customizable Levels**:
- Choose the number of levels to display (up to 20).
- Toggle between **positive** and **negative** levels for each sequence.
3. **Flexible Price Source**:
- Select your preferred price type: **Open**, **High**, **Low**, **Close**, **HL2**, **HLC3**, or **HLCC4**.
4. **Customizable Line Styles**:
- Choose from **Solid**, **Dashed**, or **Dotted** lines.
- Adjust line width and extension type (**Left**, **Right**, or **Both**).
5. **Dynamic Labels**:
- Add labels to levels for better readability.
- Customize label position (**Left**, **Center**, or **Right**) and text size (**Normal**, **Small**, or **Tiny**).
6. **Timeframe Flexibility**:
- Works on any timeframe, from **1-minute** charts to **monthly** charts.
---
### **How It Works:**
- The indicator calculates **Tribonacci**, **Tetranacci**, and **Lucas** levels based on the selected price source and timeframe.
- These levels are plotted on the chart, providing clear visual cues for potential support and resistance zones.
- You can toggle each sequence on or off, allowing you to focus on the levels that matter most to your strategy.
---
### **Why Use This Indicator?**
- **Enhanced Market Analysis**: Combine multiple mathematical sequences to gain a deeper understanding of price action.
- **Customizable**: Tailor the indicator to your trading style with flexible settings.
- **User-Friendly**: Easy-to-use interface with clear visual outputs.
- **Versatile**: Suitable for all trading styles and instruments (stocks, forex, crypto, commodities, etc.).
---
### **How to Use:**
1. Add the indicator to your chart.
2. Configure the settings in the **Inputs** tab:
- Choose which sequences to display (Tribonacci, Tetranacci, Lucas).
- Adjust the number of levels, line styles, and label settings.
3. Use the levels to identify potential entry, exit, and stop-loss points.
---
### **Perfect For:**
- Traders looking for advanced support and resistance levels.
- Those who want to incorporate mathematical sequences into their analysis.
- Anyone seeking a customizable and versatile trading tool.
---
**🚀 Take Your Trading to the Next Level with Combined Sequences! 🚀**
---
### **Disclaimer**:
This indicator is a tool to assist in your trading decisions. It does not guarantee profits or predict market movements. Always use proper risk management and combine this tool with other analysis techniques.
---
**📈 Ready to Elevate Your Trading? Add the Combined Sequences Indicator to Your Chart Today! 📉**
Dynamic Square Levels**Dynamic Square Levels with Strict Range Condition**
This script is designed to help traders visualize dynamic price levels based on the square root of the current price. It calculates key levels above and below the current price, providing a clear view of potential support and resistance zones. The script is highly customizable, allowing you to adjust the number of levels, line styles, and label settings to suit your trading strategy.
---
### **Key Features**:
1. **Dynamic Square Levels**:
- Calculates price levels based on the square root of the current price.
- Plots levels above and below the current price for better market context.
2. **Range Condition**:
- Lines are only drawn when the current price is closer to the base level (`square(base_n)`) than to the next level (`square(base_n + 1)`).
- Ensures levels are only visible when they are most relevant.
3. **Customizable Levels**:
- Choose the number of levels to plot (up to 20 levels).
- Toggle additional levels (e.g., 0.25, 0.5, 0.75) for more granular analysis.
4. **Line and Label Customization**:
- Adjust line width, style (solid, dashed, dotted), and extend direction (left, right, both, or none).
- Customize label text, size, and position for better readability.
5. **Background Highlight**:
- Highlights the background when the current price is closer to the base level, providing a visual cue for key price zones.
---
### **How It Works**:
- The script calculates the square root of the current price and uses it to generate dynamic levels.
- Levels are plotted above and below the current price, with customizable spacing.
- Lines and labels are only drawn when the current price is within a specific range, ensuring clean and relevant visuals.
---
### **Why Use This Script?**:
- **Clear Visuals**: Easily identify key support and resistance levels.
- **Customizable**: Tailor the script to your trading style with adjustable settings.
- **Efficient**: Levels are only drawn when relevant, avoiding clutter on your chart.
---
### **Settings**:
1. **Price Type**: Choose the price source (Open, High, Low, Close, HL2, HLC3, HLCC4).
2. **Number of Levels**: Set the number of levels to plot (1 to 20).
3. **Line Style**: Choose between solid, dashed, or dotted lines.
4. **Line Width**: Adjust the thickness of the lines (1 to 5).
5. **Label Settings**: Customize label text, size, and position.
---
### **Perfect For**:
- Traders who rely on dynamic support and resistance levels.
- Those who prefer clean and customizable chart visuals.
- Anyone looking to enhance their price action analysis.
---
**Get started today and take your trading to the next level with Dynamic Square Levels!** 🚀
Planetary Retrograde DashboardThe Retrograde Dashboard offers a quick overview of all planets and their historical and current retrograde statuses across various time frames.
How This Indicator Works
Custom Overlay: The indicator displays its own overlay, plotting the periods of planetary retrograde. This enables users to visually track all planetary retrogrades over time, both historically and in real-time.
When a planet is in retrograde, its symbol will show the ℞ retrograde symbol next to it.
When a planet is in direct motion, only the planetary symbol is visible.
The indicator adapts to different timeframes, allowing you to analyze whether a planet was in retrograde at any specific moment.
What is Retrograde Motion?
In astrology and astro-finance, retrograde motion occurs when a planet seems to move backward in the sky from Earth's perspective. Although this is an optical illusion due to differences in orbital speeds, many traders and analysts believe that planetary retrogrades can influence market behavior. Retrogrades are often linked with reassessment, reversals, and shifts in momentum, making them valuable for both historical and predictive market analysis.
Research & Discovery – Compare planetary retrograde cycles with historical market behavior to identify potential correlations.
Created using Astrolib by @BarefootJoey
Multi-Timeframe Trend Indicator"Introducing the Multi-Timeframe Trend Indicator: Your Key to Comprehensive Market Analysis
Are you looking for a powerful tool to enhance your trading decisions? Our Multi-Timeframe Trend Indicator offers a unique perspective on market trends across five crucial timeframes.
Key Features:
1. Comprehensive Analysis: Simultaneously view trends for H1, H4, D1, W, and M timeframes.
2. Easy-to-Read Display: Color-coded table for instant trend recognition.
3. Proven Strategy: Utilizes the reliable EMA7, SMA20, and SMA200 crossover method.
How It Works:
- Bullish Trend: When EMA7 > SMA20 > SMA200
- Bearish Trend: When EMA7 < SMA20 < SMA200
- Neutral Trend: Any other configuration
Benefits:
- Align your trades with multiple timeframe trends
- Identify potential trend reversals early
- Confirm your trading decisions with a quick glance
Whether you're a day trader or a long-term investor, this indicator provides valuable insights to support your trading strategy. By understanding trends across multiple timeframes, you can make more informed decisions and potentially improve your trading results.
Don't let conflicting timeframes confuse your strategy. Get the full picture with our Multi-Timeframe Trend Indicator today!"
EPS Line Indicator - cristianhkrOverview
The EPS Line Indicator displays the Earnings Per Share (EPS) of a publicly traded company directly on a TradingView chart. It provides a historical trend of EPS over time, allowing investors to track a company's profitability per share.
Key Features
📊 Plots actual EPS data for the selected stock.
📅 Updates quarterly as new EPS reports are released.
🔄 Smooths missing values by holding the last reported EPS.
🔍 Helps track long-term profitability trends.
How It Works
The script retrieves quarterly EPS using request.financial(syminfo.tickerid, "EARNINGS_PER_SHARE", "Q", barmerge.gaps_off).
If EPS data is missing for a given period, the last available EPS value is retained to maintain continuity.
The EPS values are plotted as a continuous green line on the chart.
A baseline at EPS = 0 is included to easily identify profitable vs. loss-making periods.
How to Use This Indicator
If the EPS line is trending upwards 📈 → The company is growing earnings per share, a strong sign of profitability.
If the EPS line is declining 📉 → The company’s EPS is shrinking, which may indicate financial weakness.
If EPS is negative (below zero) ❌ → The company is reporting losses per share, which can be a warning sign.
Limitations
Only works with stocks that report EPS data (not applicable to cryptocurrencies or commodities).
Does not adjust for stock splits or other corporate actions.
Best used on daily, weekly, or monthly charts for clear earnings trends.
Conclusion
This indicator is a powerful tool for investors who want to visualize earnings per share trends directly on a price chart. By showing how EPS evolves over time, it helps assess a company's profitability trajectory, making it useful for both fundamental analysis and long-term investing.
🚀 Use this indicator to track EPS growth and make smarter investment decisions!
[GYTS] FiltersToolkit LibraryFiltersToolkit Library
🌸 Part of GoemonYae Trading System (GYTS) 🌸
🌸 --------- 1. INTRODUCTION --------- 🌸
💮 What Does This Library Contain?
This library is a curated collection of high-performance digital signal processing (DSP) filters and auxiliary functions designed specifically for financial time series analysis. It includes a shortlist of our favourite and best performing filters — each rigorously tested and selected for their responsiveness, minimal lag and robustness in diverse market conditions. These tools form an integral part of the GoemonYae Trading System (GYTS), chosen for their unique characteristics in handling market data.
The library contains two main categories:
1. Smoothing filters (low-pass filters and moving averages) for e.g. denoising, trend following
2. Detrending tools (high-pass and band-pass filters, known as "oscillators") for e.g. mean reversion
This collection is finely tuned for practical trading applications and is therefore not meant to be exhaustive. However, will continue to expand as we discover and validate new filtering techniques. I welcome collaboration and suggestions for novel approaches.
🌸 ——— 2. ADDED VALUE ——— 🌸
💮 Unified syntax and comprehensive documentation
The FiltersToolkit Library brings together a wide array of valuable filters under a unified, intuitive syntax. Each function is thoroughly documented, with clear explanations and academic sources that underline the mathematical rigour behind the methods. This level of documentation not only facilitates integration into trading strategies but also helps underlying the underlying concepts and rationale.
💮 Optimised performance and readability
The code prioritizes computational efficiency while maintaining readability. Key optimizations include:
- Minimizing redundant calculations in recursive filters
- Smart coefficient caching
- Efficient state management
- Vectorized operations where applicable
💮 Enhanced functionality and flexibility
Some filters in this library introduce extended functionality beyond the original publications. For instance, the MESA Adaptive Moving Average (MAMA) and Ehlers’ Combined Bandpass Filter incorporate multiple variations found in the literature, thereby providing traders with flexible tools that can be fine-tuned to different market conditions.
🌸 ——— 3. THE FILTERS ——— 🌸
💮 Hilbert Transform Function
This function implements the Hilbert Transform as utilised by John Ehlers. It converts a real-valued time series into its analytic signal, enabling the extraction of instantaneous phase and frequency information—an essential step in adaptive filtering.
Source: John Ehlers - "Rocket Science for Traders" (2001), "TASC 2001 V. 19:9", "Cybernetic Analysis for Stocks and Futures" (2004)
💮 Homodyne Discriminator
By leveraging the Hilbert Transform, this function computes the dominant cycle period through a Homodyne Discriminator. It extracts the in-phase and quadrature components of the signal, facilitating a robust estimation of the underlying cycle characteristics.
Source: John Ehlers - "Rocket Science for Traders" (2001), "TASC 2001 V. 19:9", "Cybernetic Analysis for Stocks and Futures" (2004)
💮 MESA Adaptive Moving Average (MAMA)
An advanced dual-stage adaptive moving average, this function outputs both the MAMA and its companion FAMA. It combines adaptive alpha computation with elements from Kaufman’s Adaptive Moving Average (KAMA) to provide a responsive and reliable trend indicator.
Source: John Ehlers - "Rocket Science for Traders" (2001), "TASC 2001 V. 19:9", "Cybernetic Analysis for Stocks and Futures" (2004)
💮 BiQuad Filters
A family of second-order recursive filters offering exceptional control over frequency response:
- High-pass filter for detrending
- Low-pass filter for smooth trend following
- Band-pass filter for cycle isolation
The quality factor (Q) parameter allows fine-tuning of the resonance characteristics, making these filters highly adaptable to different market conditions.
Source: Robert Bristow-Johnson's Audio EQ Cookbook, implemented by @The_Peaceful_Lizard
💮 Relative Vigor Index (RVI)
This filter evaluates the strength of a trend by comparing the closing price to the trading range. Operating similarly to a band-pass filter, the RVI provides insights into market momentum and potential reversals.
Source: John Ehlers – “Cybernetic Analysis for Stocks and Futures” (2004)
💮 Cyber Cycle
The Cyber Cycle filter emphasises market cycles by smoothing out noise and highlighting the dominant cyclical behaviour. It is particularly useful for detecting trend reversals and cyclical patterns in the price data.
Source: John Ehlers – “Cybernetic Analysis for Stocks and Futures” (2004)
💮 Butterworth High Pass Filter
Inspired by the classical Butterworth design, this filter achieves a maximally flat magnitude response in the passband while effectively removing low-frequency trends. Its design minimises phase distortion, which is vital for accurate signal interpretation.
Source: John Ehlers – “Cybernetic Analysis for Stocks and Futures” (2004)
💮 2-Pole SuperSmoother
Employing a two-pole design, the SuperSmoother filter reduces high-frequency noise with minimal lag. It is engineered to preserve trend integrity while offering a smooth output even in noisy market conditions.
Source: John Ehlers – “Cybernetic Analysis for Stocks and Futures” (2004)
💮 3-Pole SuperSmoother
An extension of the 2-pole design, the 3-pole SuperSmoother further attenuates high-frequency noise. Its additional pole delivers enhanced smoothing at the cost of slightly increased lag.
Source: John Ehlers – “Cybernetic Analysis for Stocks and Futures” (2004)
💮 Adaptive Directional Volatility Moving Average (ADXVma)
This adaptive moving average adjusts its smoothing factor based on directional volatility. By combining true range and directional movement measurements, it remains exceptionally flat during ranging markets and responsive during directional moves.
Source: Various implementations across platforms, unified and optimized
💮 Ehlers Combined Bandpass Filter with Automated Gain Control (AGC)
This sophisticated filter merges a highpass pre-processing stage with a bandpass filter. An integrated Automated Gain Control normalises the output to a consistent range, while offering both regular and truncated recursive formulations to manage lag.
Source: John F. Ehlers – “Truncated Indicators” (2020), “Cycle Analytics for Traders” (2013)
💮 Voss Predictive Filter
A forward-looking filter that predicts future values of a band-limited signal in real time. By utilising multiple time-delayed feedback terms, it provides anticipatory coupling and delivers a short-term predictive signal.
Source: John Ehlers - "A Peek Into The Future" (TASC 2019-08)
💮 Adaptive Autonomous Recursive Moving Average (A2RMA)
This filter dynamically adjusts its smoothing through an adaptive mechanism based on an efficiency ratio and a dynamic threshold. A double application of an adaptive moving average ensures both responsiveness and stability in volatile and ranging markets alike. Very flat response when properly tuned.
Source: @alexgrover (2019)
💮 Ultimate Smoother (2-Pole)
The Ultimate Smoother filter is engineered to achieve near-zero lag in its passband by subtracting a high-pass response from an all-pass response. This creates a filter that maintains signal fidelity at low frequencies while effectively filtering higher frequencies at the expense of slight overshooting.
Source: John Ehlers - TASC 2024-04 "The Ultimate Smoother"
Note: This library is actively maintained and enhanced. Suggestions for additional filters or improvements are welcome through the usual channels. The source code contains a list of tested filters that did not make it into the curated collection.
ICT SB Time (Lee B)A minimal and clean indicator that simply plots the ICT Silver Bullet time windows for you on the chart with vertical lines.
It also has the option to show other important times, like 00:00, 8:30, and 9:30. Toggles in settings let you change line color, turn any of them off temporarily, and can limit their visibility to only the lower timeframes for less clutter.
I hope you find this indicator useful... and happy trading!
Lee B
Oracle Ema : sma simple Indicator: Gradient Moving Average with Table
Overview
The Gradient Moving Average with Table is a visual-enhanced moving average indicator that dynamically changes its color based on price movements. It provides a smooth gradient effect on the moving average line and includes a table that indicates whether the price is above or below the MA, using turquoise and pink colors for clear visibility.
🔹 Key Features
✅ Dynamic Gradient Effect on EMA/SMA
The moving average line gradually changes color based on price movement.
Fuchsia (pink) when the MA is decreasing.
Blue when the MA is increasing.
✅ Price Position Table (Top-Right Corner)
Displays whether the price is above (turquoise) or below (pink/fuchsia) the moving average.
Adapts automatically based on EMA or SMA selection.
✅ Customizable Inputs
Choose EMA or SMA as the base moving average.
Adjust gradient intensity to control color transparency.
Toggle the table display ON/OFF.
📊 How It Works
1️⃣ The script calculates a moving average (SMA or EMA).
2️⃣ It determines price movement (uptrend or downtrend) based on price difference.
3️⃣ A gradient color effect is applied dynamically:
The more volatile the movement, the stronger the gradient effect.
Less transparency for strong trends, more transparency for stable zones.
4️⃣ A real-time table shows whether the price is above or below the MA, with colors:
Turquoise (Above)
Pink/Fuchsia (Below)
🛠 Customization Options
Moving Average Type: Select EMA or SMA.
Gradient Intensity: Adjust the transparency and color effect strength.
Table Display: Toggle the table ON or OFF.
🎯 Ideal For
Traders who want a clear visual representation of market trends.
Scalpers and swing traders needing quick trend recognition.
Users who prefer color-coded visual aids over complex charts.
This indicator enhances traditional moving averages with a modern gradient effect and real-time status updates for quick decision-making. 🚀
Multi-Timeframe ATR Levels by Hitesh2603Description:
"Multi-Timeframe ATR Levels by Hitesh2603" is a versatile and adaptive indicator designed to help traders identify key price levels based on the Average True Range (ATR) from a higher timeframe. The script automatically adapts to the current chart’s timeframe and allows you to customize the higher timeframe for ATR calculations, making it ideal for intraday and swing trading strategies.
The indicator plots upper and lower price levels based on the ATR multiplier, providing clear visual cues for potential profit-taking or exit points. It also includes features like editable timeframe presets , historical level plotting , labels , and alerts , making it a powerful tool for traders of all experience levels.
---
Key Features:
1. Automatic Timeframe Adaptation : - The script automatically detects the current chart’s timeframe and selects the appropriate higher timeframe for ATR calculations.
2. Editable Preset Timeframe Pairs : - Customize the higher timeframe for each chart timeframe directly in the indicator settings.
3. Dynamic ATR-Based Levels :- Plots upper and lower price levels using the formula:
- Upper Level = Current Candle Open + (Previous Candle ATR * Multiplier)
- Lower Level = Current Candle Open - (Previous Candle ATR * Multiplier)
4. Customizable Inputs :
- Adjust ATR length, multiplier, line length, colors, and more.
5. Labels :
- Displays the exact values of the upper and lower levels for easy reference.
6. Historical Levels :
- Optionally plots historical levels for all candles.
7. Alerts :
- Get notified when the price crosses the upper or lower levels.
---
Use Cases:
1. Intraday Trading :
- Use the script on a 5-minute or 15-minute chart with a 1-hour higher timeframe to identify intraday profit-taking or exit points.
2. Swing Trading :
- Use the script on a 1-hour or 4-hour chart with a daily higher timeframe to identify swing trading opportunities.
3. Position Trading :
- Use the script on a daily chart with a weekly higher timeframe to identify key levels for position trading.
4. Breakout Confirmation :
- Use the upper and lower levels as confirmation points for breakouts or reversals.
5. Risk Management :
- Use the levels to set stop-loss or take-profit targets based on market volatility.
---
How to Use:
1. Add the Script to Your Chart :
- Search for "Multi-Timeframe ATR Levels by Hitesh2603" in the TradingView indicator library and add it to your chart.
2. Customize the Settings :
- Adjust the inputs (e.g., ATR length, multiplier, line length, colors, etc.) to suit your trading strategy.
3. Set the Higher Timeframe :
- The script will automatically display an input for the higher timeframe based on the current chart’s timeframe. Customize it as needed.
4. Interpret the Levels :
- The script will plot two horizontal lines (upper and lower levels) on the chart. Use these levels for profit-taking, exits, or breakout confirmation.
5. Enable Alerts :
- Set up alerts to get notified when the price crosses the upper or lower levels.
---
Input Parameters:
1. ATR Length :
- The period used to calculate the ATR (default: 14).
2. ATR Multiplier :
- The multiplier applied to the ATR to calculate the levels (default: 0.65).
3. Line Length :
- The number of candles to extend the lines (default: 10).
4. Show Labels :
- Toggle to display the exact values of the levels (default: true).
5. Show Historical Levels :
- Toggle to plot historical levels for all candles (default: false).
6. Line Colors :
- Customize the colors of the upper and lower levels.
7. Line Width :
- Adjust the thickness of the lines (default: 2).
---
Example:
- Current Chart : 5-minute
- Higher Timeframe : 1-hour
- Previous Hour’s ATR : 4.6
- Current Hour’s Open : 102
- Multiplier : 0.65
Levels :
- Upper Level = 102 + (4.6 * 0.65) = 105.0
- Lower Level = 102 - (4.6 * 0.65) = 99.0
The script will plot horizontal lines at 105.0 and 99.0 on the 5-minute chart.
---
Alerts:
- Price Crosses Upper Level :
- Triggered when the price crosses above the upper level.
- Price Crosses Lower Level :
- Triggered when the price crosses below the lower level.
---
Notes:
- The script is designed to be flexible and adaptable to various trading styles and timeframes.
- Always backtest and validate the indicator with your trading strategy before using it in live trading.
---
Credits:
- Developed by Hitesh2603 .
- Special thanks to the TradingView community for inspiration and support.
VWAP [cryptalent]VWAP Indicator with Adjustable Source
Overview
This TradingView indicator calculates Daily, Weekly, and Monthly VWAP (Volume Weighted Average Price) with the flexibility to select different price sources (Open, High, Low, Close, HLC3, etc.). It also displays previous period VWAP levels, helping traders analyze past liquidity zones.
Key Features:
✅ Adjustable Source – Users can choose the price used for VWAP calculations (e.g., Close, High, Low, Open).
✅ Multi-Timeframe VWAP – Tracks Daily, Weekly, and Monthly VWAP to provide a broader market view.
✅ Historical VWAP Levels – Displays previous VWAP values for comparison and reference.
✅ Step Line Style – Ensures clear distinction between different periods and prevents overlapping.
✅ Visible in the Price Scale – The latest and historical VWAP values are displayed in the right-hand price scale for easy reference.
Customization:
You can easily modify the input settings to match your trading style.
Adjust the VWAP source price to test different perspectives (e.g., Open vs. High vs. Close).