Rolling Multi-Day EMA + VR1 DEMABarRolling Multi-Day EMA + VR1 DEMABar Indicator
This indicator combines rolling multi-day exponential moving averages (EMAs) with VR1 DEMABar logic to provide insights into price trends, volume dynamics, and potential reversal signals.
Section 1: Rolling Multi-Day EMA Logic
Purpose: Calculates EMAs based on a rolling trading day length, adapting to different timeframes and instrument types (Futures or Stocks).
Trading Day Lengths: Adjusts dynamically based on the chart timeframe:
1-minute, 3-minute, 5-minute, and 15-minute charts have pre-defined lengths for a "trading day."
Multi-day EMAs are calculated for Half-Day, 1-Day, 2-Day, 3-Day, 4-Day, and 5-Day periods.
The EMAs are color-coded with a gradient from green to purple for clear trend visualization.
Section 2: VR1 DEMABar Logic
Purpose: Identifies high-volume price movements and engulfing patterns that may signal potential reversals.
Volume-to-Range Ratio: Analyzes the ratio of volume to price range and applies two EMAs to detect significant activity.
Threshold-Based Bar Coloring: Highlights bars above a threshold in yellow to emphasize high-volume anomalies.
Engulfing Pattern Detection: Identifies bullish and bearish engulfing patterns, adjusting the background color:
Green Background: Bullish engulfing pattern (potential upward reversal).
Red Background: Bearish engulfing pattern (potential downward reversal).
This indicator provides a blend of trend-following and volume-based anomaly detection, helping traders spot potential trend shifts and key volume-driven movements efficiently.
Moving Averages
VWAP Horizon Suite Optimized - CoffeeKillerVWAP Horizon Suite Optimized - User Guide
Overview
The VWAP Horizon Suite Optimized is a comprehensive technical analysis tool for TradingView designed to enhance your trading strategy with Volume Weighted Average Price (VWAP) analysis, standard deviation bands, and customizable Exponential Moving Averages (EMAs). This indicator provides a robust framework for identifying potential support and resistance levels, price momentum, and market trends.
Key Features
- **Daily VWAP with Session Reset**: Automatically resets at 17:00 (5:00 PM) each day
- **Customizable Standard Deviation/Percentage Bands**: Up to 3 bands above and below VWAP
- **High/Low Point Detection**: Visual markers for significant price levels
- **Multiple Customizable EMAs**: 8 different EMAs that can be individually toggled and styled
- **Visual Customization**: Adjustable colors, fills, and styles for all elements
VWAP Settings
- **Source**: Determines the price data used to calculate VWAP (default: HLC3 - High, Low, Close average)
Bands Settings
- **Bands Calculation Mode**: Choose between "Standard Deviation" or "Percentage" methods
- **Show Band #1, #2, #3**: Toggle visibility for each band
- **Band Multiplier #1, #2, #3**: Adjust the distance from VWAP (in standard deviations or percentage)
- **Show Fills**: Enable colored fills between bands for better visualization
Visualization Settings
- **Show High/Low Markers**: Display diamond markers for local high and low points relative to VWAP, these reset based on the price crossing the VWAP Line.
EMA Settings
The indicator provides 8 customizable EMAs (8, 13, 21, 26, 48, 50, 100, and 200) with individual controls:
- **Show EMA X**: Toggle visibility for each EMA
- **EMA X Period**: Adjust the period length for calculation
- **EMA X Color**: Customize the color of each EMA
- **EMA Line Width**: Set the width for all EMA lines
How to Use
Basic VWAP Analysis
The core VWAP line (blue) represents the average price weighted by volume since the start of the session (17:00 daily reset). This serves as a dynamic support/resistance level and reference point for intraday trading.
1. **Price above VWAP**: Generally bullish short-term sentiment
2. **Price below VWAP**: Generally bearish short-term sentiment
3. **Crosses of VWAP**: Potential shift in short-term momentum
Standard Deviation Bands
The bands surrounding VWAP help identify potential support, resistance, and volatility levels:
- **Band #1 (±1σ)**: Price often reverts to VWAP when reaching these levels
- **Band #2 (±2σ)**: Stronger support/resistance areas, possible reversal zones
- **Band #3 (±3σ)**: Extreme price levels, often indicating overbought/oversold conditions
High/Low Point Detection
Purple and yellow diamond markers identify significant swing highs and lows relative to VWAP, helping you recognize potential reversal points or continuation patterns. (These repaint in a effort to find the max high/low point from the VWAP Line)
EMA Strategy
The customizable EMAs can be used to:
- Find potential support/resistance levels
- Create crossover systems
- Analyze market structure
Common EMA combinations include:
- 8 & 21 for short-term trends
- 50 & 200 for long-term trends and the "Golden Cross/Death Cross"
- 13 & 48 for the "New Golden Cross" - a modern alternative gaining popularity among traders
- 8, 13, 21 for complex short-term momentum analysis
Advanced Usage Tips
For Day Traders
1. **Opening Range Analysis**: Watch how price reacts to VWAP in the first hour of trading
2. **VWAP Reversions**: Look for trades when price touches outer bands and reverses toward VWAP
3. **Band Breakouts**: Strong moves beyond Band #2 may indicate momentum for continuation
For Swing Traders
1. **Use alongside daily/weekly support-resistance levels**
2. **Combine with EMA crossovers for trend confirmation**
3. **Identify potential reversal zones where price reaches Band #3**
Combined Strategies
- **EMA + VWAP Confluence**: Strong signals occur when EMA lines and VWAP/bands align at the same price level
- **High/Low + Band Touch**: When a high/low marker appears near a band, it may indicate a stronger support/resistance level
Conclusion
The VWAP Horizon Suite Optimized provides a comprehensive set of tools for price analysis based on volume-weighted data and exponential averages. By understanding and properly configuring the various components, you can create a powerful visual framework for identifying potential trading opportunities across multiple timeframes.
Remember that no indicator provides perfect signals, and the VWAP Horizon Suite works best when used as part of a complete trading strategy that includes risk management, multiple confirmation tools, and proper analysis of market conditions.
DISCLAIMER
**DISCLAIMER: This indicator and its signals are intended solely for educational and informational purposes. They do not constitute financial advice. Trading involves significant risk of loss. Always conduct your own analysis and consult with financial professionals before making trading decisions.**
RSI Signal with filters by S.Kodirov📌 English
RSI Signal with Multi-Timeframe Filters
This TradingView indicator generates RSI-based buy and sell signals on the 15-minute timeframe with additional filtering from other timeframes (5M, 30M, 1M).
🔹 Signal Types:
✅ 15/5B & 15/5S – RSI 15M filtered by 5M
✅ 15/30/1B & 15/30/1S – RSI 15M filtered by 30M & 1M
✅ 15B & 15S – RSI 15M without filters
🔹 How It Works:
Signals are displayed as colored triangles on the chart.
Labels indicate the type of signal (e.g., 15/5B, 15S).
Alerts notify users when a signal appears.
🚀 Best for short-term trading with RSI confirmation from multiple timeframes!
📌 Русский
Индикатор RSI с мульти-таймфрейм фильтрами
Этот индикатор для TradingView генерирует сигналы покупки и продажи на 15-минутном таймфрейме, используя фильтрацию с других таймфреймов (5M, 30M, 1M).
🔹 Типы сигналов:
✅ 15/5B & 15/5S – RSI 15M с фильтром 5M
✅ 15/30/1B & 15/30/1S – RSI 15M с фильтрами 30M и 1M
✅ 15B & 15S – RSI 15M без фильтров
🔹 Как это работает:
Сигналы отображаются как цветные треугольники на графике.
Подписи показывают тип сигнала (например, 15/5B, 15S).
Алерты уведомляют трейдера о появлении сигнала.
🚀 Идеально для краткосрочной торговли с подтверждением RSI на нескольких таймфреймах!
📌 O'zbekcha
Ko'p vaqt oralig‘idagi RSI signallari
Ushbu TradingView indikatori 15 daqiqalik vaqt oralig‘ida RSI asosida sotib olish va sotish signallarini yaratadi. Bundan tashqari, boshqa vaqt oralig‘idagi (5M, 30M, 1M) RSI filtrlarini ham hisobga oladi.
🔹 Signal turlari:
✅ 15/5B & 15/5S – 5M bilan filtrlangan RSI 15M
✅ 15/30/1B & 15/30/1S – 30M va 1M bilan filtrlangan RSI 15M
✅ 15B & 15S – Filtrsiz RSI 15M
🔹 Qanday ishlaydi?
Signallar rangli uchburchaklar shaklida ko‘rsatiladi.
Yozuvlar signal turini ko‘rsatadi (masalan, 15/5B, 15S).
Xabarnomalar yangi signal paydo bo‘lganda treyderni ogohlantiradi.
🚀 Ko‘p vaqt oralig‘ida RSI tasdig‘i bilan qisqa muddatli savdo uchun ideal!
Daily separator, Open, HTF candlesScript Overview
This TradingView script is designed to enhance market structure analysis by providing a clear visual representation of key trading elements. It integrates multiple technical features that help traders assess price action, trend direction, and potential trade setups efficiently.
Main Features & Functionality
1. Daily Separator
• A vertical line is plotted to clearly mark the start of each trading day.
• Helps traders visually differentiate daily sessions, making it easier to analyze price action over different periods.
2. Exponential Moving Average (EMA) with EMA Continuity Table
• The script calculates an EMA of choice and displays whether the price is above or below it across five customizable timeframes.
• Use Case:
• Identifies if the price is in a retracement or a trend continuation phase.
• Helps determine trend strength—if price is consistently above the EMA across multiple timeframes, the trend is bullish; if below, it’s bearish.
• Aids in making trading decisions such as whether to go long or short.
3. Higher Timeframe (HTF) Candles
• Plots candles from a higher timeframe (HTF) onto the current chart.
• Use Case:
• Provides a macro view of price action while trading on a lower timeframe.
• Helps traders see if the price is interacting with HTF support/resistance levels.
• Useful for confirming entries/exits based on the HTF trend.
4. Opening Line
• Draws a daily opening price level, allowing traders to track price movement relative to the open.
• Use Case:
• Useful for intraday traders who analyze whether price is holding above or below the daily open.
• Helps in identifying key price behaviors, such as breakouts, fakeouts, or potential reversals.
Additional Considerations
• Customization: The script allows traders to adjust key parameters such as the EMA length, timeframes for EMA continuity, and HTF candle settings.
• Market Structure & Decision Making: By combining EMAs, HTF analysis, and the daily open, the script assists traders in determining whether price action aligns with their trade thesis.
• Potential Enhancements:
• Adding alerts for EMA crossovers or when price crosses the daily open.
• Incorporating color coding for the EMA table to improve readability.
Use Case Summary
This script is particularly beneficial for trend-following traders, intraday traders, and swing traders who want to:
1. Confirm market direction with EMA-based trend analysis.
2. Monitor HTF price action while trading on lower timeframes.
3. Track intraday price movement relative to the daily open.
4. Differentiate trading sessions for better structure analysis.
Higher/Lower, Equals, Lines of Interest, Divergences by BULL┃NETThe B | N HELD (Level of interest HH HL – EQH EQL – DIVERGENCE by Bull | NET )
indicator provides traders with important price levels on a chart. Those are the average price (poor or weak equilibrium), traditional pivot levels, moving averages as well as support and resistance levels. This powerful indicator shows you the current Market Struktur and EQH/EQL (Equal highs/Equal lows). This shares style and customization features with every other B|N indicator and has some nice additional features.
█ ⚠️ DISCLAIMER – READ BEFORE YOU USE ⚠️
█ FEATURES
— SUPPORT AND RESISTANCE LINES
The settings in this section control how support and resistance lines appear on the chart.
● Resistance
By default horizontal resistance lines are enabled but you can disable them for whatever reason you might have.
● Line
● Style
● Label
● Text
● Size
With this five settings you control the color and style of the line, label and the text color as well as the size of the text.
● Support
By default horizontal support lines are enabled but you can disable them for whatever reason you might have.
● Line
● Style
● Label
● Text
● Size
With this five settings you control the color and style of the line, the label and text color and the size of the text.
● Show price in label
● Show title in label
By default a label contains the price and a shortcut (SUP for support and RES for resistance). For a less noisy chart you can remove both parts individually from the label.
● Bar shift
The label for a line is placed left from the current bar to avoid overlapping with information on the right side from B | N HELD and other B | N indicators. In addition you can shift the label up to 5 bars to left. The default is 2.
— LABEL COSMETICS
The settings in this section control how lines and labels in the Pivotlevels and Moving Average sections get positioned on the chart and which information the labels show.
● Bar Offset
The bar offset controls the horizontal distance to the last bar on the chart where lines end. The default it is “15” bars to the right to avoid overlapping of labels from my other indicators. You can increase and decrease this value to your liking.
● Bar Anchor
The bar anchor controls where lines start. Default is “lastbar”.
Lastbar sets the start of lines to the last bar of the chart. This provides a very clean chart without lines crossing bars to the left.
With Origin as bar anchor all lines start at the bar of origin which is when the line gets calculated. I.e. daily pivot levels lines will start at the beginning of the day while hourly levels will start at the beginning of a new hour.
● Label Distance Divisor
This setting is used to calculate the minimum vertical distance of labels in means of price points. The internal formular takes the day close price and divides it by the number entered in this field. If i.e. the daily closing price was 5000 the minimum vertical distance would become 1 price point if you enter 5000 for this setting. If the price difference of two events would then be less than 1 the labels would be positioned higher and lower to prevent overlapping. Change the divisor to your likings or as needed to set the trigger for repositioning labels.
● Distance Modifier
This setting is used to control the vertical shift of the label. The default of Zero disables the setting and activates an internal function which makes a decision based on the used timeframe on the chart (0.1 less than m30, 0.5 from m30 to h4, 0.75 above h4 and 1 for daily). The logic takes the minimum vertical distance and multiplies it by the distance modifier.
In the example above for the label distance divisor a label would shift by 0.5 price points on a 30 minute chart if two lines trigger the minimum vertical distance. On the upper line the label moves up and on the lower line it moves down. If three lines are too close to each other the label in the middle does not get moved. If more lines break the minimum distance some labels will overlap until the price is advancing.
Labels with equal price will get lined up (stacked) horizontally.
While this cosmetical corrections have limits overlapping can be reduced to a minimum.
● Show Price
Choose to display the price in front of a label. The price will be displayed by default.
● Enable Tooltip
If you decide to hide the price on the label it can be useful to get this information in a tooltip while hovering with the mouse over the label. On the contrary it might become annoying with labels popping up if you have a nervous mouse finger. The feature is disabled by default.
● Equalize Label Size
The size of labels is one of the most discussed issues. Some say it is too small other say it is too big. Label size matters on different devices. “Normal” labels can be too large on a smartphone and to small on a 4k display. And the size is crucial for the automatic horizontal stacking of labels. You simply can’t line up a small, normal and large label in Pine Script (the programming language at TradingView). The stacking is done by prepending labels with spaces to shift them to the right.
This setting overloads all individual size settings for labels and activates the automatic horizontal stacking of labels with equal price. It is a convenient way to change the size of all labels with one click in case you have different layouts for different devices.
If you disable this feature you can set the label size individually but you lose the horizontal stacking. This can be useful for traders who display only a few price events or for educational purpose where you want to point out a special event.
— AVERAGE PRICE
Because we do not have access to the order book we don’t know about the true equilibrium, which is the price where supply and demand is equal. Therefore the indicator displays the average price of the current and past day. Some people call this the poor or weak equilibrium. By default this feature is enabled.
● Line
● Style
● Label
● Text
● Size
With this five settings you control the color and style of the line, the label and text color as well as the size of the text.
— PIVOTLEVELS
● Timeframe
By default the setting follows my (BullNet) logic. In timeframes below 30 minute the indicator will display the hourly pivot levels. In timeframes between 30 minutes and one day you will see the daily pivot levels. Above daily timeframe you get the pivot levels of the chosen timeframe. If you don’t like it you can change this setting to always show the pivot level of the timeframe.
● Line
● Style
● Label
● Text
● Size
With this five settings you control the color and style of the line, the label and text color as well as the size of the text.
— MOVING AVERAGE
● Timeframe
By default the setting follows my (BullNet) logic. In timeframes below 30 minute the indicator will display the hourly moving averages. In timeframes between 30 minutes and one day you will see the daily moving averages. Above daily timeframe you get the moving averages of the chosen timeframe. If you don’t like it you can change this setting to always show the moving averages of the timeframe.
You can display up to four moving averages in parallel on the chart. By default all four are enabled to display the EMA 20, 50 ,100 and 200 as plain price level to the right of the last bar. Feel free to customize all settings to your liking or needs.
Each of the four moving averages has the same options, which are:
● Plot
If enabled the moving average will be drawn as a stepped curve on the chart. Although this is what most people expect from displaying a moving average it is disabled by default to keep the chart clean and follow the look and feel of all my other indicators. In my opinion a moving average is just another level of interest and as long as two moving averages are not in danger to cross each other (death cross, white cross) there is no need to fill the chart with additional noise. Once two important moving averages narrow to each other you can change this settings to plot the curves to be able to estimate the point they might cross.
● Plain
This setting is enabled by default and draws the moving average like a pivot level with a line at the current moving average price and a label showing the details you have chosen in the label cosmetics section. The chart keeps clean and you can perfectly determine the support and resistance level of the moving average.
● MA Type
You can choose between EMA and SMA. By default EMA is enabled.
● Length
In this field you enter the length of the moving average, which is the amount of bars used to calculate it.
● Line
● Style
● Label
● Text
● Size
With this five settings you control the color and style of the line or curve, the label and text color as well as the size of the text.
— DISPLAY OPTIONS
● 2 Decimals
To streamline the appearance of prices they are set to display two decimals only. Numbers get rounded! However, trading currency pairs or crypto assets might need to display the full amount of decimals. In this case simply disable the setting “2 Decimals”.
█ DIVERGENCE
- The system checks for divergences on each candle between the current price and the values of the last 10 pivot points for the selected indicators.
- Divergences are searched for across the chosen indicators, such as RSI, MACD, MACD Histogram, Stochastic, CCI, Momentum, MFI, OBV, VWMACD, CMF, and any external indicators.
- It looks for divergences within the last 100 bars based on the 10 pivot points for each indicator.
- **Types of Divergences:**
- Regular Positive Divergence
- Regular Negative Divergence
- Hidden Positive Divergence
- Hidden Negative Divergence
- For **Positive Divergence**, the system first checks if the current closing price is higher than the previous closing price and if the indicator value is higher than the previous one. If both conditions are true, it starts searching for a divergence.
- For **Negative Divergence**, it first checks if the current closing price is lower than the previous closing price and if the indicator value is also lower than the previous value. If these conditions hold, it starts looking for a divergence.
█ Settings:
- Pivot Period: You can set the pivot period to any value you prefer. You can also view the pivot points by enabling the "Show Pivot Points" option.
- Source for Pivot Points: Choose whether you want to use the Close ore High, or Low as the source for the pivot points.
- Divergence Type: Select the type of divergence to display, including "Regular," "Hidden," or "Regular/Hidden."
- Show Indicator Names: You can choose to display the full indicator names, only their first letter, or not show them at all.
- Show Divergence Number: This option allows you to display the number of indicators showing divergence.
- Show Only Last Divergence: If enabled, this option will only show the most recent positive and negative divergences.
- External Indicator Integration: You can include external indicators for divergence detection. To do this, enable the "Check External Indicator" option and select the external indicator from the list. The external indicator will be displayed as "Extrn." The relevant external indicator must be added before enabling this option.
Customization Options:
- Adjust the colors, line width, and line style for different types of divergences.
Alerts:
The following alerts are available:
- Positive Regular Divergence Detected
- Negative Regular Divergence Detected
- Positive Hidden Divergence Detected
- Negative Hidden Divergence Detected
█ HH HL LL LH
This indicator is a powerful tool, and I’m excited to explain how it works. It identifies Higher Highs (HH), Higher Lows (HL), Lower Highs (LH), and Lower Lows (LL), which represent trend structure points on the chart.
Higher Highs, Higher Lows, Lower Highs, and Lower Lows:
For those who find it difficult to identify these points, this indicator can be extremely helpful. By showing HH and HL in sequence, it helps identify an uptrend. When the trend weakens, the indicator will highlight a LH, signaling that the trend might be losing strength. For a downtrend, the indicator shows LH and LL in sequence, and when the trend weakens, it will show HL, indicating a potential reversal.
This indicator is also great for drawing trend lines. For example, it can help you draw a trend line in an uptrend by connecting the LL of the first candle to the HL of the second candle. Similarly, for a downtrend, the trend line can be drawn by connecting the HH to the LH.
These HH, HL, LH, and LL points can also be used to place stop losses, which will be explained later in the stop loss section.
Label Color Changes Based on RSI:
An important feature is that the **HH** and **LL** labels change color based on the RSI indicator. When the RSI is overbought, the **HH** label will change to a specific color (e.g., red), signaling a potential reversal or weakness in the uptrend. Similarly, when the RSI is oversold, the **LL** label will change to another color (e.g., green), indicating a potential reversal in the downtrend. This adds an additional layer of insight, helping to identify potential exhaustion points in the market.
DT, DB, and EQH/EQL:
Additionally, the **DT** (Double Top), **DB** (Double Bottom), and **EQH/EQL** (Equal High/Equal Low) patterns are displayed by the indicator to help identify significant reversal patterns, making it even more effective for trend analysis and decision-making.
You can change the Color, the Line Width and the Line Style under the
“EQH/EQL OPTIONS”.
Under the section “PATTERN OPTIONS” you can enable the function to visualize the EQH/EQL
-------------------------------------------------------
Disclaimer BullNet : The information provided in this document is for educational and informational purposes only and does not constitute financial, investment, or trading advice. Any use of the content is at your own risk. No liability is assumed for any losses or damages resulting from reliance on this information. Trading financial instruments involves significant risks, including the potential loss of all invested capital. There is no guarantee of profits or specific outcomes. Please conduct your own research and consult a professional financial advisor if needed.
Disclaimer TradingView: According to the www.tradingview.com
Copyright: 2025-BULLNET - All rights reserved.
Roadmap:
Version 1.0 04.03.2025
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线将根据您选择的设置绘制在图表上
- 颜色会根据浅色/深色图表主题自动调整
*/
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.