Black OPS Pro Edition (White Knight) v1.0Black OPS Pro Edition (White Knight) v1.0
Black OPS Pro Edition (White Knight) v1.0 is a professional-grade educational trading tool designed for trend analysis, volatility measurement, and intrabar signal detection. It combines ATR-based volatility tracking, Bollinger Bands, EMA bounces, and stochastic filtering to provide clear visual cues on market movements.
Features:
ATR & Volatility Analysis: Tracks market volatility and directional movement.
Bollinger Bands: Upper, lower, and midline bands with smoothing to identify breakouts and pullbacks.
Trend Detection: Automatically identifies bullish, bearish, and neutral trends.
EMA Bounces: Detects price interactions with multiple EMA levels (1- 200).
Stochastic Filter: Confirms trend signals and helps reduce false alerts.
Visual Signals: Up 🚀 and down 💥 arrows for trend flips, plus EMA bounce indicators ⚔️ 🕵️.
Dashboard: Displays current volatility and trend strength.
Background Coloring: Highlights bullish and bearish periods.
Screen-Fixed Disclaimer: Table at the bottom-right with a permanent educational disclaimer.
User Customization:
Adjust ATR length, volatility lookback, Bollinger Band parameters, EMA settings, and other thresholds to fit your trading style.
Disclaimer:
For educational purposes only. This script does NOT provide financial advice or guarantee profits. Users are fully responsible for their own trading decisions and risk management. Always perform your own analysis before making trades.
Moving Averages
Swing & Intraday Entry/Exit Setup V0.1Support & Resistance Levels with Moving Averages & Supertrend
Overview
This comprehensive indicator combines Multi Support/Resistance analysis , Moving Average, and Supertrend signals into one powerful tool. Designed for intraday/swing traders, it helps identify key price levels across Daily, Weekly, and Monthly while providing trend confirmation through MAs and Supertrend.
Product of: CandleCodex
License: Free for personal use | NOT FOR SALE
Version: 5.0 (Pine Script v6)
---
KEY FEATURES
Swing & Intraday Entry/Exit Setup V0.1 © CandleCodex™ (Daily/Weekly/Monthly)
- Previous Day High/Low (PDH/PDL) with customizable styling
- Previous Week High/Low (PWH/PWL) with independent settings
- Previous Month High/Low (PMH/PML) for swing traders
- Mid Levels - Adjustable percentage (default 50%) between high and low
- R1, R2, R3 - Projected resistance levels based on price range
- S1, S2, S3 - Projected support levels for breakout/breakdown targets
Moving Average
- 4 Fully Customizable MAs (20, 50, 100, 200 by default)
- Multiple MA Types: SMA, EMA, SMMA (RMA), WMA, VWMA
- Custom Source Selection: Close, Open, High, Low, HL2, HLC3, OHLC4
- Individual Colors & Toggle:** Show/hide each MA independently
Supertrend Indicator
- Buy/Sell Signals - Automatic labels on trend reversals
- Trend Highlighting - Background fill for bullish/bearish trends
- Customizable ATR Period & Multiplier (Default: 10, 3.0)
- Multiple Source Options: HL2, Close, Open, etc.
- Alert Conditions: Set alerts for buy/sell signals and trend changes
Information Tables
- 3 Separate Tables for Daily, Weekly, Monthly levels
- Adjustable Positions: 9 position options (top, middle, bottom - left, center, right)
- Custom Text Size: Tiny, Small, Normal, Large
- Live Price Display: Shows all levels with current prices
- Range Calculation: Displays trading range for each timeframe
Advanced Customization
- Line Styling: Width (1-5), Style (Solid/Dashed/Dotted), Color for EVERY level
- Label Options: Show/hide labels, show/hide prices, left/right positioning
- Historical Data: Display up to 50 previous periods
- Custom Session Timing: Set specific hours for daily levels (Indian market: 9:15-15:30)
- Copyright Watermark: Toggleable branding with position control
---
VISUAL CUSTOMIZATION
Every line (High, Low, Mid, R1-R3, S1-S3) has independent controls for:
- Color - Choose from full color palette with transparency
- Width - 1 to 5 pixels thickness
- Style - Solid, Dashed, or Dotted lines
- Show/Hide - Toggle individual levels on/off
Default Color Scheme:
- Daily: Green (High), Red (Low), Yellow (Mid)
- Weekly: Cyan (High), Magenta (Low), Light Green (Mid)
- Monthly: Orange (High), Purple (Low), Pink (Mid)
---
HOW TO USE
For Day Traders:
1. Enable Daily Levels - Focus on PDH/PDL as key intraday S/R zones
2. Watch for Breakouts - Price breaking PDH = bullish, breaking PDL = bearish
3. Use Mid Level - Acts as equilibrium; rejection zone for mean reversion
4. R/S Targets - Use R1, R2, R3 as profit targets above PDH; S1, S2, S3 below PDL
5. MA Confirmation - Enter trades in direction of MA trend
6. Supertrend Signals - Take BUY when price above Supertrend, SELL when below
For Swing Traders:
1. Enable Weekly/Monthly Levels - PWH/PWL and PMH/PML for bigger picture
2. Combine Timeframes - Strong rejection at PWL + Daily bullish Supertrend = long opportunity
3. Range Trading - Trade between PWH and PWL in consolidation
4. Breakout Confirmation - Use MA ribbon to confirm trend direction on HTF breakouts
Risk Management:
- Place Stop Loss just below PDL for longs, above PDH for shorts
- Targets: Use R1/S1 for scalping, R2/S2 for swing trades, R3/S3 for momentum trades
- Avoid Chop Zones: When price between MAs, wait for clear trend
---
SETTINGS GROUPS
1. ENABLE/DISABLE FEATURES - Master toggles for all components
2. DISPLAY SETTINGS - Labels, prices, positioning, historical periods
3. DAILY LEVELS STYLING - Complete customization for daily timeframe
4. WEEKLY LEVELS STYLING - Complete customization for weekly timeframe
5. MONTHLY LEVELS STYLING - Complete customization for monthly timeframe
6. MOVING AVERAGES - 4 independent MA configurations
7. SUPERTREND - ATR period, multiplier, signals, highlighting
8. TABLE SETTINGS - Position, size, colors for info tables
9. ADVANCED SETTINGS - Custom session timing, timezone
---
UNIQUE ADVANTAGES
All-in-One Solution - No need for multiple indicators cluttering your chart
Zero Lag - Calculates previous day/week/month data accurately without repainting
Full Control - Every visual element is customizable
Clean Interface - Organized settings with clear tooltips
Performance Optimized - Efficient code, no lag even with all features enabled
Indian Market Ready - Custom session timing (9:15 AM - 3:30 PM IST)
Free Forever - No subscriptions, no hidden costs
---
## 📖 TECHNICAL DETAILS
- Pine Script Version: v6
- Chart Type: Overlay indicator
- Calculation Method: Uses `request.security()` for accurate HTF data with `lookahead_on` to prevent repainting
- Data Structures: Uses Pine v5 matrices and custom types for efficient level management
- Performance: Max 500 lines, 500 labels for historical level display
---
IMPORTANT NOTES
- Works best on intraday timeframes (15min to 4hour)
- Requires TradingView Premium/Pro for reliable multi-timeframe data
- Previous day data appears after the first bar of new day
- Custom session timing only affects Daily levels (Weekly/Monthly use standard calendar)
- Tables display only on last bar to maintain performance
---
LEARNING RESOURCES
This indicator is designed to help traders understand:
- Key support and resistance concepts
- Multi-timeframe analysis techniques
- Trend following with moving averages
- Momentum trading with Supertrend
- Professional chart setup and risk management
---
COPYRIGHT & TERMS
© 2025 CandleCodex™ - All Rights Reserved
Developer: Siddharth Sharma
License: Mozilla Public License 2.0 with additional restrictions
Allowed:
- Personal trading use
- Educational purposes
- Sharing with attribution
Prohibited:
- Commercial sale or resale
- Rebranding as your own work
- Removing copyright notices
- Claiming authorship
This indicator is FREE and will always remain FREE.
If someone is selling this, they are violating copyright.
---
SUPPORT & FEEDBACK
For questions, suggestions, or bug reports:
- Comment below this publication
- Follow CandleCodex™ for updates
- Check release notes for latest improvements
If you find this indicator useful, please Like ❤️ and leave a comment!
---
Disclaimer: This indicator is for educational purposes only. Trading involves risk. Past performance does not guarantee future results. Always practice proper risk management and consult with a financial advisor before trading.
HTF EMA Bias BackgroundThis indicator gives you the cross over points from EMAs on the 15 min chart as a coloured background, you can then go to the 1 min chart to see the overlay. Useful for a higher time frame BIAS.
MACD Divergences + RSI/ADXMACD Divergences + RSI/ADX Indicator
This indicator combines the classic MACD divergence detection with real-time RSI and ADX monitoring in fixed corner labels.
🔹 MAIN FEATURES:
- Automatic MACD divergence detection (Classic & Hidden)
- Visual RSI and ADX labels fixed in the right corner
- Color-coded trend direction (Green: DI+ > DI- | Red: DI- > DI+)
- Customizable MACD settings (Fast/Slow Length, Signal Smoothing)
- Configurable RSI and ADX periods
- Built-in alerts for all divergence types
🔹 DIVERGENCE TYPES:
- Classic Bullish: Price makes lower lows, MACD makes higher lows (Reversal signal)
- Classic Bearish: Price makes higher highs, MACD makes lower highs (Reversal signal)
- Hidden Bullish: Price makes higher lows, MACD makes lower lows (Continuation signal)
- Hidden Bearish: Price makes lower highs, MACD makes higher highs (Continuation signal)
🔹 RSI & ADX DISPLAY:
- Fixed labels in top-right (RSI) and bottom-right (ADX) corners
- Real-time values updated on every bar
- Background color changes based on directional movement (DI+ vs DI-)
- Large, easy-to-read format
🔹 HOW TO USE:
1. Watch for divergence patterns on MACD histogram
2. Monitor RSI for overbought/oversold conditions
3. Check ADX for trend strength (>25 = strong trend)
4. Green labels = Bullish momentum (DI+ > DI-)
5. Red labels = Bearish momentum (DI- > DI+)
🔹 BEST FOR:
- Swing trading on 4H and Daily timeframes
- Trend-following strategies with mo
Custom Reversal Oscillator [wjdtks255]📊 Indicator Overview: Custom Reversal Oscillator
This indicator is a momentum-based oscillator designed to identify potential trend reversals by analyzing price velocity and relative strength. It visualizes market exhaustion and recovery through a dynamic histogram and signal dots, similar to premium institutional tools.
Key Components
Dynamic Histogram (Bottom Bars): Changes color based on momentum strength. Bright Green/Red indicates accelerating momentum, while Darker shades suggest fading strength.
Signal Line: A white line tracing the core momentum, helping to visualize the "wave" of the market.
Buy/Sell Dots: Small circles at the bottom (Mint) or top (Red) that signal high-probability reversal points when the market is overextended.
📈 Trading Strategy (How to Trade)
1. Long Entry (Buy Signal)
Condition 1: The price should ideally be near or above the 200 EMA (for trend following) or showing a Bullish Divergence.
Condition 2: The Histogram bars transition from Dark Red to Bright Green.
Condition 3: A Mint Buy Dot appears at the bottom of the oscillator (near the -25 level).
Entry: Enter on the close of the candle where the Buy Dot is confirmed.
2. Short Entry (Sell Signal)
Condition 1: The price is struggling at resistance or showing a Bearish Divergence.
Condition 2: The Histogram bars transition from Dark Green to Bright Red.
Condition 3: A Red Sell Dot appears at the top of the oscillator (near the +25 level).
Entry: Enter on the close of the candle where the Sell Dot is confirmed.
3. Exit & Take Profit
Take Profit: Close the position when the Signal Line reaches the opposite extreme or when the histogram color starts to fade (loses its brightness).
Stop Loss: Place your stop loss slightly below the recent swing low (for Longs) or above the recent swing high (for Shorts).
💡 Pro Tips for Accuracy
Watch for Divergences: The most powerful signals occur when the price makes a lower low, but the Custom Reversal Oscillator makes a higher low. This indicates "Hidden Strength" and a massive reversal is often imminent.
MACD CFF EditionMACD (19 / 39) – Higher Timeframe Momentum
This indicator is a modified MACD version designed specifically for higher timeframes and structural market moves.
Compared to the standard MACD (12 / 26), the periods are intentionally extended to reduce short-term noise and focus on meaningful momentum and trend shifts.
The classic MACD (12 / 26) reacts very quickly and often produces many signals on lower and mid timeframes that mainly reflect micro-volatility.
Using 19 / 39 deliberately slows the indicator down and filters out movements that lack relevance for higher-timeframe market structure.
Line Explanation
White Line – MACD Line (19–39)
This line measures the distance between short-term and mid-term momentum.
It highlights structural changes in capital flow.
Above zero → bullish structural momentum
Below zero → bearish structural momentum
Green Line – Signal Line
A smoothed version of the MACD line.
Used for confirmation, not for fast entry signals.
Crossovers should be interpreted as context confirmation, not buy or sell commands.
Histogram
Displays the distance between the MACD line and the signal line.
Helps identify whether momentum is:
expanding
or weakening
Intended Use
• Best suited for 4H, Daily and Weekly
• Trend and directional bias filter
• Structural confirmation
• Works best combined with price action and key levels
Not a scalping tool. Not a standalone signal indicator.
MA20 Dual Color Line IndicatorMA20 Dual Color Line Indicator
The MA20 Dual Color Line is a simple yet effective moving average indicator designed to help traders quickly visualize price trends and potential reversal points. It plots a 20-period Simple Moving Average (SMA) that changes color based on the relationship between the current closing price and the moving average itself.
🔶 How It Works
When the close price is above the MA20, the moving average line turns green, suggesting a potential bullish trend.
When the close price is below the MA20, the line turns red, indicating a possible bearish trend.
If the price is exactly at the MA20, the line remains white, highlighting a neutral or decision point.
📈 Ideal For
Identifying trend direction at a glance
Spotting support and resistance levels around the MA20
Enhancing visual analysis without cluttering the chart
🛠 Features
Clean and customizable line width
Real-time color switching based on price action
Overlay display to keep charts organized
This indicator is perfect for traders who prefer a clear, color-coded visual aid to complement their trading strategy. Whether you’re a beginner or an experienced trader, the MA20 Dual Color Line helps you stay aligned with the short-term trend.
Advanced custom multi MA signals (EMA/SMA/VWMA/VWAP) Features of Multi Moving Averages
The biggest enemy in trading is "Noise." If you get swayed by minute fluctuations on the chart, you end up missing the forest for the trees.
This indicator (Advanced Custom Multi MA Signals) is not just a simple line. By combining the three core elements of Price, Time, and Volume, it acts as a navigation system that visualizes the market's "true trend." In particular, the ability to analyze 5 moving averages simultaneously across various timeframes is akin to viewing a 3D map of the battlefield.
Understanding Core Concepts
This indicator supports 4 types of moving averages. It is crucial to clearly understand the nature of each tool.
SMA (Simple Moving Average): The most basic average value. Since it produces fewer whipsaws (false signals), it is used as a baseline to judge the "long-term trend."
EMA (Exponential Moving Average): Places more weight on recent prices. It reacts sensitively to market changes, making it advantageous for identifying "entry points."
VWMA (Volume Weighted Moving Average): Incorporates "volume" into the price calculation. It acts as a "false signal filter," weeding out price moves that aren't backed by trading volume.
VWAP (Volume Weighted Average Price): The benchmark price used by institutional investors for daily trading. It is calculated based on the session, regardless of the period settings. It is considered the "lifeline" of day trading.
Indicator Settings Guide
Open the settings window and tune it to fit your trading style.
MA 01 ~ 05 (Moving Average Settings)
MA Type: Select according to your purpose. (Generally, EMA is recommended for short-term analysis, SMA/VWMA for long-term).
Length: Enter the period you wish to analyze (e.g., 20, 60, 120, 200).
Timeframe: This is the core feature. It allows you to overlay moving averages from a higher timeframe (e.g., 4-hour, Daily) onto the chart you are currently viewing (e.g., 15-minute).
Signal Option (Trading Signals)
Golden Cross (GC) / Death Cross (DC): Captures the moment the short-term line breaks through the long-term line. You can run up to 3 strategies simultaneously.
Ribbon Gradient (Trend Visualization)
Represents the gap between two moving averages with color. As the color deepens and the width expands, it indicates a powerful trend; if the width narrows, it suggests a high probability of a trend reversal.
5 Usage Strategies
The highlight of this indicator is the cross strategy utilizing the "Multi-Timeframe (MTF)" feature. Familiarize yourself with the 5 example strategies below and set up your own strategy based on your expertise.
💡 Tip 1. Do not go against the "Major Trend" (The Authority of the Weekly Candle)
Settings: Set MA5 to .
Interpretation: The Weekly 50 line is the "major trend line" managed by institutions and market makers. If the current price is above this line, maintain only a "Buy (Long)" bias; if below, maintain only a "Sell (Short)" bias. Adhering to this rule alone can help you avoid massive losses.
💡 Tip 2. Highly Reliable "Swing Signal" (Daily Golden Cross)
Settings: In Signal 1, configure the Short MA to and the Long MA to .
Interpretation: A Golden Cross where the 4-Hour 50 EMA breaks above the Daily 50 EMA often signifies a major "trend reversal" rather than a temporary rebound. This provides an ideal entry signal for office workers or swing traders who need high reliability.
💡 Tip 3. 4-Hour Candle as the Standard for "Precision Entry"
Situation: When the Daily trend is rising (Bullish alignment).
Strategy: While watching the 15-minute or 1-hour chart, set the indicator's Signal 2 to the cross of and .
Interpretation: When the Daily chart is in an uptrend, a Golden Cross occurring on the 4-Hour chart marks "the point where a correction (pullback) ends and the rise resumes." This is the entry point with the best risk-to-reward ratio.
💡 Tip 4. Filtering Out "Fake Signals" (The Secret of Volume)
Strategy: When creating a cross signal, try using VWMA (Volume Weighted) for the Long MA, even if you use EMA for the Short MA.
Reason: A Golden Cross caused simply by a rise in price can be a trap. However, if it breaks through the heavy VWMA line accompanied by volume, it is strong evidence that "genuine liquidity" has entered.
💡 Tip 5. Remember the "Hierarchy" (Higher Timeframe Priority Rule)
Principle: If a Golden Cross (Buy Signal) appears on the 4-Hour chart, but the Daily chart is in a Death Cross (Sell Signal) state, do not enter.
Interpretation: A signal from a lower timeframe cannot overcome the power of a higher timeframe. The professional approach is to trade with significant volume only when signals align (Sync) in the order of Weekly > Daily > 4-Hour. Keep this indicator's dashboard feature on and always check the status of higher timeframes.
Signal Generation Principle (Operating Mechanism)
Signals are generated when the set short-term moving average and long-term moving average cross each other.
📈 1. Golden Cross (BUY = Buy Signal)
Situation: The moment the short-term MA crosses upward from below the long-term MA.
Principle: It implies that recent buying pressure has broken through the resistance level accumulated over a long period.
📉 2. Death Cross (SELL = Sell Signal)
Situation: The moment the short-term MA crosses downward from above the long-term MA.
Principle: It implies that recent selling pressure has collapsed the long-term support line.
※ If the candles are not displaying correctly or are flickering, please set the indicator's 'Visual order' to 'Bring to front' as shown in the image below.
Investment Caution and Disclaimer
Before using this indicator for actual trading, please strictly read the contents below.
① Auxiliary indicators are a "Compass," not a "Book of Prophecy."
This indicator is merely a tool that mathematically calculates and visualizes past price data. A "magic indicator" that predicts future price fluctuations 100% accurately or guarantees profit does not exist. The signals provided are for reference only and must never be the sole basis for entry/exit decisions.
② The responsibility for all investments lies with "Yourself."
Financial investment (Cryptocurrencies, Stocks, Futures, etc.) involves high volatility and is a risky activity that can result in the loss of some or all of the principal. The final responsibility for all trading results (profits and losses) incurred by utilizing this indicator lies entirely with the investor. The distributor and developer accept no legal responsibility for investment results under any circumstances.
③ Past data does not guarantee the future.
Even a Golden Cross that fit perfectly in backtesting or past charts may operate differently in tomorrow's market situation (News, Macroeconomics, Unexpected Variables, etc.). Do not rely solely on technical analysis; you must conduct fundamental analysis and risk management in parallel.
④ Risk management is the top priority.
No matter how promising a signal appears, "all-in trading" (investing all assets in a single trade) is a shortcut to bankruptcy. More important than the indicator itself is adhering to the principles of strict scaling in (split buying) and Stop-Loss.
ETHThe Indicator is using the combination of below indicators:
Relative Strength Index (RSI): A momentum oscillator used to identify overbought (above 70) or oversold (below 30) conditions, which can signal potential price reversals.
Moving Averages (MA & EMA): These smooth out price data to help identify the direction of the overall trend. Crossovers between different period MAs (e.g., a short-term MA crossing above a long-term MA) can generate buy or sell signals.
Moving Average Convergence Divergence (MACD): A trend-following momentum indicator that shows the relationship between two moving averages. A bullish crossover (MACD line above signal line) suggests upward momentum, while a bearish crossover (MACD line below signal line) indicates downward momentum.
Bollinger Bands: This volatility indicator consists of a middle band (moving average) and two outer bands based on standard deviation. Price touching the upper band may signal overbought conditions, while touching the lower band may signal oversold conditions or a potential bounce.
Volume Indicators (e.g., On-Balance Volume - OBV): Volume confirms the strength of a price movement. A price increase with high volume suggests strong buying pressure, validating the trend.
Ethereum Long/Short Ratio: This sentiment indicator compares the number of traders holding long positions versus short positions. A high ratio might indicate excessive bullish sentiment, potentially preceding a market correction.
Smart Trend IndicatorThis indicator is a decisive tool for identifying the trend of the script.
This trend identifies any change in trend as early as possible.
The indicator works ideally if a pivot or a prior pivot is broken, taking in consideration the EMA 21 and EMA 50 as fast and slow indicators respectively.
The indicator also uses a candle stick holding method to disregard and up and down moves created by volatility which would be a false indication on the chart.
A Combination of indicators such as ichimokou, Ema cross over, holding method and pivot methods make this indicator work as perfectly as possible.
Triple Supertrend + EMA CrossoverCustomized 3 supertrend and EMA crossover which is helpful for identification of the trend.
10>20,p>50 DEMARenders daily EMA, 10, 20 and 50 on any timeframe below 1D
30m timeframe works well.
Use trend of 10 > 20 + price > 50 for long and 10 < 20 + price < 50 for shorts or exits.
Trinity Moving Average SlopeThe Trinity Moving Average Slope indicator quantifies the steepness of a moving average's direction in a dedicated oscillator pane on TradingView. It normalizes this slope with ATR to ensure consistent readings across varying assets, volatilities, and timeframes, enabling traders to distinguish robust trends from sideways or choppy markets objectively.
Calculation Method
The process starts by calculating a primary moving average based on the selected type and length (default: 16-period HMA on ohlc4 source). It then determines the one-bar change in this MA value, divides it by the ATR (default length 10) for volatility normalization, applies the arctangent function, and converts the result to degrees. This produces a slope angle that typically oscillates between roughly -10° and +10°, with higher absolute values indicating steeper trends.
Visual Elements and Interpretation
The main slope line appears with dynamic coloring: bright green for values above the top threshold (default +2°), signifying a strong uptrend; red below the bottom threshold (default -2°), for strong downtrends; and gray in the neutral zone between them. Horizontal lines mark these thresholds, along with a dotted zero line for quick reference on trend direction changes.
Usage Guidelines
Traders primarily use this as a trend strength filter—favor long positions or continuations when the line sustains green, shorts or profit-taking in red, and stand aside during gray periods to avoid false trend signals in ranging conditions. Zero-line crosses serve as early warnings of momentum shifts, while the built-in alerts notify on strong trend activations or these crosses.
Highlight: Secondary Moving Average
An optional secondary MA (toggleable, default off) smooths the slope line itself, functioning like a signal line (default: 14-period EMA in yellow). Enabling it introduces crossover opportunities: the main slope crossing above the secondary MA suggests accelerating bullish momentum, while crossing below indicates potential bearish slowdowns or reversals. This adds confirmation and helps filter noise, especially useful in volatile markets.
Available Moving Average Types
Both the main (slope-generating) MA and the secondary MA offer the same six types, each with distinct characteristics for different trading styles:
SMA (Simple Moving Average): Equal weighting to all periods—smooth but with significant lag, ideal for identifying long-term trends.
EMA (Exponential Moving Average): Greater weight to recent prices—responsive with moderate lag, a balanced choice for most trend-following setups.
WMA (Weighted Moving Average): Linear weighting favoring newer data—faster than SMA but smoother than EMA, good for intermediate responsiveness.
HMA (Hull Moving Average): Engineered to reduce lag while maintaining smoothness—highly responsive, excellent for shorter timeframes or catching early trend changes (default in the main MA here).
RMA (Running Moving Average): Similar to EMA but with adjustable alpha—robust and less prone to overshooting in wild swings.
VWMA (Volume Weighted Moving Average): Weights by volume—useful in stock trading where volume confirms price moves, emphasizing high-activity periods.
Suggested Settings
For stocks (slower moves): Use longer main lengths like 30-50 with EMA or HMA on daily charts, or 20-34 on intraday, keeping thresholds around ±2° to ±3°.
For crypto (faster action): Opt for shorter lengths like 10-20 with HMA for responsiveness, ATR 10, and thresholds ±1.8° to ±2.5°; enable the secondary EMA for extra signal confirmation on 15-min to 4H charts. Experiment to match your risk tolerance.
EMA RANGEEMA RANGE
EMA RANGE is a simple, price-focused indicator that plots an Exponential Moving Average (EMA) with a dynamic ATR-based range above and below it. The ATR bands adapt to market volatility, helping traders visualize normal price movement and identify potential expansion or compression zones.
🔹 Features
Customizable EMA length
ATR range bands plotted above and below the EMA
Adjustable ATR length and multiplier
Toggle to enable or disable ATR ranges
Fully customizable colors and line thickness from the Style tab
🔹 How It Works
The EMA serves as the central trend reference.
The Average True Range (ATR) measures volatility.
Upper and lower bands are calculated as:
EMA ± (ATR × Multiplier)
When price remains inside the range, conditions are considered normal. Moves outside the range may signal increased volatility, momentum expansion, or potential breakout conditions.
🔹 Best Use Cases
Trend continuation and pullback analysis
Volatility-based risk framing
Dynamic support and resistance visualization
Works on any market and timeframe
EMA RANGE is designed to stay clean, responsive, and easy to interpret—making it suitable for both discretionary and systematic traders.
Sell-to-Buy Pressure RatioSell/Buy Pressure Ratio
What It Measures
The Sell/Buy Pressure Ratio quantifies the aggressiveness of sellers versus buyers by comparing conviction-weighted volume on down candles versus up candles. It answers a simple question: who is more committed right now—buyers or sellers?
How It Works
The indicator examines each candle and determines directional conviction based on where price closes within the bar's range. A candle that closes near its high shows strong buyer conviction. A candle that closes near its low shows strong seller conviction. This conviction percentage is then multiplied by volume to create a weighted measure of buying and selling pressure.
The ratio divides total selling pressure by total buying pressure over a lookback period. A ratio of 1.5 means sellers are 50% more aggressive than buyers. A ratio of 0.5 means buyers are twice as aggressive as sellers.
Key Features
Conviction weighting: Not all volume is equal. A strong close near the high counts more than a weak close mid-range.
Doji handling: Indecisive candles (where open and close are nearly equal) split volume 50/50 between buyers and sellers.
Volume filtering: Low-volume bars below 60% of average are excluded to focus on meaningful activity.
Normalized output: Optional -1 to +1 scale for cross-stock comparison.
Interpretation
RatioMeaning≤ 0.5Strong buyers — accumulation, continuation setups0.5 – 0.8Buyers favored — healthy environment for longs0.8 – 1.2Balanced — equilibrium, wait for direction1.2 – 1.5Sellers favored — caution warranted≥ 1.5Strong sellers — distribution, avoid new longs
Primary Use
Timing entries within confirmed trends. The ratio identifies when selling pressure has exhausted itself, signaling safer entry points. Rather than buying strength, traders wait for the ratio to transition from elevated levels back toward equilibrium—buying when selling stops being dangerous.
What It Does Not Do
This indicator does not predict direction. It measures current pressure dynamics. Pair it with trend analysis (moving averages, price structure) to determine direction, then use the pressure ratio to time entries and exits.
Scalping Acciones PRO (Entradas + TP + SL) leo
How to use it correctly
• Timeframe: 1m or 5m
• High-volume stocks (SPY, AAPL, TSLA, NVDA…)
• Take Profit (TP): VWAP or EMA 21
• Stop Loss (SL): low/high of the signal candle
⸻
If you want, in the next message I can:
• 🔧 add automatic Stop Loss and Take Profit
• 🚀 convert it into a strategy (Strategy Tester)
• 🎯 filter only strong reversals (fewer false signals)
EMA/SMA Full color signal candles💡 What It Does:
The indicator calculates and plots the 21-period Exponential Moving Average (EMA) and the 30-period Simple Moving Average (SMA). It then analyzes the closing price of each candle and colors the entire candlestick (body and border) according to pre-defined trend conditions.
This visualization allows traders to identify strong trend environments versus periods of consolidation or indecision at a glance, removing the need to constantly check the price relationship manually.
🎨 Color Conditions and Meaning:
The indicator uses three distinct color states to signal the market's current momentum:
Color,Condition,Market Interpretation
🟢 GREEN,Closing Price is ABOVE both the 21 EMA AND the 30 SMA.,Strong Bullish Trend: Suggests high momentum and confirmation of an uptrend. Ideal for long bias.
🔴 RED,Closing Price is BELOW both the 21 EMA AND the 30 SMA.,Strong Bearish Trend: Suggests high downward pressure and confirmation of a downtrend. Ideal for short bias.
⚫ GRAY,"Closing Price is in any other state (e.g., between the two MAs, or under one and over the other).","Neutral / Consolidation: Indicates uncertainty, low momentum, or potential trend exhaustion/reversal. Caution is advised."
🔧 Customization Options:The indicator is fully customizable, allowing users to fine-tune the periods to match their preferred trading style (e.g., scalping, swing trading).Dĺžka EMA (Length EMA): Allows you to change the period for the Exponential Moving Average (default is 21).Dĺžka SMA (Length SMA): Allows you to change the period for the Simple Moving Average (default is 30).
I added also Extra 4 EMA lines to have extra edge.
NY ORB, VWAP & EMAsThis release introduces powerful new features focused on session analysis, trade alerts, and clear market visualization to help you better frame the trading day.
✨ New Features
1. Automated Trading Session Identification
The indicator now automatically identifies and highlights two key market periods:
Asian Session High/Low Tracking: Automatically tracks and plots the High and Low prices established during the Asian Trading Session (5:00 PM – 2:00 AM PST). These levels provide critical reference points for potential support and resistance during subsequent sessions.
Power Hour Visualization: A subtle green background highlight is now applied to the chart during the "Power Hour" (6:00 AM – 9:30 AM PST). This visually marks the high-volatility period immediately following the New York Open, helping traders focus on active price action.
⚙️ Technical Changes
Plot Style: The plots for the "Asian High" and "Asian Low" are now plotted using circles (plot.style_circles) for clear visibility and differentiation from standard lines.
One-Sided Hodrick-Prescott FilterTechnical & Mathematical Architecture
This indicator represents a significant departure from standard Moving Averages or traditional Hodrick-Prescott (HP) filter implementations found on Trading View. It utilizes a State-Space Model approach to decompose time-series data into trend and cyclical components, solved recursively via a Kalman Filter (Forward Pass) and a Rauch-Tung-Striebel (RTS) Smoother (Backward Pass). Furthermore, it introduces a proprietary Maximum Likelihood Estimation (MLE) loop to adapt the smoothing parameter (λ) dynamically in response to market regimes.
1.1 The State-Space Formulation
The standard HP filter minimizes a specific loss function involving the sum of squared deviations and the sum of squared second differences. While typically solved via batch matrix inversion, this script reformulates the problem as a Local Linear Trend (LLT) model, a stochastic structural model defined by:
Measurement Equation:
y = μ + ε
(Where ε is normally distributed noise)
State Transition Equations:
μ = μ + β + η
β = β + ζ
Where μ represents the stochastic level (trend) and β represents the stochastic slope (drift). The crucial link to the HP filter is the signal-to-noise ratio. By setting the variance of η to 0 (smooth trend) and defining λ as the ratio of measurement variance to slope variance, the Kalman Filter solution converges exactly to the One-Sided HP Filter.
1.2 The Forward Pass: Kalman Filter
The script executes a recursive estimation loop for real-time (causal) filtering:
Prediction Step: Projects the state mean and error covariance forward based on the transition matrix.
Innovation: Calculates the measurement residual (v = y - predicted y).
Update Step: Computes the Kalman Gain. The posterior state is updated based on how much the prediction missed the actual price.
Stability: The covariance update utilizes the Joseph Form subtraction to ensure the covariance matrix remains positive semi-definite, preventing numerical instability inherent in high-precision floating-point calculations over long durations.
1.3 Adaptive λ via Maximum Likelihood
Standard filters use a static λ (e.g., 1600 for quarterly data), which fails in crypto/FX markets exhibiting changing volatility. This script implements an Adaptive ML Loop.
The Kalman Filter assumes innovations are normally distributed with a specific theoretical variance (S). We compute a running variance ratio test:
Ratio = Actual Innovation Variance / Theoretical Variance
Ratio > 1: The model is "surprised" by volatility. The filter is under-fitting. The script dynamically decreases λ to increase responsiveness (reduce lag).
Ratio < 1: The model is over-fitting noise. The script increases λ to enforce a smoother trend.
This allows the filter to function as a low-lag trend follower during impulses and a robust noise filter during consolidation, automatically.
1.4 The Backward Pass: Rauch-Tung-Striebel (RTS) Smoother
This is the most complex feature of the script. While the Forward Pass provides the optimal estimate based on past data, the Backward Pass computes the optimal estimate based on all data.
The RTS algorithm runs purely on historical arrays stored in memory:
It iterates backward from the last bar to the past. It computes a "Smoother Gain" matrix based on future information. It updates the past estimates to correct them based on what happened afterwards. This results in a Minimum Mean Squared Error (MMSE) estimator. Note: This smoothed line is for analytical hindsight and back testing theoretical limits; it is distinct from the real-time filtered line used for live signaling.
Usage Guide:
This indicator is designed for precision trend following and mean-reversion trading. It separates the market price into a Trend Component (Signal) and a Cycle Component (Noise/Oscillation).
The Two Trend Lines:
The Filtered Trend (Real-Time): This is the filled/shaded line on your chart. It calculates the trend using only past data. It does not repaint. Use this for entering and exiting live trades.
Green Fill: Price is above the trend (Bullish bias).
Red Fill: Price is below the trend (Bearish bias).
The Smoothed Trend (Hindsight): (Optional, enabled via settings). This is the "God mode" line. It uses future data to show you exactly where the trend was.
WARNING: This line repaints. Do not trade the tip of this line. Its purpose is to show you the ideal path for training your eye or optimizing parameters.
Mean Reversion Signals:
The script calculates the "Cycle," which is the percentage deviation of price from the HP Trend.
Bands: The Upper and Lower bands represent the Cycle Threshold.
Long Signal (L): Triggered when the Cycle is Oversold (below lower band) AND begins to turn up, while the Filtered Drift (slope) is positive. This suggests a "dip buy" in an uptrend.
Short Signal (S): Triggered when the Cycle is Overbought (above upper band) AND begins to turn down, while the Filtered Drift is negative. This suggests selling a rally in a downtrend.
Adaptive Lambda Panel:
Enable the "Lambda Panel" to see the engine under the hood.
Rising Lambda (Blue): The market is noisy or consolidating. The filter is becoming "stiffer" to ignore the chop.
Falling Lambda (Orange): The market is trending impulsively. The filter is becoming "looser" to track the price closely and reduce lag.
Strategy: You can use low Lambda values as a confirmation of high-volatility breakout regimes.
Performance Table:
A dashboard in the bottom right corner displays the efficiency of the Kalman Filter:
MSE Filtered vs. Smoothed: Shows the Mean Squared Error of the real-time prediction vs. the hindsight-optimal smooth.
Improvement %: A higher percentage indicates that the RTS Smoother is extracting significantly more noise than the real-time filter (common in choppy markets).
Kalman Gains (K1, K2): These display the current weight the filter assigns to new price data for updating the Level and Slope respectively.
Summary of Settings
Base Lambda: The starting stiffness. Higher = smoother (long-term trend). Lower = responsive (short-term trend).
Adaptation Speed: Recommended between 0.01 and 0.05. Controls how fast λ reacts to volatility shocks.
Smoother Lookback: How far back (in bars) the RTS algorithm re-optimizes the historical line.
Best Practice: Use the Filtered Trend for execution. Use the Smoothed Trend to analyze past price action and determine if your Base Lambda setting is appropriate for the asset's volatility profile.
Slope Averages
📊 Indicator Overview: Three Moving Averages Slope Table
This indicator is designed to calculate and display the slopes and averages of three different moving averages (MAs) in a table format. It helps traders quickly visualize the direction and strength of multiple moving averages, as well as their combined averages, across different timeframes.
⚙️ Inputs and Configuration
• MA Type 1, 2, 3: Choose the type of moving average for each line. Options:
• (Exponential Moving Average)
• (Simple Moving Average)
• (Weighted Moving Average)
• (Volume-Weighted Moving Average)
• (a custom smoother using multiple EMAs)
• Length 1, 2, 3: Periods for each moving average (e.g., 20, 50, 100).
• Source: The price source used (default = ).
• Extra Timeframes (optional): You can configure up to 3 additional timeframes (e.g., 1h, 4h, Daily) to compare the combined average across different chart periods.
🔧 Functions Explained
1. tilson(src, length)
• A custom moving average that smooths price using 8 sequential EMAs.
• Produces a smoother line than a standard EMA.
2. getMA(src, length, maType)
• Selects the correct moving average type based on user input.
• Returns the chosen MA value.
3. Slope Calculation
• Each slope is calculated as:
• This converts the difference between current and previous MA values into an angle in degrees.
• Positive slope = upward trend, negative slope = downward trend.
4. Combined Slopes
• : Average slope of all three MAs.
• , , : Average slopes of pairs of MAs.
5. Combined Averages
• : Average of MA1 and MA2.
• : Average of MA2 and MA3.
• : Average of MA1 and MA3.
• : Average of all three MAs.
6. Color Function
• : Returns green if value ≥ 0, red if value < 0.
• Used to color table cells for quick visual feedback.
📋 Table Output
The table shows:
1. Individual slopes of MA1, MA2, MA3.
2. Average slope of all three.
3. Combined averages (M1+M2, M2+M3, M1+M3).
4. Combined slopes of pairs.
5. Overall average .
6. Optional: RSI or multi-timeframe averages can also be added.
Each value cell is colored green if positive, red if negative, making it easy to spot bullish or bearish conditions.
🎯 How to Use It
• Trend Strength: Look at the slope values. Steeper positive slopes = stronger uptrend; steep negative slopes = stronger downtrend.
• Confluence: When all three MAs and their combined averages point in the same direction, it signals strong trend alignment.
• Multi-Timeframe Analysis: Configure extra timeframes to see if short-term and long-term averages agree. If they align, confidence in the trend increases.
• RSI Integration (optional): Add RSI to confirm momentum. For example, bullish slope + RSI > 50 = stronger buy signal.
✅ Practical Example
• MA1 = EMA(20), MA2 = SMA(50), MA3 = WMA(100).
• If slope1, slope2, slope3 are all positive and green, and is also green → strong bullish trend.
• If slopes are mixed (some green, some red), the market is consolidating.
• If all slopes are red and is red → strong bearish trend.
Market NavigatorIntroducing Market Navigator: The Ultimate Trading Indicator for Forex and Gold Markets
In today’s fast-paced trading world, having all-in-one tools that provide clarity and actionable insights is more critical than ever. The FINAL EMA 05 indicator is a comprehensive TradingView tool designed to help traders spot trends, key levels, and market reversals—all on a single chart.
This indicator combines 8 EMAs, Delta Zones, Swing Highs/Lows, Candle Patterns, and Liquidity Channels—making it perfect for Forex, Gold (XAUUSD), and other major markets.
1. Multi-Timeframe EMAs for Trend Clarity
The indicator includes 8 EMAs:
EMA 7 & 9 – Short-term trend detection
EMA 10 & 20 – Short-to-mid-term trend confirmation
EMA 50 & 89 – Mid-to-long-term trend
EMA 100 & 200 – Long-term trend and strong support/resistance levels
Each EMA can be customized with a different length, color, width, and timeframe, making it easy to visualize both local and major market trends.
✅ Why it matters: EMAs help traders quickly identify whether the market is in an uptrend or downtrend, and spotting EMA crossovers can signal potential trade entries.
2. Delta Zones: Detect Buy & Sell Pressure
Delta Zones identify buying and selling pressure by analyzing price movement deviations. The system plots green “Buy Boxes” when bullish pressure is high and red “Sell Boxes” when bearish pressure dominates.
Configurable StdDev levels and lookback periods
Alerts when buy or sell pressure is detected
✅ Why it matters: Delta Zones give traders an edge by visually highlighting where buyers or sellers are strongest, helping to anticipate market moves.
3. Swing Highs & Lows with Candle Patterns
FINAL EMA 05 automatically detects:
Swing Highs (HH/LH) and Swing Lows (LL/HL)
Key candlestick patterns including Hammer, Inverted Hammer, Bullish Engulfing, Hanging Man, Shooting Star, and Bearish Engulfing
Labels are plotted directly on the chart, with tooltips explaining the pattern, making it perfect for beginners and experienced traders alike.
✅ Why it matters: Swing levels and candle patterns help identify market reversals and trend continuations, allowing precise entry and exit timing.
4. Liquidity Channels: Spot Key Levels for Big Moves
Liquidity Channels detect important highs and lows where large traders may have placed their orders. The channels expand over time and are visually highlighted:
Teal lines for bullish liquidity
Red lines for bearish liquidity
Customizable channel growth, line style, and deletion timing
✅ Why it matters: These levels often act as support and resistance zones, and price reactions at these points can indicate major breakouts or reversals.
5. Why Bangladeshi Traders Should Use FINAL EMA 05
Gold (XAUUSD) & Forex Focus: The EMAs and Delta Zones provide accurate trend direction, while liquidity levels show where institutional traders are active.
Multi-Timeframe Insights: Short-term traders can focus on EMA 7, 9, and 10, while swing traders can watch EMA 50, 89, and 200.
All-in-One View: No need to add multiple indicators; this script combines trend, pressure, patterns, and liquidity in one.
Conclusion
The FINAL EMA 05 indicator is not just another EMA or candlestick tool—it’s a complete trading toolkit. By combining trend analysis, pressure zones, swing levels, candlestick patterns, and liquidity channels, it empowers traders to make informed, precise, and confident decisions.
Whether you’re trading USDJPY trends, Gold XAUUSD, or Forex pairs, this indicator helps you spot






















