DEMA200 + EMA9/20/50 + VWAP (Paul Laurent Trading)This script is an all-in-one overlay indicator for TradingView that combines a **DEMA 200**, **EMA 9/20/50**, and TradingView’s **anchored VWAP** (the same VWAP logic as the default VWAP indicator). It’s designed to keep your chart clean while showing key trend and mean-reversion references in one place.
**How to use it**
* Add it to your chart like any indicator: open **Indicators**, search the script name, and click **Add to chart**.
* Use **EMA 9/20/50** for short-term trend and pullback structure (9 = fastest, 50 = slowest).
* Use **DEMA 200** as your long-term trend filter and major dynamic support/resistance.
* Use **VWAP (middle blue line)** as the intraday “fair value” reference. Price above VWAP generally shows stronger demand; below VWAP suggests weaker demand.
* Open the script **Settings** to customize:
* **Colors** and **Strength (line width)** for each line
* VWAP **Anchor Period** (Session, Week, Month, etc.)
* Optional VWAP **Bands** (off by default, can be enabled anytime)
Indicators and strategies
Demand Index StrategyDescription:
This strategy is an automated trading system based on a faithful replica of the Sierra Chart "Demand Index" (Study ID 139). It utilizes the complex pressure/volume calculations developed by James Sibbet to identify high-probability reversal points from oversold territory.
📈 Strategy Logic: "The Deep Recovery"
The Demand Index combines price and volume to measure buying vs. selling pressure. This strategy specifically looks for a "Deep Recovery" scenario where selling pressure exhausts itself and momentum shifts back to the upside.
The Entry Conditions (Long Only):
Deep Oversold Zone: The Demand Index must have visited the deep negative zone (-45) within the recent lookback period. This ensures we are watching a heavily sold-off asset.
Recovery Trigger: The Demand Index must cross up through the recovery level (-30).
Momentum Confirmation: At the moment of the crossover, the Demand Index must be above its Signal Line (EMA 10) to confirm the immediate trend direction.
⚙️ Default Settings
Buy/Sell Power Length: 10 (Shorter term focus for reaction speed).
Buy/Sell MA Length: 10.
Signal EMA Length: 10.
Deep Level: -45 (Configurable).
Trigger Level: -30 (Configurable).
🛡️ Risk Management
The strategy includes built-in inputs for risk management:
Stop Loss: Defaults to 2.0%
Take Profit: Defaults to 4.0%
Note: These can be toggled off or adjusted in the settings menu.
🔍 About the Indicator Source
This script replicates the specific math found in Sierra Chart's documentation for Study ID 139. This includes the unique H0/L0 volatility scaling, where the calculation utilizes the High and Low of the very first loaded bar to normalize the exponential decay of the buying/selling pressure.
Disclaimer: Past performance is not indicative of future results. This strategy is provided for educational purposes and demonstrates how to automate James Sibbet's Demand Index based on specific Sierra Chart logic.
TTM Squeeze (ThinkOrSwim style)This script is a TradingView implementation of the classic TTM Squeeze indicator popularized in ThinkOrSwim.
It is not a line-by-line replica of the proprietary ThinkOrSwim study, but it follows the same core logic and purpose:
detecting volatility compression and release, combined with directional momentum, to anticipate strong price moves.
How it works
1. Squeeze condition (volatility)
Bollinger Bands (20, 2.0) are compared against Keltner Channels (20, 1.5).
When Bollinger Bands are inside the Keltner Channel, volatility is compressed (squeeze ON).
When Bollinger Bands expand outside the Keltner Channel, volatility is released (squeeze OFF).
This is shown by the dots on the zero line:
Red dots → Squeeze ON (low volatility, market coiling)
Green dots → Squeeze OFF (volatility expanding, potential move)
2. Momentum histogram
Momentum is calculated using a linear regression of price relative to a dynamic equilibrium level (similar to ThinkOrSwim’s internal logic).
The histogram shows both direction and acceleration.
Histogram colors:
Bright green → Momentum above zero and increasing (bullish acceleration)
Dark green → Momentum above zero but decreasing (bullish deceleration)
Bright red → Momentum below zero and decreasing (bearish acceleration)
Dark red → Momentum below zero but increasing (bearish deceleration)
How to use it
The indicator is best used in three steps:
Wait for red dots (squeeze ON) → volatility compression.
Observe the histogram direction building during the squeeze.
When dots turn green (squeeze OFF), look for entries in the direction of the histogram, ideally aligned with market structure.
This indicator is not meant to be traded mechanically.
It works best when combined with:
price structure
support/resistance
higher-timeframe context
Notes
Due to platform differences, results may vary slightly from ThinkOrSwim on individual bars.
Conceptually and operationally, the indicator fulfills the same role and trading logic as the original TTM Squeeze.
External Market Structure from BBCits a external market structure from bbc for highs and lows for trend analysis
Automatic MTF PivotsAutomatic MTF Pivots plots horizontal lines at Daily, Weekly, and Monthly Pivots as well as Support and Resistance Levels. In the Input Panel, you can select which levels to be flagged on the chart as well as their colors.
It can be shown on any timeframes with any symbols and provide reliable support and resistance.
Automatic MTF Pivots can be used in isolation or work with any other trading systems. Especially when combined with the AccuTrade System, it can provide solid R/S Levels to further confirm the signals.
MATT 3This indicator helps identify high-probability trend shifts and continuation setups by combining momentum, trend strength, and volatility into a single, easy-to-read signal. It highlights bullish/bearish conditions, marks potential entries and exits, and reduces noise during choppy markets with adaptive filtering. Use it to confirm direction, time pullbacks, and stay aligned with the dominant trend.
MATT 2This indicator helps identify high-probability trend shifts and continuation setups by combining momentum, trend strength, and volatility into a single, easy-to-read signal. It highlights bullish/bearish conditions, marks potential entries and exits, and reduces noise during choppy markets with adaptive filtering. Use it to confirm direction, time pullbacks, and stay aligned with the dominant trend.
MATT 1This indicator helps identify high-probability trend shifts and continuation setups by combining momentum, trend strength, and volatility into a single, easy-to-read signal. It highlights bullish/bearish conditions, marks potential entries and exits, and reduces noise during choppy markets with adaptive filtering. Use it to confirm direction, time pullbacks, and stay aligned with the dominant trend.
Multi Moving Averages (EMA / SMA Toggle) ConfigurableMulti Moving Averages (EMA / SMA Toggle) is a lightweight and highly configurable indicator designed to plot up to three moving averages on your chart with a clean and minimalist input panel.
The indicator allows you to switch seamlessly between Exponential Moving Averages (EMA) and Simple Moving Averages (SMA) using a single toggle, while preserving the same lengths, sources, and visual settings. Each moving average can be independently shown or hidden and fully customized for color, line width, and plot style.
This tool is ideal for traders who rely on multiple moving averages for trend identification, dynamic support and resistance, pullback analysis, and crossover-based strategies, while keeping their charts uncluttered and easy to read.
Key Features
Plot up to three moving averages
Global EMA / SMA toggle
Individual show / hide control for each MA
Customizable length, source, color, width, and style
Minimalist input layout with low scrolling
Fully compatible with the Style panel
Whether you prefer fast-reacting EMAs or smoother SMAs, this indicator adapts instantly to your workflow without requiring multiple indicators or duplicate settings.
MATT 4This indicator helps identify high-probability trend shifts and continuation setups by combining momentum, trend strength, and volatility into a single, easy-to-read signal. It highlights bullish/bearish conditions, marks potential entries and exits, and reduces noise during choppy markets with adaptive filtering. Use it to confirm direction, time pullbacks, and stay aligned with the dominant trend.
Demand Index##Description:
This indicator is a precise Pine Script replica of the "Demand Index" (Study ID 139) as found in the Sierra Chart trading platform.
Originally developed by James Sibbet, the Demand Index combines price and volume data to measure buying and selling pressure. It is often considered a leading indicator, anticipating price trend changes by identifying divergences between the price action and the volume flow.
##Key Features & Formula Logic
This script strictly follows the official documentation provided by Sierra Chart to ensure the values match the original platform as closely as possible.
Specific calculation details included in this port:
- P(HL2C): Uses the weighted average (High + Low + 2*Close).
- Range Calculation: Uses a Moving Range based on Max(High, 2) - Min(Low, 2).
- The H0/L0 Factor: A unique characteristic of the Sierra Chart formula is the use of H0 and L0 (the High and Low of the first loaded bar in history) to scale the volatility exponent. This script replicates that behavior.
Note: Because H0 and L0 depend on the start of the loaded data, values may shift slightly if the amount of historical data on your chart changes. This is consistent with how the study behaves in Sierra Chart.
- Complex Weighting: Calculates "Buy Power" and "Sell Power" using the specific exponential decay formula outlined in SC ID 139.
##Settings (Inputs)
- Buy/Sell Power Length (nBS): Length for smoothing Volume and Range (Default: 19).
- Buy/Sell Power MA Length: Length for the smoothing of the calculated Buy/Sell Power (Default: 19).
- Demand Index MA Length: Length for the final Simple Moving Average (SMA) of the Demand Index (Default: 19).
- MA Type: Choose the smoothing algorithm for intermediate steps (EMA, SMA, WMA, RMA). Default is EMA.
##How to Trade / Interpret
- Divergence: The most powerful signal. If price makes a new High but the Demand Index fails to reach a new High, it suggests Buying Power is weakening (Bearish Divergence). Conversely for Bullish Divergence.
- Zero Line Cross: A cross above zero indicates Buy Power > Sell Power (Bullish). A cross below zero indicates Sell Power > Buy Power (Bearish).
Disclaimer: This script is for educational and analytical purposes only. It is a code conversion based on public documentation of Sierra Chart Study ID 139.
Sierra Chart, best trading software, EVER!
With the best datafeet. Denali Exchange Data Feed.
Momentum Exhaustion UltimateMomentum Exhaustion Ultimate
Introduction
This indicator is a comprehensive market timing tool based on Consecutive Bar Counting logic. Unlike standard oscillators like RSI or MACD which smooth data using averages (lagging price), this strategy analyzes the specific sequence and persistence of price action to identify moments of trend exhaustion in real-time.
It is widely used on professional trading desks to answer one specific question: "Has the current trend run out of gas?"
The Core Philosophy
Markets do not move in straight lines; they move in waves of momentum and exhaustion. This strategy posits that a trend typically exhausts itself after a specific cadence of buying or selling pressure. By "counting" these pressure bars, we can identify high-probability zones where the market is likely to pause (Extension) or reverse completely (Exhaustion).
How It Works: The Two Phases
1. The Extension Phase (The "9"):
Goal: Identifies a trend that is becoming overextended (Momentum).
The Signal: A count of 9 consecutive bars closing higher/lower than the close 4 bars prior.
Meaning: This is a "Momentum Pause" signal. When a 9 appears, the market often corrects for 1-4 bars. It is the first warning sign of fatigue.
2. The Exhaustion Phase (The "13"):
Goal: Identifies the final exhaustion of the trend.
The Signal: A count of 13 bars (not necessarily consecutive) where price pushes to new extremes relative to the high/low 2 bars prior.
Meaning: This is the "Reversal" signal. The buying/selling pressure has likely fully capitulated, and a major counter-trend move is expected.
How To Use This Script
This indicator is not just a "reversal catcher." It includes institutional features (Structure Lines and Invalidation Levels) to help you manage the trade:
Don't Just Fade the "9": A "9" isn't always a buy signal. If the trend is strong, the "9" might just be a pause. Wait for the 13 for major reversals.
The "Quality Filter" (Diamond ♦): A signal is statistically stronger if the final bar (8 or 9) actually pushes deeper than previous bars. This script marks these high-quality signals with a Diamond (♦).
The Trend Barrier Breakout: The script plots Structural Support/Resistance Lines (Dashed Red/Green). If price ignores a Reversal Signal and breaks through this line, the reversal has failed. Cancel your fade and trade the Breakout (Trend Continuation). This is often the most profitable signal in the system.
The "Invalidation" Line: The Blue Dotted line represents the "Stop Loss" level derived from the volatility of the count. If price closes past this line, the signal is invalid—exit immediately.
Features Included in This Script:
Full Engine: Includes both the Extension (1-9) and Exhaustion (1-13) counters.
Wick-Sensitive Mode: Option to switch logic for fast-moving markets (Crypto/FX) to detect wicks rather than closes.
Deferral Logic: "Qualifier" rules that prevent a 13 from firing until momentum actually slows down.
Structure Lines: Institutional trend barriers for breakout trading.
Volatility Stops: Dynamic invalidation levels to protect capital.
Minimalist Mode: Hides the "number soup" to keep your chart clean, showing only actionable signals.
Custom Dividers [louis]Custom Dividers is a streamlined utility designed for Multi-Timeframe Analysis (MTF). It allows you to visualize higher timeframe structures directly on lower timeframe charts by drawing infinite vertical lines at the open of new periods.
Unlike standard grid lines and other divider indicators, this has custom inputs, giving you complete control over non-standard timeframes (e.g., 90-minute cycles, 6-hour blocks, or 2-day periods).
🔑 Key Features
- 4 Independent Timeframe Slots: Configure up to four different vertical dividers simultaneously.
- Custom Minute Inputs (TF 1 & TF 2): Instead of restricting you to a dropdown, the first two slots allow you to input any integer for minutes.
Example: Set 90 for 90-minute cycle dividers.
Example: Set 360 for 6-hour dividers.
- Standard Timeframe Selectors (TF 3 & TF 4): Traditional dropdowns for standard periods like Daily (D), Weekly (W), or Monthly (M).
- Visual Customization:
Lines: Uses line.new() drawing logic to ensure dividers stretch infinitely from top to bottom, regardless of price scale.
Styles: Select from Solid, Dashed, or Dotted directly in the inputs.
Width & Color: Fully customizable to blend into your chart theme.
⚙️ How to Configure
Go to the Settings (Inputs Tab):
TF 1 & TF 2: Enter the specific number of minutes (e.g., 60 = 1 Hour, 240 = 4 Hours). Toggle the checkbox to Show/Hide.
TF 3 & TF 4: Select the timeframe period from the dropdown. Toggle the checkbox to Show/Hide.
Style: Choose your line style, color, and width.
Note: Since this indicator uses geometric drawings (line.new) to achieve full-height vertical lines, all visual settings (Color, Width, Style) are located in the Inputs Tab, not the Style tab.
ChoCH + BOS External Market Structure BBCchoch and bos with alerts for tradingview. alerts are included
Probabilidad Alcista / Bajista por Volumen yvvProbabilidad Alcista / Bajista por Volumen y tendencia
Pro HTF Last-Closed Levels (D / 4H / 1H) This is OHLC lines per one and 4 hour to track levels. simple and easy
Hide Only Current Candle ( So live is like back test )This will hide the current candle that is printing and only show past candles
To use this also go to settings and hide the price line and the candles
Settings: Go to Symbol, and uncheck body, wick, and borders so that it hides all candles.
To hide the horizontal line that follows the current market price, you need to adjust one more setting in the TradingView interface.
How to Hide the Current Price Line:
Right-click on your chart and select Settings (or press Alt + S).
Navigate to the Scales and lines tab (on some versions, it is just called Scales).
Look for the Symbol last price line option and uncheck it.
(Optional) If you also want to hide the price bubble on the right-hand axis, uncheck Symbol last value label.
Crypto Prev Day/Week Hi-Lo (UTC)escription
Crypto Prev + This Day/Week Hi-Lo (UTC) plots key high/low levels for crypto markets using a 24-hour session anchored to 00:00 UTC.
This indicator is designed for traders who treat crypto as a true 24/7 market and want consistent, global day/week levels that don’t shift with daylight savings.
What it plots
PDH / PDL = Previous Day High / Previous Day Low
PWH / PWL = Previous Week High / Previous Week Low
TWH / TWL = This Week High / This Week Low
00:00 UTC vertical line = marks the start of a new UTC day
Abbreviations
PDH = Previous Day High
PDL = Previous Day Low
PWH = Previous Week High
PWL = Previous Week Low
TWH = This Week High
TWL = This Week Low
UTC = Coordinated Universal Time (global standard time reference)
DCA + Martingale strategy.DCA + Martingale: smart synergy for volatile markets
Tame market swings with a powerful hybrid strategy that marries the discipline of Dollar‑Cost Averaging (DCA) with the aggressive recovery logic of the Martingale system. This approach turns price dips into opportunities — systematically building positions while keeping risk in check.
How it works:
1. Entry trigger
The strategy activates when the asset price drops by a predefined percentage on the 1‑hour timeframe. This ensures you only engage when a meaningful pullback occurs, avoiding premature entries.
2. DCA grid for controlled averaging
Once the entry condition is met, a grid of buy orders is deployed:
Each subsequent order is placed at progressively lower price levels (e.g., every 2–5% drop).
Order sizes can be fixed or follow a progressive scale (e.g., 1x, 1.5x, 2x the initial amount).
This dilutes your average entry price, improving the breakeven point as the market corrects.
3. Martingale‑style recovery mechanism
After each unsuccessful trade (i.e., price continues falling), the next position size is increased — not necessarily doubled, but scaled according to your risk tolerance. This accelerates recovery potential when the trend reverses.
4. Take‑profit with a fixed percentage target
A simple, predefined profit target (e.g., +3–7%) is set for the entire averaged position. Once hit, all open trades close, locking in gains. This prevents over‑exposure during uncertain reversals.
Key advantages
Psychological edge: removes emotional decision‑making by automating entries and exits.
Cost optimization: lowers average entry during downtrends, improving profit potential.
Controlled aggression: Martingale logic helps recoup losses faster without infinite scaling.
Flexibility: parameters (entry %, grid spacing, position sizing, TP) are fully customizable.
Risk management essentials
Stop‑loss safeguard: a hard stop‑loss (e.g., 10–15% below the lowest grid level) prevents catastrophic drawdowns in prolonged downtrends.
Position sizing: never risk more than 1–3% of capital per grid cycle.
Market context: best suited for assets with mean‑reverting behavior and moderate volatility. Avoid strong, sustained trends.
Capital buffer: ensure sufficient reserves to withstand multiple grid levels without margin calls.
When to use it
During sideways or range‑bound markets with regular pullbacks.
On assets with historical tendency to recover from short‑term dips.
When you expect a bounce but can’t pinpoint the exact bottom.
Bottom line
DCA + Martingale isn’t a «set‑and‑forget» miracle — it’s a disciplined framework for turning volatility into opportunity. Combine it with rigorous risk rules, and you’ll navigate downtrends with precision, turning market noise into structured profit potential.
SMC Louis 4H-15M V6为了方便你将这个脚本分享到 TradingView 社区或私人收藏,我为你准备了一份中英文对照的专业描述。这份描述突出了脚本的技术核心——**Louis Trading 的 SMC 进场逻辑**。
---
## 📝 脚本描述 / Script Description
### 中文描述:SMC Louis 实战进场辅助工具 (V6版本)
**核心理念:**
本脚本根据 Louis Trading 的 SMC(Smart Money Concepts)交易教学编写,专注于 **4H 趋势过滤 + 15M 结构突破** 的高胜率进场逻辑。它通过自动化的绘图,将复杂的盘面观察简化为清晰的视觉信号。
**主要功能:**
* **多时段趋势追踪**:内置 200 EMA 动态过滤大周期方向,确保你始终顺势交易。
* **自动 BOS (结构突破) 检测**:实时标记市场结构的改变,识别潜在的反转或延续机会。
* **动态 0.715 进场参考线**:当 15M 级别发生 BOS 突破时,脚本自动根据波段高低点计算并绘制 Louis 教学中的 **0.715 黄金回撤位**,无需手动拉斐波那契线。
* **失衡区 (FVG) 视觉化**:自动高亮显示价格快速移动留下的真空区域,帮助识别高概率的订单回踩区。
* **实时仪表盘**:右上角直观显示当前大周期方向与行动建议(等待回踩或反弹)。
**使用说明:**
1. 建议在 **15分钟 (15M)** 周期下使用。
2. 观察仪表盘的趋势方向。
3. 当绿色 **BOS** 出现后,等待价格回踩 **黄色虚线 (0.715)** 且该线位于 **FVG** 区域内时考虑进场。
---
### English Description: SMC Louis Strategy Entry Assistant (V6)
**Core Concept:**
This script is meticulously designed based on the SMC (Smart Money Concepts) methodology taught by Louis Trading. It focuses on the high-probability **4H Trend Filter + 15M Market Structure Break (BOS)** execution workflow. It automates the complex manual charting process into clear, actionable visual cues.
**Key Features:**
* **MTF Trend Filtering**: Integrated 200 EMA helps you stay on the right side of the 4H higher-timeframe trend.
* **Automated BOS Detection**: Real-time identification of Market Structure Breaks (BOS), highlighting potential trend reversals or continuations.
* **Dynamic 0.715 Entry Level**: When a BOS occurs on the 15M timeframe, the script automatically calculates and plots the **0.715 Fibonacci retracement level**—a signature entry point from Louis's strategy.
* **Fair Value Gap (FVG) Visualization**: Automatically highlights price imbalances (FVGs), helping you spot where "Smart Money" is likely to mitigate orders.
* **Live Dashboard**: A clean UI in the top-right corner provides immediate context on trend direction and actionable advice.
**How to Use:**
1. Best used on the **15-Minute (15M)** timeframe.
2. Check the dashboard for the overall trend bias.
3. Wait for a **BOS** label; look for price to retracing into the **Yellow Dashed Line (0.715)**, especially if it aligns with a plotted **FVG box**.
---
### 💡 建议
如果你打算发布这个脚本,建议在 TradingView 的设置中将“15M 摆动回溯周期”默认设置为 **10-15**,这通常能最准确地过滤掉市场杂讯。
**你想让我为你生成一份专门针对“移动端使用”的简化版界面代码吗?(去掉了复杂的仪表盘,只保留核心线条,适合手机查看)**
Adaptive Trend Flow (ATF)Adaptive Trend Flow (ATF) is a custom trend-following indicator designed to work reliably across all markets and all timeframes.
It uses an adaptive moving average that automatically adjusts to market conditions, combined with trend slope analysis and a volatility filter to reduce noise during ranging periods.
Unlike traditional fixed moving averages, ATF reacts faster during strong trends and slows down during consolidation, helping traders stay aligned with meaningful price movements.
🔍 How It Works
Uses an adaptive smoothing algorithm to track price efficiently
Confirms trend direction using trend slope
Filters out low-volatility and choppy conditions using ATR-based logic
Does not repaint — signals are based only on confirmed data
📊 Visual Interpretation
🟢 Green line / background → Bullish trend
🔴 Red line / background → Bearish trend
⚪ Gray → No clear trend (range / low volatility)
⚙️ Features
Works on Crypto, Forex, Stocks, Futures
Compatible with all timeframes
Optional trend-change signals
Optional background highlighting
Fully customizable inputs
Alert-ready
🎯 Best Use Cases
Trend filter for entries and exits
Directional bias for scalping, day trading, or swing trading
Strategy backbone when combined with price action or momentum tools
⚠️ Disclaimer
This indicator is for educational and analytical purposes only and does not constitute financial advice. Always manage risk appropriately.






















