Multi-Timeframe Market Structure [MattyBTradez]Provides a Bullish or Bearish analysis based on market structure for the 1M, 5M, 15M, 30M, 1H, 4H, and 1D timeframes.
אינדיקטורים ואסטרטגיות
Matrix Momentum OscillatorThe Matrix Momentum Oscillator is a sophisticated momentum indicator created by MatrixAlgo that combines trend analysis with oscillator dynamics to provide comprehensive market insights. This professional-grade tool transforms complex price action into clear, actionable signals.
Key Features:
Multiple Trend Algorithms - Choose between EMA, SMA, HMA, or RMA to match your trading preference and market conditions
Dynamic Volatility Bands - Bullish and bearish zones automatically adjust based on market volatility, highlighting extreme conditions
Dual-Line System - Main oscillator line paired with a signal line generates precise crossover opportunities
Visual Histogram - Color-coded bars show the momentum strength and direction at a glance
Smart Signal Filters - Optional volume and RSI filters help eliminate false signals and improve accuracy
Real-Time Dashboard - Live info panel displays current trend direction, oscillator value, and signal status
Extreme Zone Detection - Background highlighting alerts you when the oscillator reaches extreme bullish or bearish levels
Comprehensive Alert System - Notifications for buy/sell signals and extreme zone entries
Fully Customizable - Adjust colors, lengths, multipliers, and filters to create your perfect setup
Enhanced Trend & ML ScreenerThe Enhanced Trend & EMA Screener is a multi-symbol dashboard that aggregates trend, momentum, and structure signals across up to 8 user-defined assets.
Why this script is unique (The Problem & Solution): Traders often struggle to monitor multiple assets for confluence without cluttering their workspace with 8 different charts. Single-metric screeners (like simple EMA crosses) generate too much noise. This script solves this by fusing 5 distinct analytical engines into a single "Confluence Score" for each ticker, allowing you to monitor your entire watchlist from one chart.
How the Confluence Engine Works: Each ticker is analyzed in real-time against five criteria:
EMA Kinetics: Checks for crossovers on 10, 21, 50, and 89-period EMAs.
Ichimoku Structure: Checks if price is above (Bullish) or below (Bearish) the Cloud to ensure trades align with equilibrium.
ADX Strength: Filters out weak trends by comparing +DI and -DI.
ATR Regimes: Analyzes volatility expansion vs contraction. Bullish signals are stronger during volatility expansion.
Linear Regression Slope: Uses the slope of the regression line as a proxy for "predicted persistence."
Dashboard Features:
Symbol Row: Customizable inputs for up to 8 tickers (Default: SPY, QQQ, and Tech Giants).
Sentiment Matrix: Color-coded cells (Green/Red/Gray) for instant trend recognition.
Debug Table: An optional secondary table that shows the raw math (Price vs EMA values) for transparency.
MTF Overlay: Includes a Weekly trend check to ensure Daily signals align with the higher timeframe.
How to Use:
Setup: Add the script to your chart (e.g., SPY Daily).
Customize: Go to settings and input your preferred 8 tickers.
Scan: Look for "Full Green" rows. If a ticker is Bullish on EMA, Ichimoku, and ADX, it is a high-probability setup.
Alerts: The script generates alerts when any of your watched tickers trigger a key EMA crossover.
Disclaimer: The screener uses request.security to fetch data. While lookahead is disabled to prevent repainting, slight data lag may occur depending on the liquidity of the tickers selected.
SMC Alpha Sentiment Hunter [Crypto Trade]The SMC Alpha Sentiment Hunter is an institutional-grade decision-support tool developed by the Crypto Trade community.
Unlike traditional lagging indicators, this script focuses on Smart Money Concepts (SMC) by analyzing real-time market sentiment data directly from Binance Futures.
Key Features:
- Real-time Open Interest (OI) Tracking: Confirms institutional capital flow.
- Long/Short Ratio (LSR) Analysis: Identifies retail positioning to spot "liquidity traps".
- Volume & Volatility Filters: Built-in ATR and Volume Moving Average to validate entry signals.
- Multi-Asset Compatibility: Optimized for a broad range of Binance Futures pairs on the 15-minute timeframe.
Logic:
Signals are triggered when institutional interest (OI) rises while retail traders (LSR) are caught on the wrong side of the trend, confirmed by RSI exhaustion and strong volume.
Disclaimer: For educational purposes only. Trading involves risk.
CM RSI Description
This indicator plots ladder-style buy signals based on RSI oversold “cycles.”
BUY1 triggers after RSI closes ≤ Oversold for at least two consecutive candles.
Additional buys (BUY2, BUY3, …) can only occur after RSI re-arms by closing back above the oversold level, then returning oversold for two+ closes, and price is at least X% below the last entry price.
The “last entry” reference updates after every buy, allowing unlimited rebuys with a dynamic step-down.
Notes
Signals are generated on closed bars only (non-repainting behavior).
You can optionally set a Start Time to ignore earlier history and avoid off-screen state.
Choose whether the % drop check uses Close or Low depending on how strict you want confirmation.
Inputs
RSI length/source, oversold level, rebuy drop %, price check source, entry storage source, start time/baseline options, and display controls.
MACD Classic MT5 Style (2 Lines + Histogram)MACD Classic MT5 Style (แบบ MetaTrader 5) มีความแตกต่างจาก MACD ทั่วไปที่ใช้กันใน TradingView พอสมควรครับ นี่คือคำอธิบายว่ามันทำงานอย่างไรและอ่านค่าอย่างไรครับ:
1. ความแตกต่างสำคัญ (Key Difference)
MACD ทั่วไป (Standard):
มี 2 เส้น (เส้น MACD และ เส้น Signal)
ฮิสโตแกรม (แท่งกราฟ) คือ ส่วนต่าง (Gap) ระหว่าง 2 เส้นนั้น
MACD แบบ MT5 (Classic MT5):
เส้น MACD จะถูกวาดออกมาเป็น แท่งกราฟ (Histogram) แทนที่จะเป็นเส้น
เส้น Signal จะเป็น เส้น (Line) สีแดงพาดผ่านแท่งกราฟ
สรุปคือ: ในแบบ MT5 แท่งกราฟคือตัวพระเอก (MACD) ส่วนเส้นคือตัวช่วยกรอง (Signal)
Here is the English translation of the explanation:
MACD Classic MT5 Style vs. Standard MACD
The "Classic MT5 Style" MACD differs significantly from the standard MACD typically found on TradingView. Below is an explanation of its mechanics and how to interpret it.
1. Key Differences
Standard MACD (TradingView Default):
Displays 2 Lines (MACD Line and Signal Line).
The Histogram represents the difference (gap) between those two lines.
MT5 Style MACD (Classic):
The MACD value is plotted as a Histogram (bars) instead of a line.
The Signal Line appears as a standard Line (usually red) overlaying the histogram.
In summary: In the MT5 style, the Histogram represents the actual MACD Line, while the separate line acts as the Signal filter.
Daily Volume ProfileThis indicator is identical to the Fixed Range Volume Profile,
except that it automatically fixes the range to a daily basis.
Investment_Eagle Pro Fundamentals + Risk DashboardThe Investment_eagle Fundamentals + Risk Dashboard is a clean, dynamic fundamentals and risk dashboard displayed directly on your chart, built for fast and reliable stock analysis.
This indicator shows key valuation, profitability, balance-sheet, and cash-flow metrics for the chart’s main ticker, with the option to compare one additional symbol side-by-side.
Sharpe ratios (3M, 6M, 1Y, 3Y) are calculated using fixed DAILY data, ensuring they remain consistent across all chart timeframes.
Key features
Horizontal and Vertical comparison layouts
One-click metric toggles for a fully customizable dashboard
Optional background shading based on 1-year Sharpe zones
Performance-aware design to reduce request-limit issues
Ideal for long-term investors, fundamental analysis, and quick ticker-to-ticker comparisons — all without leaving the chart.
Strategy-Based Breakout Backtest by AlturoiThis educational strategy is designed to help active traders learn how to turn trading ideas into data-driven decisions by testing strategies against historical price action before risking real capital.
The script walks through the step-by-step backtesting workflow on TradingView, showing how strategy logic, entries, exits, and risk rules translate into measurable performance metrics such as win rate, drawdown, and expectancy.
What this script helps you learn:
How to backtest on TradingView using Pine Script strategies
How the Strategy Tester calculates performance results
How to interpret win rate, drawdowns, and consistency
How to validate breakout and support/resistance concepts
How to identify structural edge — or flaws — before going live
This is not a signal service or financial advice. It is an educational framework meant to help traders understand proper backtesting techniques and avoid common mistakes when evaluating trading strategies.
Use this script as a learning template to experiment, modify logic, and improve your understanding of how professional backtesting on TradingView works.
Sector Flow AnalysisSector Flow Analysis - Track market leadership and rotation across 11 major sector ETFs with real-time performance rankings.
Key Features:
Monitors all 11 S&P sector ETFs (XLK, XLF, XLI, XLU, XLV, XLP, XLY, XLB, XLRE, XLC, XLE)
Configurable lookback period (5-60 days) for performance calculation
Color-coded risk indicators: 🟢 Risk-On sectors leading (bullish), 🟠 Risk-Off sectors leading (defensive), 🟡 Neutral sectors
Display top N sectors (1-11) to declutter your chart
Fully customizable positioning, text size, and color
Clean, minimal table overlay that won't obstruct your chart
Use Cases:
Identify sector rotation patterns and market leadership changes
Gauge market sentiment (risk-on vs risk-off behavior)
Find opportunities by tracking which sectors are gaining/losing momentum
Confirm trend strength when your stock's sector is leading
Perfect companion to comprehensive market analysis tools for a complete picture of sector dynamics.
Range EncapsulatorWhen a user selects a start date and the desired duration, the specified date range will be highlighted. High and low data lines corresponding to this range will be drawn. Additionally, quarter-point interval lines from the previous data range will be displayed between the high and low lines of the current range, provided they fall within those boundaries.
Stochastic Oscillator (Arrows 20/80)Arrows added to study to indicate when the D line is crosses the 20 and 80 line
SigmaPulse NavigatorThe **zSigma Pulse Navigator** is a comprehensive, "Regime-Based" algorithmic trading tool designed for TradingView. Unlike standard technical indicators that generate continuous buy or sell signals regardless of market conditions, the zSigma Pulse functions primarily as a **market filter**. It first mathematically classifies the market environment as either "Efficient" (Trending) or "Inefficient" (Choppy) and only unlocks specific trading signals that are statistically valid for that specific state.
It is constructed from three distinct computational "engines" that work in unison to eliminate false signals:
### 1. The Regime Engine (The Filter)
The foundation of the zSigma Pulse is the **Choppiness Index (CI)**. The algorithm uses this to quantify the "Fractal Dimension" of price action.
* **Trend Mode (Green/Red Background):** If the Chop Index falls below a specific threshold (default 50), the system declares a Trend. The chart background lights up Green (Bullish) or Red (Bearish), permitting breakout strategies.
* **Chop Mode (Grey Background):** If the Chop Index rises above the threshold, the background turns Grey. This signals consolidation, warning the trader to ignore breakout signals and focus on mean reversion.
### 2. The Consensus Engine (The Vote)
To determine momentum direction, the indicator employs a proprietary "Voting System" that aggregates three independent indicators: **ADX** (Trend Strength), **RSI** (Momentum), and **SuperTrend** (Price Action).
* **The "2-out-of-3" Rule:** A directional signal (e.g., a Green Cloud) is only generated if at least **two** of these three engines agree. This consensus mechanism filters out "fake-outs" where price might move (SuperTrend) but lacks the internal energy (ADX) to sustain the move.
### 3. The Volatility Engine (The Cloud)
The tool visualises volatility through a **Dynamic Range**—a shaded cloud that expands and contracts based on market noise.
* It typically uses **Bollinger Bands** (based on Standard Deviation) or **Keltner Channels** (based on ATR).
* **In Trends:** The cloud expands, and the bottom of the cloud acts as a dynamic trailing stop.
* **In Chop:** The cloud contracts, creating a visual channel where traders can "buy the dip" (Diamond signals) at the bottom of the range.
### Key Features and Defaults
* **Institutional Tuning:** The indicator is hardcoded with "smart" defaults rather than standard retail settings. For example, it utilizes an **EMA 27** (a Fibonacci-adjacent number) rather than the standard 20 or 50 Moving Average, designed to catch institutional trends earlier.
* **Multi-Timeframe (MTF) Stack:** It automatically plots higher-timeframe Moving Averages (e.g., Weekly and Monthly lines) onto the Daily chart. This allows traders to ensure their trades align with the dominant structural trend without switching tabs.
* **Signal Shapes:**
* **Triangles:** Signal a **Breakout** (Trend Following).
* **Diamonds:** Signal a **Mean Reversion** entry (buying the bottom of the range in a pullback).
### Analogy
Think of the zSigma Pulse Navigator as a **sophisticated voltmeter** for the market.
Just as you wouldn't plug a sensitive appliance into an unstable power outlet, this tool measures the "current" of the market. If the volatility is erratic (Grey/Chop), it cuts the circuit to protect your capital. It only gives you the "Green Light" to trade when the voltage (Momentum) is stable and flowing in one direction.
RTH High Low Guardian-Pro# RTH Guardian - User Guide
## Overview
RTH Guardian is a sophisticated intraday trading indicator designed for Regular Trading Hours (RTH) sessions on futures markets like NQ and ES. It tracks the session's highest high and lowest low candles, creating dynamic support and resistance zones while providing real-time quality metrics to help you make informed trading decisions.
Think of this indicator as your trading guardian - it watches over the market structure during RTH, identifies key levels, and warns you when conditions might be unfavorable for entry.
---
## Core Concept: The Three-Line System
When a new session high or low is established, the indicator creates three horizontal lines:
### For Highs (Short Setup):
- **Red Line (High)**: The absolute high of the breakout candle
- **Green Line (Low)**: The low of that same breakout candle
- **Blue Line (HL/2)**: The midpoint - your potential entry zone for shorts
### For Lows (Long Setup):
- **Green Line (Low)**: The absolute low of the breakout candle
- **Red Line (High)**: The high of that same breakout candle
- **Blue Line (HL/2)**: The midpoint - your potential entry zone for longs
The philosophy is simple: trade from the middle, not the extremes. The HL/2 line represents a balanced entry point where you're neither chasing the high/low nor entering too early.
---
## Understanding the Label Metrics
Each HL/2 line displays a floating label with five key pieces of information:
### 💲 Price
The exact price level of the HL/2 midpoint. This is your potential entry price.
**Example**: `💲 21450.75`
### 🛑 Delta (Δ)
The distance between the HL/2 and the opposite extreme of the breakout candle.
- **For shorts**: Distance from HL/2 to the candle's low
- **For longs**: Distance from HL/2 to the candle's high
This tells you how much "room" you have for the trade to breathe. A larger delta generally means more tolerance for adverse movement.
**Example**: `🛑 Δ 15.50` (15.50 points of room)
### ⏰ Time Since Last Hit
How many bars ago the HL/2 level was last touched by price action.
This is your "freshness" indicator. The longer price stays away from a level, the less relevant it becomes as immediate support/resistance.
**Example**: `⏰ 3 bars ago` (Price tested this level 3 bars back)
**Interpretation**:
- 1-3 bars: Very fresh, high relevance
- 4-8 bars: Cooling off
- 9+ bars: Level is aging, price has moved on
### 🎯 Hit Percentage
The quality metric. Shows how many times the HL/2 has been tested out of the total bars since creation.
**Formula**: (Number of hits / Total bars) × 100
**Example**: `🎯 2/5 = 40.0%`
**Color Coding** (when "Use Quality Color" is enabled):
- **Gray** (0%): Untested, no data yet
- **Blue** (<20%): Low interaction, level mostly ignored
- **Green** (20-39%): Moderate quality, decent level
- **Yellow** (40-59%): High interaction, strong level
- **Red** (≥60%): Excessive grinding, potential chop zone
**Trading Insight**: Green and Blue zones often represent the best risk/reward opportunities. Yellow and Red suggest the market is struggling with the level - proceed with caution or avoid.
### 🚀 Breakaway Status
Tracks momentum away from the level - a one-time event that never updates.
**For Highs (Short)**: First candle where the **high** drops below the HL/2
**For Lows (Long)**: First candle where the **low** rises above the HL/2
**Example**: `🚀 1st B-away` (Breakaway achieved on the very first candle)
**Interpretation**:
- **1st-2nd B-away**: Explosive momentum, strong directional move
- **3rd-5th B-away**: Healthy progression away from level
- **6th+ B-away**: Slower momentum, level still has gravity
- **No B-away**: Price keeps returning to level, not breaking free
Early breakaway (1st-3rd) suggests the level is being respected and momentum is strong in the opposite direction. Late or no breakaway suggests the level is "sticky" and might still be in play.
---
## The Guardian Analysis Table
The table in the corner provides a macro view of market conditions with three sections:
### Chop Zone Analysis (Top)
Detects when price is trapped between the High's Low and Low's High - a range-bound danger zone.
**Status Indicators**:
- **Clear** (Green): Clean trending conditions, no overlap
- **Wide Range** (Yellow): Some overlap but tradeable
- **TIGHT CHOP** (Orange): Dangerous grinding between levels
**Example**: `Chop: TIGHT CHOP (4x)` - Price has bounced between the zones 4 times. Stay out or trade breakouts only.
### SHORT Section (Red)
Metrics for potential short setups from the High's HL/2:
- **Seq-H (Sequential Highs)**: How many consecutive higher highs have formed
- Green (<5): Healthy trending
- Yellow (5-9): Extended, caution
- Red (≥10): Severely overextended
- **MFE (Maximum Favorable Excursion)**: Best profit potential if you shorted from HL/2
- Green (>100% of Δ): Excellent movement
- Blue (50-100%): Good movement
- Orange (<50%): Limited movement
- **MAE (Maximum Adverse Excursion)**: Worst drawdown if you shorted from HL/2
- Green (<50% of Δ): Minimal heat
- Yellow (50-80%): Moderate heat
- Red (>80%): Significant heat taken
### LONG Section (Green)
Mirror metrics for potential long setups from the Low's HL/2.
Same interpretation as SHORT section but for long positions.
---
## Trading Psychology: What This Indicator Teaches You
### The Cave Diving Parallel
Just as a cave diver checks their air supply, depth, and safety lines before proceeding deeper, RTH Guardian asks you to check your trading environment before taking a position:
1. **Air Supply = Delta**: Do you have enough room for the trade to work?
2. **Depth Gauge = Hit Percentage**: Is this level quality or are you diving into murky waters?
3. **Safety Line = Breakaway**: Is there momentum carrying price away from danger?
4. **Visibility = Chop Status**: Can you see clearly or is it too stirred up?
### Self-Sabotage Patterns It Reveals
**Pattern 1: Chasing**
If you're tempted to enter when "bars ago" shows 0-1 and hit percentage is already Yellow/Red, you're chasing a grinding level. The indicator is warning you: "This level is being fought over. Choose another entry or wait."
**Pattern 2: Entering Extended Moves**
Sequential highs/lows in Red territory means you're late to the party. The mountain metaphor applies: you're trying to summit a peak when you should have started at base camp.
**Pattern 3: Ignoring the Chop**
Trading when "TIGHT CHOP" shows is like trying to swim against a riptide. The indicator is literally telling you the market is trapped. Step aside.
**Pattern 4: Disrespecting Momentum**
"No B-away" after many bars means price won't leave the level alone. That's the market telling you the battle isn't decided. Don't force a directional bias.
---
## Optimal Usage Workflow
### 1. Session Start (9:30 AM ET)
Watch for the first high and low to establish. Don't rush - let the levels prove themselves.
### 2. Level Creation
When a new high/low forms (indicated by red/green circles), observe:
- Is the Delta substantial? (>10 points on NQ is generally good)
- Check Guardian table: Are we in clear or chop conditions?
### 3. Wait for Quality
Let the level develop. Watch the hit percentage and bars ago metrics update.
**Ideal Entry Window**:
- Hit percentage: Blue or Green zone
- Bars ago: 2-5 (not too fresh, not too stale)
- Breakaway: Achieved within 1st-3rd candle
- Chop status: Clear
- MFE showing good follow-through, MAE manageable
### 4. Avoid When
- Chop status shows TIGHT CHOP
- Hit percentage in Red zone (≥60%)
- Sequential highs/lows ≥10 (severely extended)
- No breakaway after 8+ candles
- MAE significantly exceeds MFE
### 5. Position Management
Use the Delta as your baseline for stops and targets:
- Stop loss: Beyond the extreme (high/low line)
- Target: At minimum 1× Delta, ideally 2× Delta from HL/2
---
## Visual Indicators at a Glance
### Circles
- **Red circle**: New session high established
- **Green circle**: New session low established
### Background Shading
- **Light red shade**: New high breakout zone
- **Light green shade**: New low breakout zone
- **Light gray shade**: Chop zone (price between High's Low and Low's High)
### Line Colors (Default)
- **Red**: Extreme highs
- **Green**: Extreme lows
- **Blue**: Entry zones (HL/2 midpoints)
---
## Common Questions
**Q: Why does the level sometimes update frequently?**
A: During volatile sessions, new highs/lows form rapidly. This is normal. The Guardian table's Sequential count will warn you when it becomes excessive.
**Q: What if both HIGH and LOW labels show high hit percentages?**
A: You're in a consolidation phase. The Chop indicator should reflect this. Step aside and wait for a clean breakout.
**Q: Can I use this on other timeframes?**
A: Yes! The indicator allows you to select 1, 5, 15, 30, or 60-minute timeframes. However, it's designed for RTH sessions (9:30 AM - 4:00 PM ET), so it works best on instruments with distinct RTH hours.
**Q: What's the difference between "bars ago" and breakaway?**
A: "Bars ago" tracks the last time price tested the HL/2 level. Breakaway tracks whether price has definitively moved away from the level (one-time event). You can have a recent hit (bars ago = 1) but no breakaway if price keeps returning.
**Q: Should I always wait for breakaway?**
A: Not necessarily. Breakaway indicates momentum, which is favorable but not mandatory. However, if you see "No B-away" after 10+ candles, that's a red flag that the level lacks conviction.
---
## Advanced Tips
### 1. Confluence with Other Analysis
RTH Guardian works best when combined with your existing analysis:
- Use it to confirm entries from your primary system
- Let it keep you out of low-quality setups
- Treat it as a quality filter, not a standalone signal generator
### 2. MFE/MAE Learning
Over time, study the MFE/MAE ratios in the Guardian table:
- If shorts consistently show high MAE and low MFE, the market has an upward bias
- If longs show the opposite, downward bias exists
- When both directions show high MAE, you're in chop - reduce position sizing
### 3. Session Personality
Each RTH session has its own character:
- Trend days: Levels update frequently, Sequential counts high, one direction dominant
- Range days: Chop status persistent, hit percentages high, MFE/MAE balanced
- Breakout days: Early levels hold, low hit percentages, strong breakaway signals
### 4. Emotional Discipline Integration
Before entering any trade, verbally state:
- "The Delta is X points"
- "Hit percentage is Y% (color)"
- "Breakaway was Zth candle"
- "Chop status is "
This forces you to acknowledge what the indicator is telling you. If you can't justify the entry using these metrics, don't take it.
---
## The Mountain Philosophy
Remember the wisdom from "The Mountain Is You": self-sabotage in trading often comes from ignoring the signs that are clearly visible. RTH Guardian puts those signs directly on your chart.
When you override a Red hit percentage or enter during TIGHT CHOP, you're not "seeing something the indicator missed" - you're engaging in the very self-sabotage patterns that keep you from consistency.
The indicator doesn't predict the future. It holds up a mirror to current market structure and asks: "Given what you can see right now, is this a quality opportunity?"
Your edge isn't in being right every time. It's in consistently taking only the setups where the conditions stack in your favor.
RTH Guardian helps you do exactly that.
---
## Customization Options
The indicator is highly customizable through the settings panel:
### Line Appearance
- Colors for all lines (High, Low, HL/2 for both sides)
- Line thickness (1-10)
- Line style (Solid, Dashed, Dotted)
### Label Settings
- Background colors for HIGH and LOW labels
- Text color
- Font size (Tiny, Small, Normal, Large, Huge)
- Quality color mode (auto-colors based on hit percentage)
### Guardian Table
- Position (9 locations available)
- Font size
- Sequential trend warning threshold (default: 5 bars)
- Grinding trend warning threshold (default: 10 bars)
- Chop zone multiplier (default: 1.5× Delta)
---
## Final Thoughts
RTH Guardian is not a holy grail. It's a discipline tool.
It won't make you a profitable trader overnight, but it will make you honest about the quality of your entries. Over time, that honesty compounds into consistency.
Use it wisely, respect its warnings, and let it guide you away from self-sabotage.
Good trading requires good information + emotional discipline. RTH Guardian provides the information. The discipline is still on you.
---
*"The mountain is you. The obstacles you face are often the ones you create. RTH Guardian helps you see those obstacles before you create them on your chart."*
Long-term KST (Know Sure Thing)Description
Long-term Know Sure Thing (KST) oscillator, specifically adapted for non-24h markets such as stocks, indices, ETFs and futures.
This version correctly scales the weekly ROC periods based on the actual trading week length and daily session duration of the instrument — making it accurate across different asset classes (European indices, US equities, crypto, etc.).
Key features:
• Fully customizable trading week (5 days for most stock markets, 7 days for crypto/24h markets)
• Customizable daily session length (8.5h for FTSE MIB/DAX, 6.5h for US equities, 24h for crypto/forex)
• Automatically adjusts bar count per week on any chart timeframe (including Weekly)
• Classic Martin Pring KST parameters (10/13/15/20 ROC weeks, 10/13/15/20 SMA weeks, 1-2-3-4 weighting)
• Includes signal line (SMA of KST) and visual fill between KST and signal (green/red)
What is the Long-term KST used for?
The KST (Know Sure Thing) is a momentum oscillator created by Martin Pring to detect major trend changes, confirm the primary trend direction, and identify significant reversals in medium- to long-term cycles (weeks to months).
Main practical uses:
• Major trend reversals: KST crossing above/below signal line
• Primary trend confirmation: KST above/below zero line
• Classic divergences: Price vs KST divergences often precede important tops/bottoms
• Cycle identification: Helps spot the end of multi-month corrections or the start of new bull/bear phases
• Trend-following filter: Stay long when KST > 0 and rising, stay short when KST < 0 and falling
It is especially powerful on major indices (FTSE MIB, DAX, SPX, NDX, RUT, CAC40, Nikkei…) because it captures institutional money flow with fewer, higher-quality signals compared to faster oscillators.
Best used on:
• Daily, 4H, Weekly charts
• European indices (FTSE MIB, DAX, IBEX…)
• US indices/ETFs (SPX, NDX, RUT…)
• Crypto pairs (set week_length=7, session_duration=24h)
Enjoy trading the big-picture momentum!
SETUP XANDAO ETFEste setap é usado para operar nos futuros, usamos essas métricas para poder achar entradas
MartinGale Average Simulator - By LowisOriginality and Utility
This script is not a traditional indicator nor a cosmetic variation of existing tools such as moving averages, oscillators, or common indicator combinations. It is a deterministic averaging and risk modeling engine, specifically designed to simulate, analyze, and validate multi-order averaging (DCA) structures under fully configurable conditions.
The originality of this script lies in the fact that it does not generate trade signals and does not attempt to predict market direction. Instead, it models the mathematical behavior of an entire chained order structure, allowing the user to quantitatively evaluate how an averaging strategy behaves as price evolves.
The script continuously computes and displays:
The dynamic average entry price after each additional order.
The progressive position size growth as orders are added.
The total capital committed, factoring in leverage.
The individual PnL per order and the aggregated PnL of the entire structure, both in absolute and percentage terms.
The real account usage percentage as the averaging sequence progresses.
The sensitivity of the structure to changes in the current or simulated price.
Unlike classic indicators that operate on historical price data to infer probabilities, this tool functions as a deterministic planning and risk-audit system. Its purpose is to help traders answer structural questions that standard indicators do not address, such as:
How much capital is actually committed by the time the Nth order is reached.
The exact resulting average price given a custom percentage distribution across orders.
The structural drawdown required before an averaging strategy becomes profitable.
How changes in leverage, number of orders, or percentage distribution affect overall risk exposure.
The script allows full user control over key parameters, including:
Number of averaging orders.
Custom percentage offsets per order.
Account capital and leverage.
Entry price and current/simulated price.
Decimal precision for price and asset quantity.
Clear visualization through tables and price-level graphics.
This makes the script a trade engineering and risk modeling tool, rather than a signal-based indicator. Its value lies in structural analysis and execution planning, a category not covered by standard open-source scripts in the public library.
The source code is intentionally kept private because the internal averaging, position-sizing, and risk-accumulation engine represents proprietary logic that can be directly reused for commercial products or automated systems. Disclosing this implementation would allow immediate replication without providing additional educational or functional value to the end user, who already has full operational control through exposed inputs.
For these reasons, the script is functionally original, technically useful, and fully justifies closed-source protection, in compliance with TradingView’s publication guidelines.
🔧 How the Indicator Works (Technical Overview)
This indicator implements a deterministic averaging (DCA) simulation engine designed to accurately model the mathematical, financial, and percentage-based behavior of a leveraged position composed of multiple sequential orders.
Unlike traditional indicators that only display static levels or visual signals, this script reconstructs the full internal structure of a position, order by order, allowing the user to analyze its complete evolution under different price scenarios.
📌 Entry Price Calculation per Order
Starting from an initial entry price, the user defines a set of percentage-based distances for each averaging order.
Each new entry price is calculated as:
A percentage deviation relative to the original entry price
Adjusted by trade direction (long or short)
Dynamically rounded according to user-defined price precision
As a result, each order has an independent, deterministic, and reproducible price, without relying on external data or real trade execution.
📌 Position Size and Capital Usage Calculation
For every order, the engine computes:
Asset quantity acquired based on allocated capital and leverage
Actual margin used considering leverage
Progressive accumulation of total deployed capital
Account capital usage percentage per order and in total
This allows the trader to clearly visualize how real account exposure grows as additional averaging orders are added — something that is not evident in standard DCA tools.
📌 Average Entry Price Recalculation
After each new order, the indicator recalculates the weighted average entry price of the entire position by combining:
The previous average price
The new entry price
The updated total asset quantity
This accurately reflects how the real break-even level evolves as the position is averaged, which is critical for aggressive averaging or martingale-style strategies.
📌 Individual and Cumulative PnL Computation
The script supports two evaluation modes:
Current market price
User-defined simulated price, intended for hypothetical or stress-test scenarios
Using the selected price, the indicator calculates:
Individual PnL per order
Total cumulative PnL of the position
PnL percentage relative to the capital used in each order
PnL percentage relative to total deployed capital
Each order maintains its own mathematical identity, avoiding common errors where PnL is diluted or calculated solely against the averaged price.
📌 Structured and Objective Visualization
All calculations are represented through:
Independent horizontal price lines per order
Informational labels anchored to their corresponding price levels
Tabular summaries displaying the exact state of each order, row by row
No classical indicators, predictive signals, or discretionary filters are used.
The system is 100% mathematical, deterministic, and reproducible.
📌 Purpose and Practical Utility
This indicator is designed to:
Evaluate the mathematical viability of averaging schemes
Analyze real leverage-based risk exposure
Compare price scenarios before execution
Understand how small price movements affect large accumulated positions
Identify points where capital usage becomes inefficient or dangerous
It does not execute trades and does not generate trading signals.
Its purpose is structural position analysis, not prediction.
🧭 How to Use the Indicator (Step-by-Step Guide)
This indicator does not require prior trading experience to be used.
It operates entirely through configurable parameters and updates automatically in real time.
1️⃣ Define the Initial Entry Parameters
Start by setting the initial entry price.
This value represents the price at which the first position entry is opened.
Next, define:
Account capital: the total available capital
Entry percentage: the percentage of the account used in the first order
The indicator automatically calculates:
Capital invested
Asset quantity acquired
Real position exposure
2️⃣ Select the Position Direction
Choose whether the position is:
Long (benefits from price increases), or
Short (benefits from price decreases)
This selection automatically adjusts:
Price movement direction
PnL calculations
Averaging percentage behavior
No additional configuration is required.
3️⃣ Configure Leverage and Number of Orders
Set the leverage used for the position.
This value is applied to calculate:
Required margin per order
Total exposure relative to account capital
Then, specify the number of averaging orders.
Each order represents an additional entry that would be placed if price moves against the position.
4️⃣ Define Averaging Percentages
Enter the percentage offsets for each averaging order, separated by commas.
Example:
4, 8, 13, 19, 39, 54
Each value represents how far (in percentage terms) price must move from the original entry before adding a new order.
The indicator automatically calculates:
Exact price level of each order
Updated average entry price
Capital deployed per order
Total capital usage
5️⃣ (Optional) Set a Simulated Price
Optionally, a simulated price can be defined.
This allows users to:
Evaluate hypothetical market scenarios
Analyze deep drawdowns
Simulate price recoveries
Study PnL behavior without waiting for live market movement
Any change to this value instantly recalculates all results.
6️⃣ Interpreting the Results
Once configured, the indicator displays in real time:
Individual order prices
Updated average entry price
Capital invested per order and in total
Individual and cumulative PnL
PnL percentage relative to deployed capital
No buttons or manual refresh are required.
Any parameter change updates the entire simulation automatically.
🎯 Important Notes
The indicator does not execute trades
No buy or sell signals are generated
All calculations are purely mathematical and deterministic
Its purpose is to visualize, analyze, and understand how a multi-entry averaging position behaves under different market conditions.
🔒 Closed-Source Justification
This script is published as closed-source because it implements a custom multi-order position simulation engine that goes beyond standard indicator calculations.
Internally, the script relies on a structured calculation framework that manages:
Order-to-order dependency
Cumulative capital usage across multiple entries
Dynamic average price recalculation
Individual and aggregated PnL modeling
State-aware recalculation logic tied to user-defined parameters
The value of the script resides not in isolated formulas, but in the overall architecture and calculation flow that coordinates these elements into a coherent position analysis model.
Exposing the full source code would effectively reveal the complete framework, making the script trivial to replicate and removing its practical uniqueness.
Despite being closed-source, the script provides full transparency at the output level, allowing users to verify all calculated values directly on the chart through tables, labels, and price-level visualizations.
For this reason, the script is shared as a closed-source publication while still offering complete analytical clarity and educational value to the end user.
⚠️ Disclaimer
This indicator does not provide trade signals, nor does it place or manage real orders.
It is intended strictly for educational, analytical, and risk evaluation purposes.
SMC Alpha Sentiment Pro [Binance Futures Data]The SMC Alpha Sentiment Pro is an advanced decision-support tool developed for the Crypto Trade community. Unlike traditional lagging indicators, this script focuses on Market Sentiment and Smart Money Concepts (SMC) by analyzing real-time data from Binance Futures.
🔍 Key Data Points:
Open Interest (OI): Tracks new capital entering the market to confirm trend strength.
Long/Short Ratio (LSR): Identifies retail positioning. We look for "Smart Money" opportunities when retail (LSR > 1) is trapped or providing liquidity for institutional moves.
RSI & ATR: Used to identify exhaustion levels and ensure sufficient volatility for the trade.
Volume Filter: A built-in security layer that validates signals only when current volume exceeds the 20-period average.
🚥 Signal Logic:
SMC LONG: Triggered when OI is rising, LSR is below 1 and falling (retail selling), RSI is showing extreme strength (>= 68), and volume is surging.
SMC SHORT: Triggered when OI is rising, LSR is above 1 and rising (retail buying), RSI is showing extreme weakness (<= 32), and volume is surging.
📈 Best Practices:
Timeframe: Optimized for 15-minute (15M) charts.
Exchange: Specifically designed to pull ticker data from Binance Futures.
Disclaimer: This script is for educational purposes only. Trading involves significant risk.
PivotStrike Pro 1M + Time-Anchored Pivots
# PivotStrike Pro 1M — Supertrend Style + Time-Anchored Pivots
**PivotStrike Pro 1M (PSP1M-ST)** blends a fast Supertrend-style trend engine with **time-anchored major S/R pivots** that stay locked to the candles as you scroll and zoom. It’s designed for **clear, one-shot Buy/Sell flips** on the 1-minute chart while keeping your chart readable and decisive during strong moves.
## What it does
* **Supertrend Rails (non-repainting on close)**
Green rail sits **below** price in uptrends; red rail sits **above** price in downtrends. When the regime flips, you get a **single Buy or Sell flag**—no re-printing on the same bar.
* **Time-Anchored S/R Pivots**
Confirms **major swing highs/lows** using left/right pivot windows and anchors each level to the bar’s timestamp. Lines extend to the right and **remain aligned with price** when you zoom.
* **Simple, production-ready alerts**
Built-in alerts for Buy/Sell flips so you can route to notifications or bots.
## Why it’s different
* **One-shot signals** you can trust at regime change (no clusters of duplicate arrows).
* **Locked pivots** using `xloc=bar_time`, so support/resistance doesn’t drift when you change the view.
* **HTF option** for the Supertrend engine if you want to smooth 1-minute noise.
## Inputs (quick guide)
* **Indicator Timeframe**: leave blank for chart timeframe (1M), or choose a higher TF to smooth (e.g., 3M/5M).
* **ATR Period / ATR Multiplier**: default **10 / 3.0** (same feel as classic Supertrend).
* **Source**: HL2 (default).
* **Change ATR Method**: RMA(TR) on; toggle off to use `ta.atr`.
* **Show Buy/Sell Signals / Highlighter**: visual preferences.
* **Major S/R (Pivots)**: enable, choose left/right bars (defaults 8/8), line count, style, and transparency.
## Recommended 1M presets
* **ATR Period 10**, **Multiplier 3.0**, **Source HL2**, **Highlighter ON**, **Signals ON**.
* If the rail feels too tight/loose: nudge Multiplier **2.5–3.5**.
* Live scalping? Keep timeframe on **Chart**. Want fewer flips? Try **3M/5M** engine via *Indicator Timeframe*.
## How to read it
* **Trend**: Follow the rail—green below = uptrend bias; red above = downtrend bias.
* **Buy/Sell**: Acts at the **confirmed regime flip**. Use pivots to assess nearby S/R for entries, partials, or stop placement.
* **Pivots**: Recent highs (red lines) and lows (green lines). Breaks/holds around these areas often mark continuation vs. fade zones.
## Alerts
* **PSP1M-ST: BUY / SELL** — triggers on confirmed flips.
Tip: Pair with a simple “rail touch/close beyond” rule in your strategy if you want automation.
## Repainting & HTF notes
* The rail and flags **do not repaint after bar close** on the chart timeframe.
* If you pick a **higher Indicator Timeframe**, the engine only finalizes when that **HTF bar closes** (normal behavior). For pure 1M confirmation, leave the timeframe blank.
## Best practices
* Use pivots to avoid chasing into resistance/support.
* Combine with volume or session filters (e.g., avoid lunch chop).
* Scale risk by distance to the rail; trail behind the rail for simple exits.
> **Disclaimer**: This script is for educational use only. Markets carry risk. Always test and manage risk before trading.
A-Share Broad-Based ETF Dual-Core Timing System1. Strategy Overview
The "A-Share Broad-Based ETF Dual-Core Timing System" is a quantitative trading strategy tailored for the Chinese A-share market (specifically for broad-based ETFs like CSI 300, CSI 500, STAR 50). Recognizing the market's characteristic of "short bulls, long bears, and sharp bottoms," this strategy employs a "Left-Side Latency + Right-Side Full Position" dual-core driver. It aims to safely bottom-fish during the late stages of a bear market and maximize profits during the main ascending waves of a bull market.
2. Core Logic
A. Left-Side Latency (Rebound/Bottom Fishing)
Capital Allocation: Defaults to 50% position.
Philosophy: "Buy when others fear." Seeks opportunities in extreme panic or momentum divergence.
Entry Signals (Triggered by any of the following):
Extreme Panic: RSI Oversold (<30) + Price below Bollinger Lower Band + Bullish Candle Close (Avoid catching falling knives).
Oversold Bias: Price deviates more than 15% from the 60-day MA (Life Line), betting on mean reversion.
MACD Bullish Divergence: Price makes a new low while MACD histogram does not, accompanied by strengthening momentum.
B. Right-Side Full Position (Trend Following)
Capital Allocation: Aggressively scales up to Full Position (~99%) upon signal trigger.
Philosophy: "Follow the trend." Strike heavily once the trend is confirmed.
Entry Signals (All must be met):
Upward Trend: MACD Golden Cross + Price above 20-day MA.
Breakout Confirmation: CCI indicator breaks above 100, confirming a main ascending wave.
Volume Support: Volume MACD Golden Cross, ensuring price increase is backed by volume.
C. Smart Risk Control
Bear Market Exhaustion Exit: In a bearish trend (MA20 < MA60), the strategy does not "hold and hope." It immediately liquidates left-side positions upon signs of rebound exhaustion (breaking below MA20, touching MA60 resistance, or RSI failure).
ATR Trailing Stop: Uses Average True Range (ATR) to calculate a dynamic stop-profit line that rises with the price to lock in profits.
Hard Stop Loss: Forces a stop-loss if the left-side bottom fishing fails and losses exceed a set ATR multiple, preventing deep drawdowns.
3. Recommendations
Target Assets: High liquidity broad-based ETFs such as CSI 300 ETF (510300), CSI 500 ETF (510500), ChiNext ETF (159915), STAR 50 ETF (588000).
Timeframe: Daily Chart.
[STRATEGY] Adaptive Multi Factor Trend Trading v1.1Daily Filters
Close vs. short/long daily SMAs (customizable) defines directional priority.
Use the daily Short Long MA spread (or ATR‑normalized) to filter out range‑bound conditions and reduce false breakouts.
30‑Minute Entry Logic
Buy
Daily bullish regime confirmed
High breaks above the trend
Protected by trailing take‑profit and fixed stop‑loss.
Sell #1
Daily bearish regime confirmed
Low breaks below the trend
Long MA slope must be strong (trend‑quality filter).
Sell #2
Day‑session only, limited to high‑probability hours
Triggered by an aggregated bear score (multi‑factor stack) + a downward linear‑regression slope
Friday uses special thresholds/intervals (event‑risk control).
Multi‑Factor Framework
MACD, RSI, Stoch (KD), Ichimoku, CCI, PSAR, Williams %R, Heikin Ashi, Bias, Force Index, plus regression‑slope.
Signals are stacked into bull/bear totals and used as filters or weights—no single indicator dominance.
Risk & Position Management
Fixed TP/SL + trailing TP across entry types
Position size adapts to recent performance (loss‑streak counter) and slope state
Auto pause when the loss streak hits the threshold (configurable duration).
Trading‑Day Controls
Optional pre‑holiday blackout list
Date‑range limiter for backtests or deployment windows.
Design Intent
The goal is to keep net P&L stable while lifting win rate.
In strong‑trend environments, the system leans into trend signals (Sell #1 / Buy).
In short‑term chop, Sell #2 timing and the slope filter reduce noise and avoid low‑quality entries.
MR Generic - 4H OptimizedThis indicator plots a Z-score based on linear regression over the last 80 bars (about 13–14 days on the 4-hour chart), showing how far the current price has deviated from its trend.
Blue line = Z-score
Red shading = Overbought (above 2.2)
Green shading = Oversold (below -2.2)
Darker red/green = Extreme levels (beyond ±2.8)
Small circles mark regular reversal signals when price starts turning back toward the mean. Tiny diamonds highlight rare, extreme exhaustion points.
Perfect for spotting potential mean reversion setups on stocks in the 4 hour






















