llama fixed-length moving averages [SMA, WMA]Llama Moving Averages
I needed moving averages on my charts, but I wanted them hardcoded based on the following values:
timframe --- MA length
Daily --- 20D (==1 trading month)
Weekly --- 30W (30W moving averages for assessing long term trends)
15m --- 1W (or 5 days)
Two averages:
EMA and WMA: fast moving and slow moving based on closes.
In addition to this, I needed the following things:
1. MAs ONLY on 15m, 1D and 1W timeframes.
2. Consistent colors.
3. for 15m chart, we want a 5D SMA, so 1D = 15m * 25(±1); times 5; 25*5 = 125
4. Option to configure different values for the daily chart, since I trade the daily chart. Defaults: 20.
If you were looking for something similar, enjoy!
ממוצע נע אקספוננציאלי (EMA)
Triple EMA// Triple EMA indicator designed for TradingView free users.
// Displays 3 standard EMAs in one indicator slot.
EMA and Dow Theory Strategies V2📘 Overview
This strategy is an advanced evolution of the original EMA × Dow Theory hybrid model. V2 introduces true swing‑based trend detection, gradient trend‑zones, higher‑timeframe swing overlays, and dynamic exit logic designed for intraday to short‑term trading across crypto, forex, stocks, and indices.
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.
📘 概要
本ストラテジーは、V1 を大幅に拡張した EMA × ダウ理論 × スイング構造 × 上位足トレンド可視化 の複合型モデルです。 短期〜デイトレード向けに最適化されており、仮想通貨・FX・株式・指数など幅広いアセットで利用できます。
V2 では、スイング構造の自動検出、グラデーションによるトレンド強度の可視化、上位足スイングライン、動的な利確/損切りロジック が追加され、視覚的にもロジック的にも大幅に強化されています。
🧠 主な機能
🔹 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)について
上位足スイングの更新に基づくトレンド判定を表示しますが、 エントリー条件には使用していません。
理由: 上位足を厳密にロジックへ組み込むと、トレード機会が大幅に減るためです。
本ストラテジーでは、 「大局の把握は視覚で、エントリーは柔軟に」 という設計思想を採用しています。
→ 裁量で利確判断や逆張り回避に活用できます。
Quantum Edge First Signal DetectorQuantum Edge is a non-repainting, multi-confirmation indicator that detects the first high-probability BUY & SELL signals using momentum, trend, volume, volatility, and price-action voting logic.
🧠 About This Indicator
Quantum Edge – First Signal Detector is designed to solve one common trader problem:
too many late or repeated signals.
Instead of firing continuous entries, this indicator focuses only on the FIRST valid signal after a market shift — helping traders enter early, reduce noise, and avoid over-trading.
It uses a quantum-style voting engine where multiple independent market factors must align before a signal is confirmed.
⚙️ Core Logic (How It Works)
Each candle is evaluated using 6 independent factors:
RSI Momentum
Bullish when RSI > 50
Bearish when RSI < 40
Price Location
Price near recent highs or lows
Volume Expansion
Current volume above moving average
EMA Trend Direction
EMA 20 vs EMA 50
Candle Strength
Strong bullish or bearish candle bodies
Volatility Filter
ATR-based low volatility confirmation
Each factor gives 1 vote.
When minimum confirmations are met, a FIRST BUY or FIRST SELL signal is generated.
🚀 Key Features
✅ First-Signal-Only Logic
Only the first BUY or SELL after trend change
No repeated signals in the same direction
Built-in signal cooldown (user-controlled)
✅ Non-Repainting
Signals are confirmed on candle close
No future data, no repainting
✅ Smart Trend Filtering
EMA-based directional bias
Avoids weak counter-trend entries
✅ Advanced Visual System
Clear BUY / SELL triangles
Trend, volume & momentum backgrounds
Support & resistance zones
Market sentiment bar coloring
✅ Alert Support
Buy alert
Sell alert
📊 Best Timeframes
Scalping: 1m – 5m
Intraday: 5m – 15m
Swing Confirmation: 30m – 1H
Works on:
Forex
Crypto
Indices
Stocks
🎯 How to Trade (Simple Guide)
BUY Setup
✔ First BUY signal appears
✔ Trend is bullish
✔ Use nearby support as reference
SELL Setup
✔ First SELL signal appears
✔ Trend is bearish
✔ Use nearby resistance as reference
Always combine with risk management.
Disclaimer: This indicator is for educational purposes only and does not constitute financial advice. Trading involves risk. Use proper risk management.
True Daily EMAs (4) on Any ChartIt calculated the 4 EMAs based on days as input. Even on a weekly or monthly chart it shows 20/50/100/200 Day EMAs. Changing the time frame of chart does not effect the EMAs
EMA Strategy Flip/DCA + PnL (Aidan)This is a long only , trend focused EMA strategy designed for capital preservation and entries in sustained market movement, rather than short term trading.
At its core, the system is intentionally simple:
-Uses a dual EMA trend structure to identify bullish and bearish regimes
-Avoids unnecessary exits when price action is indecisive
-Emphasizes staying aligned with the larger market direction
All of these characteristics inherently work best on longer time frames, I typically use the 1D view but have also tested in the 1W and 4H views as well.
Philosophy 🧠
Markets do not move in clean, continuous trends. They alternate between:
-Expansion (breakouts/breakdowns)
-Compression (consolidation/chop)
Most traditional EMA crossover strategies fail because they:
-Overreact during consolidation
-Constantly flip positions
-Slowly bleed capital in sideways markets
This indicator attempts to solve that issue by filtering how sell signals are treated depending on market behavior, rather than blindly acting on every crossover. These are denoted by the "weak sell" indications which are defined by the length of each EMA expansion period.
HOW IT WORKS ⚙️
Buy Signals
Buy signals are generated when the EMA structure flips bullish.
On higher timeframes, these buys aim to align with broader market momentum, not short-term noise.
Weak Sell vs Strong Sell
Not every bearish EMA flip is treated equally. Short, flickering EMA flips (common in consolidation) are treated as “weak sells”, meaning the position is held. The length that defines each "weak sell" can be edited through settings under "flip-distance regime" if you so choose. I keep mine between 20-30 ticks.
Capital is not forced out of the market prematurely. Only when an EMA move shows sufficient trend persistence does the indicator issue a strong sell, fully closing the position.
DCA-Friendly by Design
One of the strengths of this indicator is that it can be used in a dollar-cost-averaging (DCA) mindset.
Some users may choose to:
-Simply buy on each buy signal
-Hold positions through weak sell periods
-Use strong sell signals as higher-confidence exits
This approach can be particularly effective for traders or investors with a long-term outlook who prefer gradual position building with less emotion on each buy. The amount of max tolerable DCA entries can be edited through settings (default 6)
Best Practices & Usage Notes
-This indicator performs best on 4H and 1D charts (be sure to note your "flip distance regime" in settings or the weak sell periods may be inaccurate)
-Blue chip and macro markets prove to yield the most consistent results during back testing, although I've seen impressive results on volatile markets as well.
-It is not designed for scalping or very low timeframes
-No indicator is perfect — not every buy or sell will be optimal
-For best results, it should be used alongside:
-Higher-timeframe trend analysis
-Market structure (higher highs / higher lows)
-Macro context or sector strength
-Your own risk management rules
Think of this tool as a framework, not a prediction engine. When used with discipline and proper context, it can serve as a reliable indicator for traders focused on sustainable growth rather than constant activity.
I am always open to suggestions on improvements; please feel free to comment below and let me know any ideas you might have for bettering the indicator, or if you just have questions I'll be happy to answer any!
Good luck out there!!
Horizontal Dynamic Moving Averages [TheScalpingAnt]Overview
This indicator is a complete professional moving average framework designed for traders who want structured market insight, flexibility, and powerful visual clarity.
Instead of being limited to static moving averages, this tool gives you up to 10 independently configurable moving averages, full style control, forward-projected price lines, automatic labeling, and the freedom to build your own trend system exactly the way you trade.
This is not just a moving average indicator.
It is a market structure workstation.
Concepts
This tool is built around three core trading concepts:
Market Structure Visualization
Different moving averages represent short-term momentum, medium-term trend, and long-term bias. Seeing how they align instantly shows whether the market is trending, compressing, or reversing.
Precision and Control
Every MA can use any of the following calculation methods:
SMA — EMA — RMA — WMA — HMA — VWMA
This allows the trader to tailor the indicator to their trading system instead of being forced into one logic.
Clarity & Forward Guidance
Each moving average can be extended into the future with horizontal projections, allowing the trader to visualize reaction zones, support/resistance expectations, and confluence ahead of price.
Features
• Up to 10 fully independent moving averages
• Multiple calculation types (SMA / EMA / RMA / WMA / HMA / VWMA)
• Individual enable/disable control
• Adjustable length per MA
• Custom color per MA
• Individual line thickness and style
• Forward extension into future bars
• Optional on-price-scale value display
• Automatic price labels with length identification
• Extremely clean chart visualization
• Works on any market and timeframe
• Non-repainting
Every moving average becomes a strategic tool, not just a line.
Customization
This indicator is engineered to adapt to every trading style:
You Control:
• Which MAs are active
• Their length
• Their calculation method
• Their color
• Their thickness
• Their line style
• Whether values display on scale
• Forward extension distance
This makes the tool equally valuable for:
Scalpers – Day Traders – Swing Traders – Long-Term Investors.
Usage
Typical use cases include:
• Identifying trend direction
• Spotting pullbacks inside trends
• Recognizing trend shifts early
• Mapping dynamic support and resistance
• Aligning entries with trend bias
• Confirming breakout validity
• Detecting consolidation phases
Shorter MAs provide reaction signals
Mid-range MAs provide structural control
Higher MAs define long-term bias
Projected future lines allow traders to visually anticipate market reactions instead of reacting late.
Example Workflow
Example practical trading workflow:
1. Short-term MAs (e.g., 8 / 16 / 30) track entry conditions and momentum.
2. Mid-term MAs (50 / 100) define structural bias.
3. Long-term MAs (150 / 200 / 800 / 1500 / 3000) define macro trend.
4. If short-term averages remain above structural ones → trend continuation confidence.
5. If they compress and cross downward → structural weakness.
6. Extended forward bands mark dynamic areas where the market may react next.
Simple. Clear. Actionable.
Settings
Default design structure includes:
• Enable/Disable per MA
• Length defaults: 8 → 3000
• Full color customization
• Individual width selection
• Solid / Dashed / Dotted styles
• Price scale value toggle
• Forward extension bar length selector
Everything is designed to make the indicator powerful without cluttering the chart.
Conclusion
This indicator delivers:
✓ Professional-grade market structure visualization
✓ Absolute flexibility
✓ Clear and readable market information
✓ Better decision-making support
✓ Reduced uncertainty and guesswork
Whether you trade crypto, forex, indices, or stocks — this is a powerful tool to elevate your technical analysis.
Disclaimer
This indicator does not guarantee profits and is not financial advice. Trading involves risk. Users are fully responsible for their trading decisions.
RiskyInvesting Algo v1.0.0 - BasicA multi‑layer trend‑following and momentum‑confirmation system designed around dual adaptive baselines, and smart candle‑strength filtering. This indicator blends volatility‑based trailing logic with macro trend bias tools (EMA + SMMA) to identify clean directional flips and filter out weak signals.
This indicator uses 5 parameters to determine the trend direction.
Disclaimer:
- Please use this in conjunction with other tools and confirmations. Labels are not meant to be used as financial advice.
Core features include:
- Two Adaptive Trailing Baselines: ATR‑adjusted equations (Parameter 1 & 2) that flip direction based on baseline breaks.
- Directional Shift Detection: Buy markers on bullish dual‑baseline flip; sell markers on bearish dual‑baseline flip.
- Trend Bias Filtering: Uses EMA vs SMMA relationship to color signals and provide market bias context.
- Candle Strength Filter: Ensures signals only trigger on meaningful momentum candles relative to ATR.
- Clean Visual Display: Auto‑coloring buy/sell labels, baseline plots, and signal triangles.
🟩/🟥 = Strong Directional Bias
🟦/🟧 = Neutral Directional Bias
Built for traders who want a structured trend‑flip system that avoids noise, highlights strong directional moments, and maintains visual clarity even on volatile intraday charts.
Intraday for Future By TradeEarnIntraday Strategy (StochRSI + VWAP + EMA)
Overview The Intraday Pullback Scalper is a specialized trend-following strategy designed for futures and equity traders who prefer to enter existing trends on pullbacks rather than chasing breakouts. By combining volume-weighted data (VWAP) with exponential moving averages (EMA) and momentum oscillators (Stochastic RSI), this script identifies high-probability entry points during intraday sessions. It includes built-in automation hooks (Alerts) compatible with bridge services for seamless execution.
How It Works
The strategy relies on a three-step confirmation process to filter noise and precision-time entries:
Trend Definition (The Filter):
VWAP (Volume Weighted Average Price): Acts as the primary regime filter. Longs are only permitted if price > VWAP; Shorts only if price < VWAP.
EMA (Exponential Moving Average): A secondary trend filter (default 100 periods) ensures alignment with the broader trend.
Time Range Breakout (Optional): Users can enable an "Initial Balance" filter where trades are only taken if the price breaks out of a specific time range (e.g., first hour High/Low).
Entry Trigger (The Signal):
Long Entry: The market must be in an Uptrend (Price > VWAP & EMA). The script waits for a "dip" where the Stochastic RSI drops below the Oversold level (default 20) and then crosses back up.
Short Entry: The market must be in a Downtrend (Price < VWAP & EMA). The script waits for a "rally" where the Stochastic RSI rises above the Overbought level (default 80) and then crosses back down.
Risk Management:
The strategy uses fixed Target Profit and Stop Loss values defined in currency (₹) relative to the trade quantity.
It features visual SL and TP lines on the chart for the duration of the trade to assist with manual monitoring.
Key Features
Universal Compatibility: Works on the "Current Chart" (Nifty, Bank Nifty, Stocks, Commodities) without needing complex dropdown selection.
Visual Dashboard: An on-screen table displays the Current Trade Status (Long/Short), Trend Direction, and Running P&L in real-time.
Algobaba Bridge Ready: Pre-formatted alert messages are included for users utilizing the Algobaba bridge for automation (supports MIS/NRML product types).
Customizable Trend Filters: Users can toggle the Time Range filter or adjust the VWAP Anchor (Session, Week, Month).
Settings & Configuration
Trade Quantity: Set your default lot size (e.g., 50 for Nifty).
Risk Settings: Define Target and Stop Loss in Rupees (₹) per trade setup.
Indicators: Adjustable lengths for EMA, RSI, and Stochastic.
Trading Window: Restrict entries to specific session hours (e.g., 09:15 - 15:10).
⚠️ IMPORTANT DISCLAIMER & RISK WARNING ⚠️
1. Educational Purpose Only This strategy script is provided solely for educational, informational, and research purposes. It does not constitute financial advice, investment recommendations, or a solicitation to buy or sell any securities, futures, or derivatives. The author is not a SEBI registered Research Analyst or Investment Advisor.
2. No Guarantee of Profit The "P&L" and performance metrics displayed on the chart are hypothetical and based on historical data. Past performance is not indicative of future results. Market conditions change, and a strategy that worked in the past may fail in the future.
3. Limitations of Backtesting
Slippage & Commission: The script results may not fully account for real-world execution costs such as broker commissions, taxes (STT/GST), slippage, or liquidity issues.
Repainting/Data Lag: While every effort is made to ensure code stability, real-time data feeds may vary from historical data due to internet latency or data provider differences.
4. High Risk in Derivatives Trading Futures and Options (F&O) involves a substantial risk of loss and is not suitable for every investor. You can lose more than your initial capital. Please assess your risk tolerance and financial situation before trading.
5. Automation & Third-Party Tools This script includes alert messages formatted for third-party bridge services (e.g., Algobaba). The author assumes no responsibility for:
Technical failures, API errors, or connectivity issues with your broker or bridge provider.
Incorrect order execution resulting from automation.
Users are solely responsible for monitoring their trades and verifying order execution.
Usage Agreement By using this script, you acknowledge that you are trading at your own risk and hold the author harmless from any losses incurred. Always test on a paper trading account before deploying real capital.
Malama's Universal anchored M.A.Malama's Universal Anchored M.A. (UMA+) is a highly versatile, all-in-one moving average indicator that supports over 28 different MA types — from classic (SMA, EMA) to advanced adaptive and Ehlers-based filters (KAMA, FRAMA, MAMA/FAMA, Super Smoother, Kalman, etc.). It features an innovative anchored mode that resets calculations from a user-defined point (date/time, bars back, or first bar), making it perfect for analyzing price action relative to key events like earnings, news, or cycle starts. The MA dynamically colors based on price position, with optional fill, a clean on-chart dashboard, and crossover alerts.
Key Features
28+ Moving Average Types: Includes SMA, EMA, WMA, TMA, VWMA, HMA, ALMA, VIDYA, DEMA, TEMA, KAMA, ZLEMA, T3, Hull-like, FRAMA, McGinley Dynamic, LSMA, SMMA, Super Smoother, Laguerre Filter, Cyber Cycle, MAMA/FAMA, Reflex, Trend Reflex, Dominant Cycle, Non-Lag MA, and Kalman Filter.
Anchored Calculations: Optionally start MA computation from a specific anchor point:
By exact date/time
Bars back from current bar
First bar on chart
Visual Anchor Marker: Dashed vertical line with ⚓ label at the anchor point (toggleable).
Dynamic Coloring: Line and fill change color based on whether price is above (bullish) or below (bearish) the MA.
On-Chart Dashboard: Compact table showing:
Current MA type & length
MA value
Price position (ABOVE/BELOW)
% deviation from MA
Trend direction (UP/DOWN/FLAT)
Anchor info (if enabled)
Customizable position (9 locations) and size
Fill Between Price & MA: Subtle colored fill for quick visual bias.
Alerts: For price crossing above, below, or any cross of the MA.
Why This Indicator Stands Out
Unlike standard multi-MA scripts that only switch types, UMA+ combines extreme flexibility with anchored analysis — allowing traders to measure trend strength, responsiveness, and price behavior from significant reference points rather than always from the beginning of data. This makes it exceptionally useful for:
Post-event analysis (e.g., after FOMC, earnings, major news)
Cycle-based trading
Comparing how different MAs perform from the same starting point
Reducing lag in trending markets via advanced filters (T3, Kalman, Ehlers series)
How to Use
Choose Your MA: Select from the extensive list — experiment with adaptive/Ehlers types for cleaner signals in noisy markets.
Enable Anchor (Optional): Great for event-driven analysis. Set a date/time or bars back to reset the MA calculation.
Interpret Dashboard:
Strong deviation + UP trend + price ABOVE = bullish momentum
Use crossover alerts for entries/exits
Best Practices:
Works on all timeframes and assets
Lower lengths = more responsive; higher = smoother
Try T3, Super Smoother, or MAMA for reduced lag
Use anchored mode on higher timeframes for swing trading context
Disclaimer
This indicator is for educational and informational purposes only. It is not financial advice. Past performance does not guarantee future results. Always use proper risk management and combine with your own analysis. Trading involves substantial risk of loss.7.5s
Boyen_Multi EMA LTF HTFKey Features:
Short-Term Trend (Lower Timeframe - LTF):
EMA 13: A 13-period EMA that reacts quickly to recent price changes, ideal for capturing short-term momentum and early trend shifts.
EMA 21: A 21-period EMA offering a slightly smoother view of price action, balancing sensitivity and reliability for short-term analysis.
EMA 25: A 25-period EMA providing additional confirmation of short-term trends with a bit more lag for stability.
Medium-Term Trend:
SMA 100: A 100-period SMA that serves as a benchmark for medium-term trend direction, often used to gauge broader market sentiment and key levels.
Long-Term Trend (Higher Timeframe - HTF):
EMA 200: A 200-period EMA, widely recognized as a critical long-term trend indicator, helping traders assess the overall market bias.
SMA 300: A 300-period SMA for an even deeper perspective on long-term price movements, smoothing out noise to highlight major trends.
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.
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.
Dual EMA Trend Crossover IndicatorOverview The Dual EMA Trend Crossover is a classic trend-following indicator designed to identify shifts in market momentum and trend direction. By utilizing two Exponential Moving Averages (EMAs) with different periods, this script helps traders visualize the prevailing trend and spot potential entry points through crossover signals.
This tool is highly effective for capturing medium to long-term trends in trending assets like Index Futures, Commodities, and Crypto.
How It Works The strategy relies on the interaction between a Fast EMA (shorter period) and a Slow EMA (longer period):
Bullish Trend: When the Fast EMA is above the Slow EMA, the background/cloud is highlighted (typically Green) to indicate an uptrend.
Bearish Trend: When the Fast EMA is below the Slow EMA, the background/cloud is highlighted (typically Red) to indicate a downtrend.
Signals: Crossovers serve as the trigger points. A "Golden Cross" signals a potential long entry, while a "Death Cross" signals a potential short entry.
Trading Logic
Long Signal (Buy): Triggered when the Fast EMA crosses over the Slow EMA.
Short Signal (Sell): Triggered when the Fast EMA crosses under the Slow EMA.
Trend Filter: The gap between the two EMAs serves as a visual "Trend Cloud," helping traders avoid choppy markets when the lines are flat or frequently crossing.
Default Settings
Fast EMA Length: 12 (Adjustable)
Slow EMA Length: 26 (Adjustable)
Source: Close price
Disclaimer This indicator is for educational purposes. Moving average crossovers are lagging indicators and work best in strong trending markets. Whipsaws may occur in sideways or ranging markets. Please combine with other indicators or price action analysis for best results.
BBMA Signal ProBBMA Signal Pro
BBMA Signal Pro is a professional BBMA (Bollinger Band + Moving Average) cycle indicator designed to identify structure, momentum, and continuation — not random signals.
This script strictly enforces the BBMA trading cycle and only allows continuation and re-entry signals when the market context is valid.
Core Components
Bollinger Bands (20 SMA, configurable)
WMA 5 & WMA 10 (High / Low)
EMA 50 for trend confirmation
BBMA Cycle Logic (Strict Flow)
All continuation setups require the full BBMA sequence to complete:
EXT (Extreme)
TPW (TP Wajib)
MHV (Market Hilang Volume)
Only after this sequence is completed will continuation setups be allowed.
This prevents early, unstructured, and low-quality signals.
Signals Included
EXT – MA pushes outside Bollinger Band
TPW – price reacts to opposite MA5 after EXT
MHV – price fails to break Bollinger Band
CSAK – continuation candle inside BB zone
CSM – strong momentum candle closing fully outside BB
Re-Entry – controlled pullback after CSAK or CSM
Each CSAK / CSM setup:
Appears only once
Waits for re-entry or invalidation
Is canceled immediately by an opposite CSAK or CSM
Re-Entry Conditions
Pullback to MA5 High (Sell) or MA5 Low (Buy)
Default Trend Confirmation (IMPORTANT)
By default, Re-Entry uses the CURRENT timeframe trend as confirmation:
Sell Re-Entry → Mid BB below EMA50
Buy Re-Entry → Mid BB above EMA50
This prevents:
Counter-trend re-entries
Late or forced continuation trades
Chasing exhausted moves
Optional entry confirmation:
-Touch MA5 only
-Touch MA5 + close inside MA5 band
Valid within 10 candles after the setup
Must match the last active setup (CSAK or CSM)
Dynamic Multi-Timeframe Trend Confirmation
Trend confirmation adapts automatically to the chart timeframe:
Chart TF | Trend Confirmation
5m | M15 + H1
15m | H1 + H4
1H | H4
4H | Daily
Daily | Current TF
Used for:
Filtering CSAK / CSM setups
Optional Re-Entry confirmation
Visual trend tables
Alerts
Trend Filter Modes
You control how strict the trend filtering is:
-No Filter
-Higher TF Only
-Current TF Only
-Higher TF + Current TF
A Skip Current TF Check option is available for advanced users who want earlier signals before full confirmation.
Invalidation Rules
Any opposite CSAK or CSM immediately cancels all pending setups and re-entries
Prevents holding bias when market structure flips
Visual & UX Features
Clean BB + MA layout (matches BBMA Signal Pro reference)
No duplicate labels
Clear setup → continuation → re-entry flow
Dynamic trend tables
-Higher timeframe trend table
-Current timeframe trend (Mid BB vs EMA50)
Alerts (Production-Ready)
Matches visual logic exactly
Supports webhook automation
Re-Entry alerts respect:
-Trend confirmation
-Re-Entry mode timing (touch vs close)
JSON payload includes:
Price
SL / TP reference
Trend context
Chart link
Who This Script Is For
✔ BBMA traders who follow structure
✔ Traders who respect trend alignment
✔ Traders who want re-entries done properly
✖ Not for scalping noise
✖ Not for counter-trend gambling
Final Note
This is not a signal spam indicator.
It is a decision-filtering system .
If you understand BBMA, this script enforces discipline.
If you don’t, it will expose impatience very quickly.
Trade the cycle. Follow the trend. Re-enter with confirmation.
Hosoda ZHosoda’s Clouds is a trend-following strategy designed to trade only long positions in traditionally trending markets with a strong bullish bias: SPY(D); DJI (D); NDX (D); XAUUSD (D); Tesla (D, H4, H1); AAPL (D, H4, H1); GOOG (D, H4); META (D, H4); NVDA (D, H4); AMZN(D, H4).
Strategy Parameters
Initial Capital: $10,000 USD.
Position Size: Risks 10% of your equity per trade.
Commission: 0.1%
Indicators
The strategy combines two main technical tools:
A. Ichimoku Cloud This is the core of the strategy. It calculates the classic lines:
• Tenkan-sen (Fast Line): Average of the highest high and lowest low of the last 9 periods.
• Kijun-sen (Base Line): Average of the last 26 periods.
• Cloud (Senkou Span A and B): Projects future support/resistance.
B. EMA 500 (Trend Filter)
• A 500-period Exponential Moving Average is calculated.
• Function: Serves as a very long-term trend filter. If the price is above the EMA 500, the market is considered bullish in the long term.
Entry Rules
• Bullish Cross (Bull Cross): The fast line (Tenkan) crosses above the base line (Kijun). This is the classic Ichimoku entry signal.
• Trend Filter (Optional):
•If you check the "Enable EMA Filter" box in the options, the system will only buy if the closing price is above the EMA 500.
•If the box is unchecked, it will ignore the EMA and buy based solely on the Ichimoku cross.
Exit Rules
A. Stop Loss (Loss Protection) It is a dynamic Stop Loss based on market structure, not a fixed percentage.
• At the moment of entry, the code looks back 12 bars (configurable in sl_bars_back) and finds the lowest price (low).
• It places the Stop Loss at that minimum level.
• Visual: Draws a dotted red line on the chart showing where your Stop Loss is.
B. Technical Take Profit (Exit due to Weakness) Lets profits run until the trend shows weakness.
• Condition: Closes the trade if the Tenkan line crosses below the bottom of the Cloud .
• This means short-term momentum has been lost and the price has entered or crossed below the cloud.
Statistics Panel
In the top right corner, the code draws a table (Panel) that updates in real-time or at the end of Backtesting. It shows:
• Total P&L: Net profit or loss in dollars.
• Win Rate: Percentage of winning trades.
• Trades: Total number of trades executed.
Summary
1. The script waits for the blue line (Tenkan) to cross over the red line (Kijun).
2. It verifies if the price is above the orange line (EMA 500) (if the filter is active).
3. If so, it BUYS.
4. It immediately places a Stop Loss at the low of the last 12 candles (red dotted line).
5. It keeps the trade open until the Stop Loss is hit or until the Tenkan line drops below the Cloud.
Customizable Settings
• Whether to use the EMA filter or not.
• The EMA length (default is 500).
• The Ichimoku periods (9, 26, 52 are standard).
• How many bars to look back to set the Stop Loss.
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.
Smart MA Zone Crossover [HMA-EMA]Smart MA Zone Crossover is a trend-following indicator designed to capture early momentum shifts using the crossover between Hull Moving Average (HMA) and Exponential Moving Average (EMA).
The indicator visually highlights trend direction using a dynamic colored zone, making it easy to identify bullish and bearish market phases at a glance.
🔸 Step 1: Moving Average Calculation
HMA (Hull Moving Average) → Faster, smoother, reacts quickly to price
EMA (Exponential Moving Average) → Stable trend reference
Both MA lengths are **fully adjustable** from the settings panel.
🔸 Step 2: Trend Detection
Bullish Trend: HMA is above EMA
Bearish Trend: HMA is below EMA
The area between the two averages is filled with color to visually represent the current trend state.
Step 3: Signal Generation (Non-Repainting)
Signals are generated **only on confirmed crossovers**:
✅ BUY Signal- HMA crosses above EMA
❌ SELL Signal-HMA crosses belowEMA
Signals do **not repaint** and appear only once per crossover.
🔸 Step 4: Visual Customization
Users can enable or disable:
* Moving average lines
* Colored MA zone fill
* Buy/Sell arrows
* Buy/Sell text labels
This allows the indicator to remain **minimal or detailed**, depending on user preference.
🔹 Key Features
✔ Non-repainting logic
✔ Clean crossover-based signals
✔ Customizable HMA & EMA lengths
✔ Optional MA zone fill
✔ Buy/Sell arrows & labels
✔ Works on all timeframes
✔ Beginner-friendly & scalper-ready
🔹 Best Use Cases
* Trend confirmation
* Momentum trading
* Scalping & intraday trading
* Swing trend filtering
For best results, combine with:
* Support & resistance
* Volume
* Higher-timeframe trend
🔹 Disclaimer
This indicator is provided for **educational purposes only**.
It is **not financial advice**. Always backtest and use proper risk management before trading live markets.
Trend Core Strategy v1.0 - GUMROADLog Regression Channel Pro Strategy
This is a trend-following pullback strategy built for TradingView (Pine Script v6).
It uses logarithmic regression channels to define the market’s primary trend, and looks for low-risk pullback entries within strong trending conditions.
Momentum and trend strength filters are applied to avoid ranging or weak markets.
This strategy is designed to be used when the market is clearly trending, not during choppy or sideways price action.
Best Used When
Strong uptrend or downtrend is present
Price is pulling back toward the regression channel
Volatility is sufficient (ADX confirms trend strength)
Suitable for 1H / 4H timeframes
Commonly used on BTC, ETH, and major crypto pairs
Key Characteristics
Non-repainting logic
Volatility-based risk management (ATR)
Designed for realistic backtesting
No martingale, no grid, no over-optimization
Gumroad Disclaimer (3 Lines)
This strategy is provided for educational purposes only and is not financial advice.
Trading involves risk, and losses may occur.
You are fully responsible for your own trading decisions.
ES Signals (Sequencer Labels)Here i am using EMA crossover systems to catch the market. One can use this with their own choice.
Using Some simple rules, we can get some good quality trades! You can see for yourself before trading.
=== HOW TO USE THIS INDICATOR ===
1) Choose your market and timeframe. ( according to their need )
2) Choose if the strategy is long-only or bidirectional.
Don't overthink nobody knows the best answer of market. We're going to test and find out.
After you find a good combination, set up an alert system with the default Exponential Moving Average indicators provided by TradingView.
=== TIPS ===
Change the Time frame according to their need.
i) for intraday 3-5 minute.
ii) 60 minute for 3-4 days View
iii) Daily for positional
Try a Long-Only strategy to see if that performs better.
EMA Slope Angle V2 Auto Threshold# EMA Slope Angle Indicator
## Overview
The EMA Slope Angle Indicator visualizes the Exponential Moving Average (EMA) slope as an angle in degrees, providing traders with a clear, quantitative measure of trend strength and direction. The indicator features **automatic threshold calculation based on Gaussian distribution**, making it adaptive to any market and timeframe.
## Key Features
### 🎯 **Automatic Threshold Calculation (NEW!)**
- **Gaussian Distribution-Based**: Automatically calculates optimal thresholds from the 50% interquartile range (IQR) of historical angle data
- **Asset-Adaptive**: Thresholds adjust to each instrument's unique volatility and price characteristics
- **No Manual Tuning Required**: Simply enable "Use Auto Thresholds" and let the indicator optimize itself
### 📊 **Dynamic EMA Coloring**
- **Color Intensity**: EMA line color intensity reflects slope strength
- **Visual Feedback**:
- Green shades for uptrends (darker = stronger)
- Red shades for downtrends (darker = stronger)
- Gray for flat/neutral conditions
### 📈 **Regime Detection**
- **Three Regimes**: RISING, FALLING, and FLAT
- **Smart Classification**: Based on statistical distribution of angles
- **Non-Repainting**: All calculations use confirmed bars only
### 🔔 **Trend-Shift Signals**
- **Visual Arrows**: Automatic signals when transitioning from FLAT to RISING/FALLING
- **Configurable**: Enable/disable signals as needed
- **Reliable**: Only triggers on significant regime changes
### 📋 **KPI Dashboard**
- **Real-Time Metrics**: Current angle, regime, and last signal
- **Auto-Threshold Display**: Shows calculated thresholds when auto-mode is active
- **Statistics**: Optional angle distribution statistics
- **Clean Layout**: Top-right corner, non-intrusive
### 📊 **Angle Statistics (Optional)**
- **Distribution Analysis**: Histogram of angle ranges
- **Dynamic Buckets**: Automatically adjusts to data distribution when auto-mode is enabled
- **Percentage Breakdown**: See how often each angle range occurs
## Settings
### Main Settings
- **EMA Length**: Period for the Exponential Moving Average (default: 50)
- **Slope Lookback Bars**: Number of bars to calculate slope over (default: 5)
### Angle Settings
- **Use Auto Thresholds**: Enable automatic threshold calculation (recommended!)
- **Analysis Period**: Number of bars to analyze for distribution (default: 500)
- **Manual Thresholds**: Flat, Rising, and Falling triggers (used when auto-mode is off)
- **Max Angle for Color Saturation**: Maximum angle for color intensity scaling
### Display Options
- **Colors**: Customize uptrend, downtrend, and flat colors
- **Show Signals**: Enable/disable trend-shift arrows
- **Show Statistics**: Display angle distribution table
- **Show Dashboard**: Toggle KPI dashboard visibility
## How It Works
### Angle Calculation
The indicator calculates the angle between the current EMA value and the EMA value N bars ago:
```
Angle = arctan((EMA_now - EMA_then) / lookback) × 180° / π
```
### Auto-Threshold Calculation
When enabled, the indicator:
1. Analyzes historical angle data over the specified period
2. Calculates mean and standard deviation
3. Determines thresholds based on the 50% interquartile range (IQR):
- **Flat Threshold**: ±0.674σ (middle 50% of data)
- **Rising Trigger**: 75th percentile (mean + 0.674σ)
- **Falling Trigger**: 25th percentile (mean - 0.674σ)
### Regime Classification
- **FLAT**: Angle within ±Flat Threshold
- **RISING**: Angle ≥ Rising Trigger
- **FALLING**: Angle ≤ Falling Trigger
## Use Cases
### Trend Following
- Identify strong trends (high angle values)
- Spot trend reversals (regime changes)
- Filter trades based on trend strength
### Range Trading
- Detect flat/consolidation periods
- Avoid trading during choppy markets
- Enter when regime shifts from FLAT to RISING/FALLING
### Multi-Timeframe Analysis
- Apply to different timeframes for confirmation
- Use higher timeframe for trend direction
- Use lower timeframe for entry timing
## Tips for Best Results
1. **Enable Auto-Thresholds**: Let the indicator adapt to your instrument
2. **Adjust Analysis Period**: Use more bars for stable markets, fewer for volatile ones
3. **Combine with Price Action**: Use regime changes as confirmation, not standalone signals
4. **Multi-Timeframe**: Check higher timeframes for trend context
5. **Backtest First**: Test settings on historical data before live trading
## Technical Details
- **Non-Repainting**: All calculations use `barstate.isconfirmed`
- **Pine Script v6**: Latest version for optimal performance
- **Efficient**: Minimal computational overhead
- **Customizable**: Extensive settings for fine-tuning
## Version History
**v2.0** (Current)
- Added automatic threshold calculation based on Gaussian distribution
- Dynamic bucket adjustment for statistics
- Enhanced dashboard with auto-threshold display
- Improved regime detection using IQR method
**v1.0**
- Initial release with manual thresholds
- Basic EMA coloring
- Trend-shift signals
- KPI dashboard
## Support
For questions, suggestions, or bug reports, please leave a comment or contact the author.
---
**Disclaimer**: This indicator is for educational purposes only. Past performance does not guarantee future results. Always use proper risk management and never risk more than you can afford to lose.
**Keywords**: EMA, slope, angle, trend, automatic thresholds, Gaussian distribution, regime detection, non-repainting, adaptive






















