Apex Trend & Liquidity Master V2.1The Apex Trend & Liquidity Master is a hybrid trading system designed to align traders with the dominant market trend while identifying key structural price levels. Unlike simple moving average crossovers or standalone support/resistance tools, this script integrates a volatility-adaptive "Trend Cloud" with a "Smart Liquidity" engine.
This integration allows the script to offer unique filtering capabilities, such as hiding counter-trend liquidity zones to reduce chart noise and focus on high-probability continuations.
How It Works
Adaptive Trend Cloud The backbone of the system is the Trend Cloud, calculated using a Hull Moving Average (HMA) base with ATR bands. The cloud expands and contracts based on market volatility.
Green Cloud: Bullish Regime. The market is trending up; look for long opportunities.
Red Cloud: Bearish Regime. The market is trending down; look for short opportunities.
Smart Liquidity Zones (with Integration) The script automatically detects Pivot Highs and Lows to draw Supply (Resistance) and Demand (Support) zones. These zones persist until price breaks through them (mitigation).
Integration Feature: A "Filter Zones by Trend" option is included in the settings. When enabled, this feature connects the Trend Cloud to the Liquidity Engine:
It will only display Demand zones when the Trend Cloud is Bullish.
It will only display Supply zones when the Trend Cloud is Bearish.
Note on Lag: Zones are based on pivots (default lookback: 10). A zone appears on the chart 10 bars after the pivot forms. These are historical structural levels.
Signal Filters Buy and Sell labels are generated when the Trend Cloud changes color, but they are filtered to ensure quality:
Volume Filter: Signals only appear if the current volume is higher than the 20-period average.
RSI Filter: Prevents buying when RSI is overbought (>70) or selling when oversold (<30).
Live HUD An on-chart dashboard provides real-time data on:
Trend Bias: Direction of the cloud.
Momentum: RSI strength (Weak/Neutral/Strong).
Volume: High vs. Low activity.
Usage Guide
Identify the Trend: Use the background fill color to determine if you should be looking for longs (Green) or shorts (Red).
Wait for Structure: Look for price to pull back into a "Smart Liquidity" zone. For example, in a Green Trend, wait for price to touch a Green Demand box.
Confirm with Momentum: Check the Dashboard. Ideally, you want to see "Strong" momentum aligning with your trade direction.
Settings: If the chart is too cluttered, enable "Filter Zones by Trend" in the settings menu to hide counter-trend boxes.
Credits & Attribution This script combines original integration logic with adapted open-source concepts:
Smart Liquidity Logic: The method for generating Supply/Demand boxes via Pivot Highs/Lows and array management is adapted from open-source logic commonly used in Smart Money Concepts (SMC) indicators, notably popularized by LuxAlgo and the broader Pine community.
Trend Logic: The volatility cloud utilizes standard Hull Moving Average (HMA) and ATR formulas.
Disclaimer This indicator is provided for educational and informational purposes only. It does not constitute financial advice. Past performance of pivot levels or trend signals does not guarantee future results.
Moving Averages
RSI with 3 Separate Smoothing AveragesRSI has 3 moving averages, to help trade better
RSI period can be adjusted
Moving average has multiple selections (SMA, EMA, HMA)
moving average cross over can be used as signal for trades
Trade at your own risk
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)について
上位足スイングの更新に基づくトレンド判定を表示しますが、 エントリー条件には使用していません。
理由: 上位足を厳密にロジックへ組み込むと、トレード機会が大幅に減るためです。
本ストラテジーでは、 「大局の把握は視覚で、エントリーは柔軟に」 という設計思想を採用しています。
→ 裁量で利確判断や逆張り回避に活用できます。
Trinity Swing Trading Buy and SellThis is a simple little Heiken Ashi MA + ADX & MACD trend-following trading system designed to capture medium- to longer-term moves while filtering out noise and weak trends. It combines modified Heiken Ashi candles (for smoother trend detection) with a moving average alignment, plus optional confirmation from ADX (trend strength) and MACD (momentum).
In practice, the indicator works well on higher timeframes (e.g., 1H, 4H, daily) where trends are more sustained. It performs best in trending markets and naturally avoids choppy/range-bound conditions thanks to the ADX filter (requiring ADX > 20 by default). All key components are fully customizable, so you can disable filters or adjust parameters to suit different instruments (stocks, forex, crypto, futures).
Default settings are:
16 HMA
8,17,9 MACD
15,20 ADX
Recommend to add an additional longer term EMA like 200 for long term trend confirmation.
Adjust inputs in the settings panel as needed:
Toggle MA, ADX, or MACD filters on/off.
Change MA type/length, MACD parameters, ADX threshold
- Use the visual blue diamonds (below bars) for long entries and purple diamonds (above bars) for short entries as confirmation of signals.
- Set alerts on the "Buy Alert" and "Sell Alert" conditions if you want real-time notifications.
This setup gives you a complete, rule-based system that avoids emotional trading and repetitive entries, making it suitable for both backtesting and live trading with proper risk management.
AI Reversal Signals Custom [wjdtks255]📊 Indicator Overview: AI Reversal Signals Custom
This indicator is a comprehensive trend-following and reversal detection tool. It combines the long-term trend bias of a 200 EMA with highly sensitive RSI-based reversal signals and momentum visualization. It is designed to capture market bottoms and tops by identifying exhaustion points in price action.
Key Features
200 EMA (Trend Filter): A gold line representing the long-term institutional trend. It helps traders distinguish between "buying the dip" and "catching a falling knife."
Reversal Buy/Sell Labels: Real-time signals that appear when the market recovers from extreme overbought or oversold conditions.
Dynamic Background Clouds: Visual indicators of trend strength changes, highlighting potential entry zones.
Momentum Histogram: Internal calculations mimic the "Bottom Bars" seen in professional suites to track the velocity of price movement.
📈 Trading Strategy (How to Trade)
1. High-Probability Long Setup (Buy)
Trend Confirmation: Price should ideally be trading above the 200 EMA for the highest success rate.
Signal: Wait for the "BUY" label to appear below the candle.
Momentum: Confirm with the Light Green background or histogram shift indicating recovery.
Entry: Enter on the close of the signal candle.
2. High-Probability Short Setup (Sell)
Trend Confirmation: Price should ideally be trading below the 200 EMA.
Signal: Wait for the "SELL" label to appear above the candle.
Momentum: Confirm with the Red background or histogram fading from green to red.
Entry: Enter on the close of the signal candle.
3. Risk Management
Stop Loss: Place your Stop Loss slightly below the recent swing low for Buy orders, or above the recent swing high for Sell orders.
Take Profit: Exit when the price reaches a major support/resistance level or when an opposing signal appears.
💡 Professional Tip
For the best results, use this indicator on the 15-minute or 1-hour timeframes. The most powerful "Ultimate Reversal" signals occur when there is a Bullish Divergence (Price making lower lows while the RSI makes higher lows) followed by a confirmed "BUY" label.
EAOverview
The provided Pine Script code implements a technical analysis indicator known as the UT Bot Alerts. It is a volatility-based trend-following system designed to generate Buy and Sell signals. It uses the Average True Range (ATR) to calculate a dynamic trailing stop line, which helps identify trend reversals.
Key Components & Logic
1. Inputs (User Settings):
• Key Value (a): A sensitivity multiplier. A lower value makes the signals more frequent (sensitive), while a higher value filters out noise (less sensitive).
• ATR Period (c): The timeframe used to calculate the Average True Range (volatility). Default is 10.
• Heikin Ashi (h): A boolean switch (True/False) that allows calculations to be based on Heikin Ashi candles (smoother price action) instead of standard candlesticks.
2. Core Mechanism (ATR Trailing Stop):
• The script calculates an ATR Trailing Stop (xATRTrailingStop).
• Uptrend: If the price is rising, the stop line moves up but never moves down, acting as dynamic support.
• Downtrend: If the price is falling, the stop line moves down but never moves up, acting as dynamic resistance.
3. Signal Generation:
• Buy Signal: Generated when the price (specifically a 1-period EMA) crosses above the Trailing Stop line. This indicates a shift to an uptrend.
• Sell Signal: Generated when the price crosses below the Trailing Stop line. This indicates a shift to a downtrend.
4. Visuals & Alerts:
• Labels: It plots "Buy" (Green) and "Sell" (Red) labels on the chart at the point of the signal.
• Bar Colors: It colors the candlesticks Green during an uptrend and Red during a downtrend.
• Alerts: It creates alert conditions (UT Long and UT Short) that can be hooked into TradingView's alarm system for real-time notifications.
Summary
In short, this script is a Trend Reversal Indicator. It helps traders stay in a trade as long as the price remains on the correct side of the volatility-adjusted trailing stop, and it alerts them immediately when the trend direction changes.
3MA Alignment Ribbon [AlgoTraderPro]3MA Alignment Ribbon is a clean, visual trend-structure indicator based on the alignment of three moving averages.
Instead of focusing on crossovers, it highlights trend quality and direction by dynamically coloring the moving averages and the ribbon between them.
The goal is simple : See at a glance whether the market structure is bullish, bearish, or neutral.
⸻
How It Works
The indicator plots three moving averages (Fast, Medium, Slow) and evaluates their alignment:
Bullish → Fast > Medium > Slow
Bearish → Fast < Medium < Slow
Neutral → Any other configuration
The moving averages and the filled ribbon between them are automatically colored based on this alignment, making trend conditions immediately visible.
⸻
Key Features
✅Multi-MA Support
Choose between:
EMA (default)
SMA
WMA
VWMA
RMA
HMA
✅ Alignment Modes
Strict: classic Fast > Medium > Slow logic
Tolerant: requires a minimum percentage separation between averages to reduce noise in ranging markets
✅ Optional Slope Filter
Filter signals by requiring the slow MA to be rising or falling, helping avoid false trend states during flat conditions.
✅ Higher Timeframe (HTF) Ribbon
Overlay the same 3MA alignment logic from a higher timeframe on your current chart:
Fully optional
Correctly calculated on the HTF itself
Option to use confirmed HTF bars only (reduces repaint confusion)
✅ Alerts & Visual Signals
Alerts when alignment turns Bullish, Bearish, or Neutral
Optional on-chart markers when the alignment flips
✅ Custom Styling
Fully customizable colors and transparency
Designed to remain readable without cluttering the chart
⸻
How to Use It
This indicator works best as:
A trend filter for discretionary trading
A context tool for entries using other setups
A market structure overlay for scalping, swing trading, or position trading
It does not generate buy/sell signals by itself — instead, it helps you trade aligned with market structure.
⸻
Default Settings
The default lengths (50 / 100 / 200 EMA) are suitable for most markets and timeframes, including crypto, forex, indices, and equities.
Liquidity Maxing [JOAT]Liquidity Maxing - Institutional Liquidity Matrix
Introduction
Liquidity Maxing is an open-source strategy for TradingView built around institutional market structure concepts. It identifies structural shifts, evaluates trades through multi-factor confluence, and implements layered risk controls.
The strategy is designed for swing trading on 4-hour timeframes, focusing on how institutional order flow manifests in price action through structure breaks, inducements, and liquidity sweeps.
Core Functionality
Liquidity Maxing performs three primary functions:
Tracks market structure to identify when control shifts between buyers and sellers
Scores potential trades using an eight-factor confluence system
Manages position sizing and risk exposure dynamically based on volatility and user-defined limits
The goal is selective trading when multiple conditions align, rather than frequent entries.
Market Structure Engine
The structure engine tracks three key events:
Break of Structure (BOS): Price pushes beyond a prior pivot in the direction of trend
Change of Character (CHoCH): Control flips from bullish to bearish or vice versa
Inducement Sweeps (IDM): Market briefly runs stops against trend before moving in the real direction
The structure module continuously updates strong highs and lows, labeling structural shifts visually. IDM markers are optional and disabled by default to maintain chart clarity.
The trade engine requires valid structure alignment before considering entries. No structure, no trade.
Eight-Factor Confluence System
Instead of relying on a single indicator, Liquidity Maxing uses an eight-factor scoring system:
Structure alignment with current trend
RSI within healthy bands (different ranges for up and down trends)
MACD momentum agreement with direction
Volume above adaptive baseline
Price relative to main trend EMA
Session and weekend filter (configurable)
Volatility expansion/contraction via ATR shifts
Higher-timeframe EMA confirmation
Each factor contributes one point to the confluence score. The default minimum confluence threshold is 6 out of 8, but you can adjust this from 1-8 based on your preference for trade frequency versus selectivity.
Only when structure and confluence agree does the strategy proceed to risk evaluation.
Dynamic Risk Management
Risk controls are implemented in multiple layers:
ATR-based stops and targets with configurable risk-to-reward ratio (default 2:1)
Volatility-adjusted position sizing to maintain consistent risk per trade as ranges expand or compress
Daily and weekly risk budgets that halt new entries once thresholds are reached
Correlation cooldown to prevent clustered trades in the same direction
Global circuit breaker with maximum drawdown limit and emergency kill switch
If any guardrail is breached, the strategy will not open new positions. The dashboard clearly displays risk state for transparency.
Market Presets
The strategy includes configuration presets optimized for different market types:
Crypto (BTC/ETH): RSI bands 70/30, volume multiplier 1.2, enhanced ATR scaling
Forex Majors: RSI bands 75/25, volume multiplier 1.5
Indices (SPY/QQQ): RSI bands 70/30, volume multiplier 1.3
Custom: Default values for user customization
For crypto assets, the strategy automatically applies ATR volatility scaling to account for higher volatility characteristics.
Monitoring and Dashboards
The strategy includes optional monitoring layers:
Risk Operations Dashboard (top-right):
Trend state
Confluence score
ATR value
Current position size percentage
Global drawdown
Daily and weekly risk consumption
Correlation guard state
Alert mode status
Performance Console (top-left):
Net profit
Current equity
Win rate percentage
Average trade value
Sharpe-style ratio (rolling 50-bar window)
Profit factor
Open trade count
Optional risk tint on chart background provides visual indication of "safe to trade" versus "halted" state.
All visualization elements can be toggled on/off from the inputs for clean chart viewing or full telemetry during parameter tuning.
Alerts and Automation
The strategy supports alert integration with two formats:
Standard alerts: Human-readable messages for long, short, and risk-halt conditions
Webhook format: JSON-formatted payloads ready for external execution systems (optional)
Alert messages are predictable and unambiguous, suitable for manual review or automated forwarding to execution engines.
Built-in Validation Suite
The strategy includes an optional validation layer that can be enabled from inputs. It checks:
Internal consistency of structure and confluence metrics
Sanity and ordering of risk parameters
Position sizing compliance with user-defined floors and caps
This validation is optional and not required for trading, but provides transparency into system operation during development or troubleshooting.
Strategy Parameters
Market Presets:
Configuration Preset: Choose between Crypto (BTC/ETH), Forex Majors, Indices (SPY/QQQ), or Custom
Market Structure Architecture:
Pivot Length: Default 5 bars
Filter by Inducement (IDM): Default enabled
Visualize Structure: Default enabled
Structure Lookback: Default 50 bars
Risk & Capital Preservation:
Risk:Reward Ratio: Default 2.0
ATR Period: Default 14
ATR Multiplier (Stop): Default 2.0
Max Drawdown Circuit Breaker: Default 10%
Risk per Trade (% Equity): Default 1.5%
Daily Risk Limit: Default 6%
Weekly Risk Limit: Default 12%
Min Position Size (% Equity): Default 0.25%
Max Position Size (% Equity): Default 5%
Correlation Cooldown (bars): Default 3
Emergency Kill Switch: Default disabled
Signal Confluence:
RSI Length: Default 14
Trend EMA: Default 200
HTF Confirmation TF: Default Daily
Allow Weekend Trading: Default enabled
Minimum Confluence Score (0-8): Default 6
Backtesting Considerations
When backtesting this strategy, consider the following:
Commission: Default 0.05% (adjustable in strategy settings)
Initial Capital: Default $100,000 (adjustable)
Position Sizing: Uses percentage of equity (default 2% per trade)
Timeframe: Optimized for 4-hour charts, though can be tested on other timeframes
Results will vary significantly based on:
Market conditions and volatility regimes
Parameter settings, especially confluence threshold
Risk limit configuration
Symbol characteristics (crypto vs forex vs equities)
Past performance does not guarantee future results. Win rate, profit factor, and other metrics should be evaluated in context of drawdown periods, trade frequency, and market conditions.
How to Use This Strategy
This is a framework that requires understanding and parameter tuning, not a one-size-fits-all solution.
Recommended workflow:
Start on 4-hour timeframe with default parameters and appropriate market preset
Run backtests and study performance console metrics: focus on drawdown behavior, win rate, profit factor, and trade frequency
Adjust confluence threshold to match your risk appetite—higher thresholds mean fewer but more selective trades
Set realistic daily and weekly risk budgets appropriate for your account size and risk tolerance
Consider ATR multiplier adjustments based on market volatility characteristics
Only connect alerts or automation after thorough testing and parameter validation
Treat this as a risk framework with an integrated entry engine, not merely an entry signal generator. The risk controls are as important as the trade signals.
Strategy Limitations
Designed for swing trading timeframes; may not perform optimally on very short timeframes
Requires sufficient market structure to identify pivots; may struggle in choppy or low-volatility environments
Crypto markets require different parameter tuning than traditional markets
Risk limits may prevent entries during favorable setups if daily/weekly budgets are exhausted
Correlation cooldown may delay entries that would otherwise be valid
Backtesting results depend on data quality and may not reflect live trading with slippage
Design Philosophy
Many indicators tell you when price crossed a moving average or RSI left oversold. This strategy addresses questions institutional traders ask:
Who is in control of the market right now?
Is this move structurally significant or just noise?
Do I want to add more risk given what I've already done today/week?
If I'm wrong, exactly how painful can this be?
The strategy provides disciplined, repeatable answers to these questions through systematic structure analysis, confluence filtering, and multi-layer risk management.
Technical Implementation
The strategy uses Pine Script v6 with:
Custom types for structure, confluence, and risk state management
Functional programming approach for reusable calculations
State management through persistent variables
Optional visual elements that can be toggled independently
The code is open-source and can be modified to suit individual needs. All important logic is visible in the source code.
Disclaimer
This script is provided for educational and informational purposes only. It is not intended as financial, investment, trading, or any other type of advice or recommendation. Trading involves substantial risk of loss and is not suitable for all investors. Past performance, whether real or indicated by historical tests of strategies, is not indicative of future results.
No representation is being made that any account will or is likely to achieve profits or losses similar to those shown. In fact, there are frequently sharp differences between backtested results and actual results subsequently achieved by any particular trading strategy.
The user should be aware of the risks involved in trading and should trade only with risk capital. The authors and publishers of this script are not responsible for any losses or damages, including without limitation, any loss of profit, which may arise directly or indirectly from use of or reliance on this script.
This strategy uses technical analysis methods and indicators that are not guaranteed to be accurate or profitable. Market conditions change, and strategies that worked in the past may not work in the future. Users should thoroughly test any strategy in a paper trading environment before risking real capital.
Commission and slippage settings in backtests may not accurately reflect live trading conditions. Real trading results will vary based on execution quality, market liquidity, and other factors not captured in backtesting.
The user assumes full responsibility for all trading decisions made using this script. Always consult with a qualified financial advisor before making investment decisions.
Enjoy - officialjackofalltrades
Daily SMA 20/50/100/200Simple Moving Averages indicator displaying four commonly used trend lines on the price chart. Plots the 20, 50, 100, and 200 period SMAs to help identify short-, medium-, and long-term trend direction, dynamic support and resistance, and overall market structure. Color-coded for clarity: 20 SMA in green, 50 SMA in blue, 100 SMA in orange, and 200 SMA in red, with uniform line thickness for clean visual consistency.
Trend Consensus Engine [TCE]The Trend Consensus Engine (TCE) is a comprehensive market analysis system designed to filter out noise and provide a quantifiable "Trend Score" (0-100). Instead of relying on a single indicator, this script aggregates data from multiple market factors—volatility, momentum, and trend structure—to generate high-probability entry signals based on a consensus logic.
This tool is particularly optimized for Crypto (with specific time-gated logic) and BIST (Borsa Istanbul) markets, allowing traders to see the overall health of the trend at a glance via a dashboard.
How It Works
The engine calculates a composite "Total Score" (0-100) derived from four weighted components:
Trend Structure (AlphaTrend & Guppy):
Analyzes the slope and position relative to the AlphaTrend (Credit to @KivancOzbilgic) and Guppy Multiple Moving Averages (GMMA).
Positive slopes and price action above key levels add points to the score.
Volatility & Momentum (Squeeze & ADX):
Incorporates the Squeeze Momentum logic (Credit to @LazyBear) to detect explosive moves.
ADX Filter: Filters out chopping/ranging markets. If the ADX is too low, the score is penalized or the signal is blocked.
Dynamic Resistance (MA Channels):
Uses a combination of Donchian Mid-Lines and SMAs to determine if the price is in a "safe zone" or hitting resistance.
Price Action Filters (Pinbar Veto):
Automatically detects bearish "Shooting Star" or weak candles at highs. If a bearish pinbar is detected, the entry signal is vetoed regardless of the trend score.
Features & Settings
Smart Scoring Dashboard: Displays the realtime Score, Instant Decision, and confirmed Close Decision on the chart.
Market Profiles:
Crypto Mode: Includes a "Time Gate" feature (07:00 UTC+3 check) to prevent fakeouts during low-liquidity hours.
BIST Mode: Optimized parameters for the Turkish stock market logic (14:00 session checks).
Score Threshold: Users can adjust the minimum score required (Default: 70) to trigger a "BUY" signal.
Visual Guidance: The background of the dashboard changes color (Green/Red/Yellow) based on the consensus.
How to Use
Check the Dashboard: Look at the "SONUÇ" (Result) row.
GİRİŞ ✅ (ENTRY): The Score is above 70, Momentum is positive, and no Bearish Pinbars are present.
BEKLE ⏳ (WAIT): The trend is weak, or a filter (like ADX or Squeeze) is blocking the trade.
Confirm with Price Action: Use the AlphaTrend lines (Blue/Red) as dynamic support/stop-loss levels.
Credits:
AlphaTrend by KivancOzbilgic
Squeeze Momentum Indicator by LazyBear
VuManChu Cipher concepts for inspiration.
Custom Logic: Scoring algorithm and Time-Gating mechanisms are original custom developments.
Disclaimer: This tool is for educational purposes only and does not constitute financial advice.
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!
ATR Distance from 50 SMA By DanBobDanA simple indicator that measures the distance between current price and the 50 SMA
The average momentum swing trade might run 7 times the ATR before pulling back
Therefore, its recommended to not buy a stock that is beyond 4 times its ATR to the 50 SMA
This script will quickly and easily calculate the 50 SMA to ATR distance for you
TRS (Trend Readiness System)TRS – Trend Readiness System
TRS (Trend Readiness System) is a trend-aligned trading framework designed to help you identify stocks that are becoming ready for entry , not just those already breaking out.
Instead of producing noisy buy/sell signals, TRS evaluates trend quality, pullback structure, momentum rebuilding, and market context , and converts them into clear scores, states, and timing awareness — both on the chart and inside the TradingView Screener.
---
Core Philosophy
Strong trends don’t start at the breakout — they start when conditions quietly align.
TRS focuses on:
• Primary trend alignment
• Healthy pullbacks above long-term support
• Early momentum recovery
• Market regime confirmation
• Entry timing (fresh vs late)
---
What TRS Measures
1. Setup Score (Trend Quality)
Answers the question: “Is this stock structurally worth watching?”
Based on:
• Price position relative to MA150
• Long-term trend direction
• Higher-low structure
• Distance from MA150 (overextension control)
• Market regime (bullish / bearish)
---
2. Entry Score (Timing Quality)
Answers the question: “Is the timing right — or still early?”
Based on:
• Short and mid-term moving averages
• Pullback behavior
• Momentum stabilization
• Volume confirmation
---
3. General Score
A combined readiness score used for ranking in the TradingView Screener:
General Score = Setup Score + Entry Score
---
Entry State Tracking (Key Feature)
TRS tracks the full entry lifecycle , not just signals:
• Valid Entry
• Pending Entry (almost ready)
• Bars Since Valid Entry
• Entry Window (Fresh / Expired)
• Entry Still Valid (Yes / No)
This helps avoid chasing late or already-played setups.
---
Market Regime Filter
Signals automatically adapt to overall market conditions:
• Market trend confirmation (e.g. SPY / QQQ)
• Reduced false signals during weak markets
• Clear explanation when setups are blocked
---
Visual Dashboard (Optional)
The on-chart dashboard can display:
• General Score
• Market state
• Setup quality
• Entry status
• Entry window
• Bars since entry
• Blocking reason (if any)
You can switch between:
• Minimal mode – essential info only
• Full table mode – detailed diagnostics
---
Screener Integration
TRS exposes clean numeric outputs for the TradingView Pine Screener:
• Setup Score
• Entry Score
• General Score
• Pending Entry (1 / 0)
• Valid Entry (1 / 0)
• Bars Since Valid Entry
• Market Bullish (1 / 0)
Example Screener Filters:
• Setup Score ≥ 50
• Pending Entry = 1
• Bars Since Valid Entry ≤ 3
• Market Bullish = 1
---
How to Use TRS (Daily Routine)
Step 1 – Scan
• Look for high Setup Score
• Prefer Pending Entry = 1
Step 2 – Review
• Confirm pullback quality
• Check MA150 support
• Observe momentum rebuilding
Step 3 – Act
• Enter only on Valid Entry
• Avoid expired entry windows
• Skip setups blocked by market regime
---
What TRS Is NOT
• Not a breakout chaser
• Not a day-trading system
• Not signal spam
TRS is a decision-support system for swing and position traders who value structure, context, and timing.
---
Best Used On
• Daily timeframe (1D)
• Liquid stocks & ETFs
• Trend-following strategies
• Portfolio-level screening
---
EMA 9/21/50 BandEMA band indicator plotting the 9, 21, and 50 exponential moving averages based on the **active chart timeframe**. Designed to adapt dynamically as you change timeframes, helping visualize short-term momentum, trend alignment, and dynamic support and resistance. Useful for identifying trend strength, pullbacks, and momentum shifts without anchoring to a fixed higher timeframe.
Daily SMA 20/50/100/200Simple Moving Averages indicator displaying four commonly used trend lines on the price chart. Plots the 20, 50, 100, and 200 period SMAs to help identify short-, medium-, and long-term trend direction, dynamic support and resistance, and overall market structure. Color-coded for clarity: 20 SMA in green, 50 SMA in blue, 100 SMA in orange, and 200 SMA in red, with uniform line thickness for clean visual consistency.
Daily SMA 20/50/100/200Simple Moving Averages indicator displaying four commonly used trend lines on the price chart. Plots the 20, 50, 100, and 200 period SMAs to help identify short-, medium-, and long-term trend direction, dynamic support and resistance, and overall market structure. Color-coded for clarity: 20 SMA in green, 50 SMA in blue, 100 SMA in orange, and 200 SMA in red, with uniform line thickness for clean visual consistency.
MA Cross + Trend Stats (Probabilistic)Short description (one-liner)
A MA-regime framework with historical regime stats + forward performance + optional trend/noise filters for trending context.
________________________________________
Full description (TradingView-ready)
Overview
This indicator turns a classic Moving Average Cross into a regime-based trend dashboard. Instead of treating a cross as a standalone “buy/sell” event, it measures what historically happened after similar regime shifts on the current symbol and timeframe, and displays the results in a compact table.
It supports:
• EMA or SMA
• Custom fast/slow lengths (including .5 lengths via floor/ceil averaging)
• Optional trend quality filters for trending decisions:
o Slope filter (Slow MA slope)
o Market noise filter using Efficiency Ratio (ER) in real time
________________________________________
What the table shows (how to read it)
The table has two rows: Bull (Fast > Slow) and Bear (Slow > Fast). Metrics are computed on completed regimes (historical segments that already ended).
N
Number of completed regimes measured. More samples generally means more stable estimates.
μ Δ% / Med Δ%
Average and median regime return from regime start to regime end. Median helps reduce the impact of outliers.
⏱ Bars
Average regime duration (in bars). Useful to calibrate realistic holding expectations for trending.
⬆ MFE% / ⬇ MAE%
• MFE (Maximum Favorable Excursion): max move in favor during the regime
• MAE (Maximum Adverse Excursion): max move against during the regime
These are context metrics for typical run-up and typical heat.
ER μ | Hit
Trend-quality proxy:
• ER μ: average Efficiency Ratio during regimes (0–1, higher = more directional / less noisy)
• Hit: % of regimes with ER above the historical threshold you set
Forward performance (+H μ|Hit)
For two user-defined horizons (e.g., +10 / +20 bars):
• μ: average forward return after the cross
• Hit: probability (%) that the forward return was positive
This is designed to provide probabilistic context, not certainty.
________________________________________
“Trending” decision filters (optional)
These filters apply to signals/alerts/markers, not to the raw regime statistics:
1. Slope filter (Slow MA):
Only allow Bull signals if the Slow MA slope is positive (and Bear signals if negative).
2. Market noise filter (ER realtime):
Only allow signals when current ER exceeds your chosen threshold (helps avoid choppy conditions).
________________________________________
Suggested usage (educational)
• Treat Bull/Bear as a regime label (state), not a prediction.
• Use Forward Hit% as an estimate of historical frequency, not a guarantee.
• If ER realtime is below threshold, consider it a noisier environment (higher whipsaw risk).
• Combine with your own risk rules and confirmation (structure, volatility, volume, HTF context, etc.).
________________________________________
Notes
• Results depend on symbol, timeframe, and loaded history.
• Statistics are historical summaries and can change as more data becomes available.
• This tool is intended for research and decision support, not as standalone trade advice.
________________________________________
Disclaimer
This script is for educational and informational purposes only and does not constitute financial, investment, or trading advice. Trading involves risk. You are responsible for your own decisions and risk management.
Besho SetupThe Moving Averages (The Colored Lines) These three lines are the backbone of this system. They are perfectly aligned for a bullish trend (Yellow > Green > Red) and act as protective shields for the price:
The Red Line (at the bottom): This is the "General Trend Line," typically the EMA 200 (200-period Exponential Moving Average).
Function: It separates the uptrend from the downtrend. As long as the price remains well above it, the trend is strongly "bullish." Notice that the price is very far from it, indicating strong momentum.
The Green Line (in the middle): This is the "Intermediate Support Line," typically the EMA 50 or EMA 100.
Function: It acts as a bounce zone (Dynamic Support) during deep corrections. The price is shown to respect this level well in the image.
The Yellow Line (closest to the price): This is the "Fast Momentum Line," typically the EMA 20 or EMA 21.
Function: It is used for quick entries and exits. As long as the candles are closing above it, the bullish wave is sharp and continuous.
Bollinger Bands + MA 50/100/200📊 Bollinger Bands + MA 50 / 100 / 200 Indicator
This indicator combines Bollinger Bands with key Moving Averages (50, 100, 200) to help you spot trend direction, volatility, and potential reversal zones in one clean view.
🔹 Bollinger Bands
* Customizable length & MA type (SMA, EMA, RMA, WMA, VWMA)
* Visualizes market volatility
* Upper & lower bands help identify overbought / oversold conditions
🔹 Moving Averages
* MA 50 → Short-term trend
* MA 100 → Medium-term trend
* MA 200 → Long-term trend & major support/resistance
* Easy toggle on/off for clean charting
💡 How to use
* Price near upper band + strong MA trend → possible continuation
* Price near lower band → watch for bounce or breakdown
* MA alignment (50 > 100 > 200) → bullish trend
* MA cross & BB squeeze → potential breakout incoming
⚠️ Best used with price action & risk management
📌 Works on stocks, crypto, forex, indices
ATR Daily & Weekly With Stop Buffer this script shows Daily & Weekly ATR and also add 10% Stop buffer calculation so you can add stop loss.
Triple EMA// Triple EMA indicator designed for TradingView free users.
// Displays 3 standard EMAs in one indicator slot.






















