EMA Slope - RSI Indicator# EMA Slope - RSI Indicator
## Script Description (for Publishing Page)
**EMA Slope - RSI Indicator** combines normalized EMA slope momentum analysis with RSI divergence detection and momentum comparison to create a visual signal indicator with five distinct signal types. The indicator's originality lies in its unique "No Trade Zone" (NTZ) concept applied to slope momentum, combined with centered RSI format for direct comparison, and multiple complementary signal methods that work together to identify both trend-following and reversal opportunities across different market conditions.
**Core Concept - EMA Slope Normalization:** Calculates rate of change of long MA (default 160 EMA) by comparing current value to N bars ago (default 3 bars). Raw slope difference normalized to -100 to +100 scale using 500-bar rolling range: normalizedSlope = 100 * (longMA - longMA ) / (highest(maDF, 500) - lowest(maDF, 500)). Creates consistent momentum oscillator comparable across price levels and timeframes.
**No Trade Zone (NTZ) Logic:** NTZ (±8 default) creates neutral zone where slope momentum is too weak for reliable signals. Indicator only triggers NTZ Cross signals when slope crosses out of threshold zone, ensuring signals occur only when momentum is sufficiently strong.
**Centered RSI Format (RSI-50):** Traditional RSI (0-100 range) difficult to compare with slope. This indicator uses centered RSI = (RSI - 50), creating -50 to +50 range zero-centered on same scale as normalized slope. Enables direct visual and mathematical comparison between RSI and slope momentum, enabling Slope-RSI exhaustion detection and RSI-Slope Oscillator signals.
**Component Integration:** Five signal types target different market conditions. NTZ Cross and Acceleration target trend-following when momentum strong. RSI Divergence and Slope-RSI Divergence target reversals when price/momentum diverge. RSI-Slope Oscillator targets momentum alignment when RSI and slope converge. Multi-method approach provides signals across trending, reversing, and ranging markets.
### 📊 Technical Calculations
**Slope Normalization:** maDF = longMA - longMA , normalized: maDf = 100 * maDF / (highest(maDF, 500) - lowest(maDF, 500)), ranges -100 to +100.
**Acceleration Detection:** maAcce = abs(maDf - maDf ) * smoothBars * 2, normalized: maAcc = 50 * maAcce / highest(maAcce, 200). Values above threshold (35 display, 40 signals) indicate sudden momentum shifts. Visualized as colored circles: cyan (bullish), red (bearish).
**RSI Calculation:** rsi = sma(rsi(source, length), smoothing), centered: cRsi = rsi - 50 (ranges -50 to +50). Smoothed using SMA (default 3 bars) to reduce noise.
**RSI Divergence:** Uses pivot high/low detection on smoothed RSI. Pivot lookback = 16 - sensitivityInput (inverse: sensitivity 6 = 10-bar lookback, sensitivity 10 = 6-bar lookback). Compares price pivots (actual high/low including wicks) against RSI pivots. Bullish: priceLowerLow AND rsiHigherLow. Bearish: priceHigherHigh AND rsiLowerHigh. Stores multiple previous pivots (default 8 max) for comparison.
**Slope-RSI Exhaustion:** Compares normalized slope against centered RSI on same scale. Bearish: slope accelerating up (delta > 0, slope > NTZ) BUT RSI declining (cRsi < cRsi AND cRsi < cRsi ). Bullish: slope accelerating down (delta < 0, slope < -NTZ) BUT RSI rising. Gap threshold (default 10.0 points) filters noise. Visualized with dashed lines and gap labels.
**RSI-Slope Oscillator:** State machine tracks cross events (rsiSlopeCrossUp = cRsi > maDf AND cRsi <= maDf ), waits for confirmation: both RSI and slope heading same direction. Long: RSI crosses above slope AND both heading UP. Short: RSI crosses below slope AND both heading DOWN. Useful for range-bound markets.
**Stretch Filter:** maPercentDiff = (longMA - shortMA) / shortMA * 100. Blocks long signals if longMA > shortMA by threshold (overextended up). Blocks short signals if shortMA > longMA by threshold (overextended down). Default 0.45% prevents signals when MAs too far apart.
**Delta Calculation:** Measures change in normalized slope between bars. Timeframe mode: compares current confirmed slope with previous confirmed (more reliable, slight delay). Standard mode: compares current with previous bar (faster, may use unconfirmed). Minimum threshold (default 3.4) filters weak momentum changes.
**Trailing Stop (Blackflag FTS Swingarm):** Uses Wilder's MA of true range. Modified mode: trueRange = max(HiLo, HRef, LRef) with enhanced gap handling. Unmodified: standard true range. Trailing stop calculated based on ATR factor and price trend direction. Separate settings for divergence signals (wider stops, grace periods).
### 🚀 Signal Types and Conditions
**1. NTZ Cross Signals:** Long: Slope crosses above +NTZ (default +8) AND positive delta ≥ threshold (default 3.4) AND stretch filter allows AND optional trend confirmation (short MA > long MA). Short: Slope crosses below -NTZ AND negative delta ≥ threshold AND filters allow. Exit: Slope re-enters NTZ OR reverses direction for confirmation bars OR trailing stop.
**2. Acceleration Signals:** Long: Acceleration ≥ threshold (default 40) AND slope above NTZ AND positive delta sufficient AND filters allow. Short: Acceleration ≥ threshold AND slope below -NTZ AND negative delta sufficient AND filters allow. Visual: Colored circles (cyan bullish, red bearish). Works independently to catch sudden momentum bursts.
**3. RSI Divergence Signals:** Bullish: Price lower low while smoothed RSI higher low, detected via pivot comparison (default up to 8 pivots). Bearish: Price higher high while RSI lower high. Optional Slope-RSI confirmation. Visual: Purple lines (bearish), lime lines (bullish). Exit: Divergence-specific trailing stop (wider ATR, grace period).
**4. Slope-RSI Divergence Signals:** Bullish: Slope accelerating down (negative delta, slope < -NTZ) BUT RSI rising over lookback AND gap exceeds threshold (default 10.0 points). Bearish: Slope accelerating up (positive delta, slope > NTZ) BUT RSI declining AND gap exceeds threshold. Visual: Orange triangles (bullish exhaustion), yellow triangles (bearish exhaustion) with dashed lines. Exit: Divergence-specific trailing stop.
**5. RSI-Slope Oscillator Signals:** Long: RSI crosses above slope AND both heading upward. Short: RSI crosses below slope AND both heading downward. State machine tracks cross then confirms direction. Exit: Opposite oscillator condition (allows reversal) OR trailing stop after grace period.
### 📖 How to Use
**Adding to Chart:** TradingView → Indicators → Search "EMA Slope - RSI Indicator" → Add (displays in separate pane below price).
**Visual Elements:** Colored area = normalized EMA slope (Green = bullish above NTZ, Red = bearish below -NTZ, Gray = NTZ zone). Blue line = Centered RSI (-50 to +50). Colored circles = Acceleration (Cyan = bullish, Red = bearish). Green triangles (↑) = Long signals (bottom). Red triangles (↓) = Short signals (top). Orange X = Exit signals. Dashed lines = NTZ boundaries. Purple/Lime lines = RSI divergences. Orange/Yellow triangles = Slope-RSI exhaustion. Table (top-right) = Current Slope, RSI, Gap values.
**Parameter Configuration:** MA Settings: Short 40 (stretch filter), Long 160 (slope), Types: SMA/EMA/DEMA/TEMA/WMA/VWMA/SMWMA/SWMA/HMA. Ratios: 20/80 (fast), 40/160 (standard), 50/200 (slow). Core: NTZ Threshold 8 (5-6 more signals, 10-12 stronger), Min Delta 3.4 (5-10 stronger, 1-3 sensitive), Max Stretch 0.45% (0.3% conservative, 1.0% permissive, 0 disable), Use Timeframe Delta true (confirmed bar vs previous bar). RSI: Length 14, Smoothing 3, Source close. Divergence: Sensitivity 6 (higher = more sensitive, 6 = 10-bar lookback, 10 = 6-bar lookback), Max Peaks 8 (2-15 range), Show Divergences true. Slope-RSI: Lookback 4 (2-10, higher = conservative), Min Gap 10.0 pts (0-100, higher = strong only, 0 disable), Show Exhaustion true. Signal Enables: NTZ Cross true, Acceleration true, RSI Divergence false, Slope-RSI Divergence true, RSI-Slope Oscillator true, Require Slope-RSI Confirmation false. Exit: Confirmation Bars 4 (0-10, 0 immediate, 2-4 filters false), Show Trailing Stop true, Trail Type Modified/Unmodified, ATR Period 10, ATR Factor 4.0 (2-3 tight, 4 standard, 5-6 wide), Divergence Grace 3 bars, Divergence ATR 4.0 (recommend 5-8), Oscillator Grace 3 bars, Oscillator ATR 4.0.
**Alerts:** Right-click indicator pane → Add Alert → Choose condition (Long/Short Entry/Exit) → Configure notifications.
**Interpreting Signals:** Trending Markets: Focus NTZ Cross and Acceleration, higher NTZ (10-12) for stronger signals, use trend confirmation. Reversal Opportunities: Enable RSI Divergence and Slope-RSI Divergence, look for exhaustion markers and divergence lines, use wider stops. Range-Bound: Enable RSI-Slope Oscillator, signals when RSI and slope align, allows position reversal. Multi-Timeframe: Higher TF for trend, lower TF for timing, stronger when aligned. Market Adjustments: Crypto 20/80 MA, NTZ 6-7, Delta 4-5 | Forex 40/160 MA, NTZ 8, Delta 3.4 | Stocks 50/200 MA, NTZ 10-12, Delta 2-3.
### 📈 Use Cases
Day Trading (5m-15m, fast MAs 20/80), Swing Trading (1h-4h, standard 40/160), Position Trading (4h-Daily, slow 50/200), Trend Following (NTZ Cross/Acceleration in trends), Reversal Trading (RSI Divergence/Slope-RSI at reversals), Range Trading (RSI-Slope Oscillator in choppy markets), Momentum Analysis (Centered RSI and normalized slope comparison), Trend Exhaustion Detection (Slope-RSI exhaustion markers).
### ⚠️ Important Disclaimer
**THIS IS NOT FINANCIAL ADVICE**
This indicator is for educational and informational purposes only. Trading involves substantial risk of loss and is not suitable for all investors. Past performance does not guarantee future results. No guarantee of accuracy - signals may be false. Not professional financial advice - consult a qualified advisor. Use only as part of comprehensive analysis. Always use proper risk management. Combine with other analysis techniques before making trading decisions. Indicator signals don't guarantee profitable trades. You are solely responsible for trading decisions and risk management. By using this indicator, you acknowledge understanding the risks and that you use it at your own risk. Never invest more than you can afford to lose. Works on all markets: Crypto, Forex, Stocks, Commodities, Futures
## Short Description (for Script Header - 200-300 chars)
Visual signal indicator combining normalized EMA slope momentum (No Trade Zone concept) with centered RSI format for direct comparison. Five signal types: NTZ momentum crosses, acceleration bursts, price-RSI divergences, slope-RSI exhaustion reversals, and RSI-slope oscillator alignment. Includes stretch filter, exit confirmation bars, and trailing stop exits with separate settings per signal type.
## Tags (for Publishing)
EMA, Moving Average, Slope, Momentum, No Trade Zone, NTZ, Indicator, Technical Analysis, RSI, Relative Strength Index, Centered RSI, RSI-50, Divergence, Slope-RSI, Exhaustion, RSI-Slope Oscillator, Normalized Comparison, Stretch Filter, Trend Confirmation, Exit Confirmation, Trailing Stop, Alerts, Signals, Visual Signals, Entry Signals, Exit Signals, Crypto, Forex, Stocks, Futures, Swing Trading, Day Trading, Reversal Trading, Range Trading, Momentum Analysis
## Category
**Indicators** → **Momentum**
Экспоненциальное скользящее среднее (EMA)
Multi-Indicator Scoring TableThis indicator is a comprehensive technical analysis system designed to quantify market sentiment and visualize key dynamic levels. It aggregates signals from 9 different technical indicators into a single "Total Score" while simultaneously plotting a complete roadmap of Support and Resistance levels on your chart.
By combining Trend Following (EMAs, PSAR), Momentum (MACD, RSI), and Volatility (Bollinger Bands) metrics, this tool provides traders with an immediate snapshot of market confluence.
Above: A clear example of a Strong Bullish Trend (Total Score: 10). Notice how the price is riding above all EMAs, which are acting as dynamic support levels.
How It Works
The script performs two main functions: it scores the current price action against a basket of technical indicators, and it visualizes these indicators as dynamic interaction zones.
1. Dynamic Support & Resistance
Unlike static horizontal lines, this script plots moving averages and volatility bands that adapt to price action.
Resistance: Any plotted line (EMA, Bollinger Band, or PSAR) located above the current price acts as a potential Resistance level. These are areas where price may struggle to break through.
Support: Any plotted line located below the current price acts as a potential Support level. These are areas where price may find a "floor" and bounce.
Above: A Bearish Scenario (Total Score: -10). The EMAs and Bollinger Bands are now above the price, acting as layers of resistance. The table confirms the negative sentiment with red scores.
2. Strategic Application: Adding Liquidity
This tool is particularly useful for traders looking to scale into positions (add liquidity) rather than entering all at once.
Buying the Dip: When the Total Score is positive, traders can look at the plotted EMAs below the price as "Buy Zones." If the price retraces to the EMA 30 or EMA 65, it may act as dynamic support.
Selling the Rip: When the Total Score is negative, the lines above the price act as resistance. A rally back up to the EMA 15 or the Bollinger Basis can be viewed as an opportunity to add to a short position.
Above: The "Dist %" column in action. This column calculates exactly how far away the price is from these Support/Resistance levels, helping you gauge if a breakout or a rejection is imminent.
3. The Scoring Logic
The dashboard assigns a weighted numerical score to each indicator based on specific bullish or bearish conditions. The Total Score ranges from -10 (Maximum Bearishness) to +10 (Maximum Bullishness).
Bollinger Bands: ±2 Points for Reversion (Overbought/Oversold), ±1 Point for Trend (Above/Below Basis).
RSI: ±2 Points based on the 50 level.
MACD: ±1 Point based on Signal Line crossover.
Parabolic SAR: ±1 Point based on trend direction.
EMAs: ±1 Point for each of the 5 EMAs (Default: 9, 15, 30, 65, 200).
Above: A transitional market phase. The score is mixed (Yellow/Orange), indicating the market is consolidating or reversing. This warns the trader to be cautious.
4. The Dashboard (Table Breakdown)
The on-chart table provides a real-time data feed with three columns:
Indicator: The name of the tool. EMA labels update dynamically based on your settings.
Score: The current contribution of that indicator (Green for Bullish, Red for Bearish).
Dist % / Value: Displays the % distance to Support/Resistance or the raw value for oscillators like RSI/MACD.
Above: A long-term view (Weekly/Monthly) showing how the indicator helps visualize macro trends and major support levels like the 200 EMA.
Settings & Customization
The script is fully modular. You can adjust every parameter via the settings menu, organized into specific groups:
Bollinger Bands: Adjust Length, Multiplier, and Source.
MACD: Tune Fast, Slow, and Signal lengths.
RSI: Change Length and Source.
Parabolic SAR: Modify Start, Increment, and Max values.
EMAs: Individually configure the lengths of all 5 Moving Averages.
Disclaimer
This tool is for informational purposes only and DOES NOT constitute financial advice. Always manage your risk.
Zero Lag Moving Average Convergence Divergence (ZLMACD) [EVAI]Zero Lag Moving Average Convergence Divergence (ZLMACD)
ZLMACD is a MACD-style momentum oscillator that keeps the standard MACD structure while adding a practical “zero-lag” option through ZLEMA. It is intended for traders who like the familiar MACD workflow but want an oscillator that can respond earlier during transitions without turning into an overly noisy trigger.
The indicator plots the MACD line, the signal line, and the histogram around a zero baseline. If you already understand MACD, you already understand how to read this. The difference is that you can choose whether the oscillator and signal are driven by EMA, SMA, or ZLEMA, which changes the responsiveness and smoothness of the indicator.
Default behavior
This script defaults to the preset mode “ZLEMA osc + EMA signal.” In this configuration, the fast and slow oscillator averages are computed using ZLEMA, while the signal line remains an EMA of the MACD line. The reason for this mix is simple: ZLEMA tends to reduce lag in the oscillator, while EMA on the signal line helps keep crossovers readable and avoids excessive micro-signals.
In practice, this default preset often behaves like a “faster MACD” that still feels like MACD. It can highlight momentum turns earlier than a traditional EMA MACD while keeping the signal line stable enough to use for timing and confirmation.
Custom mode and MA selection
If you switch Mode to “Custom,” the indicator will use your selected moving average types for both the oscillator and the signal line. In Custom mode, the oscillator type applies to both fast and slow averages, and the signal type applies to the smoothing of the MACD line.
If you are in the default preset mode, the custom MA dropdowns will not change the calculations. This is intentional: the preset locks the MA types so the default behavior remains consistent and reproducible across charts and users.
Reading the indicator
The histogram reflects the distance between the MACD line and the signal line. When the histogram is above zero, the MACD line is above the signal line and momentum is biased upward; when it is below zero, the MACD line is below the signal line and momentum is biased downward. Changes in histogram height help visualize strengthening versus weakening momentum, while the zero baseline provides regime context by indicating whether the fast average is above or below the slow average.
Crossovers between MACD and signal behave exactly as they do in standard MACD, but the timing and “feel” will vary depending on the MA choices. ZLEMA on the oscillator typically makes turns appear earlier; SMA typically smooths more but can be slower; EMA tends to be the balanced baseline.
Alerts
Two alert conditions are included to detect histogram polarity shifts. One triggers when the histogram switches from non-negative to negative, and the other triggers when it switches from non-positive to positive. These are useful if you want simple notifications for momentum regime flips without staring at the chart continuously.
Notes
This indicator is provided for informational and educational purposes only and is not financial advice. Always test settings per instrument and timeframe and use risk management.
24 Universal MA Labels (SMA/EMA/WMA)單一指標整合 24 條均線 (8 SMA + 8 EMA + 8 WMA),極大化節省指標掛載配額,並提供高度自定義的右側自動追隨標籤。
A high-efficiency tool integrating 24 MAs (8 SMA + 8 EMA + 8 WMA) into one indicator to save slots. Features customizable labels that follow price action.
GFC MAs suitePlots six configurable moving averages (5, 10, 20, 50, 100, 200 by default) using a user-selected MA type (SMA, EMA, WMA, VWMA, or Hull) overlaid on price.
Assumptions: Uses close price as the source, applies the same MA type to all lengths, runs on the chart timeframe and exchange timezone, and is intended for visual trend and structure analysis.
By GlutenFreeCrypto
S/R + RSI + EMA + Trend"Multi-functional All-in-One Indicator optimized for the Crypto market. The system combines 5 core components to identify precise entry and exit points:
* Trend: A zero-lag EMA algorithm integrated with Volatility Bands that dynamically changes the candle colors. This serves as the primary trend filter, helping traders ride long waves and eliminate sideways noise.
* Dynamic Support & Resistance: Automatically identifies key price reaction zones based on Pivot Points, featuring price labels and real-time distance percentages.
* Multi-Timeframe (MTF) RSI: An on-screen RSI dashboard tracking timeframes from 1-minute to 1-day, allowing for quick monitoring of market-wide overbought and oversold conditions.
* Classic EMA System: Includes 4 exponential moving averages (34, 89, 200, 633) acting as psychological levels and long-term trend bias.
* Auto-Trendlines: Automatically plots trendlines once new swing highs and lows are confirmed."
Tabla de EMA's y TimeframesGraphic and permanent representation of the trend of an action/CFD/stock/crypto, directly related to the technical analysis of its EMA's.
Gold DipperDescription: The Gold Dipper is not just a simple EMA crossover; it is a comprehensive trend-following system designed to filter out market noise and capture entries during price retracements.
How the logic works together:
Trend Confirmation: The script utilizes a dual-layered filtering process. It compares the interaction between a fast-response EMA (20) and a baseline EMA (50) to establish the primary trend direction.
Volume/Momentum Filter (The "Dip" Detection): The script identifies a "Dip" by monitoring price action proximity to the baseline. A signal is only triggered when price 'kisses' the EMA 20 zone while the 50 EMA slope remains positive, ensuring we are not catching a falling knife but buying a controlled pullback.
Dynamic Risk Control: Unlike standard static SL/TP, this script calculates exit points based on recent Swing Lows/Highs within a specific look-back period, allowing the stop loss to adapt to current market volatility (ATR-like behavior).
Why this Mashup is Useful: This script solves the "Late Entry" problem common in crossover strategies. By merging trend detection with a precise pullback trigger and dynamic risk levels, it provides a complete trading plan in one tool, reducing the need for multiple cluttered indicators.
How to Use:
Best for XAUUSD on 15M.
Wait for the background/trend color to confirm an uptrend.
Execute when the "Buy" label appears at the touch of the EMA 20 line.
EMA and Dow Theory Strategies V2 DOGE Current Optimum Value
📘 Overview
These are the current optimal values for DOGE.
They are intended for use on the 2‑hour timeframe.
This script requires complex configuration, but there is an optimal set of values somewhere.
Here, I’m sharing the settings that I personally use at the moment.
Turning Take Profit off can lead to higher profits, but it also increases risks such as a lower win rate.
With Take Profit on, you can adjust the settings by increasing the values.
I have been trading using Dow Theory for many years.
Trading with Dow Theory and EMA has been my main strategy.
Although it has been profitable, I have long struggled with its low win rate.
The issue lies in the immaturity of the exit strategy, and I’m currently experimenting to see if I can solve that.
In V2, I added three take‑profit lines, securing 30% of the profit at each level to ensure a minimum level of gain.
Additionally, when the trend weakens, half of the position is closed.
In all scenarios, the remaining position is held until the trend reverses.
The system provides precise entries, adaptive exits, and highly visual guidance that helps traders understand trend structure at a glance.
🧠 Key Features
🔹 1. Dual‑EMA Trend Logic (Symbol + External Index)
Both the chart symbol and an external index (OTHERS.D) are evaluated using fast/slow EMAs to determine correlation‑based trend bias.
🔹 2. Dow Theory Swing Detection (Real‑time)
The script identifies swing highs/lows and updates trend direction when price breaks them. This creates a structural trend model that reacts faster than EMAs alone.
🔹 3. Gradient Trend Zones (Visual Trend Strength)
When trend is up or down, the area between price and the latest swing level is filled with a multi‑step gradient. This makes trend strength and distance-to-structure visually intuitive.
🔹 4. Higher‑Timeframe Swing Trend (htfTrend)
Swing highs/lows from a higher timeframe (e.g., 4H) are plotted to show macro structure. Used only for visual context, not for filtering entries.
🔹 5. RSI‑Based Entry Protection
RSI prevents entries during extreme overbought/oversold conditions.
🔹 6. Dynamic Exit System
Includes:
Custom stop‑loss (%)
Partial take‑profit (TP1/TP2/TP3)
Automatic scale‑out when trend color weakens
“Color‑change lockout” to prevent immediate re‑entry
Real‑time PnL tracking and labels
🔹 7. Alerts for All Key Events
Entry, stop‑loss, partial exits, and trend‑change exits all generate structured JSON alerts.
🔹 8. Visual PnL Labels & Equity Tracking
PnL for the latest trade is displayed directly on the chart, including scale‑out adjustments.
⚙️ Input Parameters
Parameter Description
Fast EMA / Slow EMA EMAs used for symbol trend detection
Index Fast / Slow EMA EMAs applied to external index
StopLoss (%) Custom stop‑loss threshold
Scale‑Out % Portion to exit when trend color weakens
RSI Period / Levels Overbought/oversold filters
Swing Detection Length Bars used to detect swing highs/lows
Stats Display Position of statistics table
🧭 About htfTrend (Higher Timeframe Trend)
The higher‑timeframe swing trend is displayed visually but not used for entry logic.
Why? Strict HTF filtering reduces trade frequency and often removes profitable setups. By keeping it visual‑only, traders retain flexibility while still benefiting from macro structure awareness.
Use it as a contextual guide, not a constraint.
📘 概要
DOGEの現在の最適値です。
2時間足での使用を想定しています。
このスクリプトは複雑な設定が必要ですが、どこかに最適値が存在します。
今回は現在私が個人的に使っている設定値の公開です。
Take ProfitをOFFにするとさらなる利益が望めますが、勝率が下がるなどのリスクが上がります。
ONにした状態で数値を上げることによって調整することが可能です。
私はダウ理論を使ったトレードを長年続けてきました。
ダウ理論とEMAを使ったトレードが私の主力です。
しかし利益は出るものの、長年その勝率の低さに悩んでいました。
問題は出口戦略が未熟なためで、現在はそれらの解決ができないかと試行錯誤を続けています。
V2では3本の利益確定ラインを引き、それぞれ30%ずつ利益を確定し、最低限の利益がでるようにしました。
それ以外にはトレンドが弱まったタイミングで半分の利益確定をし、どのパターンでも残ったポジションはトレンド転換まで持ち続けます。
🧠 主な機能
🔹 1. 銘柄+外部インデックスの EMA クロス判定
対象銘柄と OTHERS.D の EMA を比較し、相関を考慮したトレンド方向を判定します。
🔹 2. ダウ理論に基づくスイング高値・安値の自動検出
スイング更新によりトレンド方向を切り替える、構造ベースのトレンド判定を採用。
🔹 3. グラデーション背景によるトレンド強度の可視化
スイングラインから現在価格までを段階的に塗り分け、 「どれだけトレンドが伸びているか」を直感的に把握できます。
🔹 4. 上位足スイングトレンド(htfTrend)の表示
4H などの上位足でのスイング高値・安値を表示し、 大局的なトレンド構造を視覚的に把握できます(ロジックには未使用)。
🔹 5. RSI による過熱・売られすぎフィルター
極端な RSI 状態でのエントリーを防止。
🔹 6. 動的イグジットシステム
カスタム損切り(%)
TP1/TP2/TP3 の段階的利確
トレンド色の弱まりによる自動スケールアウト
色変化後の再エントリー制限(waitForColorChange)
リアルタイム PnL の追跡とラベル表示
🔹 7. アラート完備(JSON 形式)
エントリー、損切り、部分利確、トレンド反転などすべてに対応。
🔹 8. 損益ラベル・統計表示
直近トレードの損益をチャート上に表示し、視覚的に把握できます。
⚙️ 設定項目
設定項目名 説明
Fast / Slow EMA 銘柄の EMA 設定
Index Fast / Slow EMA 外部インデックスの EMA 設定
損切り(%) カスタム損切りライン
部分利確割合 トレンド弱化時のスケールアウト割合
RSI 期間・水準 過熱/売られすぎフィルター
スイング検出期間 スイング高値・安値の検出に使用
統計表示位置 テーブルの表示位置
🧭 上位足トレンド(htfTrend)について
上位足スイングの更新に基づくトレンド判定を表示しますが、 エントリー条件には使用していません。
理由: 上位足を厳密にロジックへ組み込むと、トレード機会が大幅に減るためです。
本ストラテジーでは、 「大局の把握は視覚で、エントリーは柔軟に」 という設計思想を採用しています。
→ 裁量で利確判断や逆張り回避に活用できます。
Price % Distance from 52 Weeks High, and EMAs"Stop guessing how far extended the price is—measure it instantly."
As a swing trader, knowing the exact distance between the current price and your key moving averages is critical. It tells you if a stock is overextended (too far) or offering a low-risk pullback entry (near 0%).
This lightweight utility script calculates the real-time percentage distance of the closing price from three critical levels:
10 EMA (Short-term momentum)
20 EMA (Swing trend baseline)
52-Week High (Major structural resistance)
It displays this data in a single, clean Smart Label attached to the latest candle, keeping your chart clutter-free.
Key Features
📊 Instant Calculation: See exactly how far (%) the price is from the 10 EMA, 20 EMA, and 52-Week High without using a measuring tool.
🧠 Intelligent Trend Coloring: The text color changes dynamically based on the immediate trend:
🟢 Green Text: Price is ABOVE both 10 & 20 EMAs (Bullish / Buy-the-dip zone).
🔴 Red Text: Price is BELOW both 10 & 20 EMAs (Bearish / Caution).
⚪ White Text: Price is mixed/choppy (between the EMAs).
👁️ High Contrast Design: Uses a semi-transparent dark background that ensures the data is clearly visible on both Light and Dark mode charts.
How to Use for Swing Trading
Pullback Entries: In a strong uptrend (Green Text), watch for the 10 EMA or 20 EMA % value to drop near 0.0% to 0.5%. This indicates a pullback to the average—often a high-probability entry point.
Overextension Warning: If the % distance becomes unusually large (e.g., Price is +5% above the 10 EMA), the move may be overextended, signaling to tighten stops or take profit.
52-Week Breakouts: Monitor the 52W % distance. As it approaches 0.0%, the stock is challenging its yearly high, alerting you to potential breakout plays.
Settings
EMA Lengths: Fully customizable (Default: 10 & 20).
Lookback: Adjust the high lookback period (Default: 260 bars for 52 Weeks).
Position: Toggle the label to appear Above or Below the candle.
THE ELVINATORTHE ELVINATOR is my trend-following momentum indicator built on the 20 EMA, 50 EMA, and 200 EMA, designed for trading **XAUUSD during the New York session (9:30–17:00 NY time), Monday through Friday**.
**How to trade it:**
* **Trend filter:** Only take **longs above the 200 EMA** and **shorts below the 200 EMA**. This keeps trades aligned with Gold’s dominant direction.
* **Long setups:** A **20 EMA cross above the 50 EMA** signals bullish momentum. Best entries come after a pullback into the 20–50 EMA zone followed by strong continuation candles.
* **Short setups:** A **20 EMA cross below the 50 EMA** signals bearish momentum. Look for pullbacks into the EMA zone and rejection before continuation lower.
* **Timing:** Focus on NY open and high-volume moves. Avoid choppy conditions and late-session exhaustion.
* **Risk & exits:** Place stops beyond recent swings or EMA structure. Targets can be prior highs/lows or scaled with trend continuation.
THE ELVINATOR is built for **structure, patience, and disciplined execution**, allowing traders to capitalize on Gold’s volatility without chasing noise.
Simple ema and sma cross
A simple EMA and SMA cross is an indicator that uses alpha from two moving averages: SMA (simple moving average) and EMA (exponential moving average).
The point where the EMA and SMA cross is usually a good place to enter a position.
The indicator includes smoothing settings to help you find the right calibration for your trading needs.
It also marks signals with triangles for easier use and includes alerts so you never miss a cross.
KalmanX3 (by beardsnbarbs)KalmanX3 Indicator - User Guide
Overview
The KalmanX3 indicator is designed to help traders easily identify uptrends and downtrends by combining multiple Exponential Moving Averages (EMAs) with an advanced Kalman filter. This creates a powerful trend-following system with clear visual signals.
***This is a reading guide — not a trading advice. ***
───────✧❁✧──────────────✧❁✧───────
What You'll See on Your Chart
1. EMA Lines (Moving Averages)
• EMA 1 (default: 21-period, cyan) - Fast-moving average
• EMA 2 (default: 55-period, red) - Slower-moving average
• EMA 3 & 4 (144/233) - Additional moving averages for confluence
• Colored Fill - The area between EMA 1 and EMA 2 shows trend direction:
o Cyan fill = EMA 1 above EMA 2 (bullish)
o Red fill = EMA 1 below EMA 2 (bearish)
───────✧❁✧──────────────✧❁✧───────
2. Kalman Filter Line
• Appears as colored line on the chart
• Adapts to market conditions using advanced filtering
• Color indicates trend strength:
o Green = Strong uptrend (EMAs and Kalman agree on bullish)
o Red = Strong downtrend (EMAs and Kalman agree on bearish)
o Yellow = Transitional/choppy (mixed signals)
───────✧❁✧──────────────✧❁✧───────
3. Signal Dots
• Green diamond below bar = Kalman filter crossed above selected EMA (buy signal)
• Red diamond above bar = Kalman filter crossed below selected EMA (sell signal)
───────✧❁✧──────────────✧❁✧───────
How to Use It
Basic Trading Strategy
For Uptrends (Long positions):
1. Wait for EMA 1 to cross above EMA 2 (cyan fill appears)
2. Confirm that Kalman line turns green (strong trend confirmation)
3. Enter when you see a green signal dot (Kalman crosses above selected EMA)
4. Exit when Kalman line turns yellow or red, or when you see a red signal dot
For Downtrends (Short positions):
1. Wait for EMA 1 to cross below EMA 2 (red fill appears)
2. Confirm that Kalman line turns red (strong trend confirmation)
3. Enter when you see a red signal dot (Kalman crosses below selected EMA)
4. Exit when Kalman line turns yellow or green, or when you see a green signal dot
Conservative Approach
• Only trade when all indicators agree: EMA fill color matches Kalman color
• Avoid trading during yellow (neutral) periods - this indicates choppy/transitional markets
Aggressive Approach
• Take signals as soon as you see the colored dots appear
• Use tighter stops and manage risk carefully
───────✧❁✧──────────────✧❁✧───────
Key Settings to Adjust
EMA Settings
• EMA 1 & 2 Lengths - Adjust based on your timeframe:
o Short-term trading: 8/21 or 13/34
o Medium-term: 21/55 (default)
• MA Type - Choose between SMA, EMA, WMA, or ALMA (ALMA is smoothest)
• Signal EMA - Select which EMA triggers the signal dots (EMA 1 is fastest, EMA 2 is slower)
Kalman Filter Settings
• Noise Measurement (default: 500)
o Lower values (100-300) = More responsive, faster signals, more noise
o Higher values (500-800) = Smoother, fewer false signals, slower response
o Adjust based on market volatility and your trading style
• Kalman Filter Model
o Standard - Basic model, works well in most conditions
o Volume Adjusted - Adapts to volume changes (good for stocks)
o Parkinson Adjusted - Adapts to price range volatility (good for crypto/forex)
• Trend Lookback & Strength Smoothness
o Lower values = More sensitive to recent changes
o Higher values = Smoother, longer-term trend identification
Tips for Best Results
1. Use Multiple Timeframes - Check higher timeframes for overall trend direction
2. Combine with Support/Resistance - Signals are stronger near key levels
3. Watch for Confirmation - Best signals occur when Kalman color matches EMA fill color
4. Avoid Choppy Markets - When you see frequent yellow (neutral) colors, consider staying out
5. Backtest Your Settings - Adjust parameters based on your specific asset and timeframe
───────✧❁✧──────────────✧❁✧───────
FAQs
Q: Why is the Kalman line yellow so often? A: This means EMAs and Kalman are disagreeing - the market is likely in transition or choppy. Wait for clear green or red confirmation.
Q: Should I use EMA 1 or EMA 2 for signals? A: EMA 1 gives earlier but potentially less reliable signals. EMA 2 gives slower but more confirmed signals. Test both on your asset.
Q: What's the best Noise Measurement setting? A: Start with 500. Lower it (to 200-300) for faster markets like crypto. Raise it (to 600-800) for slower markets like stocks.
Q: Can I use this on any timeframe? A: Yes, but adjust EMA lengths accordingly. Shorter timeframes need shorter EMAs, longer timeframes need longer EMAs.
───────✧❁✧──────────────✧❁✧───────
Alert Setup
You can set up TradingView alerts for:
• Kalman crosses selected EMA up (buy signal)
• Kalman crosses selected EMA down (sell signal)
This allows you to be notified immediately when trading opportunities appear.
───────✧❁✧──────────────✧❁✧───────
Remember: No indicator is perfect. Always use proper risk management, consider market context, and combine with your own analysis for best results.
Note: I am not a professional trader, nor have extensive experience with pinescript. I made this script to provide additional assistance to my Oracle V3 script, but this turned out to be a pretty good visual aid in general and works well with different strategies.. Best of luck to you and thank you for giving Oracle a test run. Cheers!.
Quality-Controlled Trend Strategy v2 (Expectancy Focused)This script focuses on quality control rather than curve-fitting.
No repainting, no intrabar tricks, no fake equity curves.
It uses confirmed-bar entries, ATR-based risk, and clean trend logic so backtests reflect what could actually be traded live.
If you publish scripts, this is the minimum structure worth sharing.
Why this script exists
TradingView’s public scripts are flooded with:
repainting indicators
no stop-loss logic
curve-fit entries that collapse live
strategies that look good only in hindsight
This script is intentionally boring but honest.
No repainting.
No intrabar tricks.
No fake equity curves
The goal is quality control, not hype.
What this strategy enforces
✔ Confirmed bars only
✔ Single source of truth for indicators
✔ Fixed risk structure
✔ No signal repainting
✔ Clean exits with unique IDs
✔ Works on any liquid market
Trading Logic (simple & auditable)
Trend filter
EMA 50 vs EMA 200
Entry
Pullback to EMA 50
RSI confirms momentum (not oversold/overbought)
Risk
ATR-based stop
Fixed R:R
One position at a time
This is the minimum bar for a strategy to be considered publish-worthy.
Why this helps TradingView quality
Most low-value scripts fail because they:
hide repainting logic
skip exits entirely
use inconsistent calculations
rely on hindsight candles
This strategy forces discipline:
every signal is confirmed
every trade has defined risk
behavior is repeatable across symbols & timeframes
If more scripts followed this baseline, TradingView’s public library would be far more usable.
Bar Countdown ClockBar Countdown Clock
Description:
Displays the remaining time for the current bar on the chart. The countdown label follows the previous EMA5 price to stay stable during high-volatility markets. Font size and label position are fully customizable. Works well on BTC, Gold, Forex, and other trading instruments.
How to Use:
Add the indicator to your chart.
Adjust Clock Color, Font Size, and X Offset to suit your preference.
The label will automatically track the previous EMA5 price.
The countdown updates in real-time until the current bar closes.
Tips:
Increase X Offset if the label overlaps the current bar.
For high-volatility instruments, the label remains stable by following EMA5.
EMA Length can be adjusted to change the anchor point for the label.
Dual MTF B-Xtrender EMAsMTF B-Xtrender Color EMAs
Dual moving averages that change color based on multi-timeframe B-Xtrender histogram signals
This indicator applies B-Xtrender histogram logic (inspired by the original B-Xtrender oscillator) to color two independent moving averages based on different timeframe trend conditions. It provides a unique visual way to see trend alignment across multiple timeframes directly on your price chart.
What It Does
The indicator plots two customizable moving averages (EMA, SMA, or HMA) where each line changes color based on whether the B-Xtrender histogram is above or below zero on its respective timeframe:
Fast MA (default 34 EMA): Colors based on daily B-Xtrender signals
Light blue when B-Xtrender histogram > 0 (bullish)
Light purple when B-Xtrender histogram < 0 (bearish)
Slow MA (default 155 EMA): Colors based on 3-day B-Xtrender signals
White when B-Xtrender histogram > 0 (bullish)
Dark orange when B-Xtrender histogram < 0 (bearish)
B-Xtrender Logic
This indicator uses the B-Xtrender histogram calculation:
Short-term Xtrender: RSI of (EMA 5 - EMA 20), with RSI period of 15, minus 50
The histogram crossing above/below zero determines bullish/bearish coloring
Each MA independently evaluates its own timeframe's B-Xtrender signal
Key Features
✓ Multi-Timeframe Analysis: Each MA can reference different timeframes for B-Xtrender signals
✓ Flexible MA Types: Choose between EMA, SMA, or HMA for both fast and slow lines
✓ Customizable Lengths: Adjust MA periods to fit your trading style
✓ Independent Signals: Fast and slow MAs color independently based on their respective timeframes
✓ Clean Overlay: Thin lines that don't clutter your chart
✓ Optional Bar Coloring: Can enable bar colors based on fast MA signal
How To Use
Trend Alignment: When both MAs show bullish colors (light blue + white), it suggests alignment across timeframes
Divergence: When MAs show different colors, it indicates potential timeframe divergence
Customization: Adjust timeframes to match your trading strategy (e.g., 1H + 4H for intraday, or Daily + Weekly for swing trading)
Visual Enhancement Tip
For better visual distinction between bullish and bearish conditions, you can manually adjust the line styles after adding the indicator to your chart:
Click the indicator settings (gear icon)
Go to the "Style" tab
When the MAs display their bearish colors (light purple for Fast MA, dark orange for Slow MA), change those plot styles from "Solid" to "Dashed"
This creates a clear visual: solid lines = bullish, dashed lines = bearish
This optional styling makes trend changes instantly recognizable at a glance.
Settings
Fast MA Length (default: 34)
Fast MA Type (EMA/SMA/HMA)
Fast MA Timeframe (default: Daily)
Slow MA Length (default: 155)
Slow MA Type (EMA/SMA/HMA)
Slow MA Timeframe (default: 3-Day)
Optional bar coloring
Notes
B-Xtrender histogram parameters are fixed: Short L1=5, L2=20, L3=15, Long L1=20, L2=15
This is a visual trend tool, not a standalone trading system
Works on all timeframes and instruments
Colors are customizable in indicator settings after adding to chart
Credit: This indicator incorporates B-Xtrender oscillator logic as its signal mechanism, applied in a multi-timeframe moving average context.
Options Liquidity Meter (OLM)❓ The question behind this indicator
When trading options, it is common to experience situations where price moves in the expected direction, yet the option contract does not increase in value as anticipated.
This typically happens when one or more of the following conditions is missing:
Insufficient liquidity participation
Lack of volatility expansion
Weak or passive order flow
Options Liquidity Meter (OLM) was created to address this specific question:
“If price moves from here, are there conditions for option premiums to actually expand?”
🎯 What this indicator does
Options Liquidity Meter is a context tool, not a trading system.
It evaluates whether the current market environment is favorable for option premium expansion , based on three core engines:
Liquidity (Relative Volume)
Measures whether price movement is supported by meaningful participation.
Volatility State
Identifies compression, release, and expansion phases, where options tend to respond differently.
Order Flow Activity (OBV-based)
Acts as a proxy for active vs. passive participation, helping filter hollow moves.
These components are combined into a single, easy-to-read options context.
🟢🟡🔴 Options Context Output
The indicator displays one consolidated state:
RED — NO EXPANSION
Price may move, but option premiums often do not respond.
YELLOW — BUILDING
Liquidity or volatility is developing. Conditions are improving but not fully aligned.
GREEN — EXPANSION LIKELY
Liquidity, volatility expansion, and active flow are aligned.
This is a favorable environment for option premium expansion.
The same logic is reflected visually through the background color and summarized in the dashboard.
📊 How to read the dashboard
The dashboard shows:
Liquidity: LOW / OK / HIGH
Volatility: COMPRESSED / RELEASED / EXPANDING
Order Flow: FLAT / ACTIVE
Options Context: NO EXPANSION / BUILDING / EXPANSION LIKELY
Below, a Background Color Meaning section explains what each color represents, making the indicator intuitive and educational.
📍 Where to apply this indicator
Options Liquidity Meter must be applied to the underlying asset chart, such as:
Indices (SPY, SPX, QQQ, etc.)
Stocks
Futures
ETFs
It is not designed to be applied to option contracts themselves.
The indicator evaluates the market conditions of the underlying, which are the drivers that influence option premium behavior.
Contract selection (strike, delta, gamma, expiration) remains the trader’s responsibility.
🧠 How to use it
Use your own methodology to define:
Direction
Structure
Entries and exits
Use Options Liquidity Meter to evaluate:
Whether the current environment supports option premium expansion
If the context is RED, be cautious — price may move without rewarding options.
If the context is GREEN, the environment is statistically more favorable for options responsiveness.
🔗 Complementary tools
Options Liquidity Meter is designed to complement, not replace, other tools.
It works well alongside:
Opening Path Selector (EMA200 Context Tool)
For deciding which asset offers the cleanest directional context.
Multi-Tool VWAP + EMAs (Multi-Timeframe) + Key Levels
For in-chart structure, bias, and reference levels.
Each tool addresses a different stage of the decision process and can be used independently.
⚠️ Important notes
This indicator provides context only
It does not generate trading signals
No indicator guarantees results
Use at your own risk.
Volatility Squeeze + EMA Trend Filter [Day Trading]Identify explosive breakouts before they happen. This indicator detects low-volatility consolidations (squeezes) that precede powerful price moves, filtered by trend direction for higher-probability signals.
█ FEATURES
- Squeeze detection using Bollinger Bands inside Keltner Channels
- Momentum histogram visualization in dashboard
- 200 EMA trend filter (toggleable) - longs above, shorts below
- Trading hours filter with timezone support
- Buy/sell signals on chart with customizable size
- 5 visual themes (Nebula Core, Aurora Borealis, Ice Giant, Solar Flare, Supernova)
- Real-time dashboard with squeeze state, momentum, and signal bias
█ HOW IT WORKS
1. Bollinger Bands compress inside Keltner Channels = "Squeeze" (consolidation)
2. Squeeze releases = imminent breakout
3. Momentum direction determines trade direction
4. 200 EMA filter ensures you trade with the trend
5. Session filter keeps you in optimal trading hours
█ SIGNAL LOGIC
BUY: Momentum crosses above zero OR squeeze releases with rising positive momentum + price above 200 EMA
SELL: Momentum crosses below zero OR squeeze releases with falling negative momentum + price below 200 EMA
█ RECOMMENDED USE
- Best timeframes: 5-minute, 15-minute for day trading
- Best instruments: NQ, MNQ, ES, MES, SPY, QQQ
- Best session: 9:30 AM - 11:00 AM ET (morning momentum)
- Works on any market with sufficient volatility
█ INPUTS
- BB/KC Length and Multipliers (default: 20/2.0 and 20/1.5)
- 200 EMA trend filter toggle
- Trading session hours and timezone
- Signal size and visual theme selection
Based on John Carter's TTM Squeeze concept.
DM for access.
Opening Path Selector (EMA200 Context Tool)📝 Description
Opening Path Selector is a context-based indicator designed to help traders quickly identify which asset may offer the cleanest directional path at the market open.
This tool does not generate entry or exit signals.
Its purpose is to reduce decision fatigue during the first minutes of the session by ranking a small set of high-liquidity assets based on higher-timeframe EMA200 structure.
🔍 What this indicator evaluates
The dashboard compares a predefined group of major symbols and ranks them according to:
• Proximity to the nearest EMA200
• Relative position versus higher-timeframe EMA200 levels
• Directional context inferred from EMA structure
The result is a priority-based list that highlights which asset may present:
• Less immediate EMA resistance
• Clearer directional context
• Lower probability of early-session chop
📊 How to read the dashboard
• Priority – Ranking based on opening context
• Symbol – Evaluated instrument
• Nearest EMA200 – Distance and side relative to price
• Possible Path – Direction with less immediate EMA resistance
• Bias – Strength of the higher-timeframe context
Colored markers are used to provide fast visual identification of the highest-priority assets.
⚠️ Important notes
• This is a context and selection tool, NOT a trading system
• No buy/sell signals, alerts, TP, or SL logic are included
• Designed to be used alongside your own execution methodology
🔧 Compatibility
Due to Pine Script multi-symbol and multi-timeframe constraints, this public version is intentionally limited to a small set of symbols.
TradingView Pro / Premium or higher is recommended for consistent performance.
🔗 Complementary tools
This indicator can be complemented with Multi-Tool VWAP + EMAs (Multi-Timeframe) + Key Levels , which provides detailed visibility of multiple EMA levels, VWAP structure, and higher-timeframe reference zones directly on the chart.
While Opening Path Selector helps decide which asset to focus on at the open, the complementary tool can assist with in-chart context and confirmation once an asset has been selected.
Both tools are designed to serve different stages of the decision process and can be used independently.
Commodity Channel Index CCI + EMA strategy
================================================================================
COMMODITY CHANNEL INDEX CCI + EMA STRATEGY - STRATEGY GUIDE 📊
================================================================================
💡 COLLABORATION & SUPPORT
---------------------------
If you want to collaborate, have an idea for a strategy, or need help writing
or customizing code, send an email to burdytrader@gmail.com or send me a
message. Suggestions, ideas, and comments are always welcome! 🤝
I also develop automated trading codes for other trading platforms including:
- CTrader (C#)
- MetaTrader 4 (MQL4)
- MetaTrader 5 (MQL5)
If you need a strategy converted or developed for any of these platforms, feel
free to contact me!
================================================================================
⚠️ IMPORTANT: INSTRUMENT SELECTION 📈
-------------------------------------
This strategy performs BEST with currency pairs (forex). The CCI indicator
works particularly well in the forex market due to the nature of currency
movements and the effectiveness of the CCI in identifying overbought and
oversold conditions in trending markets.
Why Currency Pairs? 🎯
- CCI is highly effective in identifying reversals in forex markets
- Currency pairs show clear overbought/oversold patterns
- EMA filter (50/200) aligns well with major forex trends
- High liquidity ensures reliable signal execution
Performance Highlights:
In specific currency pairs, when properly configured, this strategy can achieve:
- Profit Factor: Over 2.0
- Win Rate: Up to 70%
- Particularly effective pairs: USDCAD, EURUSD, GBPJPY
While the strategy can work with other instruments (stocks, indices, commodities),
currency pairs provide the most consistent and reliable results. For optimal
performance, focus on major forex pairs with good liquidity and clear trending
characteristics.
================================================================================
WHAT DOES THIS STRATEGY DO? 🎯
---------------------------
This strategy combines the Commodity Channel Index (CCI) with Exponential
Moving Averages (EMA) to identify high-probability trading opportunities.
The strategy uses CCI crossovers with a smoothing moving average and filters
signals using EMA trend confirmation. The strategy automatically enters trades
when CCI crosses the smoothing MA in specific zones, indicating potential trend
reversals or continuations.
HOW IT WORKS? ⚙️
---------------
1. CCI CALCULATION 📈
The strategy calculates the Commodity Channel Index using:
- CCI = (Price - SMA(Price, length)) / (0.015 × Deviation(Price, length))
- Default length: 20 periods
- Source: HLC3 (typical price)
The CCI shows:
- Values above +100 = Overbought conditions
- Values below -100 = Oversold conditions
- Values around 0 = Neutral conditions
2. SMOOTHING MOVING AVERAGE 📊
A moving average is applied to the CCI to smooth out fluctuations:
- Types available: SMA, EMA, SMMA (RMA), WMA, VWMA
- Default: SMA with length 14
- Can be disabled (set to "None")
This smoothed line acts as a reference for crossover signals.
3. EMA TREND FILTER 🎯
Two EMAs are calculated on the CCI:
- EMA 50 (fast EMA)
- EMA 200 (slow EMA)
When the EMA filter is enabled:
- LONG signals only occur when EMA50 > EMA200 (uptrend confirmation)
- SHORT signals only occur when EMA50 < EMA200 (downtrend confirmation)
This filter can be enabled/disabled via the "Use EMA Filter" option.
4. ENTRY CONDITIONS 🎲
LONG ENTRY (Buy Signal):
- CCI crosses ABOVE the Smoothing MA (crossover)
- CCI is between Lower Level (-100) and Middle Level (0)
- EMA Filter: EMA50 > EMA200 (if filter enabled)
- No existing positions (or close opposite positions first)
SHORT ENTRY (Sell Signal):
- CCI crosses BELOW the Smoothing MA (crossunder)
- CCI is between Middle Level (0) and Upper Level (+100)
- EMA Filter: EMA50 < EMA200 (if filter enabled)
- No existing positions (or close opposite positions first)
5. POSITION MANAGEMENT 💰
The strategy uses a simple position management approach:
- Only ONE position at a time (no pyramiding)
- If a signal occurs in the opposite direction, closes existing position first
- Then opens new position in the new direction
- This prevents overexposure and simplifies risk management
6. TAKE PROFIT & STOP LOSS SETTINGS 🎯
The strategy uses percentage-based TP/SL:
- Take Profit: 1.0% (default, configurable)
- Stop Loss: 0.5% (default, configurable)
- Risk/Reward Ratio: 2:1 (TP is double the SL)
TP/SL are calculated once when the position opens and remain fixed.
AVAILABLE PARAMETERS ⚙️
-----------------------
CCI SETTINGS:
1. CCI Length (Default: 20)
- Period for CCI calculation
- Lower values = More sensitive to recent price action
- Higher values = More smoothed, less sensitive
2. CCI Source (Default: HLC3)
- Price source for CCI calculation
- Options: close, open, high, low, hlc3, hlcc4, ohlc4
3. CCI Lower Level (Default: -100)
- Lower boundary for LONG entry zone
- Typically -100 for oversold conditions
4. CCI Middle Level (Default: 0)
- Neutral level separating LONG and SHORT zones
5. CCI Upper Level (Default: +100)
- Upper boundary for SHORT entry zone
- Typically +100 for overbought conditions
SMOOTHING MA:
6. Type (Default: SMA)
- Moving average type: None, SMA, EMA, SMMA (RMA), WMA, VWMA
- Set to "None" to disable smoothing
7. Length (Default: 14)
- Period for smoothing MA
- Range: 7-28, step 7
EMA FILTER:
8. EMA 1 Length (Default: 50)
- Fast EMA period applied to CCI
9. EMA 2 Length (Default: 200)
- Slow EMA period applied to CCI
10. Use EMA Filter (Default: true)
- Enable/disable EMA trend filter
- When enabled: LONG only if EMA50 > EMA200, SHORT only if EMA50 < EMA200
RISK MANAGEMENT:
11. Take Profit (%) (Default: 1.0%)
- Profit target as percentage of entry price
- For LONG: Entry × (1 + TP%)
- For SHORT: Entry × (1 - TP%)
12. Stop Loss (%) (Default: 0.5%)
- Stop loss as percentage of entry price
- For LONG: Entry × (1 - SL%)
- For SHORT: Entry × (1 + SL%)
VISUALIZATION 📊
---------------
The strategy displays in a separate panel below the price chart:
1. CCI LINE
- Blue line showing the CCI value
- Oscillates around zero
2. SMOOTHING MA LINE
- Yellow line showing the smoothed CCI
- Reference line for crossover signals
3. CCI LEVEL LINES
- Red dashed line: Upper Level (+100)
- Green dashed line: Lower Level (-100)
- Yellow dashed line: Middle Level (0)
4. ENTRY SIGNALS
- Green cross: LONG entry signal (when CCI crosses above MA)
- Red cross: SHORT entry signal (when CCI crosses below MA)
RECOMMENDED SETTINGS 🎯
-----------------------
To get started, you can use these settings:
CCI SETTINGS:
- CCI Length: 20 (default)
- CCI Source: HLC3 (default)
- CCI Lower Level: -100 (default)
- CCI Middle Level: 0 (default)
- CCI Upper Level: +100 (default)
SMOOTHING MA:
- Type: SMA (default) or EMA for faster response
- Length: 14 (default)
EMA FILTER:
- EMA 1 Length: 50 (default)
- EMA 2 Length: 200 (default)
- Use EMA Filter: true (recommended for better signal quality)
RISK MANAGEMENT:
- Take Profit (%): 1.0% (adjust based on your risk/reward preference)
- Stop Loss (%): 0.5% (adjust based on your risk tolerance)
For more aggressive trading:
- Reduce CCI Length to 14-16
- Reduce Smoothing MA Length to 7
- Disable EMA Filter
For more conservative trading:
- Increase CCI Length to 24-30
- Increase Smoothing MA Length to 21-28
- Keep EMA Filter enabled
RECOMMENDED CURRENCY PAIRS 💱
------------------------------
This strategy is optimized for currency pairs and performs exceptionally well
on the following pairs when properly configured:
TOP PERFORMING PAIRS:
- USDCAD: Can achieve Profit Factor > 2.0 and Win Rate up to 70%
- EURUSD: Excellent performance with consistent signals
- GBPJPY: Strong results with proper EMA filter configuration
These pairs have shown the best historical performance due to:
- Clear trending characteristics
- Good response to CCI overbought/oversold levels
- Strong alignment with EMA 50/200 trend filter
- High liquidity ensuring reliable execution
When trading these pairs, use the default settings or slightly adjusted
parameters based on the pair's volatility. Always backtest on historical
data before using real money to find the optimal configuration for each
specific pair.
PRACTICAL EXAMPLE 📝
--------------------
Scenario: LONG Entry on EUR/USD
1. Market conditions:
- Price: 1.1000
- CCI: -80 (in oversold zone)
- Smoothing MA: -90
- CCI crosses above Smoothing MA (crossover occurs)
- EMA50: -50, EMA200: -70 (EMA50 > EMA200, uptrend confirmed)
2. Strategy checks conditions:
✓ Smoothing MA enabled: Yes
✓ Crossover: Yes (CCI crosses above MA)
✓ CCI in range: Yes (-100 <= -80 <= 0)
✓ EMA Filter: Yes (EMA50 > EMA200)
✓ No existing position: Yes
3. Strategy opens position:
- Direction: LONG (Buy)
- Entry: 1.1000 (current close)
- Take Profit: 1.1110 (1.0% above entry)
- Stop Loss: 1.0945 (0.5% below entry)
- Risk/Reward: 2:1
4. Outcome scenarios:
- If price rises to 1.1110 → Take Profit hit (profit)
- If price falls to 1.0945 → Stop Loss hit (loss limited)
IMPORTANT NOTE ⚠️
-----------------
This strategy is a technical analysis tool based on CCI and EMA indicators.
Like all trading strategies, it does NOT guarantee profits. Trading involves
significant risks and you can lose money, including your entire investment.
Past performance does not guarantee future results.
Always:
- Use appropriate risk management
- Never risk more than you can afford to lose
- Test the strategy on historical data (backtesting) before using real money
- Start with small position sizes or paper trading
- Understand that no strategy works 100% of the time
- Consider market conditions, news events, and other factors
- Keep a trading journal to learn and improve
The author and contributors are NOT responsible for any losses incurred from
using this strategy. Trading decisions are your own responsibility. Profits
are NOT guaranteed, and losses are possible.
LICENSE 📄
----------
This code is open source and available for modification. You are free to use,
modify, and distribute this strategy. If you republish or share a modified
version, please kindly mention the original author.
================================================================================
RRR EMA Ignition BUY & SELL (Sideways-Proof)🔹 Description
RRR EMA Ignition Buy & Sell is a trend-following, non-repainting indicator designed to capture high-probability trend ignition points while filtering out sideways market noise.
Unlike basic EMA crossover systems that generate frequent false signals, this indicator uses a state-based trend engine, volatility filters, and trend strength confirmation to ensure signals appear only when a real directional move is underway.
It is optimized for swing trading and positional trading on stocks and indices.
🔹 Core Logic
🔼 BUY Signal (Bullish Ignition)
A BUY signal is generated only when all of the following conditions are met:
EMA 21 confirms bullish regime above EMA 55
EMA 9 shows momentum above EMA 21
Price is trading above EMA 55
Candle closes bullish (confirmation)
Trend strength is validated using ADX
EMA 55 is sloping upward
Price is sufficiently far from EMA 55 (ATR-based distance filter)
Only one BUY per bullish trend leg (no repeated signals)
🔽 SELL Signal (Bearish Ignition)
A SELL signal is the exact reverse of the BUY logic:
EMA 21 confirms bearish regime below EMA 55
EMA 9 shows bearish momentum below EMA 21
Price is trading below EMA 55
Candle closes bearish
ADX confirms trend strength
EMA 55 is sloping downward
ATR distance filter blocks sideways chop
Only one SELL per bearish trend leg
🔹 Key Features
✅ Non-repainting (signals appear only after candle close)
✅ Sideways-market protection using ATR + ADX
✅ State-based logic (prevents repeated BUY/SELL spam)
✅ Handles strong V-reversals using trend re-arm logic
✅ Clean signals suitable for alerts and automation
✅ Works across stocks, indices, and ETFs
🔹 Best Use Cases
📈 Swing trading on Daily / 4H charts
📊 Large-cap stocks and indices (Nifty, Bank Nifty, SPX, NASDAQ)
🚫 Not intended for low-timeframe scalping
🎯 Designed for trend capture, not range trading
🔹 Recommended Settings
Indian Stocks
ADX Minimum: 18
ATR Multiplier: 0.6 – 0.8
US Indices
ADX Minimum: 22
ATR Multiplier: 0.5
(Default settings work well for most instruments.)
🔹 How to Trade (Simple Guide)
Use BUY signals to enter or add to long positions
Use SELL signals to enter short positions or exit longs
Combine with:
Support/resistance
Higher-timeframe bias
Position sizing & risk management
🔹 Disclaimer
This indicator is a decision-support tool, not financial advice.
Always apply proper risk management and confirm signals with your own analysis.
Multi-TF EMA OverlayThis indicator allows to view EMA from multiple Time Frames on the same chart, regardless of the tife frame you are in.
Kuber Zones and LevelsKuber Zones and Levels is a professional market-structure and level-mapping indicator designed for traders who focus on price behavior, balance zones, and higher-timeframe context.
The indicator dynamically maps key price areas, market equilibrium regions, and extended levels using completed market cycles, helping traders identify important reaction zones across intraday and positional timeframes.
Key Highlights
Multi-Timeframe Market Zones
Automatically plots important bullish, bearish, and equilibrium regions derived from completed market cycles.
Confirmed & Stable Levels
All zones and levels are calculated using confirmed data only. Once formed, they remain stable and do not repaint.
Advanced Level Mapping
Displays extended price levels aligned with the same market cycle used for zones, maintaining structural consistency.
Dynamic Price Channels
Adaptive bands that respond to changing market conditions and volatility.
Trend Structure Visualization
Clean, smoothed price representation to help identify directional bias and market rhythm.






















