Average Daily Range Zones + QuartilesAdded quartile lines to the ADR Zones indicator. The quartile lines only show up on the current session.
อินดิเคเตอร์และกลยุทธ์
Dwaggy Scalping Trio (VWAP + EMA + RSI)First attempt at pine script this is a scalping indicator that combines VWAP, EMA, and RSI to signal entry/exit for scalping lower time frames
KSG emasThis script plots 10 customizable Exponential Moving Averages (EMAs). Each EMA length and color can be adjusted in the settings. It’s designed for traders who want to track multiple EMAs at once for trend analysis and strategy development.
Golden/Death Cross with SMAGolden Cross: Triggered when the 50 SMA crosses above the 200 SMA.
Death Cross: Triggered when the 50 SMA crosses below the 200 SMA.
Kalman Ema Crosses - [JTCAPITAL]Kalman EMA Crosses - is a modified way to use Kalman Filters applied on Exponential Moving Averages (EMA Crosses) for Trend-Following.
The Kalman filter is a recursive smoothing algorithm that reduces noise from raw price or indicator data, and in this script it is applied both directly to price and on top of EMA calculations. The goal is to create cleaner, more reliable crossover signals between two EMAs that are less prone to false triggers caused by volatility or market noise.
The indicator works by calculating in the following steps:
Source Selection
The script starts by selecting the price input (default is Close, but can be adjusted). This chosen source is the foundation for all further smoothing and EMA calculations.
Kalman Filtering on Price
Depending on user settings, the selected source is passed through one of two independent Kalman filters. The filter takes into account process noise (representing expected market randomness) and measurement noise (representing uncertainty in the price data). The Kalman filter outputs a smoothed version of price that minimizes noise and preserves underlying trend structure.
EMA Calculation
Two exponential moving averages (EMA 1 and EMA 2) are then computed on the Kalman-smoothed price. The lengths of these EMAs are fully customizable (default 15 and 25).
Kalman Filtering on EMA Values
Instead of directly using raw EMA curves, the script applies a second layer of Kalman filtering to the EMA values themselves. This step significantly reduces whipsaw behavior, creating smoother crossovers that emphasize real momentum shifts rather than temporary volatility spikes.
Trend Detection via EMA Crossovers
-A bullish trend is detected when EMA 1 (fast) crosses above EMA 2 (slow).
-A bearish trend is detected when EMA 1 crosses below EMA 2.
The detected trend state is stored and used to dynamically color the plots.
Visual Representation
Both EMAs are plotted on the chart. Their colors shift to blue during bullish phases and purple during bearish phases. The area between the two EMAs is filled with a shaded region to clearly highlight trending conditions.
Buy and Sell Conditions :
- Buy Condition : When the Kalman-smoothed EMA 1 crosses above the Kalman-smoothed EMA 2, a bullish crossover is confirmed.
- Sell Condition : When EMA 1 crosses below EMA 2, a bearish crossover is confirmed.
Users may enhance the robustness of these signals by adjusting process noise, measurement noise, or EMA lengths. Lower measurement noise values make the filter react faster (but potentially noisier), while higher values make it smoother (but slower).
Features and Parameters :
- Source : Selectable price input (Close, Open, High, Low, etc.).
- EMA 1 Length : Defines the fast EMA period.
- EMA 2 Length : Defines the slow EMA period.
- Process Noise : Controls how much randomness the Kalman filter assumes in price dynamics.
- Measurement Noise : Controls how much uncertainty is assumed in raw input data.
- Kalman Usage : Option to apply Kalman filtering either before EMA calculation (on price) or after (on EMA values).
Specifications :
Kalman Filter
The Kalman filter is an optimal recursive algorithm that estimates the state of a system from noisy measurements. In trading, it is used to smooth prices or indicator values. By balancing process noise (expected volatility) with measurement noise (data uncertainty), it generates a smoothed signal that reacts adaptively to market conditions.
Exponential Moving Average (EMA)
An EMA is a weighted moving average that emphasizes recent data more heavily than older data. This makes it more responsive than a simple moving average (SMA). EMAs are widely used to identify trends and momentum shifts.
EMA Crossovers
The crossing of a fast EMA above a slow EMA suggests bullish momentum, while the opposite suggests bearish momentum. This is a cornerstone technique in trend-following systems.
Dual Kalman Filtering
Applying Kalman both to raw price and to the EMAs themselves reduces whipsaws further. It creates crossover signals that are not only smoothed but also validated across two levels of noise reduction. This significantly enhances signal reliability compared to traditional EMA crossovers.
Process Noise
Represents the filter’s assumption about how much the underlying market can randomly change between steps. Higher values make the filter adapt faster to sudden changes, while lower values make it more stable.
Measurement Noise
Represents uncertainty in price data. A higher measurement noise value means the filter trusts the model more than the observed data, leading to smoother results. A lower value makes the filter more reactive to observed price fluctuations.
Trend Coloring & Fill
The use of dynamic colors and filled regions provides immediate visual recognition of trend states, helping traders act faster and with greater clarity.
Enjoy!
TEWMA Supertrend - [JTCAPITAL]TEWMA Supertrend - is a modified way to use Triple Exponential Weighted Moving Average (TEWMA) combined with ATR-based Supertrend logic for Trend-Following.
The idea behind this indicator is to merge the smoothness and responsiveness of TEWMA with the robustness of ATR-based Supertrend volatility filtering. This results in a tool that not only reacts quickly to price changes but also adapts to market volatility, providing reliable trend detection with reduced noise.
The indicator works by calculating in the following steps:
Source Selection
The user can select the price source (default is Close). This price series is the foundation of all calculations, and changing the source allows the indicator to adapt to different analytical perspectives, such as Open, High, Low, or HL2.
TEWMA Calculation
The script calculates a Weighted Moving Average (WMA) of the selected source, and then applies a Triple Exponential Moving Average (TEMA) smoothing on top of it. The result is what we call TEWMA. This hybrid method achieves two goals simultaneously:
-WMA adds sensitivity by giving more weight to recent data.
-TEMA reduces lag by combining multiple EMA calculations while keeping smoothness.
ATR Volatility Measurement
In parallel, the Average True Range (ATR) is calculated over the user-defined Supertrend length . ATR measures volatility and dynamically scales the upper and lower bands to adjust to different market conditions.
Upper and Lower Band Construction
The indicator builds two envelopes around the TEWMA:
- Upper Band = TEWMA + (Multiplier × ATR)
- Lower Band = TEWMA – (Multiplier × ATR)
These bands expand and contract depending on volatility, creating a dynamic channel.
Band Adjustment Logic
To prevent false flips, the current upper/lower band values are compared to their previous values. If price has not broken above or below the prior band, the bands “stick” to their previous values, thereby filtering noise and avoiding unnecessary trend changes.
Trend Detection
-If price closes above the adjusted upper band, the direction is bullish.
-If price closes below the adjusted lower band, the direction is bearish.
-Otherwise, the trend direction continues from its prior state.
The Trend line is then set to either the upper band (bearish) or lower band (bullish).
Visual Representation
-The TEWMA line itself is plotted and color-coded (blue for bullish, purple for bearish).
-The active Supertrend line is plotted depending on trend direction.
-Shaded regions are added around the lines for enhanced clarity, visually separating bullish and bearish phases.
Buy and Sell Conditions :
- Buy Signal : Triggered when price closes above the Supertrend line, confirming a bullish shift.
- Sell Signal : Triggered when price closes below the Supertrend line, confirming a bearish shift.
Features and Parameters :
- TEWMA Source – Select the input price (Close, Open, High, Low, etc.).
- TEWMA Length – Defines the lookback for the Weighted MA and subsequent TEMA smoothing.
- Supertrend Length – Defines the ATR period used for volatility measurement.
- Multiplier – Determines how far the Supertrend bands are placed from the TEWMA. Higher values mean wider bands and fewer trend flips, while lower values mean tighter bands and more frequent signals.
Specifications :
Weighted Moving Average (WMA)
The WMA gives more importance to recent price points while still considering past values. This makes it more responsive to recent moves than a Simple Moving Average (SMA).
Triple Exponential Moving Average (TEMA)
TEMA reduces lag by combining multiple layers of EMA calculations. Unlike a simple EMA, which can be slow to react, TEMA anticipates changes faster, while still maintaining smoothness to avoid false signals.
TEWMA (TEMA of WMA)
By applying TEMA on top of WMA, we create a hybrid smoothing technique. This retains the responsiveness of WMA but reduces its lag via TEMA’s structure. The result is a highly adaptive moving average, ideal for fast trend detection.
Average True Range (ATR)
ATR measures the degree of volatility by looking at the full trading range of each candle. It ensures that the Supertrend bands expand in volatile markets and contract in calm markets, keeping signals relevant to current conditions.
Supertrend Bands
The upper and lower envelopes built around TEWMA act as dynamic support and resistance. Their adaptive nature reduces false trend shifts during choppy sideways markets.
Band Adjustment Logic
Instead of recalculating bands every candle, the script uses a memory mechanism (previous values) to prevent unnecessary trend switches. This stabilizes the indicator and avoids excessive noise.
Trend Line
The final output is a line that follows price in trending phases while holding steady during consolidations. Its placement above or below price clearly signals bullish or bearish market structure.
Color Coding and Visuals
The use of shaded fills and line coloring enhances readability. Traders can quickly distinguish trend direction and momentum without deep numerical analysis.
Enjoy!
Anchored EMA/VWAP### Anchored EMA/VWAP Indicator
**Description:**
The **Anchored EMA/VWAP Indicator** is a powerful and versatile tool designed for traders seeking to analyze price trends and momentum from a user-defined anchor point in time. Built for TradingView using Pine Script v6, this indicator calculates and displays multiple **Exponential Moving Averages (EMAs)**, **Volume-Weighted Exponential Moving Averages (VWEMAs)**, and a **Volume-Weighted Average Price (VWAP)**, all anchored to a specific date and time chosen by the user. By anchoring these calculations, traders can focus on price action relative to significant market events, such as news releases, earnings reports, or key support/resistance levels.
The indicator supports multi-timeframe (MTF) analysis, allowing users to compute EMAs, VWEMAs, and VWAP on a higher or custom timeframe (e.g., 5-minute, 1-hour, daily) while overlaying the results on the current chart. It also includes customizable cross signals for EMA and VWEMA pairs, marked with distinct shapes (circles, diamonds, squares) to highlight potential trend changes or reversals. These features make the indicator ideal for trend-following, momentum trading, and identifying key price levels across various markets, including stocks, forex, cryptocurrencies, and commodities.
**Key Features:**
- **Anchored Calculations**: EMAs, VWEMAs, and VWAP start calculations from a user-specified anchor time, enabling analysis relative to significant market moments.
- **Multi-Timeframe Support**: Compute indicators on any timeframe (e.g., 60-minute, daily) and display them on the chart’s timeframe for flexible analysis.
- **Customizable EMAs and VWEMAs**: Four EMAs and four VWEMAs with adjustable lengths (default: 9, 21, 50, 100) and colors, with options to show or hide each.
- **Volume-Weighted Metrics**: VWAP and VWEMAs incorporate volume data, providing a more robust representation of market activity compared to standard EMAs.
- **Cross Signals**: Visual markers (circles, diamonds, squares) for crossovers between EMA and VWEMA pairs, with customizable visibility to highlight bullish (up) or bearish (down) signals.
- **User-Friendly Interface**: Organized input groups for General, EMA, VWEMA, VWAP, Arrow Settings, and Cross Visibility, with intuitive inline inputs for length and color customization.
- **Visual Clarity**: Overlaid on the price chart with distinct colors and line styles (dotted for EMAs, dashed for VWEMAs, solid for VWAP) to ensure easy interpretation.
**How to Use:**
1. **Set the Anchor Time**: Click a specific bar or enter a date/time (default: June 1, 2025) to start calculations from a significant market event.
2. **Select Timeframe**: Choose a timeframe (e.g., "5" for 5-minute, "D" for daily) to compute the indicators, allowing alignment with your trading strategy.
3. **Customize EMAs and VWEMAs**: Adjust lengths and colors for up to four EMAs and VWEMAs, and toggle their visibility to focus on relevant lines.
4. **Enable VWAP**: Display the anchored VWAP to identify volume-weighted price levels, useful as dynamic support/resistance.
5. **Monitor Cross Signals**: Enable cross visibility for specific EMA or VWEMA pairs to spot potential trend changes. Bullish crosses (e.g., shorter EMA crossing above longer EMA) are marked with green shapes below the bar, while bearish crosses are marked with red shapes above the bar.
6. **Interpret Signals**: Use EMA/VWEMA crossovers for trend confirmation, VWAP as a mean-reversion level, and volume-weighted VWEMAs for momentum analysis in high-volume markets.
**Use Cases:**
- **Trend Trading**: Identify trend direction using EMA and VWEMA crossovers, with shorter lengths (e.g., 9, 21) for faster signals and longer lengths (e.g., 50, 100) for trend confirmation.
- **Mean Reversion**: Use the anchored VWAP as a dynamic support/resistance level to trade pullbacks or breakouts.
- **Event-Based Analysis**: Anchor the indicator to significant events (e.g., earnings, economic data releases) to analyze price behavior post-event.
- **Multi-Timeframe Strategies**: Combine higher timeframe EMAs/VWAPs with lower timeframe price action for high-probability setups.
**Settings:**
- **Anchor Time**: Set the starting point for calculations (default: June 1, 2025).
- **Timeframe**: Choose the timeframe for calculations (default: 5-minute).
- **EMA/VWEMA Lengths**: Default lengths of 9, 21, 50, and 100 for both EMAs and VWEMAs, adjustable per user preference.
- **Colors**: Customizable colors with slight transparency for visual clarity.
- **Cross Visibility**: Toggle specific EMA and VWEMA cross signals (e.g., EMA1/EMA2, VWEMA1/VWEMA3) to reduce chart clutter.
- **Arrow Colors**: Green for bullish crosses, red for bearish crosses.
**Notes:**
- The indicator is overlaid on the price chart, ensuring seamless integration with price action analysis.
- VWEMAs and VWAP are volume-sensitive, making them particularly effective in markets with significant volume fluctuations.
- Ensure the anchor time is set to a valid historical or future bar to avoid calculation errors.
- Cross signals are conditional on non-NA values to prevent false positives during initialization.
**Author**: NEPOLIX
**Version**: 6 (Pine Script v6)
**Published**: For TradingView Community
This indicator is a must-have for traders looking to combine anchored, volume-weighted, and multi-timeframe analysis into a single, customizable tool. Whether you're a day trader, swing trader, or long-term investor, the Anchored EMA/VWAP Indicator provides actionable insights for informed trading decisions.
TEWMA - [JTCAPITAL]TEWMA - is a modified way to use Triple Exponential Moving Average (TEMA) combined with Weighted Moving Average (WMA) and adaptive multi-length averaging for Trend-Following.
The indicator blends short- and extended-length smoothed signals into a single adaptive line, then assigns directional bias to highlight bullish or bearish phases more clearly.
The indicator works by calculating in the following steps:
Source Selection
The script begins with a selectable price source (default: Close, but can be changed to Open, High, Low, HL2, etc.). This ensures flexibility depending on the user’s preferred market perspective.
Dual-Length Calculation
A base length ( len ) is chosen, and then multiplied by a factor ( multi , default 1.75). This produces a secondary, longer period ( len2 ) that adapts proportionally to the base.
Weighted + Triple Exponential Smoothing
-First, a WMA (Weighted Moving Average) is applied to the price source.
-Then, the TEMA (Triple Exponential Moving Average) is applied to smooth the WMA even further.
-This process is repeated for both len and len2 , producing TEWMA1 and TEWMA2 .
Adaptive Averaging
The final TEWMA line is calculated as the average of TEWMA1 and TEWMA2, creating a blend between the short-term and extended-term signals. This balances reactivity and stability, reducing lag while avoiding excessive noise.
Trend Direction Detection
-If TEWMA is greater than its previous value → Bullish .
-If TEWMA is lower than its previous value → Bearish .
-A Signal variable is used to store this directional bias, ensuring continuity between bars.
Visual Plotting
-The main TEWMA is plotted with bold coloring (Blue for bullish, Purple for bearish).
-TEWMA1 and TEWMA2 are plotted as thinner supporting lines.
-Each line is given a shadow-fill (between 100% and 90% of its value) for emphasis and visual clarity.
Alerts
Custom alerts are defined:
- TEWMA Long → when bullish.
- TEWMA Short → when bearish.
-These alerts can be integrated into TradingView’s alerting system for automated notifications.
Buy and Sell Conditions :
- Buy : Triggered when TEWMA rises (bullish slope). The indicator colors the line blue and an alert can be fired.
- Sell : Triggered when TEWMA declines (bearish slope). The line turns purple, signaling potential short or exit points.
Features and Parameters :
- Source → Selectable price input (Close, Open, HL2, etc.).
- Length (len) → Base period for the WMA/TEMA calculation.
- Multiplier (multi) → Scales the secondary length to create a longer-term smoothing.
- Color-coded Trend Lines → Blue for bullish, Purple for bearish.
- Shadow Fill Effects → Provides depth and easier visualization of trend direction.
- Alert Conditions → Prebuilt alerts for both Long and Short scenarios.
Specifications :
Weighted Moving Average (WMA)
The WMA assigns more weight to recent price values, making it more responsive than a Simple Moving Average (SMA). This enhances early detection of market turns while reducing lag compared to longer-term averages.
Triple Exponential Moving Average (TEMA)
TEMA is designed to minimize lag by combining multiple EMA layers (EMA of EMA of EMA). It is smoother and more adaptive than traditional EMAs, making it ideal for detecting true market direction without overreacting to small fluctuations.
Multi-Length Averaging
By calculating two versions of WMA → TEMA with different lengths and then averaging them, the indicator balances responsiveness (short-term sensitivity) and reliability (long-term confirmation). This prevents whipsawing while keeping signals timely.
Adaptive Signal Assignment
Instead of simply flipping signals at crossovers, the indicator checks slope direction of TEWMA. This ensures smoother trend-following behavior, reducing false positives in sideways conditions.
Color-Coding & Visual Shading
Visual clarity is achieved by coloring bullish periods differently from bearish ones, with shaded fills beneath each line. This allows traders to instantly identify trend conditions and compare short- vs long-term signals.
Alert Conditions
Trading decisions can be automated by attaching alerts to the TEWMA’s bullish and bearish states. This makes it practical for active trading, swing setups, or algorithmic strategies.
Enjoy!
RCT RSI Pro FusionDescription for "RCT RSI Pro Fusion"
Description:
The RCT RSI Pro Fusion is an advanced indicator for TradingView, developed by Carlos Mauricio Vizcarra for the Rafael Cepeda Trader community. It combines the power of the standard Relative Strength Index (RSI) with additional elements to provide a more comprehensive market view.
Key Features:
RSI and SMA: Displays the standard RSI line along with its Simple Moving Average (SMA) applied directly to the RSI values, allowing analysis of its trend and momentum.
Clear Overbought/Oversold Zones: Uses dotted horizontal lines at the 20 (oversold) and 80 (overbought) levels, easily visible over any panel background, facilitating the identification of extreme price conditions.
Divergence Detection: Incorporates a system to identify and visualize regular and hidden bullish and bearish divergences between the price and the RSI, providing potential trend reversal signals.
Intuitive Visualization: Divergences are marked with symbols ('R' for regular, 'H' for hidden) and dotted lines connecting them, enhancing visual interpretation.
Alerts: Includes alert conditions for when different types of divergences are detected.
Customizable: Allows adjustment of RSI length, price source, RSI SMA period, and divergence visualization options.
In summary, the RCT RSI Pro Fusion is an all-in-one tool that fuses RSI analysis, its moving average, and divergence detection, all presented with clear and customizable visualization, ideal for traders looking to deepen their technical analysis.
Sols Day Trading Signals (5m / 10m)This indicator is designed for day trading on the 5-minute and 10-minute charts.
Includes:
EMA 9 & EMA 21 crossover signals
MACD momentum confirmation
RSI trend filter (50+)
Buy/Sell labels directly on the chart
💡 How to Use:
Go long when EMA 9 crosses above EMA 21, MACD is positive, and RSI is above 50
Go short when EMA 9 crosses below EMA 21, MACD is negative, and RSI is below 50
Best used with proper risk management (1-2% per trade)
⚠️ Disclaimer: This is for educational purposes only — always backtest and trade responsibly.
BB Crosses Optimized - [JTCAPITAL]BB Crosses Optimized - is a modified way to use Bollinger Bands combined with volatility filtering (ATR) and flexible smoothing methods for Trend-Following.
The indicator works by calculating in the following steps:
Source Selection & Smoothing
The script begins by letting the user select a preferred price source (default is Close, but options include Open, High, Low, HL2, etc.). This raw input is then passed through a smoothing process.
Multiple smoothing techniques can be chosen: SMA, EMA, HMA, DEMA, TEMA, RMA, and FRAMA. Each method reduces short-term noise differently, ensuring flexibility for traders who prefer faster or slower reaction speeds in trend detection.
Bollinger Band Construction
Once the smoothed source is prepared, Bollinger Bands are calculated. The middle band is a moving average of the smoothed data over the defined BB Period . The upper and lower bands are then generated by adding and subtracting the Standard Deviation × Deviation multiplier . These dynamic bands capture volatility and help define breakout zones.
ATR Volatility Measurement
Parallel to the band calculation, the Average True Range (ATR) is computed over the chosen ATR Period . This measures market volatility. The ATR can optionally act as a filter, refining buy and sell levels so signals adapt to current market conditions rather than being fixed to price alone.
Bollinger Band Signals
-If the smoothed price closes above the upper band, a potential bullish event is marked.
-If the smoothed price closes below the lower band, a potential bearish event is marked.
Trend Line Construction
When a bullish event occurs, the script anchors a trend-following line beneath price. If ATR filtering is enabled, the line is set at Low – ATR , otherwise at the simple Low. Conversely, when a bearish event occurs, the line is anchored above price at High + ATR (or just High without the filter). The line is designed to only move in the direction of the trend—if price action does not exceed the prior value, the previous level is held. This prevents unnecessary whipsaws and keeps the indicator aligned with dominant momentum.
Final Trend Detection
The slope of the trend line defines the trend itself:
-Rising line → bullish trend.
-Falling line → bearish trend.
Visual Output
The indicator plots the trend line with dynamic coloring: Blue for bullish phases, Purple for bearish phases. A subtle filled background area emphasizes the active trend zone for clearer chart interpretation.
Buy and Sell Conditions:
- Buy Signal : Triggered when smoothed price closes above the upper Bollinger Band. Trend line then anchors below price (with or without ATR offset depending on settings).
- Sell Signal : Triggered when smoothed price closes below the lower Bollinger Band. Trend line then anchors above price (with or without ATR offset).
Additional filtering is possible via:
- ATR Toggle : Switch ATR on or off to adapt the strategy to either volatile or steady markets.
- Smoothing Method : Adjust smoothing to speed up or slow down responsiveness.
- Deviation Multiplier : Tight or wide bands adjust the sensitivity of signals.
Features and Parameters:
- Source : Choose between Close, Open, High, Low, HL2, etc.
- Average Type : Options include SMA, EMA, HMA, DEMA, TEMA, RMA, FRAMA.
- ATR Period : Defines how ATR volatility is measured.
- BB Period : Lookback length for Bollinger Band construction.
- Deviation : Multiplier for the standard deviation in Bollinger Bands.
- Smoothing Period : Controls how much the source data is smoothed.
- ATR Filter On/Off : Enables or disables ATR integration in signal calculation.
Specifications:
Smoothing (MA Types)
Smoothing is essential to reduce chart noise. By offering multiple MA choices, traders can balance between lag (SMA, RMA) and responsiveness (EMA, HMA, FRAMA). This flexibility allows the indicator to adapt across asset classes and trading styles.
Bollinger Bands
Bollinger Bands measure price deviation around a moving average. They help identify volatility expansion and contraction. In this script, the bands serve as breakout triggers—price crossing outside suggests momentum strong enough to sustain a trend.
Standard Deviation
Standard Deviation is a statistical measure that quantifies the dispersion of price data around the mean. With a multiplier applied, it creates bands that contain a probabilistic portion of price action. Crossing beyond these suggests a higher likelihood of trend continuation.
ATR (Average True Range)
ATR measures the degree of volatility. Instead of simply reacting to price crossing the bands, ATR ensures the trend line placement adapts to current conditions. In volatile markets, wider buffers prevent premature signals; in calmer markets, tighter placement keeps signals responsive.
Trend Line Logic
The trend line only adjusts in the direction of the trend. If new values do not exceed the prior, the line remains unchanged. This prevents false reversals and makes the line a reliable visual confirmation of trend direction.
Signal Detection
The indicator does not repaint: signals are based on confirmed closes relative to the Bollinger Bands. This makes it more reliable for both live trading and backtesting scenarios.
Visual Enhancements
The use of dual plots and fill shading creates a clearer separation of bullish vs. bearish phases. This helps traders visually align entries and exits without second-guessing.
Enjoy!
Yasser Buy/Sell Signal Indicator 001Coded by: Yasser Mahmoud (YWMAAAWORLD):
For any assistance contact me at: yarm.global@gmail.com
# 🚀 **EMA Trend & Signal Indicator - The Ultimate Anti-Chop Trading System**
## **Finally! An Indicator That Eliminates False Signals and Maximizes Trending Profits**
Are you tired of getting whipsawed in choppy markets? Frustrated by indicators that give you 10 signals when you need just 1 good one? **This changes everything.**
---
## 🎯 **What Makes This Indicator Revolutionary?**
### **🔥 INNOVATIVE 7-FILTER CONFIRMATION SYSTEM**
This isn't just another EMA crossover indicator. It's a **complete trading system** that combines:
✅ **Multi-EMA Trend Analysis** (8, 13, 21, 50, 200 EMAs)
✅ **Volume Surge Detection** (1.5x average volume confirmation)
✅ **RSI Momentum Filter** (Avoids overbought/oversold traps)
✅ **EMA Slope Confirmation** (All short-term EMAs must align)
✅ **Advanced Anti-Chop Technology** (Patent-pending 5-filter system)
### **🚫 REVOLUTIONARY ANTI-CHOP FILTERS**
**The game-changer that separates amateurs from professionals:**
1. **Trend Strength Analyzer** - Measures EMA separation strength
2. **EMA Bunching Detector** - Prevents signals when EMAs are too close
3. **Market Structure Scanner** - Identifies genuine trending vs ranging markets
4. **Enhanced Volatility Filter** - Waits for sufficient market movement
5. **Smart Chop Detection** - Multi-timeframe chopiness analysis
**Result: 3 out of 5 filters must pass = Only HIGH-PROBABILITY setups trigger signals!**
---
## 📈 **TRADING RULES - COPY & PASTE STRATEGY**
### **🟢 BUY SIGNALS (Long Entry)**
**When ALL conditions align:**
- Price above 50 EMA **AND** 50 EMA above 200 EMA (Uptrend confirmed)
- 8 EMA > 13 EMA > 21 EMA (Perfect alignment)
- Volume > 1.5x average (Institutional participation)
- RSI between 50-70 (Bullish momentum, not overbought)
- All EMA slopes positive (True trending, not fake breakout)
- Anti-Chop Score ≥ 3/5 (Market conditions suitable)
**📍 Entry:** When green "BUY" label appears
**🛡️ Stop Loss:** Below nearest swing low or 50 EMA
**🎯 Take Profit:** 2:1 or 3:1 risk/reward ratio
### **🔴 EXIT BUY SIGNALS (Risk Management)**
**Automatic protection when:**
- EMAs lose perfect alignment (8>13>21 breaks)
- Trend remains intact but short-term weakness detected
**📍 Action:** Exit position when "EXIT BUY" appears
**💡 Strategy:** Wait for "BUY" signal to re-enter if trend continues
### **🟥 SELL SIGNALS (Short Entry)**
**Mirror logic for downtrends:**
- Price below 50 EMA **AND** 50 EMA below 200 EMA
- 8 EMA < 13 EMA < 21 EMA (Perfect bearish alignment)
- Same volume, RSI, and anti-chop confirmations
### **🔸 EXIT SELL SIGNALS**
**Smart exit when bearish alignment breaks**
---
## 💰 **PROFIT-MAXIMIZING FEATURES**
### **📊 REAL-TIME STATUS DASHBOARD**
Never guess market conditions again! Live display shows:
- Current trend direction
- Signal state (BUY/SELL/EXIT/NONE)
- EMA alignment status
- Volume surge detection
- RSI level with color coding
- Anti-chop score (X/5)
- **Signal quality assessment**
### **🎨 CLEAN VISUAL SYSTEM**
- **Large, clear text labels** (no tiny arrows to miss)
- **Color-coded status panel** (optimized for white backgrounds)
- **Only long-term EMAs visible** (reduces chart clutter)
- **Smart sizing** (signals visible but not overwhelming)
### **🔔 BUILT-IN ALERTS**
Set and forget! Get notified instantly when:
- New BUY/SELL signals trigger
- EXIT signals protect your profits
- All confirmations align for high-probability setups
---
## 🏆 **WHY TRADERS CHOOSE THIS OVER EVERYTHING ELSE**
### ❌ **OTHER INDICATORS:**
- Give signals in every market condition
- Generate 50+ signals per day (analysis paralysis)
- No differentiation between high/low probability setups
- Leave you guessing about market structure
### ✅ **THIS SYSTEM:**
- **Selective Excellence** - Only 3-7 high-quality signals per week
- **Built-in Intelligence** - Automatically avoids choppy markets
- **Complete Transparency** - Shows you exactly why each signal triggers
- **Professional Grade** - Used by institutional-level confirmation methods
---
## 🎓 **PERFECT FOR:**
✅ **Swing Traders** - Clean entries on major trend moves
✅ **Day Traders** - High-probability intraday setups
✅ **Position Traders** - Long-term trend following
✅ **Beginners** - Clear, unambiguous signals with built-in education
✅ **Professionals** - Advanced filtering reduces noise, maximizes edge
---
## ⚡ **QUICK SETUP GUIDE**
1. **Add indicator to chart**
2. **Enable all default filters** (optimized settings included)
3. **Watch the status panel** - Wait for Chop Score ≥ 3/5
4. **Enter on BUY/SELL signals** - Exit on EXIT signals
5. **Profit from trending moves** while avoiding choppy losses!
---
## 🌟 **THE BOTTOM LINE**
**Stop fighting the market. Start trading WITH institutional-grade intelligence.**
This isn't just an indicator - it's your **competitive advantage** in a market where 90% of traders lose money due to poor timing and choppy market entries.
**Join the 10% who consistently profit by trading only when conditions are optimal.**
---
### 🔥 **"Finally, an indicator that thinks like a professional trader - selective, patient, and deadly accurate when it matters most."**
**Download now and experience the difference between trading signals and trading INTELLIGENCE.**
*Results may vary. Past performance does not guarantee future results. Always use proper risk management.*
Stochastic [Paifc0de]Stochastic — clean stochastic oscillator with visual masking, neutral markers, and basic filters
What it does
This indicator plots a standard stochastic oscillator (%K with smoothing and %D) and adds practical quality-of-life features for lower timeframes: optional visual masking when %K hugs overbought/oversold, neutral K–D cross markers, session-gated edge triangles (K crossing 20/80), and simple filters (minimum %K slope, minimum |K–D| gap, optional %D slope agreement, mid-zone mute, and a cooldown between markers). Display values are clamped to 0–100 to keep the panel scale stable. The tool is for research/education and does not generate entries/exits or financial advice.
Default preset: 20 / 10 / 10
K Length = 20
Classic lookback used in many textbooks. On intraday charts it balances responsiveness and stability: short enough to react to momentum shifts, long enough to avoid constant whipsaws. In practice it captures ~the last 20 bars’ position of close within the high–low range.
K Smoothing = 10
A 10-period SMA applied to the raw %K moderates the “saw-tooth” effect that raw stochastic can exhibit in choppy phases. The smoothing reduces over-reaction to micro spikes while preserving the main rhythm of swings; visually, %K becomes a continuous path that is easier to read.
D Length = 10
%D is the moving average of smoothed %K. With 10, %D becomes a clearly slower guide line. The larger separation between %K(10-SMA) and %D(10-SMA of %K) produces cleaner crosses and fewer spurious toggles than micro settings (e.g., 3/3/3). On M5–M15 this pair often yields readable cross cycles without flooding the chart.
How the 20/10/10 trio behaves
In persistent trends, %K will spend more time near 20 or 80; the 10-period smoothing delays flips slightly and emphasizes only meaningful turn attempts.
In ranges, %K oscillates around mid-zone (40–60). With 10/10 smoothing, cross signals cluster less densely; combining with the |K–D| gap filter helps keep only decisive crosses.
If your symbol is unusually volatile or illiquid, reduce K Length (e.g., 14) or reduce K Smoothing (e.g., 7) to keep responsiveness. If crosses feel late, decrease D Length (e.g., 7). If noise is excessive, increase K Smoothing first, then consider raising D Length.
Visuals
OB/OS lines: default 80/20 reference levels and a midline at 50.
Masking near edges: %K can be temporarily hidden when it is pressing an edge, approaching it with low slope, or going nearly flat near the boundary. This keeps the panel readable during “stuck at the edge” phases.
Soft glow (optional): highlights %K’s active path; can be turned off.
Light/Dark palette: quick toggle to match your chart theme.
Scale safety: all plotted values (lines, fills, markers) are clamped to 0–100 to prevent the axis from expanding beyond the stochastic range.
Markers and filters
Neutral K–D cross markers: circles in the mid-zone when %K crosses %D.
Edge triangles: show when %K crosses 20 or 80; can be restricted to a session window (02:00–12:00 ET).
Filters (optional):
Min %K slope: require a minimum absolute slope so very flat crosses are ignored.
Min |K–D| gap: demand separation between lines at the cross moment.
%D slope agreement: keep crosses that align with %D’s direction.
Mid-zone mute: suppress crosses inside a user-defined 40–60 band (defaults).
Cooldown: minimum bars between successive markers.
Parameters (quick guide)
K Length / K Smoothing / D Length: core stochastic settings. Start with 20/10/10; tune K Smoothing first if you see too much jitter.
Overbought / Oversold (80/20): adjust for assets that tend to trend (raise to 85/15) or mean-revert (lower to 75/25).
Slope & gap filters: increase on very noisy symbols; reduce if you miss too many crosses.
Session window (triangles only): use if you want edge markers only during active hours.
Marker size and offset: cosmetic; they do not affect calculations.
Alerts
K–D Cross Up (filtered) and K–D Cross Down (filtered): fire when a cross passes your filters/cooldown.
Edge Up / Edge Down: fire when %K crosses the 20/80 levels.
All alerts confirm on bar close.
Notes & attribution
Original implementation and integration by Paifc0de; no third-party code is copied.
This indicator is for research/education and does not provide entries/exits or financial advice.
EMA + MACD Sequential Crossover MNQ BBCbest works for 100 or 1000 tick chart for nasdaq 100.
9 21 ema crossover with macd crossover
Publisher BBCKPS
EMA20 (Cur/1H/D) + 5m Bar CountPlots EMA20 for current TF, 1H, and Daily, plus a 5-minute bar counter starting from 09:30 NY time, showing every Nth bar (default 2).
Bollinger Bands (Log Scale)📈 Bollinger Bands on log scale are broken.
Many traders use log charts for better price symmetry—but still apply Bollinger Bands calculated on linear price. That mismatch creates distorted signals.
Here’s what I found:
- Standard deviation becomes misleading on log scale
- Band width no longer reflects true volatility
- Breakout signals lose behavioral clarity
🛠 So I rewrote the logic.
My version calculates Bollinger Bands using log(price) for both mean and deviation, then maps the result back to price. It behaves correctly on log charts and aligns better with behavioral scoring.
Double Top/Bottom Screener with Distance. Thank you for providing the error messages! There are two issues to address based on your input:
Error: "Value with NA type cannot be assigned to a variable that was defined without type keyword"
This occurs because in Pine Script, when a variable like distanceToNearest is used without an explicit type declaration (e.g., var float distanceToNearest), assigning na directly to it can cause a type mismatch error if the variable’s type isn’t pre-defined. The fix is to either declare distanceToNearest with a type (e.g., var float) or ensure the assignment aligns with Pine Script’s typing rules.
Warning: "Version 5 of Pine Script® is outdated. We recommend using the current version, which is 6. (PINE_VERSION_OUTDATED)"
TradingView has updated to Pine Script version 6, which includes new features and improvements. While version 5 still works, upgrading to version 6 is recommended for better compatibility and future support. The transition is mostly seamless, but we’ll need to adjust the script accordingly.
SMA بسيط//@version=5
indicator("SMA بسيط", overlay=true)
len = input.int(20, "طول الـ SMA")
smaVal = ta.sma(close, len)
plot(smaVal, title="SMA", linewidth=2)
TF-Gated CCI+ConsCount+Vol S/R —Signal (v2.6-cci-ascdesc)This scrip take trade on turning of cci after considering valet of CM_Total consec and volume based S/R
Double Top/Bottom Screener v2How to Test and Use
On Charts:
Add to a 1min chart (e.g., reload EVAX or your 256-level stock).
Adjust inputs via the gear icon: Set "Absolute Tolerance ($)" to 0.01 (or 0.005 for stricter).
Scroll/zoom to see: Lines only on today's swings; purple signal only on true doubles (e.g., two red lines at exact 256.00). No more false positives from slight drifts.
Table now shows the active level—helps verify.
In Pine Screener:
Reload the indicator (select "Double Top/Bottom Screener v2").
Set timeframe to 1min, watchlist to your high-volume US list.
Filter: "Pattern Signal" equals 1.
Click Scan—results should drop significantly (only clean doubles). If still too many, increase "Min Bars Between" to 20+ in script inputs (rescan).
For persistence: Rescans will keep showing unbroken patterns (signal stays 1 until break).
This should match your "cent by cent" ideal—e.g., two swings at exactly 256.00 or 256.01 will trigger, but 256.02 won't. If EVAX now fails (tops not within 0.01), tweak tolerance up slightly. Test on a few charts; if issues persist, share a specific symbol/screenshot for further tweaks!
Whole number highlightsThis very simple indicator provides what should be a built-in TradingView feature: it highlights the whole number currency amounts (dollar, pound, euro, etc.) on your chart with a simple and unobtrusive dotted line. By default, a slightly thicker dotted line is used on whole number multiples of ten.
These are important to highlight because they often act as "psychological levels" in the marketplace, especially when they coincide with more significant levels of support or resistance. They can also help provide a sense of scale to the chart, which is useful when switching between various zoom levels.
It's open-source, so it can be easily combined into other indicators, which should especially be useful for those with limited plans who are allowed a limited number of indicators.
Disclaimer : Use at your own risk. This indicator and the strategy described herein are not in any way financial advice, nor does the author of this script make any claims about the effectiveness of this indicator or of any related strategy, which may depend highly on the discretion and skill of the trader executing it, among many other factors outside of the author's control. The author of this script accepts no liability, and is not responsible for any trading decisions that you may or may not make as a result of this indicator. You should expect to lose money if using this indicator.
TF-Gated CCI x MA + ConsCount + Vol S/R — Signal (v2.6)This is a strategy based on 3 indicators with a view of predicting price of the market in the next 1.5-7.5 minutes depending on the chart you are using. it is best suitable to use with brokers like Tickz.
Multi EMA and Key Levels IndicatorKey Features:
Daily and Previous Day Levels
Plots today’s high and low.
Plots the previous day’s high (Y HOD) and low (Y LOD), with labels anchored to the price axis.
Premarket (Globex) High and Low
Tracks premarket session highs and lows (defined as 5:00 PM to 8:30 AM Chicago time).
Updates dynamically during the session and plots “GLOBEX HIGH” and “GLOBEX LOW” lines with labels.
Exponential & Simple Moving Averages
User can select 3 EMAs (default 8, 21, 200).
Plots EMAs with distinct colors.
Plots the 200-day SMA for longer-term trend context.