5 Moving Average5 Moving Averages configurable by moving average type (SMA, EMA, WMA)
Also configurable by input type for the calculation (CLOSE, HIGH, LOW,
Medie mobili
3SMA +30 Stan Weinstein +200WMA +alert-crossingIndicator Description: Stan Weinstein Strategy + Key Moving Averages
🔹 Introduction
This indicator combines the Classic Stan Weinstein Strategy with a modern update based on the author’s latest recommendations. It includes key moving averages that help identify trends and potential entry or exit points in the market.
📊 Included Moving Averages (Fully Customizable)
All moving averages in this indicator have modifiable parameters, allowing users to adjust values in the input settings.
1️⃣ 30-Week SMA (Stan Weinstein): A long-term trend indicator defining the asset’s main trend.
2️⃣ 40-Week SMA (Weinstein Update): An adjusted version recommended by the author in his recent updates.
3️⃣ 10-Day SMA: Displays short-term price action and helps confirm trend changes.
4️⃣ 100-Day SMA: A medium-term trend measure used by traders to assess trend strength.
5️⃣ 200-Day WMA (Weighted Moving Average): A very long-term indicator that filters market noise and confirms solid trends.
🔍 How to Interpret It
✔️ 30/40-Week SMA in an uptrend → Confirms an accumulation phase or an upward price trend.
✔️ Price above the 200-WMA → Indicates a strong and healthy long-term trend.
✔️ 10-SMA crossing other moving averages → Can signal an early entry or exit opportunity.
✔️ 100-SMA vs. 200-WMA → A breakout of the 100-SMA above the 200-WMA may signal a new bullish phase.
🚨 Built-in Alerts (Key Crossovers)
The indicator includes automatic alerts to notify traders when key moving averages cross, allowing timely reactions:
🔔 10-SMA crossing the 40-SMA → Possible medium-term trend shift.
🔔 10-SMA crossing the 200-WMA → Confirmation of a stronger trend.
🔔 40-SMA crossing the 200-WMA → Long-term trend reversal signal.
💡 Customization: All moving average periods can be adjusted in the input settings, making the indicator flexible for different trading strategies.
EREMA SignalsOverview
The EREMA Signals indicator is a specialized overlay tool designed to display precise buy and sell signals directly on your price chart. Working as a companion to the main Ehlers Reverse EMA indicator, it brings powerful momentum-based signals to your trading strategy without cluttering your chart with additional indicator panels.
Key Features
On-Chart Signal Visualization: Clear buy/sell arrows appear directly on the price chart
Dynamic Signal Positioning: Signals automatically adjust their distance from price using ATR for optimal visibility
Multiple Signal Types: Choose from three distinct signal generation methods
Clean Chart Interface: Displays only the essential signals, maintaining chart clarity
Signal Types
Zero Cross: Generates signals when the Ehlers Reverse EMA crosses above/below the zero line
MA Cross: Identifies when the Ehlers Reverse EMA crosses its own moving average
Zero & MA Cross: The strictest filter, requiring both zero line and MA crossovers for signal generation
How To Use
Setup
First add the main "Ehlers Reverse EMA" indicator to your chart
Then add this "EREMA Signals" indicator as an overlay
Configure both indicators with identical settings for alpha, MA type, and signal method
Reading Signals
Green Triangles (below price): Buy signals indicating potential upward momentum
Red Triangles (above price): Sell signals indicating potential downward momentum
Trading Applications
Trend Identification: Zero cross signals help identify changes in overall trend direction
Momentum Trading: MA cross signals can identify shorter-term momentum shifts
Confirmation Tool: Use alongside other technical indicators or price action strategies
Multiple Timeframe Analysis: Apply to different timeframes for more robust trading decisions
Best Practices
Consider using longer timeframes (4H, Daily) for more reliable signals
The combined "Zero & MA Cross" setting provides fewer but higher-quality signals
For tighter entries, use the "MA Cross" option in established trends
Adjust the Alpha parameter to match your trading style (lower for longer-term, higher for shorter-term)
This indicator works seamlessly with the main Ehlers Reverse EMA indicator while maintaining a clean chart interface, making it ideal for traders who prefer visual simplicity without sacrificing analytical power.
Ehlers Reverse EMAOverview
The Ehlers Reverse EMA is an advanced momentum indicator designed by John Ehlers and implemented here with additional features for improved trading decision-making. This indicator helps identify trend direction, potential reversals, and generates precise buy/sell signals based on multiple confirmation methods.
What Makes It Unique
Unlike conventional EMAs, the Ehlers Reverse EMA uses a sophisticated reverse-engineering approach to provide smoother, more responsive signals with reduced lag. The indicator combines a proprietary EMA calculation with optional moving average confirmation to filter out market noise and highlight meaningful price movements.
Features
Dynamic Color Coding: Green when momentum is positive, red when negative
Moving Average Overlay: Optional MA with selectable types (SMA, EMA, WMA, VWMA)
Multiple Signal Generation Methods:
Zero-Line Crossovers: Signals when momentum shifts from positive to negative or vice versa
MA Crossovers: Signals when the Ehlers EMA crosses its own moving average
Combined Confirmation: Requires both zero-line and MA crossovers for highest probability signals
On-Chart Signal Visualization: Clear buy/sell arrows directly on the price chart
Customizable Parameters: Adjust alpha value, MA type, and signal generation to suit your trading style
How To Use
Add the main "Ehlers Reverse EMA" indicator to your chart
Add the companion "EREMA Signals" indicator to display buy/sell signals on the price chart
Ensure both indicators have matching settings for consistency
Signal Interpretation
Buy Signals (Green Triangles): Appear below price bars when conditions are met
Sell Signals (Red Triangles): Appear above price bars when conditions are met
Recommended Timeframes
Works well on all timeframes from 5-minute to daily charts. For swing trading, 4H or daily timeframes often provide the most reliable signals.
Strategy Applications
Trend Following: Use zero-line crossovers to enter with the trend
Momentum Trading: Use MA crossovers for entry and exit points
Confirmation Tool: Combine with price action or other indicators for higher-probability trades
Divergence Analysis: Compare indicator movement with price action to spot potential reversals
Parameter Settings
Alpha (Default: 0.1): Lower values create smoother lines but more lag; higher values increase responsiveness but may increase false signals
MA Length (Default: 14): Adjust based on your trading timeframe and style
This versatile indicator helps identify high-probability trading opportunities while filtering out market noise, making it valuable for both novice and experienced traders alike.
SublimeDubs EMA CloudShoutout Ripster for open-sourcing his code! This is a slight improvement/update to his code. A lot is customizable via settings instead of in the script. You can change the colors more easily now. I also added lines with price labels for the clouds and offset them by x amount of bar lengths. I can't do much about the vertical spacing but at least you can move it horizontally.
ATM Option Selling StrategyATM Option Selling Strategy – Explained
This strategy is designed for intraday option selling based on the 9/15 EMA crossover, 50/80 MA trend filter, and RSI 50 level. It ensures that all trades are exited before market close (3:24 PM IST).
. Indicators Used:
9 EMA & 15 EMA → For short-term trend identification.
50 MA & 80 MA → To determine the overall trend.
RSI (14) → To confirm momentum (above or below 50 level).
2. Entry Conditions:
🔴 Sell ATM Call (CE) when:
Price is below 50 & 80 MA (Bearish trend).
9 EMA crosses below 15 EMA (Short-term trend turns bearish).
RSI is below 50 (Momentum confirms weakness).
🟢 Sell ATM Put (PE) when:
Price is above 50 & 80 MA (Bullish trend).
9 EMA crosses above 15 EMA (Short-term trend turns bullish).
RSI is above 50 (Momentum confirms strength).
3. Position Sizing & Risk Management:
Sell 375 quantity per trade (Lot size).
50-Point Stop Loss → If option premium moves against us by 50 points, exit.
50-Point Take Profit → If option premium moves in our favor by 50 points, book profit.
Exit all trades at 3:24 PM IST → No overnight positions.
4. Exit Conditions:
✅ Stop Loss or Take Profit Hits → Automatically exits based on a 50-point move.
✅ Time-Based Exit at 3:24 PM → Ensures no open positions at market close.
Why This Works?
✔ Trend Confirmation → 50/80 MA ensures we only sell options in the direction of the market trend.
✔ Momentum Confirmation → RSI prevents entering weak trades.
✔ Controlled Risk → SL and TP protect against large losses.
✔ No Overnight Risk → All trades close before market close.
ISSU_LevelMonthly, weekly, daily level
Quarter session
EMA 20,50
Daily close level
IST 10:30am Level
Double MACD Overlay [NLR]This indicator plots two MACD signals directly on your price chart to help you spot trends and shifts in momentum more clearly:
🔹 Main MACD - The classic MACD with customizable Fast, Slow, and Signal lengths. Great for confirming broader trend direction.
🔹 Short MACD - A faster MACD with an option to smooth the input, helping you catch early signals or identify short-term momentum changes.
Each MACD is visualized as:
A line showing the moving average
A colored histogram showing the MACD minus the signal
A zero line for reference
Why use this?
By comparing a short-term MACD with a longer-term one, you get early signals without losing the big picture. Use it for confirmation, divergence spotting, or just cleaner trend visualization.
Best For:
✅ Trend-followers
✅ Momentum traders
✅ Anyone who wants more context from their MACD signals
Recommended Settings:
Here are some ideal settings to get the most out of this indicator:
On a 5-Minute Chart:
Compare your current MACD with the 15-minute MACD.
- MACD Multiplier: 3
On a 1-Minute Chart:
Spot short-term moves while comparing them to the 5-minute MACD.
- MACD Multiplier: 5
- Use Smoothed Source (Short MACD): ON (for a cleaner short MACD signal)
Happy trading! 💹
EMA Price Range by tuanduongEMA Price Range Indicator – Dynamic Range Analysis with Custom EMA (tuanduong2511)
Overview
The EMA Price Range Indicator is designed to help traders visualize the distance between price action and a key Exponential Moving Average (EMA). This indicator dynamically calculates the range from each candle to a user-defined EMA and displays it in a real-time table. By understanding the relationship between price and the EMA, traders can better gauge potential support, resistance, and overextension in the market.
Key Features
✅ Customizable EMA – Allows users to choose the EMA period that best suits their strategy (default: 144).
✅ Real-Time Range Calculation – Computes the absolute difference between the EMA and the price (using the high or low, depending on whether the candle is above or below the EMA).
✅ Minimalist UI – The EMA is plotted directly on the chart, while a small table in the bottom-right corner provides numerical insights, reducing chart clutter.
✅ Versatile Use Cases – Suitable for trend-following traders (identifying pullbacks to EMA) and mean-reversion traders (spotting extended price movements).
How It Works
User-Defined EMA:
The script calculates an Exponential Moving Average (EMA) based on the selected period.
EMA adapts dynamically, giving more weight to recent price movements.
Range Calculation:
If the price is above the EMA, the range is measured from the high point of the candle to the EMA.
If the price is below the EMA, the range is measured from the low point of the candle to the EMA.
This approach ensures that we’re measuring the most relevant distance for price interaction.
Live Table Display:
The current EMA value and the distance (range) from the price are displayed in a small table in the bottom-right corner of the chart.
How to Use It
📌 Trend Traders: Use the indicator to track pullbacks to key EMAs (e.g., EMA 50, 144, or 200). When the price is far from the EMA, it may indicate an overextended trend or potential retracement zone.
📌 Mean Reversion Traders: Look for extreme deviations between price and the EMA. Large distances can signal potential price snapbacks to the mean.
📌 Scalping & Day Trading: Short-term traders can use it with fast EMAs (e.g., EMA 21 or 34) to measure quick price movements relative to short-term momentum.
Why This Indicator?
Unlike traditional EMA indicators, which only plot a moving average, this script provides quantifiable price distance to the EMA, helping traders make data-driven decisions. It allows traders to answer:
✅ Is the price stretched too far from the EMA?
✅ Should I wait for a pullback before entering?
✅ Is the trend strong, or is the price losing momentum?
By integrating EMA-based range analysis, traders gain a clearer understanding of market conditions and can improve their entry, exit, and risk management strategies.
VIDYA Auto-Trading(Reversal Logic)Overview
This script is a dynamic trend-following strategy based on the Variable Index Dynamic Average (VIDYA). It adapts in real time to market volatility, aiming to enhance entry precision and optimize risk management.
⚠️ This strategy is intended for educational and research purposes. Past performance does not guarantee future results. All results are based on historical simulations using fixed parameters.
Strategy Objectives
The objective of this strategy is to respond swiftly to sudden price movements and trend reversals, providing consistent and reliable trade signals under historical testing conditions. It is designed to be intuitive and efficient for traders of all levels.
Key Features
Momentum Sensitivity via VIDYA: Reacts quickly to momentum shifts, allowing for accurate trend-following entries.
Volatility-Based ATR Bands: Automatically adjusts stop levels and entry conditions based on current market volatility.
Intuitive Trend Visualization: Uptrends are marked with green zones, and downtrends with red zones, giving traders clear visual guidance.
Trading Rules
Long Entry: Triggered when price crosses above the upper band. Any existing short position is closed.
Short Entry: Triggered when price crosses below the lower band. Any existing long position is closed.
Exit Conditions: Positions are reversed based on signal changes, using a position reversal strategy.
Risk Management Parameters
Market: ETHUSD(5M)
Account Size: $3,000 (reasonable approximation for individual traders)
Commission: 0.02%
Slippage: 2 pip
Risk per Trade: 5% of account equity (adjusted to comply with TradingView guidelines for realistic risk levels)
Number of Trades: 251 (based on backtest over the selected dataset)
⚠️ The risk per trade and other values can be customized. Users are encouraged to adapt these to their individual needs and broker conditions.
Trading Parameters & Considerations
VIDYA Length: 10
VIDYA Momentum: 20
Distance factor for upper/lower bands: 2
Source: close
Visual Support
Trend zones, entry points, and directional shifts are clearly plotted on the chart. These visual cues enhance the analytical experience and support faster decision-making.
Visual elements are designed to improve interpretability and are not intended as financial advice or trade signals.
Strategy Improvements & Uniqueness
Inspired by the public work of BigBeluga, this script evolves the original concept with meaningful enhancements. By combining VIDYA and ATR bands, it offers greater adaptability and practical value compared to conventional trend-following strategies.
This adaptation is original work and not a direct copy. Improvements are designed to enhance usability, risk control, and market responsiveness.
Summary
This strategy offers a responsive and adaptive approach to trend trading, built on momentum detection and volatility-adjusted risk management. It balances clarity, precision, and practicality—making it a powerful tool for traders seeking reliable trend signals.
⚠️ All results are based on historical data and are subject to change under different market conditions. This script does not guarantee profit and should be used with caution and proper risk management.
Estrategia 15 MINThe 50-EMA and 200-EMA are exponential moving averages (EMA) used in technical analysis to identify trends. The 50-EMA is used to analyze short- and medium-term trends, while the 200-EMA is used to analyze long-term trends.
50-EMA
Averaged over 50 periods
Allows for faster reaction to price changes
Used to analyze short- and medium-term trends
200-EMA
Averaged over 200 periods
Indicates an overall trend
Used to analyze long-term trends
EMA Technical Analysis with Reversal ZonesThis Pine Script is a comprehensive technical analysis indicator that combines multiple trend and momentum indicators to provide trading signals and market insights. It consists of two main components:
1. EMA-Based Technical Analysis:
• Uses multiple Exponential Moving Averages (EMAs) (8, 9, 20, 21, 50) to identify trends and crossovers.
• Includes Volume Weighted Average Price (VWAP) for institutional price tracking.
• Incorporates MACD, Parabolic SAR (PSAR), RSI, Bollinger Bands (BB), and ADX for additional trend confirmation.
• Monitors SPX (S&P 500) and VIX (Volatility Index) for broader market conditions.
• Plots bullish/bearish EMA crossovers and allows alert conditions for trading signals.
• Displays a technical analysis table summarizing market conditions.
2. Reversal and Confirmation Zones:
• Uses Bollinger Bands and RSI to identify overbought/oversold conditions.
• Highlights potential reversal zones with background color shading.
• Includes alert conditions for deep overbought/oversold signals.
• Implements an additional EMA (9/21) and MACD-based confirmation system to filter false signals.
Overall, this script is designed for traders looking to identify both trend-following and reversal opportunities while keeping track of key market indicators. It offers visual cues, alerts, and a structured technical analysis framework for decision-making.
StrategyTemplate-Pro-v1# TrendScope Pro – Adaptive Trend-Following Strategy
### 🔍 Overview
TrendScope Pro is a highly adaptable and professional Pine Script strategy template designed for disciplined, trend-based trading. Built using Pine Script v6, it supports modular configuration, risk control, and flexible exit management to meet both beginner and advanced trader needs.
---
### 📐 Core Logic
The strategy focuses on confirming strong trend entries using a combination of:
- **EMA Crossovers**: Short-term trend detection
- **Higher Timeframe EMA**: Confirms overall market direction
- **MACD**: Measures momentum of price movement
- **RSI & ADX Filters** *(optional)*: Adds further confirmation
- **ATR**: Used to dynamically set profit targets, stop losses, and trailing logic
---
### 📊 Entry Rules
#### 🟢 Buy Entry:
- Price is above EMA from higher timeframe (or custom long EMA)
- Fast EMA > Slow EMA (bullish crossover)
- MACD Line > Signal Line (positive momentum)
- Candle is bullish and strong (body/candle ratio threshold)
- RSI not in overbought zone *(if enabled)*
- ADX above threshold *(if enabled)*
- Cooldown period (X bars) passed since last trade
#### 🔴 Sell Entry:
- Price below EMA200 or long EMA
- Fast EMA < Slow EMA
- MACD Line < Signal Line
- Bearish candle with sufficient strength
- RSI not in oversold zone *(if enabled)*
- ADX confirms trend strength *(if enabled)*
---
### 🔁 Exit Options
1. **Fixed TP/SL** using ATR multipliers
2. **Trailing Stop** with adjustable ATR-based logic
3. **Partial Exit** at intermediate profit target (e.g., ATR * 1.5), remaining position uses trailing
4. **Profit Lock**: Closes trade early if sufficient profit is reached and the candle shows reversal behavior
5. **Max Loss Limit** per trade to protect capital
---
### ⚙️ Customization
| Module | Description |
|--------|-------------|
| RSI / ADX | Enable or disable as filters |
| EMA Source | Use custom or higher timeframe |
| Dynamic Size | Increase size when signal is strong |
| Trailing Stop | Replace fixed SL with trailing logic |
| Partial Exit | Take partial profits earlier |
| Profit Lock | Exit trades early on reversal signs |
| Alerts | Get real-time alerts on entry |
---
### 📦 Use Cases
- A ready-to-use base for trend-following strategies
- Can be expanded with custom indicators
- Perfect for traders who value logic, safety, and modularity
- Suitable for scalping or swing trading depending on timeframe
---
### 👨💻 Author
Published by: **emad_alwan**
Pine Script v6 | License: Open Use | Fully Commented & Modular
Malama's big MACDMalama's Big MACD" is a versatile TradingView indicator designed to help traders identify high-probability buy and sell opportunities in fast-moving markets, particularly on short timeframes like 1-5 minute charts. It solves the common problem of filtering out market noise by combining a predictive price model (Stochastic Price Predictor, or SPP) with a comprehensive set of momentum and trend indicators (MACD, RSI, moving averages, and more). Whether you're scalping quick trades or confirming longer-term trends, this tool provides clear signals and visual cues to boost confidence and timing.
The indicator operates in two main layers:
Stochastic Price Predictor (SPP): This predictive engine forecasts short-term price movements using a simplified Monte Carlo simulation. It analyzes recent price changes, volatility (via ATR), and Stochastic RSI to estimate the likelihood of an upward or downward move within a set horizon (e.g., 3 bars). Buy signals trigger when the probability of an upward move exceeds a confidence threshold (default 65%) and the market isn’t overbought, while sell signals activate for downward moves when not oversold.
Comprehensive Indicator Suite: This layer combines classic tools like MACD (for momentum), RSI (for overbought/oversold conditions), moving averages (for trend direction), and ATR (for volatility-based levels). It generates signals when these align—e.g., a bullish MACD crossover paired with an oversold RSI and a rising fast MA. A unique "JKH RSI" (a fast RSI variant) adds extra confirmation, while manual sentiment input lets you tweak signals based on your market bias.
The script overlays these signals on your chart, color-codes trends, and highlights key levels (like stop-loss and profit targets) to make decision-making intuitive.
How to Use It
Adding to TradingView:
Copy the script into TradingView’s Pine Editor (under "Indicators" > "Pine Editor").
Click "Save," name it (e.g., "Malama's Big MACD"), then "Add to Chart."
Configuring Settings:
Open the indicator’s settings via the gear icon.
Adjust SPP settings (e.g., "Lookback Period" to 5 for short-term focus, "Confidence Threshold" to 65% for faster signals).
Tweak the Comprehensive settings (e.g., MACD lengths: 5/13/5 for scalping, or longer like 12/26/9 for swing trading).
Toggle visuals (e.g., enable "Show Predicted Range" or "Highlight Volume Spikes") under "Visual Settings."
Interpreting Signals:
SPP Signals: Green "BUY (SPP)" labels below bars or red "SELL (SPP)" above bars indicate predictive opportunities.
Comprehensive Signals: Lime "BUY (Comp)" or red "SELL (Comp)" labels show confirmed momentum trades. Blue/orange MACD arrows and green/red RSI dots add context.
Trend Line: Green means uptrend (fast MA > slow MA), red is downtrend, orange is neutral.
Extras: Purple ATR lines suggest stop-loss/profit targets; yellow backgrounds flag volume spikes.
Tips:
Beginners: Start with default settings and focus on SPP signals for quick trades. Use ATR lines to set safe exits.
Pros: Experiment with "Sentiment Input" (-1 to 1) to bias signals, or adjust MACD/MA lengths for your timeframe. Pair with volume spikes for breakout confirmation.
Originality
What makes "Malama's Big MACD" stand out is its hybrid approach: it fuses a predictive Monte Carlo model (SPP) with a robust multi-indicator confirmation system. Unlike standard MACD or RSI tools, it offers:
Short-Term Prediction: SPP’s probability-based signals cater to scalpers, rare in most indicators.
Layered Confirmation: Combines MACD, RSI, fast/slow MAs, and a custom JKH RSI for stronger filtering.
Visual Clarity: Trend coloring, predicted price ranges, and ATR-based levels make it a one-stop shop.
Flexibility: Adjustable for scalping or swing trading, with manual sentiment for personalized tuning.
This isn’t just another MACD—it’s a dynamic, all-in-one toolkit that adapts to your trading style, blending foresight with precision.
Média de Volume - VXX & UVXY (Colorido)Explanation:
The code takes the daily volume of VXX and UVXY.
Calculates the average of the two volumes.
Plots a blue histogram, similar to the traditional volume indicator.
Adds a reference line at zero.
The histogram bars turn green when the price is above the 20 SMA and red when it is below.
Ryna 3 EMA Multi-Timeframe Indicator**EMA Multi-Timeframe Strategy (Pine Script v6)**
This TradingView indicator is designed to assist traders using a **multi-timeframe trend-following strategy** based on Exponential Moving Averages (EMAs).
**Core Functionality**
- **Trend Identification:**
Uses a configurable **EMA (e.g., EMA 50)** on a **higher timeframe** (e.g., H1, D1, W1) to determine the market bias:
- If price is **above** the trend EMA → **Long bias**
- If price is **below** the trend EMA → **Short bias**
- **Entry Signals:**
Uses two EMAs (fast & slow, e.g., EMA 8 & EMA 21) on either:
- The **current chart timeframe**, or
- A **separately selected timeframe** (e.g., entry on M15, trend on H1)
→ Signals are generated based on **EMA crossovers**:
- **Bullish crossover** (fast crosses above slow) → Long signal
- **Bearish crossover** (fast crosses below slow) → Short signal
- Only when aligned with the higher-timeframe trend
- **Visual Output:**
- Optional display of entry EMAs when sourced from the trend timeframe
- Always displays the trend EMA
- Entry signals shown with triangle markers on the chart
- **Info Panel (Top Center):**
- Shows selected timeframes and EMA settings
- Indicates current trend bias (LONG / SHORT / NEUTRAL)
- Notes if entry EMAs are hidden due to settings
- **Alerts:**
- Optional alerts for long and short entry signals based on EMA crossovers
#### **User Inputs**
- **Trend Timeframe & EMA Length**
- **Entry Timeframe & EMA Fast/Slow Lengths**
- **Option to show/hide entry EMAs when using the trend timeframe**
- **Option to show/hide Infobox on Chart**
EMA CloudIt's provide the area of value between 2 EMA. Additional 1 EMA long term for determine the market status.
Multi-Timeframe MA DashboardThis indicator monitors 5 timeframes: 5min, 15min, 1hr, 4hr, and Daily. It displays fast and slow moving averages for each timeframe, along with the current price. The trend direction is color-coded: green for bullish (fast MA above slow MA) and red for bearish (fast MA below slow MA).
The dashboard also shows the last crossover signal (Buy/Sell) for each timeframe.
Visual arrows are plotted on the chart for the current timeframe. A green up arrow indicates a potential bullish crossover (Buy signal), while a red down arrow indicates a potential bearish crossover (Sell signal).
The dashboard is elegant and professional, with alternating row colors for better readability. It can be placed in any corner of the screen and customized with user-defined colors for bullish and bearish trends.
Alerts are triggered when a crossover occurs on any timeframe. These alerts include the timeframe and signal type (e.g., "5min: ↑ BUY").
How to Read the Indicator
The dashboard displays the following for each timeframe:
Fast MA: The value of the fast moving average.
Slow MA: The value of the slow moving average.
Price: The current price for the timeframe.
Trend: The current trend direction (Bullish or Bearish).
Signal: The last crossover signal (↑ BUY or ↓ SELL).
On the chart, green up arrows indicate a bullish crossover (Fast MA crosses above Slow MA), while red down arrows indicate a bearish crossover (Fast MA crosses below Slow MA).
Green text in the dashboard indicates a bullish trend or signal, while red text indicates a bearish trend or signal.
How to Use the Indicator
Use the dashboard to monitor the trend direction across multiple timeframes. Look for confluence (agreement) between timeframes to identify stronger trends. Observe the "Signal" column in the dashboard for the last crossover on each timeframe. Use the arrows on the chart to identify potential crossover points for the current timeframe.
Enable alerts to be notified of crossover signals on any timeframe. Alerts include the timeframe and signal type for easy reference.
Adjust the fast and slow moving average lengths to suit your trading style. Choose between EMA, SMA, or WMA for the moving average type. Customize the dashboard placement and colors for better visibility.
Important Notes
This indicator is not a buy or sell recommendation. It is a tool to assist traders in their analysis. Always use this indicator in conjunction with other tools, such as support/resistance levels, volume analysis, and price action. Past performance of moving averages does not guarantee future results.
How to Add the Indicator
Add the indicator to your chart from the TradingView library. Configure the inputs:
Fast MA Length: Default is 20.
Slow MA Length: Default is 50.
MA Type: Choose between EMA, SMA, or WMA.
Dashboard Placement: Select the corner of the screen where the dashboard will appear.
Colors: Customize the colors for bullish and bearish trends.
Monitor the dashboard and chart for trends and signals.
Disclaimer
This indicator is for educational and informational purposes only. It does not provide financial, investment, or trading advice. Always perform your own analysis and consult with a financial advisor before making trading decisions.
Uptrick: Z-Score FlowOverview
Uptrick: Z-Score Flow is a technical indicator that integrates trend-sensitive momentum analysi s with mean-reversion logic derived from Z-Score calculations. Its primary objective is to identify market conditions where price has either stretched too far from its mean (overbought or oversold) or sits at a statistically “normal” range, and then cross-reference this observation with trend direction and RSI-based momentum signals. The result is a more contextual approach to trade entry and exit, emphasizing precision, clarity, and adaptability across varying market regimes.
Introduction
Financial instruments frequently transition between trending modes, where price extends strongly in one direction, and ranging modes, where price oscillates around a central value. A simple statistical measure like Z-Score can highlight price extremes by comparing the current price against its historical mean and standard deviation. However, such extremes alone can be misleading if the broader market structure is trending forcefully. Uptrick: Z-Score Flow aims to solve this gap by combining Z-Score with an exponential moving average (EMA) trend filter and a smoothed RSI momentum check, thus filtering out signals that contradict the prevailing market environment.
Purpose
The purpose of this script is to help traders pinpoint both mean-reversion opportunities and trend-based pullbacks in a way that is statistically grounded yet still mindful of overarching price action. By pairing Z-Score thresholds with supportive conditions, the script reduces the likelihood of acting on random price spikes or dips and instead focuses on movements that are significant within both historical and current contextual frameworks.
Originality and Uniquness
Layered Signal Verification: Signals require the fulfillment of multiple layers (Z-Score extreme, EMA trend bias, and RSI momentum posture) rather than merely breaching a statistical threshold.
RSI Zone Lockout: Once RSI enters an overbought/oversold zone and triggers a signal, the script locks out subsequent signals until RSI recovers above or below those zones, limiting back-to-back triggers.
Controlled Cooldown: A dedicated cooldown mechanic ensures that the script waits a specified number of bars before issuing a new signal in the opposite direction.
Gradient-Based Visualization: Distinct gradient fills between price and the Z-Mean line enhance readability, showing at a glance whether price is trading above or below its statistical average.
Comprehensive Metrics Panel: An optional on-chart table summarizes the Z-Score’s key metrics, streamlining the process of verifying current statistical extremes, mean levels, and momentum directions.
Why these indicators were merged
Z-Score measurements excel at identifying when price deviates from its mean, but they do not intrinsically reveal whether the market’s trajectory supports a reversion or if price might continue along its trend. The EMA, commonly used for spotting trend directions, offers valuable insight into whether price is predominantly ascending or descending. However, relying solely on a trend filter overlooks the intensity of price moves. RSI then adds a dedicated measure of momentum, helping confirm if the market’s energy aligns with a potential reversal (for example, price is statistically low but RSI suggests looming upward momentum). By uniting these three lenses—Z-Score for statistical context, EMA for trend direction, and RSI for momentum force—the script offers a more comprehensive and adaptable system, aiming to avoid false positives caused by focusing on just one aspect of price behavior.
Calculations
The core calculation begins with a simple moving average (SMA) of price over zLen bars, referred to as the basis. Next, the script computes the standard deviation of price over the same window. Dividing the difference between the current price and the basis by this standard deviation produces the Z-Score, indicating how many standard deviations the price is from its mean. A positive Z-Score reveals price is above its average; a negative reading indicates the opposite.
To detect overall market direction, the script calculates an exponential moving average (emaTrend) over emaTrendLen bars. If price is above this EMA, the script deems the market bullish; if below, it’s considered bearish. For momentum confirmation, the script computes a standard RSI over rsiLen bars, then applies a smoothing EMA over rsiEmaLen bars. This smoothed RSI (rsiEma) is monitored for both its absolute level (oversold or overbought) and its slope (the difference between the current and previous value). Finally, slopeIndex determines how many bars back the script compares the basis to check whether the Z-Mean line is generally rising, falling, or flat, which then informs the coloring scheme on the chart.
Calculations and Rational
Simple Moving Average for Baseline: An SMA is used for the core mean because it places equal weight on each bar in the lookback period. This helps maintain a straightforward interpretation of overbought or oversold conditions in the context of a uniform historical average.
Standard Deviation for Volatility: Standard deviation measures the variability of the data around the mean. By dividing price’s difference from the mean by this value, the Z-Score can highlight whether price is unusually stretched given typical volatility.
Exponential Moving Average for Trend: Unlike an SMA, an EMA places more emphasis on recent data, reacting quicker to new price developments. This quicker response helps the script promptly identify trend shifts, which can be crucial for filtering out signals that go against a strong directional move.
RSI for Momentum Confirmation: RSI is an oscillator that gauges price movement strength by comparing average gains to average losses over a set period. By further smoothing this RSI with another EMA, short-lived oscillations become less influential, making signals more robust.
SlopeIndex for Slope-Based Coloring: To clarify whether the market’s central tendency is rising or falling, the script compares the basis now to its level slopeIndex bars ago. A higher current reading indicates an upward slope; a lower reading, a downward slope; and similar readings, a flat slope. This is visually represented on the chart, providing an immediate sense of the directionality.
Inputs
zLen (Z-Score Period)
Specifies how many bars to include for computing the SMA and standard deviation that form the basis of the Z-Score calculation. Larger values produce smoother but slower signals; smaller values catch quick changes but may generate noise.
emaTrendLen (EMA Trend Filter)
Sets the length of the EMA used to detect the market’s primary direction. This is pivotal for distinguishing whether signals should be considered (price aligning with an uptrend or downtrend) or filtered out.
rsiLen (RSI Length)
Defines the window for the initial RSI calculation. This RSI, when combined with the subsequent smoothing EMA, forms the foundation for momentum-based signal confirmations.
rsiEmaLen (EMA of RSI Period)
Applies an exponential moving average over the RSI readings for additional smoothing. This step helps mitigate rapid RSI fluctuations that might otherwise produce whipsaw signals.
zBuyLevel (Z-Score Buy Threshold)
Determines how negative the Z-Score must be for the script to consider a potential oversold signal. If the Z-Score dives below this threshold (and other criteria are met), a buy signal is generated.
zSellLevel (Z-Score Sell Threshold)
Determines how positive the Z-Score must be for a potential overbought signal. If the Z-Score surpasses this threshold (and other checks are satisfied), a sell signal is generated.
cooldownBars (Cooldown (Bars))
Enforces a bar-based delay between opposite signals. Once a buy signal has fired, the script must wait the specified number of bars before registering a new sell signal, and vice versa.
slopeIndex (Slope Sensitivity (Bars))
Specifies how many bars back the script compares the current basis for slope coloration. A bigger slopeIndex highlights larger directional trends, while a smaller number emphasizes shorter-term shifts.
showMeanLine (Show Z-Score Mean Line)
Enables or disables the plotting of the Z-Mean and its slope-based coloring. Traders who prefer minimal chart clutter may turn this off while still retaining signals.
Features
Statistical Core (Z-Score Detection):
This feature computes the Z-Score by taking the difference between the current price and the basis (SMA) and dividing by the standard deviation. In effect, it translates price fluctuations into a standardized measure that reveals how significant a move is relative to the typical variation seen over the lookback. When the Z-Score crosses predefined thresholds (zBuyLevel for oversold and zSellLevel for overbought), it signals that price could be at an extreme.
How It Works: On each bar, the script updates the SMA and standard deviation. The Z-Score is then refreshed accordingly. Traders can interpret particularly large negative or positive Z-Score values as scenarios where price is abnormally low or high.
EMA Trend Filter:
An EMA over emaTrendLen bars is used to classify the market as bullish if the price is above it and bearish if the price is below it. This classification is applied to the Z-Score signals, accepting them only when they align with the broader price direction.
How It Works: If the script detects a Z-Score below zBuyLevel, it further checks if price is actually in a downtrend (below EMA) before issuing a buy signal. This might seem counterintuitive, but a “downtrend” environment plus an oversold reading often signals a potential bounce or a mean-reversion play. Conversely, for sell signals, the script checks if the market is in an uptrend first. If it is, an overbought reading aligns with potential profit-taking.
RSI Momentum Confirmation with Oversold/Overbought Lockout:
RSI is calculated over rsiLen, then smoothed by an EMA over rsiEmaLen. If this smoothed RSI dips below a certain threshold (for example, 30) and then begins to slope upward, the indicator treats it as a potential sign of recovering momentum. Similarly, if RSI climbs above a certain threshold (for instance, 70) and starts to slope downward, that suggests dwindling momentum. Additionally, once RSI is in these zones, the indicator locks out repetitive signals until RSI fully exits and re-enters those extreme territories.
How It Works: Each bar, the script measures whether RSI has dropped below the oversold threshold (like 30) and has a positive slope. If it does, the buy side is considered “unlocked.” For sell signals, RSI must exceed an overbought threshold (70) and slope downward. The combination of threshold and slope helps confirm that a reversal is genuinely in progress instead of issuing signals while momentum remains weak or stuck in extremes.
Cooldown Mechanism:
The script features a custom bar-based cooldown that prevents issuing new signals in the opposite direction immediately after one is triggered. This helps avoid whipsaw situations where the market quickly flips from oversold to overbought or vice versa.
How It Works: When a buy signal fires, the indicator notes the bar index. If the Z-Score and RSI conditions later suggest a sell, the script compares the current bar index to the last buy signal’s bar index. If the difference is within cooldownBars, the signal is disallowed. This ensures a predefined “quiet period” before switching signals.
Slope-Based Coloring (Z-Mean Line and Shadow):
The script compares the current basis value to its value slopeIndex bars ago. A higher reading now indicates a generally upward slope, while a lower reading indicates a downward slope. The script then shades the Z-Mean line in a corresponding bullish or bearish color, or remains neutral if little change is detected.
How It Works: This slope calculation is refreshingly straightforward: basis – basis . If the result is positive, the line is colored bullish; if negative, it is colored bearish; if approximately zero, it remains neutral. This provides a quick visual cue of the medium-term directional bias.
Gradient Overlays:
With gradient fills, the script highlights where price stands in relation to the Z-Mean. When price is above the basis, a purple-shaded region is painted, visually indicating a “bearish zone” for potential overbought conditions. When price is below, a teal-like overlay is used, suggesting a “bullish zone” for potential oversold conditions.
How It Works: Each bar, the script checks if price is above or below the basis. It then applies a fill between close and basis, using distinct colors to show whether the market is trading above or below its mean. This creates an immediate sense of how extended the market might be.
Buy and Sell Labels (with Alerts):
When a legitimate buy or sell condition passes every check (Z-Score threshold, EMA trend alignment, RSI gating, and cooldown clearance), the script plots a corresponding label directly on the chart. It also fires an alert (if alerts are set up), making it convenient for traders who want timely notifications.
How It Works: If rawBuy or rawSell conditions are met (refined by RSI, EMA trend, and cooldown constraints), the script calls the respective plot function to paint an arrow label on the chart. Alerts are triggered simultaneously, carrying easily recognizable messages.
Metrics Table:
The optional on-chart table (activated by showMetrics) presents real-time Z-Score data, including the current Z-Score, its rolling mean, the maximum and minimum Z-Score values observed over the last zLen bars, a percentile position, and a short-term directional note (rising, falling, or flat).
Current – The present Z-Score reading
Mean – Average Z-Score over the zLen period
Min/Max – Lowest and highest Z-Score values within zLen
Position – Where the current Z-Score sits between the min and max (as a percentile)
Trend – Whether the Z-Score is increasing, decreasing, or flat
Conclusion
Uptrick: Z-Score Flow offers a versatile solution for traders who need a statistically informed perspective on price extremes combined with practical checks for overall trend and momentum. By leveraging a well-defined combination of Z-Score, EMA trend classification, RSI-based momentum gating, slope-based visualization, and a cooldown mechanic, the script reduces the occurrence of false or premature signals. Its gradient fills and optional metrics table contribute further clarity, ensuring that users can quickly assess market posture and make more confident trading decisions in real time.
Disclaimer
This script is intended solely for informational and educational purposes. Trading in any financial market comes with substantial risk, and there is no guarantee of success or the avoidance of loss. Historical performance does not ensure future results. Always conduct thorough research and consider professional guidance prior to making any investment or trading decisions.
Advanced HFT Detection with VWAP & SpreadsExplanation of the HFT Detection Strategy
🔹 1. Key Indicators Used in the Strategy
It's works by combining VWAP, moving averages (SMA), volume spikes, and price jumps to detect potential HFT activity.
✅ (A) VWAP (Volume Weighted Average Price)
VWAP acts as a benchmark price that professional traders and institutions use to execute large orders.
If price is above VWAP, buyers are in control → Bullish trend
If price is below VWAP, sellers are in control → Bearish trend
HFT algorithms often place buy orders above VWAP and sell orders below VWAP to follow momentum.
➡️ Why VWAP? It ensures that signals follow the institutional trading trend.
✅ (B) Moving Averages (SMA)
Moving averages smooth out price data and help in detecting short-term momentum changes.
Fast Moving Average (5-period SMA): Reacts quickly to price changes
Slow Moving Average (20-period SMA): Identifies trend direction
➡️ Why SMA? It filters noise and confirms short-term trend shifts.
✅ (C) Volume Spike Detection
High-frequency trading is often accompanied by large volume surges. We define a volume spike as:
📌 Current Volume > 2× Average Volume of last 20 bars
➡️ Why Volume? HFTs execute rapid buy/sell orders when they detect liquidity, leading to sudden volume bursts.
✅ (D) Price Jump Detection (Sudden Volatility)
HFT algorithms often exploit quick price movements. We check if the price has moved more than twice the ATR (Average True Range) in the last 5 bars.
➡️ Why ATR? It helps to detect abnormal price movements compared to normal volatility.
🔹 2. Trading Signal Logic
Now that we have VWAP, moving averages, volume, and price movement filters, we generate buy and sell signals based on conditions.
✅ (A) Buy Signal Condition
A BUY signal is triggered when:
✔ Fast SMA crosses above Slow SMA → Short-term trend is turning bullish
✔ Volume spike occurs → HFTs are active
✔ Sudden price jump detected → High volatility
✔ Price is above VWAP → Confirms bullish trend
➡️ Why this works? It confirms that institutional traders & HFTs are buying aggressively.
✅ (B) Sell Signal Condition
A SELL signal is triggered when:
✔ Fast SMA crosses below Slow SMA → Short-term trend is turning bearish
✔ Volume spike occurs → HFTs are selling aggressively
✔ Sudden price drop detected → High volatility
✔ Price is below VWAP → Confirms bearish trend
➡️ Why this works? It confirms that institutional traders & HFTs are selling aggressively.
🔹 3. Visual Representation (Plotting Signals & VWAP)
Once we detect buy and sell signals, we mark them on the chart.
✅ (A) Buy/Sell Markers
🟢 Buy → Green upward arrow below the candle
🔴 Sell → Red downward arrow above the candle
✅ (B) VWAP Line on Chart
We also plot VWAP as a blue line to visualize trend direction.
✅ (C) Highlighting Volume Spikes
To easily spot HFT activity, we highlight volume spike bars with a blue background.
🔹 4. How to Use This Strategy?
1️⃣ Apply this script on a 1-minute or 5-minute intraday chart.
2️⃣ Look for BUY signals above VWAP and SELL signals below VWAP.
3️⃣ Verify that the volume spikes before taking action.
4️⃣ Use stop-loss & risk management (e.g., stop-loss at recent low/high).
🚀 Summary: Why This Strategy Works?
✅ VWAP ensures we follow institutional traders
✅ Volume spikes confirm sudden liquidity inflows
✅ Price jumps detect fast market moves caused by HFT bots
✅ Moving averages smooth out short-term trend shifts
Multiple VWMATradingView Indicator: Multiple VWMA
This TradingView indicator allows you to display up to five separate Volume Weighted Moving Averages (VWMAs) directly on your price chart.
What it does:
Plots 5 VWMAs: It calculates and draws five distinct VWMA lines (or other styles) on the chart.
Volume Weighting: Unlike simple moving averages, a VWMA gives more weight to prices where trading volume was higher, potentially offering a clearer picture of the trend strength confirmed by volume.
Highly Customizable: Each of the five VWMAs can be configured independently through the indicator's settings panel. For each one, you can set:
Length: The lookback period (number of bars) used for the calculation.
Source: The price data to use (e.g., close, open, high, low, hl2, etc.).
Timeframe: You can calculate each VWMA based on a different timeframe than the one currently displayed on your chart (e.g., view daily VWMAs on an hourly chart). Leave blank to use the chart's timeframe.
Offset: Shift the VWMA line forwards or backwards on the chart by a specific number of bars.
Style: Choose how each VWMA is displayed (Line, Histogram, or Cross).
Overlay: The VWMAs are plotted directly over the price bars for easy comparison.
Purpose:
This indicator is useful for traders who want to analyze trends using multiple volume-weighted perspectives simultaneously. By comparing VWMAs of different lengths or based on different timeframes, you can gain insights into short-term vs. long-term trends, potential support/resistance levels, and the significance of price movements based on accompanying volume.
ATR and Moving AverageUsing ATR and Moving Average: A Technical Analysis Strategy
The Average True Range (ATR) and the Moving Average are two important technical analysis tools that can be used together to identify trading opportunities in the market. In this article, we will explore how to use these two tools and how the crossover between them can indicate changes in the market.
What is ATR?
The Average True Range (ATR) is a measure of the volatility of an asset, which calculates the average true range of an asset over a period of time. The true range is the difference between the closing price and the opening price of an asset, or the difference between the closing price and the highest or lowest price of the day. ATR is an important measure of volatility, as it helps to identify the magnitude of price fluctuations of an asset.
What is Moving Average?
The Moving Average is a technical analysis tool that calculates the average price of an asset over a period of time. The Moving Average can be used to identify trends and price patterns, and is an important tool for traders. There are different types of Moving Averages, including the Simple Moving Average (SMA), the Exponential Moving Average (EMA), and the Weighted Moving Average (WMA).
Crossover between ATR and Moving Average
The crossover between ATR and Moving Average can be an important indicator of changes in the market. When ATR crosses above the Moving Average, it may indicate that the volatility of the asset is increasing and that the price may be about to rise. This occurs because ATR is increasing, which means that the true range of the asset is increasing, and the Moving Average is being surpassed, which means that the price is rising.
On the other hand, when ATR crosses below the Moving Average, it may indicate that the volatility of the asset is decreasing and that the price may be about to fall. This occurs because ATR is decreasing, which means that the true range of the asset is decreasing, and the Moving Average is being surpassed, which means that the price is falling.
Trading Strategies
There are several trading strategies that can be used with the crossover between ATR and Moving Average. Some of these strategies include:
Buying when ATR crosses above the Moving Average, with the expectation that the price will rise.
Selling when ATR crosses below the Moving Average, with the expectation that the price will fall.
Using the crossover between ATR and Moving Average as a filter for other trading strategies, such as trend analysis or pattern recognition.
In summary, the crossover between ATR and Moving Average can be an important indicator of changes in the market, and can be used as a technical analysis tool to identify trading opportunities. However, it is important to remember that no trading strategy is foolproof, and that it is always important to use a disciplined approach and manage risk adequately.
Serhat's Sinyal + Panel (Kompakt Versiyon)🔹 This indicator provides a clean and reliable signal system using a combination of multiple classic indicators: RSI, MACD, Stochastic RSI, ADX, DI+, Volume, and SMA sequences.
🔹 All signals are non-repetitive — once active, no new signal is given until the condition resets.
🔹 The compact panel summarizes all indicator statuses in real-time.
💡 Works best on daily and 4H charts.
Developed by: Serhat E.
Feedback is welcome!