KJ RangesMTF Ranges by KJ PVP Trading
Weekly/ Daily/ H4/ H1:
- Opening Price
- Previous Range
- Pivot Points
- Time Rotation
Candlestick Pattern:
- Engulfing bar
- Pin bar
- Inside bar
Trader Notes:
- allow traders list out notes
Średnie kroczące
MA Сrosses Multi TF [PowerEn] This indicator is a useful tool for traders, who use MAs and crosses in trading.
Сrosses MAs Multi TF will allow you to display on the graph:
1) up to six MA with different settings (length, type, style);
2) the crosses of the three MA pairs with the visualization selection;
3) setting different timeframes for MAs (from 1m to 1M);
4) using labels, you can clearly see parameters of MA (length, type, timeframe);
5) using signals of crosses MAs, you can create alerts.
Date Display with Bar Counter and EMA===== ENGLISH DESCRIPTION =====
OVERVIEW:
This is a multi-function indicator that combines three useful tools in one script:
1. Date Display - Shows current date and symbol information in a customizable table
2. Bar Counter - Displays sequential bar numbers at specified intervals
3. EMA (Exponential Moving Average) - Plots an EMA line with customizable settings
FEATURES:
1. DATE DISPLAY:
- Shows date in full format (e.g., "Mon ∙ January 1, 2023") or short format (e.g., "Mon ∙ 01.01.23")
- Option to show/hide day of week
- Option to show/hide symbol and timeframe information
- Customizable table position (top/middle/bottom, left/center/right)
- Automatic color adjustment based on chart background
2. BAR COUNTER:
- Displays sequential bar numbers below price bars
- Customizable display frequency (every X bars)
- Special handling for Hong Kong futures (resets at market open)
- Different reset logic based on timeframe (daily, weekly, monthly)
- Customizable text size and color
3. EMA INDICATOR:
- Customizable period length (default: 20)
- Option to use different timeframe for calculation
- Option to wait for timeframe close for more stable signals
- Customizable line color
USAGE INSTRUCTIONS:
- After adding the indicator to your chart, customize settings in the "Format" panel
- The Date Display table will appear at your chosen position on the chart
- Bar numbers will appear below price bars at your specified frequency
- The EMA line will be plotted on the chart with your chosen settings
- Colors automatically adjust to light/dark chart themes
===== 中文说明 =====
概述:
这是一个多功能指标,将三个实用工具合并为一个脚本:
1. 日期显示 - 在可自定义的表格中显示当前日期和交易品种信息
2. K线计数器 - 按指定间隔显示K线序号
3. EMA指数移动平均线 - 绘制可自定义设置的EMA线
功能特点:
1. 日期显示:
- 支持完整格式(如"Mon ∙ January 1, 2023")或简短格式(如"Mon ∙ 01.01.23")
- 可选择显示/隐藏星期几
- 可选择显示/隐藏交易品种和时间周期信息
- 可自定义表格位置(顶部/中部/底部,左侧/中间/右侧)
- 根据图表背景自动调整颜色
2. K线计数器:
- 在价格K线下方显示序号
- 可自定义显示频率(每X根K线)
- 对香港期货有特殊处理(在开市时重置)
- 根据时间周期(日线、周线、月线)使用不同的重置逻辑
- 可自定义文字大小和颜色
3. EMA指标:
- 可自定义周期长度(默认:20)
- 可选择使用不同的时间周期进行计算
- 可选择等待时间周期结束以获得更稳定的信号
- 可自定义线条颜色
使用说明:
- 将指标添加到图表后,在"格式"面板中自定义设置
- 日期显示表格将出现在您选择的图表位置
- K线序号将按您指定的频率显示在价格K线下方
- EMA线将根据您选择的设置绘制在图表上
- 颜色会根据浅色/深色图表主题自动调整
*/
Média Biweight de Tukey indicador "Média Biweight de Tukey" é uma média móvel robusta que utiliza a função Biweight de Tukey para suavizar a série de preços, minimizando a influência de outliers. Em vez de tratar todos os valores com a mesma importância, ele atribui pesos diferenciados a cada preço dentro do período definido, de modo que os pontos mais distantes do centro (valores extremos) têm menor influência no cálculo da média.
Principais Características
Robustez aos Outliers:
Utiliza uma função de peso baseada na distância dos preços em relação à média e ao desvio padrão. Valores que se afastam muito da média (acima de um limiar definido) recebem peso zero, reduzindo o impacto de movimentos bruscos e anômalos.
Parâmetros Ajustáveis:
O usuário pode definir o período de cálculo (por exemplo, 20 barras) e uma constante (c) que determina a sensibilidade do indicador aos outliers. Além disso, é possível escolher a fonte dos dados (como o preço de fechamento).
Cálculo Baseado em Valores Absolutos:
O indicador calcula a média simples e o desvio padrão dos preços dentro do período selecionado para estabelecer um ponto de referência.
Plotagem no Gráfico:
A média ponderada resultante é plotada sobre o gráfico dos candles. Como o indicador opera com valores absolutos de preço, ele permanece ancorado ao nível de preço, ou seja, mesmo que a escala dos candles seja modificada (dilatação ou contração), a linha da média mantém sua posição relativa ao preço e não se ajusta visualmente ao tamanho dos candles.
Aplicações
Esse indicador é útil para:
Suavizar a série de preços, ajudando a identificar tendências subjacentes.
Reduzir o ruído causado por flutuações abruptas e valores extremos.
Fornecer um suporte mais robusto para análise técnica, principalmente em mercados voláteis.
Em resumo, a "Média Biweight de Tukey" oferece uma alternativa mais resiliente às médias móveis tradicionais, focando em um cálculo que filtra distorções causadas por outliers e proporciona uma visão mais consistente da tendência de preço.
Moving Average DifferenceThe indicator computes the difference between m-day MA and n-day MA. It can be used to tell the price trend.
Eran Krief Custom WatermarkThis indicator provides key stock-related data for Affirm Holdings, Inc. (AFRM). Here’s a breakdown of its elements:
1. **Earnings Countdown**: Displays the number of days remaining until the next earnings report (65 days in this case).
2. **Market Cap**: Shows the company's market capitalization (17.85 billion USD).
3. **Ticker and Industry**: Indicates the stock ticker (AFRM) and its industry classification (Finance, Finance/Rental/Leasing).
4. **ATR (Average True Range)**: Measures the stock’s volatility, showing an ATR value of 1.52, which is 2.36% of the stock price.
5. **12-Month Return**: Displays the stock’s percentage return over the past 12 months (-3.68%).
6. **Moving Average Distance (MA Dist.)**: Indicates how far the stock is from a specific moving average. Here, the stock is 4.94% below the moving average, represented in red.
This indicator helps traders assess a stock’s volatility, performance, and distance from key technical levels.
Pearson Correlation Best MA [victhoreb]Pearson Correlation Best MA is an innovative indicator designed to dynamically select the moving average that best aligns with price action based on the Pearson correlation coefficient. Here’s what it does:
- Multiple MA Evaluation: The indicator computes eight different moving averages — SMA, EMA, DEMA, TEMA, LSMA, RMA, WMA, and VWMA — using a user-defined period.
- Correlation Analysis: For each moving average, it calculates the Pearson correlation with the price (using the average of high and low) over a specified correlation length, then identifies the one with the highest correlation.
- Optional Smoothing: Users can opt to further smooth the selected best moving average for an even more refined signal.
- Visual Cues: The indicator plots the “Best MA” on the chart, colors it based on its direction (bullish or bearish), and also displays the correlation value. Additionally, it can color the price candles to reflect the trend indicated by the best moving average.
- Customizability: All key parameters such as moving average length, correlation length, smoothing options, and color settings are fully customizable.
This tool helps traders by automatically adapting to market conditions—highlighting the moving average that is most in sync with current price trends, potentially improving trade timing and decision-making.
Candle Trend ConfirmationCandle Trend Confirmation Indicator
The "Candle Trend Confirmation" indicator This indicator leverages an Exponential Moving Average (EMA) to visually confirm market trends through dynamic coloring of the EMA line, a shading effect, and candle color changes. It aims to help traders quickly identify strong trends and consolidation phases, enhancing decision-making in various market conditions.
Key Features
Customizable EMA Period:
Traders can adjust the EMA period via an input parameter, with a default setting of 20 periods. This flexibility allows the indicator to adapt to different timeframes and trading strategies.
Pip Threshold for Trend Strength:
A user-defined pip threshold (default set to 0.02) determines the distance from the EMA required to classify a trend as "strong." This parameter can be fine-tuned to suit specific instruments, such as forex pairs, cryptocurrencies, or stocks, where pip values may differ.
Trend Detection Logic:
Strong Uptrend: The closing price must be above the EMA by at least the pip threshold (e.g., 2 pips) and show consistent upward movement over the last three bars (current close > previous close > close two bars ago).
Strong Downtrend: The closing price must be below the EMA by at least the pip threshold and exhibit consistent downward movement over the last three bars.
Consolidation: Any price action that doesn’t meet the strong trend criteria is classified as a consolidation phase.
Dynamic Coloring:
EMA Line: Displayed using the line.new function, the EMA changes color based on trend conditions: green for a strong uptrend, red for a strong downtrend, and purple for consolidation. The line is drawn only for the most recent bar to maintain chart clarity.
Candles: Candlestick colors mirror the trend state—green for strong uptrends, red for strong downtrends, and purple for consolidation—using the barcolor function, providing an immediate visual cue.
Shading Effect: Two dashed lines are drawn above and below the EMA (at half the pip threshold distance) to create a subtle shading zone. These lines adopt a semi-transparent version of the EMA’s color, enhancing the visual representation of the trend’s strength.
How It Works
The indicator calculates the EMA based on the closing price and compares the current price to this average. By incorporating a pip-based threshold and a three-bar confirmation, it filters out noise and highlights only significant trend movements. The use of line.new instead of plot ensures compatibility with certain TradingView environments and offers a lightweight way to render the EMA and shading lines on the chart.
Usage
Trend Identification: Green signals a strong bullish trend, ideal for potential long entries; red indicates a strong bearish trend, suitable for short opportunities; purple suggests a range-bound market, where caution or range-trading strategies may apply.
Customization: Adjust the EMA period and pip threshold in the indicator settings to match your trading style or the volatility of your chosen market. For example, forex traders might set the threshold to 0.0002 for 2 pips on EUR/USD, while crypto traders might use 2.0 for BTC/USD.
Visual Clarity: The combination of EMA coloring, shading, and candle highlights provides a comprehensive view of market dynamics at a glance.
Triangular Hull Moving Average + Volatility [BigBeluga]This indicator combines the Triangular Hull Moving Average (THMA) with a volatility overlay to provide a smoother trend-following tool while dynamically visualizing market volatility.
🔵 Key Features:
THMA-Based Trend Detection: The indicator applies a Triangular Hull Moving Average (THMA) to smooth price data, reducing lag while maintaining responsiveness to trend changes.
// THMA
thma(_src, _length) =>
ta.wma(ta.wma(_src,_length / 3) * 3 - ta.wma(_src, _length / 2) - ta.wma(_src, _length), _length)
Dynamic Volatility Bands: When enabled, the indicator displays wicks extending from the THMA-based candles. These bands expand and contract based on price volatility.
Trend Reversal Signals The indicator marks trend shifts using triangle-shaped signals:
- Upward triangles appear when the THMA trend shifts to bullish.
- Downward triangles appear when the THMA trend shifts to bearish.
Customizable Settings: Users can adjust the THMA length, volatility calculation period, and colors for up/down trends to fit their trading style.
Informative Dashboard: The bottom-right corner displays the current trend direction and volatility percentage, helping traders quickly assess market conditions.
🔵 Usage:
Trend Trading: The colored candles indicate whether the market is trending up or down. Traders can follow the trend direction and use trend reversals for entry or exit points.
Volatility Monitoring: When the volatility feature is enabled, the expanding or contracting wicks help visualize market momentum and potential breakout strength.
Signal Confirmation: The triangle signals can be used to confirm potential entry points when the trend shifts.
This tool is ideal for traders who want a responsive moving average with volatility insights to enhance their trend-following strategies.
EMA Ribbon with 100 MA BY TIJUThe EMA Ribbon with 100 MA is a powerful and visually intuitive indicator designed to help traders identify trends, momentum, and potential support/resistance levels using multiple Exponential Moving Averages (EMAs). By plotting a series of EMAs with varying periods, the script creates a "ribbon" effect on the chart, making it easier to spot trend direction and strength at a glance.
Key Features:
Multiple EMAs for Trend Analysis:
The script plots 8 EMAs with periods ranging from 20 to 55, creating a gradient ribbon effect.
The 100-period EMA is added as a thick blue line, acting as a key level for long-term trend analysis.
Customizable Periods:
Each EMA period is fully customizable, allowing traders to tailor the indicator to their preferred trading style and timeframe.
Visual Clarity:
The EMAs are color-coded, making it easy to distinguish between different periods and identify the overall trend direction.
Dynamic Support/Resistance:
The EMAs act as dynamic support and resistance levels, helping traders identify potential entry and exit points.
Drop Candles Feature:
The script includes an option to drop the first N candles, ensuring cleaner calculations and avoiding false signals during the initial periods.
How to Use:
Trend Identification:
Uptrend: When the shorter-period EMAs are stacked above the longer-period EMAs, it indicates a strong uptrend.
Downtrend: When the longer-period EMAs are stacked above the shorter-period EMAs, it indicates a strong downtrend.
Consolidation: When the EMAs are intertwined, it suggests a sideways or weak trend.
Support/Resistance Levels:
Use the EMAs as dynamic support/resistance levels. For example, in an uptrend, the price may bounce off the lower EMAs.
100-Period EMA:
The 100-period EMA (thick blue line) acts as a key level for long-term trend analysis. A price above this line suggests a bullish bias, while a price below suggests a bearish bias.
Customization:
Adjust the EMA periods and colors to suit your trading strategy.
Use the Drop first N candles option to avoid false signals during the initial periods.
Example Use Cases:
Trend Following:
Enter long positions when the price is above the EMA ribbon and the EMAs are stacked in an uptrend.
Enter short positions when the price is below the EMA ribbon and the EMAs are stacked in a downtrend.
Dynamic Support/Resistance:
Use the EMAs as dynamic support/resistance levels for setting stop-loss or take-profit targets.
Confirmation Tool:
Combine the EMA Ribbon with other indicators (e.g., RSI, MACD) to confirm trade signals.
Settings:
MA-1 to MA-8 Periods: Adjust the periods for the 8 EMAs (default: 20, 25, 30, 35, 40, 45, 50, 55).
MA-100 Period: Adjust the period for the 100 EMA (default: 100).
Source: Choose the price source for the EMAs (default: Close).
Drop First N Candles: Drop the first N candles to avoid false signals (default: 1).
Why Use EMA Ribbon ?
Versatility: Suitable for all trading styles (scalping, day trading, swing trading) and timeframes.
Visual Appeal: The color-coded ribbon makes it easy to interpret the trend at a glance.
Customizable: Tailor the indicator to your specific trading strategy.
Dynamic Levels: Use the EMAs as dynamic support/resistance levels for better risk management.
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.
Weekly MA SuiteThe Weekly MA Suite is a multi-layered moving average indicator designed for traders and investors who analyze market trends across weekly and long-term timeframes. It combines three critical trend layers—short-term (1W EMA/VWMA), mid-term (30W EMA/VWMA), and long-term (200W HMA)—providing clear insights into market momentum, structure, and cycle trends.
This indicator is ideal for:
✅ Swing traders looking for weekly momentum shifts
✅ Position traders tracking multi-week to multi-month trends
✅ Long-term investors monitoring macro market cycles
Each layer has customizable colors, transparency, and visibility toggles, ensuring traders can tailor the indicator to their specific needs.
📊 Breakdown of Components
🔹 Short-Term Trend (1W EMA/VWMA Ribbon – Top Layer)
Purpose: Captures weekly momentum and volume dynamics
• 1W EMA (Exponential Moving Average) reacts quickly to price changes
• 1W VWMA (Volume-Weighted Moving Average) accounts for volume to confirm trend strength
• Ribbon fill highlights the divergence between price-based momentum (EMA) and volume-weighted trends (VWMA), making trend shifts easier to spot
Usage:
• If the 1W EMA is above the 1W VWMA, momentum is strong and price is trending higher with support from volume
• If the EMA crosses below the VWMA, it may indicate weakening trend strength or distribution
• A widening ribbon suggests increasing momentum, while a narrowing ribbon signals potential consolidation or reversal
🔸 Mid-Term Trend (30W EMA/VWMA Ribbon – Middle Layer)
Purpose: Provides insight into the broader market structure over multiple months
• 30W EMA represents the dominant trend direction over roughly half a year
• 30W VWMA smooths this trend while weighting price by trading volume
• Ribbon fill allows for a visual representation of how volume impacts trend direction
Usage:
• A bullish trend is confirmed when price remains above the 30W EMA, with the ribbon widening in an uptrend
• A bearish shift occurs when the 30W EMA crosses below the 30W VWMA, signaling weakening demand
• If the ribbon narrows or twists frequently, the market may be in a choppy, range-bound phase
🔻 Long-Term Trend (200W HMA – Background Layer)
Purpose: Identifies major market cycles and deep trend shifts
• The 200W Hull Moving Average (HMA) is a long-term smoothing tool that reduces lag while maintaining trend clarity
• Unlike traditional moving averages, the HMA reacts faster to trend changes without excessive noise
Usage:
• When price is above the 200W HMA, the broader trend remains bullish, even during short-term corrections
• A cross below the 200W HMA may indicate a macro downtrend or deep market cycle shift
• Long-term investors can use this as a dynamic support or resistance zone
🎯 How to Use the Weekly MA Suite for Trading
📅 Identifying Market Phases
• In strong uptrends, the 1W EMA and 30W EMA will be aligned above their VWMA counterparts, with price well above the 200W HMA
• In sideways markets, the ribbons will frequently narrow or cross, signaling indecision
• In bear markets, price will typically trade below the 30W EMA, with the 200W HMA acting as a long-term resistance
📈 Entry and Exit Strategies
• A bullish trade setup occurs when the 1W EMA crosses above the 1W VWMA while the 30W EMA holds above the 30W VWMA, confirming multi-timeframe momentum
• A bearish setup is confirmed when the 1W EMA crosses below the 1W VWMA and price is also trending below the 30W EMA
• The 200W HMA can be used as a trend filter—staying long when price is above it and avoiding longs when price is below
🚦 Customizing for Your Trading Style
• Scalpers can focus on the 1W ribbon for faster trend shifts
• Swing traders can use the 30W ribbon for trend-following entries and exits
• Long-term investors should watch price action relative to the 200W HMA for market cycle positioning
🔧 Final Thoughts
The Weekly MA Suite simplifies multi-timeframe analysis by layering key moving averages in an intuitive and structured format. By combining short, medium, and long-term trend indicators, traders can confidently navigate market conditions and improve decision-making. Whether trading weekly trends or monitoring multi-year cycles, this tool provides a clear visual framework to enhance market insights.
Supertrend and Fast and Slow EMA StrategyThis strategy combines Exponential Moving Averages (EMAs) and Average True Range (ATR) to create a simple, yet effective, trend-following approach. The strategy filters out fake or sideways signals by incorporating the ATR as a volatility filter, ensuring that trades are only taken during trending conditions. The key idea is to buy when the short-term trend (Fast EMA) aligns with the long-term trend (Slow EMA), and to avoid trades during low volatility periods.
How It Works:
EMA Crossover:
1). Buy Signal: When the Fast EMA (shorter-term, e.g., 20-period) crosses above the Slow EMA (longer-term, e.g., 50-period), this indicates a potential uptrend.
2). Sell Signal: When the Fast EMA crosses below the Slow EMA, this indicates a potential downtrend.
ATR Filter:
1). The ATR (Average True Range) is used to measure market volatility.
2). Trending Market: If the ATR is above a certain threshold, it indicates high volatility and a trending market. Only when ATR is above the threshold will the strategy generate buy/sell signals.
3). Sideways Market: If ATR is low (sideways or choppy market), the strategy will suppress signals to avoid entering during non-trending conditions.
When to Buy:
1). Condition 1: The Fast EMA crosses above the Slow EMA.
2). Condition 2: The ATR is above the defined threshold, indicating that the market is trending (not sideways or choppy).
When to Sell:
1). Condition 1: The Fast EMA crosses below the Slow EMA.
2). Condition 2: The ATR is above the defined threshold, confirming that the market is in a downtrend.
When Not to Enter the Trade:
1). Sideways Market: If the ATR is below the threshold, signaling low volatility and sideways or choppy market conditions, the strategy will not trigger any buy or sell signals.
2). False Crossovers: In low volatility conditions, price action tends to be noisy, which could lead to false signals. Therefore, avoiding trades during these periods reduces the risk of false breakouts.
Additional Factors to Consider Adding:
=> RSI (Relative Strength Index): Adding an RSI filter can help confirm overbought or oversold conditions to avoid buying into overextended moves or selling too low.
1). RSI Buy Filter: Only take buy signals when RSI is below 70 (avoiding overbought conditions).
2). RSI Sell Filter: Only take sell signals when RSI is above 30 (avoiding oversold conditions).
=> MACD (Moving Average Convergence Divergence): Using MACD can help validate the strength of the trend.
1). Buy when the MACD histogram is above the zero line and the Fast EMA crosses above the Slow EMA.
2). Sell when the MACD histogram is below the zero line and the Fast EMA crosses below the Slow EMA.
=> Support/Resistance Levels: Adding support and resistance levels can help you understand market structure and decide whether to enter or exit a trade.
1). Buy when price breaks above a significant resistance level (after a valid buy signal).
2). Sell when price breaks below a major support level (after a valid sell signal).
=> Volume: Consider adding a volume filter to ensure that buy/sell signals are supported by strong market participation. You could only take signals if the volume is above the moving average of volume over a certain period.
=> Trailing Stop Loss: Instead of a fixed stop loss, use a trailing stop based on a percentage or ATR to lock in profits as the trade moves in your favor.
=> Exit Signals: Besides the EMA crossover, consider adding Take Profit or Stop Loss levels, or even using a secondary indicator like RSI to signal an overbought/oversold condition and exit the trade.
Example Usage:
=> Buy Example:
1). Fast EMA (20-period) crosses above the Slow EMA (50-period).
2). The ATR is above the threshold, confirming that the market is trending.
3). Optionally, if RSI is below 70, the buy signal is further confirmed as not being overbought.
=> Sell Example:
1). Fast EMA (20-period) crosses below the Slow EMA (50-period).
2). The ATR is above the threshold, confirming that the market is trending.
3). Optionally, if RSI is above 30, the sell signal is further confirmed as not being oversold.
Conclusion:
This strategy helps to identify trending markets and filters out sideways or choppy market conditions. By using Fast and Slow EMAs combined with the ATR volatility filter, it provides a reliable approach to catching trending moves while avoiding false signals during low-volatility, sideways markets.
Smoothed EMA LinesThe "Smoothed EMA Lines" script is a technical analysis tool designed to help traders identify trends and potential support/resistance levels in financial markets. The script plots exponential moving averages (EMAs) of the closing price for five commonly used time periods: 8, 13, 21, 55, and 200.
Key features of the script include:
Overlay: The EMAs are plotted directly on the price chart, making it easy to analyze the relationship between the moving averages and price action.
Smoothing: The script applies an additional smoothing function to each EMA, using a simple moving average (SMA) of a user-defined length. This helps to reduce noise and provide a clearer picture of the trend.
Customizable lengths: Users can easily adjust the length of each EMA and the smoothing period through the script's input parameters.
Color-coded plots: Each EMA is assigned a unique color (8: blue, 13: green, 21: orange, 55: red, 200: purple) for easy identification on the chart.
Traders can use the "Smoothed EMA Lines" script to:
Identify the overall trend direction (bullish, bearish, or neutral) based on the arrangement of the EMAs.
Spot potential support and resistance levels where the price may interact with the EMAs.
Look for crossovers between EMAs as potential entry or exit signals.
Combine the EMA analysis with other technical indicators and price action patterns for a more comprehensive trading strategy.
The "Smoothed EMA Lines" script provides a clear, customizable, and easy-to-interpret visualization of key exponential moving averages, helping traders make informed decisions based on trend analysis.
Moving Average and Pearson LevelsMoving Average and Pearson Levels Indicator
This Pine Script indicator combines a customizable moving average (MA) with Pearson correlation analysis to provide traders with deeper insights into trends and key reference levels. It overlays a Pearson-adjusted moving average on price charts and highlights levels based on correlation for potential trading opportunities. With flexible parameters, it adapts to various trading styles.
Key Features
Pearson-Adjusted Moving Average
Combines a basic MA (SMA, EMA, WMA, or VWMA) with a Pearson correlation adjustment to reflect trend strength.
Adjustable: MA length, price source, smoothing, and line thickness.
Optional color changes based on trends (positive/negative).
Pearson Correlation Levels
Plots smoothed Pearson correlation with upper/lower thresholds to signal strong or weak trends.
Marks entry levels with price labels and dynamic colors when thresholds are crossed.
Customizable: Pearson length, smoothing, thresholds, and colors.
Reference Levels and Alerts
Optional dotted lines for upper, lower, and zero correlation thresholds.
Alerts for bullish MA signals (crossing the lower threshold) and bearish signals (crossing below the upper threshold).
How It Works
Moving Average: Calculates a standard moving average enhanced by a Pearson adjustment based on price trends over a given period.
Pearson Levels: Computes the strength of correlation, smoothed for better readability, and plots price lines at threshold crossings.
Visualization: Displays the MA and levels with trend-reactive colors and optional reference lines.
Usage
Ideal for traders who combine traditional MAs with statistical trend analysis.
Adjust the MA type and Pearson length for short-term or long-term strategies.
Use correlation levels for reversal signals or trend confirmation.
Customization Options
MA Parameters: Select the type, length, and smoothing of the MA; toggle visibility and color changes.
Pearson Levels: Adjust thresholds, line thickness, and label colors.
Display Options: Show/hide reference lines and the standard MA for comparison purposes.
Example Settings
MA Length: 20
Type: EMA
Pearson Length: 15
Thresholds: 0.7/-0.7
Colors: Positive (black), Negative (green), Levels (gray)
Notes
Optimize based on your preferred timeframe.
Adjust smoothing to balance responsiveness and clarity.
Try it out, customize it to your needs, and enhance your trading setup! Feedback and suggestions are welcome.
Bollinger Bands + EMA 200 + EMA 50This indicator combines three technical analysis tools: the Bollinger Bands (BB), and two Exponential Moving Averages (EMA) with periods of 200 and 50.
Bollinger Bands (BB): This indicator consists of three lines—the middle line being a simple moving average (SMA), and the upper and lower bands representing two standard deviations above and below the SMA. The width of the bands indicates market volatility, with wider bands signifying higher volatility and narrower bands indicating lower volatility.
Exponential Moving Averages (EMA 200 and EMA 50): The EMA is a type of moving average that gives more weight to recent prices, making it more responsive to price changes than the simple moving average. The EMA 200 is considered a long-term trend indicator, often used to identify the overall direction of the market. The EMA 50 is a medium-term trend indicator, helping to spot more immediate market trends. Crossovers between these two EMAs (such as when EMA 50 crosses above EMA 200) are commonly used as buy or sell signals, with the idea that a short-term trend shift is occurring.
By combining these three indicators, this custom Pine Script aims to give a comprehensive view of the market conditions, helping traders to understand both the volatility (via BB), the long-term market trend (via EMA 200), and the medium-term trend (via EMA 50). The interaction between the price and these indicators, along with crossovers, can be used to identify potential entry and exit points.
200 EMA AlertHow It Works:
The 200 EMA calculates the average price over the last 200 periods, giving more weight to recent price movements for a smoother and more responsive trend line.
It helps traders determine whether the market is in a bullish (above 200 EMA) or bearish (below 200 EMA) phase.
Why Traders Use the 200 EMA:
✅ Trend Confirmation – If the price is above the 200 EMA, the trend is bullish; if below, the trend is bearish.
✅ Dynamic Support & Resistance – Price often reacts around the 200 EMA, making it a key level for entries and exits.
✅ Works on All Timeframes – Whether on the 1-minute chart or the daily timeframe, the 200 EMA is effective for scalping, swing trading, and long-term investing.
✅ Easy to Combine with Other Indicators – Traders pair it with RSI, MACD, or price action for stronger confirmation.
How to Use It in Trading:
📌 Trend Trading – Buy when price pulls back to the 200 EMA in an uptrend; sell when price retests it in a downtrend.
📌 Breakout Strategy – A strong candle breaking above/below the 200 EMA signals a possible trend reversal.
📌 Filtering Trades – Many traders only take long trades above and short trades below the 200 EMA to align with the overall market trend.
Conclusion:
The 200 EMA is an essential indicator for traders of all levels, offering clear trend direction, strong support/resistance zones, and trade filtering for better decision-making. Whether you're trading forex, stocks, or crypto, mastering the 200 EMA can give you a significant edge in the markets. 🚀📈
EMA Adaptive Trailing StopThe EMA Adaptive Trailing Stop Strategy is a versatile and comprehensive Pine Script designed for TradingView. This script provides an adaptive trailing stop mechanism that leverages the Exponential Moving Average (EMA) to adjust trailing stops based on market conditions. The strategy dynamically switches between trending and ranging markets by utilizing both Average True Range (ATR) and Average Directional Index (ADX) to detect market conditions.
Key Features:
EMA-Based Trailing Stop:
The script uses the EMA value to set trailing stops precisely. The EMA offers a more responsive calculation to price changes, ensuring closer and more accurate trailing stops that follow market movements effectively.
Market Condition Detection:
The script employs ATR and ADX to distinguish between trending and ranging markets. ATR measures market volatility, while ADX gauges trend strength. The combination of these two indicators provides a more accurate market condition detection.
Customizable Settings:
The script offers various flexible parameters to adjust EMA length, multipliers, and ATR length. Users can customize these settings according to their preferences and trading strategy.
Two Modes:
The script adapts to market conditions by providing two modes: trending mode and ranging mode. In trending mode, the trailing stop is tighter to follow price movements closely, whereas in ranging mode, the trailing stop is looser to accommodate lower volatility.
Entry and Exit Conditions:
The script detects market conditions to set buy and sell signals. These conditions include the calculations of EMA, ATR, and ADX to ensure the signals generated are valid and profitable.
Alerts:
The script provides buy and sell signals through alert conditions for efficient trade management. Users can enable these alerts to get real-time notifications when valid buy or sell signals are detected.
Suitable for Scalping and Swing Trading:
The script is well-suited for both scalping and swing trading strategies. Scalpers can benefit from the responsive and tighter trailing stops during trending conditions, while swing traders can take advantage of the adaptive and looser trailing stops during ranging conditions, allowing them to capture larger price movements.
Explanation of Mode 1 and Mode 2:
Mode 1: Trending Market:
In this mode, the market is identified as trending based on the ADX and ATR values.
LONG 1: This label indicates a buy signal in the trending market mode. It signifies that the trailing stop has been activated and a long position (buy) should be taken when the market is trending.
SHORT 1: This label indicates a sell signal in the trending market mode. It signifies that the trailing stop has been activated and a short position (sell) should be taken when the market is trending.
Mode 2: Ranging Market:
In this mode, the market is identified as ranging based on the ADX and ATR values.
LONG 2: This label indicates a buy signal in the ranging market mode. It signifies that the trailing stop has been activated and a long position (buy) should be taken with a looser trailing stop when the market is ranging.
SHORT 2: This label indicates a sell signal in the ranging market mode. It signifies that the trailing stop has been activated and a short position (sell) should be taken with a looser trailing stop when the market is ranging.
Technical Usage:
Variable Initialization:
The script initializes variables to store values such as trailing stop, long position status, and short position status.
Market Condition Detection:
The script calculates ATR and ADX values to detect whether the market is trending or ranging. This includes the use of f_adx function to calculate ADX values and determine market conditions.
EMA-Based Trailing Stop Calculation:
The script adjusts the trailing stop based on EMA values and ATR. The calculation involves customizable multipliers and parameters that influence the trailing stop's precision.
Plot Trailing Stop:
The script displays the trailing stop on the chart for clear visualization. This includes plotting the trailing stop line with appropriate colors to indicate long and short positions.
Entry and Exit Conditions:
The script determines the entry (buy) and exit (sell) conditions based on market condition detection and trailing stop settings. These conditions are crucial for generating valid buy or sell signals.
Plotshape and Alert:
The script provides plotshapes for buy and sell signals and sets up alert conditions for real-time notifications when a valid buy or sell signal is detected.
Mayer Multiple Zones (Crypto)Enhanced Mayer Multiple Zones
Advanced crypto valuation zones with ETH/BTC context
Key Features
Shows 6 price zones based on MA200 multiples (bubble, take profit, fair value, accumulation, value buy, strong buy)
Adds ETH/BTC ratio context for stronger signals
Works on any crypto with sufficient price history ( ETH , SOL , AAVE , etc)
Color intensity changes based on market conditions
How to Read
Color Zones : Price relative to its MA200 history
Zone Opacity : Stronger color = stronger signal (influenced by ETH/BTC context)
Status Box : Shows current "Enhanced Status" combining price level with ETH/BTC context
Context Line : Explains why the signal is strong or weak
Buy/Sell Signals
Strong Buy Signals :
• " EXTREME VALUE " (blue zone + BTC dominance)
• " STRONG VALUE BUY " (cyan zone + BTC preference)
Take Profit Signals :
• " CONFIRMED BUBBLE " (purple zone + altcoin dominance)
• " APPROACHING BUBBLE " (red zone + rising altcoin strength)
Customization
Adjust multiple thresholds (0.6x, 0.8x, 2.0x, 2.5x, 3.0x)
Toggle ETH/BTC context analysis
Configure ETH/BTC thresholds for market bias
Change MA length from default 200
This indicator helps identify optimal entry and exit points by watching the vertical color streaks on your chart. Look for deep blue/cyan zones with high opacity for strong buying opportunities, and intense purple/red zones for potential exits. The darker the color intensity, the stronger the signal—no complex interpretation needed!
Weighted SD Bands | QuantEdgeBIntroducing Weighted SD Bands by QuantEdgeB
Overview
The Weighted SD Bands is a valuation and mean-reversion analysis tool that dynamically adjusts to price movements, helping traders identify potential overbought and oversold conditions. Built on a Weighted Moving Average (WMA), this indicator plots Standard Deviation (SD) bands around price action, highlighting extremes and potential reversal zones.
_____
Key Features
✅ Adaptive Valuation Model – Uses weighted price action to determine key valuation zones.
✅ Mean Reversion Analysis – Identifies extended deviations from fair value to spot reversal opportunities.
✅ Multi-Tier SD Bands – Provides multiple deviation levels to assess varying degrees of price stretch.
✅ Dynamic Color Coding – Highlights areas of extreme overvaluation or undervaluation.
✅ Reversal Signals – Generates Buy/Sell signals when price crosses the outer bands.
_____
How It Works
- A Weighted Moving Average (WMA) serves as the baseline (fair value).
- Standard Deviation Bands expand dynamically based on historical volatility.
- Extreme levels (±2 SD) signal potential trend exhaustion/reversal.
- Buy signals appear when price crosses below the lower 2 SD band.
- Sell signals appear when price crosses above the upper 2 SD band.
_____
Visual Representation
🔹 Gradient-filled bands help visualize price stretching beyond typical fluctuations.
🔹 Triangular markers indicate potential reversal points at extreme SD levels.
🔹 Background highlights mark high-risk valuation zones.
_____
Settings & Customization
- Lookback Length (WMA): Adjust the moving average period to control sensitivity. (default: 20)
- Source : Select the base source for the calculation. (default: close)
- SD Length: Modify the standard deviation period to fine-tune band width. (default: 30)
- Color Mode: Choose from multiple visualization themes.
_____
Who Should Use It?
📌 Mean-Reversion Traders – Spot high-probability reversal zones.
📌 Valuation-Based Investors – Identify fair value and extended price levels.
📌 Trend-Following Traders – Use SD bands to manage risk and spot potential pullbacks.
_____
Conclusion
The Weighted SD Bands indicator is a powerful tool for valuation and mean-reversion trading, providing dynamic fair value zones, extreme-level signals, and customizable SD bands to refine market timing. Whether you're trading pullbacks, rebalancing positions, or spotting reversals, this model helps you stay ahead of market inefficiencies.
🔹 Disclaimer: This tool is for educational purposes only and is not financial advice. Always conduct your own research before making investing decisions
Market Trend Levels Detector [BigBeluga]Market Trend Levels Detector is an trend-following tool that utilizes moving average crossovers to identify key market trend levels. By detecting local highs and lows after EMA crossovers, the indicator helps traders track significant price zones and trend strength.
🔵 Key Features:
EMA Crossover-Based Trend Levels Detection:
Uses a fast and slow EMA to detect market flow shifts.
When the fast EMA crosses under the slow EMA, the indicator searches for the most recent local top and marks it with a label and horizontal level.
When the fast EMA crosses over the slow EMA, it searches for the most recent local low and marks it accordingly.
Dynamic Zone Levels:
Each detected high or low is plotted as a horizontal level, highlighting important price zones.
Traders can extend these levels to observe how price interacts with them over time.
If price crosses a level, its extension stops. Uncrossed levels continue expanding.
Gradient Trend Band Visualization:
The trend band is formed by shading the area between the two EMAs.
Color intensity varies based on volatility and trend strength.
Strong trends and high volatility areas appear with more intense colors, making trend shifts visually distinct.
🔵 Usage:
Trend Identification: Use EMA crossovers and trend bands to confirm bullish or bearish momentum.
Key Zone Mapping: Observe local high/low levels to track historical reaction points.
Breakout & Rejection Signals: Monitor price interactions with extended levels to assess potential breakouts or reversals.
Volatility Strength Analysis: Use color intensity in the trend band to gauge trend power and possible exhaustion points.
Scalping & Swing Trading: Ideal for both short-term scalping strategies and larger swing trade setups.
Market Trend Levels Detector is a must-have tool for traders looking to track market flow, key price levels, and trend momentum with dynamic visual cues. It provides a comprehensive approach to identifying high-probability trade setups using EMA-based flow detection and trend analysis.
MTF Moving Averages (only EMA)MTF Moving Averages (only EMA)
This script provides a Multi-Timeframe (MTF) Exponential Moving Average (EMA) indicator for traders to visualize multiple EMAs across different timeframes directly on a single chart.
The indicator dynamically calculates and plots up to four EMAs per timeframe (15-minute, 30-minute, 1-hour, and Daily) with user-defined lengths, offering valuable insight into price trends and potential entry or exit points.
Key Features:
Multiple Timeframe Support: The script allows you to view EMAs from different timeframes simultaneously. This is especially useful for traders who follow trends across different timeframes to make more informed decisions.
Customizable Lengths: For each timeframe, the lengths of the EMAs are fully customizable. You can adjust the length of up to four EMAs per timeframe to suit your strategy.
EMA Calculation: The Exponential Moving Average (EMA) is used, which gives more weight to recent prices and reacts faster to price changes compared to the simple moving average (SMA).
Timeframe Flexibility: The indicator supports the following timeframes:
15-minute: Ideal for short-term traders and scalpers.
30-minute: For intraday trading with a slightly longer perspective.
1-hour: Suitable for swing traders and those who prefer a more medium-term view.
Daily: Great for longer-term trend-following strategies.
Interactive and User-Friendly: You can toggle the visibility of each EMA on each timeframe, allowing you to choose exactly which EMAs you wish to display, depending on your trading strategy.
Color-Coded for Clarity: The script uses distinct colors for each EMA on the chart:
Blue: EMA1
Green: EMA2
Red: EMA3
Purple: EMA4
Line Width Customization: Each plotted EMA line has a customizable width for better visual clarity.
Use Case:
Traders who use multiple timeframes for analysis (e.g., those using the "multi-timeframe analysis" technique) will find this script particularly useful. For example, a trader may look at the 15-minute chart to catch short-term movements, the 30-minute chart for intraday trends, the 1-hour chart for swing positions, and the Daily chart for identifying the overarching market trend. The script enables them to view the EMAs for all these timeframes in one glance without having to manually switch between them.
By observing the relationships between EMAs across multiple timeframes, traders can gain valuable insights into market conditions such as:
Crossovers: When a shorter-term EMA crosses above or below a longer-term EMA, it can signal a potential trend reversal or continuation.
Trend Strength: Multiple EMAs in alignment across different timeframes can indicate strong trend strength.
Support and Resistance: EMAs can act as dynamic support and resistance levels, guiding traders on price action levels to watch for potential price reversals.
Instructions:
Enable/Disable EMAs: Toggle on or off the EMAs for each timeframe (15-min, 30-min, 1-hour, Daily) using the script’s settings.
Adjust EMA Lengths: Change the default lengths for each EMA to match your preferred settings for different timeframes.
Monitor Key Levels: Watch how price interacts with the plotted EMAs to spot potential trading signals based on your strategy.
This indicator is designed to enhance your multi-timeframe analysis and help make more informed, data-driven trading decisions.
Mayer Multiple ZonesMayer Multiple Zones
The Mayer Multiple Zones indicator is a powerful market valuation tool that helps traders identify key price zones based on multiples of the 200-period moving average. Originally inspired by the Bitcoin Mayer Multiple concept, this versatile indicator works across all markets and timeframes to visualize the relative valuation of any asset.
Key Features:
Color-coded valuation zones: Instantly recognize if the current price represents a strong buy opportunity, fair value, or potential bubble territory
Customizable multiplier levels: Adjust all zone thresholds to suit specific markets or trading strategies
Real-time status indicator: Clear market status display showing current valuation zone
Comprehensive information table: View all critical price levels and current multiple at a glance
Multi-timeframe compatible: Works seamlessly across all timeframes while maintaining accurate MA200 reference
Visual zone labeling: Clear labels for each price zone directly on the chart
How to Use:
The indicator divides price action into six distinct zones based on the MA200:
Strong Buy Zone (default: below 0.6x MA200): Extreme undervaluation, historically excellent buying opportunities
Value Buy Zone (default: 0.6x-0.8x MA200): Attractive buying range for long-term value
Accumulation Zone (default: 0.8x-1.0x MA200): Price building strength below the MA200
Fair Value Zone (default: 1.0x-2.0x MA200): Reasonable valuation range
Take Profit Zone (default: 2.0x-2.5x MA200): Overvaluation suggesting partial profit taking
Bubble Zone (default: above 2.5x MA200): Extreme overvaluation, historically unsustainable levels
This indicator serves as both a strategic planning tool for long-term investors and a tactical guide for shorter-term traders, helping identify potential reversal zones and price targets based on historical valuation patterns.
Settings:
MA Length: Adjust the moving average period (default: 200)
Multipliers: Customize each zone threshold to adapt to specific market characteristics
Perfect for all traders seeking to understand relative market valuation across any timeframe.