SMC Academy [PhenLabs]📊 SMC Academy
Version: PineScript™ v6
📌 Description
The SMC Academy indicator is a comprehensive educational tool designed to demystify Smart Money Concepts (SMC) for traders of all levels. Unlike standard indicators that simply print signals, this script uses a “Learning Phase” system that allows users to toggle between individual concepts—such as Market Structure, Liquidity, Imbalances, and Order Blocks—or view them all simultaneously. It lets you focus on one piece of the puzzle at a time.
🚀 Points of Innovation
Progressive Learning Modes: Toggle between 5 distinct phases to master concepts individually before using the Full Strategy Mode.
Educational Tooltips: Hover over labels to read detailed explanations of why a BOS, MSS, or Liquidity zone was identified.
Smart Filtering: Uses ATR and Volume integration to filter out low-quality Fair Value Gaps and weak Order Blocks.
HTF Dashboard: A built-in panel analyzes Higher Timeframe (4H) data to ensure you are trading in alignment with the broader trend.
🔧 Core Components
Market Structure Engine: Automatically detects Swing Highs and Lows to map out market direction using configurable swing lengths.
Liquidity Manager: Identifies unmitigated swing points that serve as Buy-Side (BSL) and Sell-Side (SSL) liquidity magnets.
Imbalance Detector: Highlights Fair Value Gaps (FVG) where price inefficiencies exist, using ATR thresholds to ignore noise.
Order Block Identifier: Locates the specific candles responsible for structure breaks, validated by volume analysis.
🔥 Key Features
Break of Structure (BOS): Automatically marks trend continuation signals with solid lines and color-coded labels.
Market Structure Shift (MSS): Identifies potential trend reversals when significant swing points are breached.
Dashboard Context: Displays the current trend direction and the 4H context directly on your chart.
Custom Alerts: Built-in alert conditions for structure breaks and new Order Blocks allow for automated tracking.
🎨 Visualization
Structure Lines: Solid lines indicate confirmed breaks (Green for Bullish, Red for Bearish).
Liquidity Zones: Dotted lines extending rightward indicate resting liquidity levels that price may target.
FVG Boxes: Shaded boxes highlight imbalance zones, automatically extending for a user-defined number of bars.
Dashboard: A clean, non-intrusive table in the top-right corner displays trend status and active mode.
📖 Usage Guidelines
Setting Categories
Learning Mode: Select from ‘1. Market Structure’ through ‘5. Full Strategy Mode’ to filter what appears on the chart.
Swing Detection Length: Default (5). Determines the sensitivity of the swing high/low detection.
Structure Break Type: Options (Close/Wick). Choose whether a candle close or just a wick is required to confirm a break.
Min FVG Size: Default (0.5 ATR). Filters out gaps smaller than this multiplier to reduce noise.
Filter Weak OBs by Volume: Default (True). Only highlights Order Blocks where volume exceeds the 20-period average.
✅ Best Use Cases
Educational Study: Isolate “Phase 1: Market Structure” to practice identifying trend changes without distraction.
Trend Following: Use “Phase 3: Imbalances” to find entry points within an established trend.
Reversal Trading: Combine “Phase 2: Liquidity” and “Phase 4: Order Blocks” to catch reversals at key levels.
⚠️ Limitations
Subjectivity: Market structure can be interpreted differently depending on the swing length settings used.
Ranging Markets: Like all trend-following concepts, false BOS/MSS signals may generate during choppy, sideways price action.
Repainting: While the signals are non-repainting once confirmed, the live candle may flash a signal before the close if “Close” mode is selected.
💡 What Makes This Unique
Interactive Learning: The inclusion of tooltip explanations transforms this from a simple tool into an active mentor.
Phase-Based Workflow: The ability to strip the chart back to basics at the click of a button is unique to the PhenLabs ecosystem.
🔬 How It Works
Swing Analysis: The script calculates pivot highs and lows based on your length input to define the structural landscape.
Break Validation: It checks if price crosses these pivot points to trigger BOS (Continuation) or MSS (Reversal) logic.
Volume Confirmation: For Order Blocks, it looks back inside the swing leg to find the specific candle responsible for the move, verifying it has significant volume.
💡 Note:
For the best experience, start in Phase 1 to calibrate your Swing Detection Length to the specific volatility of the asset you are trading before enabling Full Strategy Mode.
Educational
Liquidity Sell Signal V2 [StrategyLAB_]Liquidity Sell Signal V2
Liquidity Sell Signal V2 is a TradingView indicator designed to help you spot high-probability Sell setups (reversal / pullback entries) using liquidity concepts around Buy-Side Liquidity (BSL) , combined with a bearish confirmation candle pattern.
OANDA:XAUUSD
This script will:
Automatically detect and plot BSL (Swing High) levels based on your selected Swing Strength.
Visually “fade” levels once price has broken above them.
Print a down triangle when a valid Bearish Liquidity Triangle forms at a qualified BSL area.
How it works
1) Identify Buy-Side Liquidity (BSL)
The indicator detects pivot highs using Swing Strength.
Each pivot high is drawn as a horizontal BSL level, keeping up to Max Buy Side Liquidity (BSL) Levels.
2) Bearish confirmation (Liquidity reaction)
A Sell signal triggers only when a bearish candle structure appears, suggesting strong selling pressure and a potential reversal after a liquidity sweep near/above BSL.
3) Noise filter (Avoid “body-cut” levels)
The script checks whether the BSL level has been repeatedly cut through candle bodies in prior bars.
If the level is considered “dirty” based on olderBodyLookback, it is filtered out to reduce false signals.
How to use
Suggested settings
Swing Strength
Lower (5–8): more levels, faster signals, but more noise.
Higher (12–20): fewer levels, cleaner zones, better for swing.
Max BSL Levels: increase if you want to keep more historical liquidity levels.
Filter lookback older bodies: increase to filter more aggressively (fewer signals, cleaner quality).
Entry idea (example)
Wait for a Sell triangle to appear (signal prints on candle close).
Prefer signals that align with:
a major swing high / key resistance,
clear rejection (wick / bearish reaction),
confluence with HTF supply, trendline, session, etc.
SL/TP idea (example)
SL: above the most recent swing high / above the BSL zone with a safety buffer.
TP: toward imbalance fill, previous lows (SSL), or a fixed RR such as 1:2 / 1:3.
Important notes
This is a probability tool, not a guaranteed signal.
Best results come from combining with market structure (BOS/CHOCH), supply/demand, HTF levels, and session context.
The script uses barstate.isconfirmed, so signals appear only after the candle closes (non-repainting signals).
OANDA:EURUSD
GME Warrant Tracker [theUltimator5]The GME Warrant Tracker was designed to be used for GME warrants tracking. The theory behind this indicator is that warrants are priced similarly to options and generally follow the same Greeks. With that assumption, we can break down the price of the warrants by using known Greeks to estimate either the theoretical price, or even estimate Implied Volatility (IV).
The base settings for this indicator plot the calculated IV, the theoretical price (there are multiple methods of calculation which I will discuss later) and the current warrant price.
You can toggle on or off all of these plots to display only what you want to track.
For example, you can simply track the difference between the theoretical price and the current price to see if warrants are trading at a premium or a discount vs what the indicator calculates it to be.
Calculating implied volatility is extremely difficult and must be approximated.
The theoretical warrant price produced by this indicator depends primarily on the volatility input (σ) used in the Black–Scholes pricing model.
This script supports five distinct methods for approximating σ, each extracting different information from the market.
1) Close-to-Close Historical Volatility
Close-to-Close computes the standard deviation of daily close-to-close returns and uses a lookback window scaled to time-to-expiry. As the expiration approaches, the lookback window tightens, giving a more responsive volatility approximation relative to time-to-expiry.
This option produces conservative approximations for volatility, and may lag actual volatility intraday.
2) Parkinson High-Low Volatility
Parkinson High-Low volatility uses daily high and low prices to calculate intraday trading range for a more responsive estimation to volatility. It ignores opening and close gaps, so overnight volatility is not accounted for.
This option produces higher theoretical volatility during choppy price action and can over estimate actual volatility.
3) Garman–Klass Volatility
Garman–Klass volatility is a way to estimate how much price is fluctuating by using the open, high, low, and close for each period. Because it draws on multiple intraperiod price points (not just the range or close-to-close moves), it typically produces a tighter, more informative volatility estimate than simpler approaches. It’s often most helpful when gaps occur and when the open and close carry meaningful information about the session’s trading.
4)Yang–Zhang Volatility
The Yang–Zhang volatility estimator is designed to account for both opening jumps and price drift. It estimates volatility by combining overnight (close-to-open) variance, intraday (open-to-close) variance, and a weighted Rogers–Satchell component using OHLC data, often yielding a more robust measure than simpler close-to-close style estimators.
5) Option price
By default, the indicator uses the call option strike dated closest to the warrant expiration date. Since the Greeks for both the warrants and the
options are assumed to be equivalent with a minor difference in theta (time-to-expiry), the theoretical price of the warrants closely matches the trade price of the call strike chosen.
There is a table that can be enabled (off by default because it is large and fills entire screen on mobile) which shows all the configuration settings and Greeks.
You can also manually adjust the "dilution" factor for the warrants, which shifts the number of active warrants and moves the count into the shares outstanding for the underlying (GME). The reason for this is that as warrants get exercised, the total quantity of warrants in circulation decreases and the the total quantity of shares outstanding increases.
Since this indicator was built around the single warrant, ticker NYSE: GME/W, it is only meant to be used with NYSE:GME. Any other ticker will not work properly with this indicator.
ICT MTF FVG BPR Toolkit [D4A}The ICT MTF FVG BPR Toolkit encompasses the following 5 components:
- Fair Value Gaps - current timeframe
- Fair Value Gaps - higher timeframe
- BPR - Balanced Price Range
- Long Wicks - which are considered to be gaps by ICT
- Immediate Rebalance - it leaves no gaps, but is as important in assessing current workflow
This is advanced Fair Value Gaps script that uses trading methodology taught by ICT trader. To use it effectively it requires at least some basic knowledge of Smart Money Concepts (SMC) as outlined in ICT's lectures found on YT. I may publish another SMC related scripts in future if this kind of tool is useful to anybody.
The idea behind this work, is to have all the necessary tools related to Fair Value Gaps in one script that is easy to use (requires SMC knowledge), fully customizable and will keep the chart as clutter free as possible. Since, I could not find a ready-made script which would tick all my requirements, I created this new script, partially by borrowing some ideas and code from existing open source projects that I liked. Rather than re-inventing the wheel, I focused on adopting and improving existing solutions and have them work together in one tool that could present the information accurately and in a polished way, where the trader can customize almost everything. Full credit goes to other coders, who tackled this subject before me, but particularly to:
QuantVue
LuxAlgo
pmk07
The script have these unique features:
- Can present FVGs from up to 3 different timeframes at any given interval
- The amount and interval of higher timeframe FVGs is fully customizable
- FVGs can be displayed based on size
- Volume Imbalance can be included as part of FVG (as recommended by ICT)
- Higher timeframe FVGs can have quadrants displayed along with C.E. (based on ATR filter)
- Both current and higher timeframe FVGs can be displayed in different ways depending on price interactions
- BPR which works on current timeframe only
- Long Wick detection logic has been slightly changed from the original LuxAlgo code
- Immediate Rebalance code has been simplified and re-focused on clarity
-----------------
Disclaimer
The information contained in my Scripts/Indicators/Ideas/Algos/Systems does not constitute financial advice or a solicitation to buy or sell any securities of any type. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
My Scripts/Indicators/Ideas/Algos/Systems are only for educational purposes!
TASC 2026.01 The Reversion Index█ OVERVIEW
This script implements the Reversion Index as presented by John F. Ehlers in the January 2026 edition of the TASC Traders' Tips , "Identifying Peaks And Valleys In Ranging Markets”. This indicator was created to provide timely buy and sell signals for mean reversion strategies.
█ CONCEPTS
Ehlers came up with the idea for the Reversion Index following the development of the "Continuation Index" (featured in the September 2025 edition). While the Continuation Index provides indications for trend onset, continuation, and exhaustion; the Reversion Index serves as its counterpart for mean-reversion trading.
The raw Reversion Index value is calculated as the net change in price normalized to the sum of the absolute value of change in price over the same period; for clarity, it is then smoothed using Ehlers' SuperSmoother.
The Smooth Reversion Index value is led by a "Trigger" line, which is created by smoothing the raw data to half the smoothing period of the smoothed index.
Note: Ehlers suggests the smoothing lengths be left at 8 and 4 (Reversion Index & Trigger). For this reason these lengths are hard-coded in the script but can be easily modified in the code.
█ USAGE
In order to identify peaks and valleys effectively, the "Length" should ideally be set to half of that of the expected cycle of the data. If the expected cycle of your trading data is 20 bars, a 10 bar length should be set.
Note: The Reversion Index is intended to identify peaks and valleys within a cycle, not over a large sample period. Ehlers suggests that this would create an estimation of trend, which is not the goal here.
Once the length is set, peaks and valleys are interpreted as the cross of the "Trigger" and "Smooth" lines.
EMA SMA Rhythmic Lite Public V1.1 by SRTEMA SMA Rhythmic Lite Public V1.1 by SRT
A clean, lightweight trend-rhythm engine designed for traders of all levels. Built on a robust combination of EMAs and SMAs, this indicator provides clear directional bias signals while remaining fully non-repainting.
Key Features:
Multi-Timeframe Friendly: Works seamlessly on M1 to Daily (D) charts. MA stacking and signal logic automatically adapt to any timeframe.
Bias Detection: Determines bullish, bearish, or neutral market conditions using a 4-MA stack.
Engulfing Bar (EB) & Long-Tail Body (LTB) Detection: Highlights strong price action setups, filtered by body size and ATR-based thresholds.
Flush Markers: Visual cues showing where price aligns with MA stack for trend confirmation.
Bias Table: Displays current MA bias and presence of LTB on the chart for at-a-glance clarity.
Advanced Alerts:
Flush Alerts: Trigger when MA stack aligns with price, signaling trend continuation.
Combo Alerts: Trigger when EB or LTB appears in alignment with MA bias.
LTB-only Alerts: For monitoring significant price action reversals.
Customizable Visualization: Colors, widths, and visibility of all MAs, labels, and flush dots can be tailored to your preference.
Why Lite?
This is the most lightweight version in the SRT rhythm series, optimized for any timeframe, from scalping to swing trading. Perfect for traders who want a clear bias engine without unnecessary complexity.
If you like this EMA SMA Rhythmic Lite, you may also explore:
▶ H1 Bias Rhythmic Lite Public (Free)
▶ SRT Premium Series
Invite-only advanced indicators with stronger bias enforcement and execution frameworks.
SIDD EMA RSI Supertrend Signal Table🔥 SIDD EMA RSI SuperTrend Multi-Timeframe Signal Table
**SIDD EMA RSI SuperTrend Signal Table** is a **clean, powerful multi-timeframe trend confirmation dashboard** designed for traders who want **clarity, confluence, and speed** — all in one glance.
This indicator **does NOT repaint** and uses **industry-standard trend logic** combining **EMA structure, RSI momentum, and SuperTrend direction** across **6 different timeframes**.
---
## 🧠 Core Logic Behind the Indicator
This script works on **three independent trend engines**, displayed together in a compact table:
### ✅ 1️⃣ EMA Trend (Structure Based)
* Uses **EMA 50 vs EMA 200**
* **Bullish** → EMA 50 above EMA 200
* **Bearish** → EMA 50 below EMA 200
* Captures **primary market structure**
### ✅ 2️⃣ RSI Trend (Momentum Based)
* RSI Length: **14**
* **Bullish** → RSI > **55**
* **Bearish** → RSI ≤ **55**
* Helps confirm **trend strength & momentum**
### ✅ 3️⃣ SuperTrend (Price Action Based)
* ATR Length: **10**
* Factor: **3.0**
* Clearly defines **trend direction & trailing bias**
* Excellent for **entry & exit alignment**
---
## ⏱️ Multi-Timeframe Coverage
The table analyzes trends across **6 configurable timeframes**:
* Intraday → **5m, 15m, 1H**
* Swing → **4H, Daily**
* Positional → **Weekly**
Each timeframe shows:
* 📈 EMA Trend
* 📊 RSI Trend
* 🔁 SuperTrend Direction
Color-coded for instant readability:
* 🟢 Bullish
* 🔴 Bearish
* ⚪ Neutral
---
## 🎯 How to Use This Indicator
✔ **Trend Trading**
Trade only when **EMA + RSI + SuperTrend align** across higher & lower timeframes.
✔ **Intraday Confirmation**
Use higher TF (1H / 4H) bias and take entries on lower TF.
✔ **Avoid Chop & False Signals**
If signals are mixed → market is likely **sideways or risky**.
✔ **Swing & Positional Trades**
Daily + Weekly alignment gives **high-probability setups**.
---
## ⚙️ Customization Options
* Adjustable **timeframes**
* Table **position** (Top/Bottom – Left/Right)
* Table **size** (Extra Small / Small / Normal)
* Custom **colors, borders & text**
* Optimized for **minimal chart clutter**
---
## ⚠️ Disclaimer
This indicator is a **trend confirmation & decision-support tool**.
Always combine with **price action, support/resistance, and proper risk management**.
Colored HMA + Color SARThis is a simple yet effective chart setup that I really like and trade with. I use the Heiken Ashi candlesticks so with this I get three conformations in one. If you like it great. I am not a coder but I do know what works for my brain and thought I would share this, thanks to Chat GBT.
I use it for entry most of the time on the 5 minute chart New York open. I also like the Orb break and retest by Quant Crawler as my second indicator.
Adaptive Trend-Based Fib Extension + TrendlinesThis advanced analysis tool is designed to take the guesswork out of Fibonacci trading. By combining Adaptive Fibonacci Extensions with multi-method Pivot Detection, Dynamic Trendlines, and Horizontal Support/Resistance, this indicator provides a comprehensive roadmap for any market trend.
Learn volume trading - @pricevolumetraders
Key Features
Adaptive Fibonacci Engine: Unlike static tools, this indicator uses an ATR-based adaptive factor to adjust extension levels according to current market volatility.
Smart Trend Detection: Automatically identifies trend direction using EMA cross-overs or Higher High/Higher Low sequences to determine whether to plot Bullish or Bearish extensions.
Multi-Method Pivots: Choose from six different pivot detection methods, including Volume-Based, Fractal, ATR-Based, and Long Wick detection, to suit your specific trading style.
Automated Trendlines & S/R: High-probability diagonal trendlines and horizontal S/R levels are drawn only when they meet a minimum "touch" requirement and volume confirmation.
Institutional Zones: Highlights the "Golden Zone" between the 127.2% and 161.8% extension levels, where trends often reach exhaustion or find major targets.
How to Use
Trend Alignment: Use the built-in Dashboard to quickly identify the current trend (Bull/Bear) and RSI momentum.
The 3-Point Setup: The indicator automatically finds Point 1 (Trend Start), Point 2 (Impulse End), and Point 3 (Retracement/Last Touch) to project future price targets.
Entry Confirmation: Look for price action near the 61.8% or 78.6% Retracement levels for high-probability entries in the direction of the trend.
Targeting: Use the extension levels (100%, 127.2%, 161.8%) as your primary Take Profit zones.
Confluence: The strongest setups occur when a Fibonacci level aligns perfectly with a Horizontal S/R line or a Diagonal Trendline.
Technical Settings
Pivot Settings: Adjust 'Left' and 'Right' bars to change the sensitivity of swing high/low detection.
Fib Timeframe: You can anchor Fibonacci levels to a higher timeframe (e.g., 1-hour levels) while trading on a lower timeframe (e.g., 5-minute).
Volume Multiplier: Filter for horizontal levels that were formed with significant institutional volume.
Disclaimer: Trading involves significant risk. This tool is for educational and analytical purposes only and should be used in conjunction with a complete trading plan.
Zero Lag MACD and EMA 200 with SignalsZero Lag MACD with EMA Filter and Smart Signals
This indicator is an enhanced version of the traditional MACD that uses Zero Lag EMA calculations to provide faster and more responsive signals for scalping and day trading.
Key Features:
🎯 Zero Lag Technology - Uses double-smoothed EMA calculations to eliminate lag and provide earlier signals compared to standard MACD
📊 Clean Visualization - Displays histogram with MACD and Signal lines for clear trend analysis
🔍 Smart Signal Logic - Only shows valid trading signals based on strict conditions:
Buy Signal (Green dot at bottom): Triggers when price is above 200 EMA AND MACD crosses Signal line from below AND crossover occurs below zero line
Sell Signal (Red dot at top): Triggers when price is below 200 EMA AND MACD crosses Signal line from above AND crossover occurs above zero line
🔔 Built-in Alerts - Easy alert setup for both buy and sell signals so you never miss a trading opportunity
📈 200 EMA Filter - Incorporates trend filter to avoid counter-trend trades and improve signal quality
⚙️ Fully Customizable - Adjust all parameters:
Fast EMA Length (default: 12)
Slow EMA Length (default: 26)
Signal Length (default: 9)
EMA Filter Length (default: 200)
How to Use:
-Add the indicator to your chart
-Look for green dots (buy signals) when price is in an uptrend above 200 EMA
-Look for red dots (sell signals) when price is in a downtrend below 200 EMA
-Set up alerts by clicking "Create Alert" and selecting "Buy Signal" or "Sell Signal"
-Use signals in conjunction with your trading strategy and risk management
Best Practices:
-Works best on 1-15 minute timeframes for scalping
-Combine with support/resistance levels for confirmation
-Use proper stop-loss and take-profit levels
-Not all signals will be profitable - use proper risk management
-Signals are filtered to reduce noise and false entries
Color Scheme:
Histogram: Red (bearish) / Cyan (bullish)
MACD Line: Fuchsia/Pink
Signal Line: Lime/Green
Buy Signal: Green dot (bottom)
Sell Signal: Red dot (top)
This indicator is perfect for traders who want a cleaner, faster-responding MACD with built-in trend filtering and clear entry signals. Free to use and customize!
Custom ORBIT GSK-VIZAG-AP-INDIA🚀 Custom ORBIT — Opening Range Breakout & Reversal Indicator
This indicator automatically calculates and plots the Opening Range (OR) high and low levels for a user-defined session and duration. It is designed to assist intraday traders by providing immediate visual signals for both price breakouts and subsequent reversals from these key levels.
The indicator is particularly suitable for markets with defined trading hours, such as the Indian indices (Nifty, Bank Nifty), given its default time settings are based on GMT+5:30.
⚙️ How It Works (Indicator Logic)
The indicator operates based on three main logical components: time definition, level calculation, and signal generation.
1. Time Session and Range Definition: All time calculations are based on GMT+5:30 (Indian Standard Time/IST). The script defines a specific trading session from a customizable start time (default 9:15 AM) to a session end time (default 3:30 PM). The Opening Range (OR) is established during the initial duration, which is set by the rangeMinutes input (default 15 minutes, meaning the OR is calculated from 9:15 AM to 9:30 AM).
2. Level Calculation and Plotting: During the initial range duration, the script captures the absolute highest price (OR High) and the absolute lowest price (OR Low). Once this period ends, two horizontal lines—a green line for the OR High and a red line for the OR Low—are drawn and automatically extended across the chart for the remainder of the active trading session. The visual style of these lines can be customized to Dotted, Dashed, or Solid.
3. Breakout and Reversal Logic: The indicator actively tracks the market's state relative to the OR levels to generate four distinct signals:
Break Up: A signal is generated when the closing price crosses over the OR High, indicating potential upward momentum.
Break Down: A signal is generated when the closing price crosses under the OR Low, indicating potential downward momentum.
Reversal Down: This yellow signal occurs only after a price has already broken above the OR High (Break Up state), and then the price moves back into the range (closing below the ORH), suggesting a failed breakout.
Reversal Up: This yellow signal occurs only after a price has already broken below the OR Low (Break Down state), and then the price moves back into the range (closing above the ORL), suggesting a failed breakdown.
💡 Suggested Use Cases
The signals generated by this indicator can be used in two primary ways:
Breakout Trading: A trader may enter a long position on a "Break Up" signal or a short position on a "Break Down" signal. A common risk management practice is to use the opposite OR level (ORL for long trades, ORH for short trades) as a stop-loss reference.
Faded Breakout / Reversal Trading: Look for the yellow "Reversal Up" or "Reversal Down" signals. These signals indicate a rejection of the OR level, and a trader may take a counter-trend position with the expectation that the price will return to the consolidation range or move toward the opposite OR level.
⚠️ Educational Disclaimer
This indicator is for educational and illustrative purposes only. It provides technical signals based on mathematical calculation of price action and should not be construed as financial advice, trading advice, or a solicitation to buy or sell any financial instrument. Trading carries a high level of risk, and you may lose more than your initial deposit. Past performance is not indicative of future results. Always consult with a qualified financial professional before making any investment decisions.
A program written by a beginner# TXF Choppy Market Detector (Whipsaw Filter)
## Introduction
This project is a technical indicator developed in **Pine Script v5**, specifically optimized for **Taiwan Index Futures (TXF)** intraday trading.
The TXF market is known for its frequent periods of low-volatility consolidation following sharp moves, often resulting in "whipsaws" (double-loss scenarios for trend followers). This script utilizes **volatility analysis** and **trend efficiency metrics** to filter out noise and detect potential "Stop Hunting" or "Liquidity Sweep" setups within range-bound markets.
## Methodology & Algorithms
The strategy operates on the principle of **Mean Reversion**, combining two core components:
### 1. Market Regime Filter: Choppiness Index (CHOP)
We use the Choppiness Index (originally developed by E.W. Dreiss) to determine if the market is trending or consolidating based on **Fractal Dimension** theory.
* **Logic**:
The index ranges from 0 to 100. Higher values indicate low trend efficiency (consolidation), while lower values indicate strong directional trends.
* **Condition**: `CHOP > Threshold` (Default: 50).
* **Application**: When this condition is met, the background turns **gray**, signaling a "No-Trade Zone" for trend strategies and activating the Mean Reversion logic.
### 2. Whipsaw Detection: Bollinger Bands
Bollinger Bands are used to define the dynamic statistical extremities of price action.
* **Logic**:
We identify **Fakeouts** (False Breakouts) that occur specifically during the choppy regime identified above. This is often where institutional traders hunt for liquidity (stops) before reversing the price.
#### Signal Algorithms (Pseudocode)
**A. Bull Trap (Washout High)**
A false upside breakout designed to trap long traders.
```pine
Condition:
1. Is_Choppy == true (Market is sideways)
2. High > Upper_Bollinger_Band (Price pierces the upper band)
3. Close < Upper_Bollinger_Band (Price fails to hold and closes back inside)
History Trading SessionsThis indicator helps visually structure the trading day by highlighting custom time zones on the chart.
It is designed for historical analysis, trading discipline, and clear separation between analysis time, active trading, and no-trade periods.
Recommended to use on 4h and below time frames.
First Presented FVGSummary: First Presented FVG Indicator
This is a Pine Script v6 TradingView indicator that identifies and visualizes the first Fair Value Gap (FVG) that forms within configurable time windows during a trading session.
What it Does
1. Detects FVGs : Uses the classic 3-candle FVG definition:
- Bullish FVG: When low > high (gap up)
- Bearish FVG: When high < low (gap down)
2. "First Presented" Logic : For each configured time slot, it captures only the first qualifying FVG that forms—subsequent FVGs in that window are ignored.
3. Visual Display :
- Draws a colored box spanning from detection time to session end
- Optional text label showing detection time (e.g., "9:38 Tue FP FVG")
- Optional grade lines at 25%, 50%, and 75% levels within the FVG
Key Configuration
Setting Description
Timeframe Only works on 5-minute charts or lower
Timezone IANA timezone for session times (default: America/New_York)
Session Futures trading hours (default: 1800-1715)
Min FVG Size Minimum gap size in ticks to qualify
4 Time Slots Each with enable toggle, time window, and color
Default Time Slots
Slot 1 (enabled): 09:30-10:30 — lime green
Slot 2 (enabled): 13:30-14:30 — blue
Slot 3 (disabled): 13:00-13:30 — teal
Slot 4 (disabled): 14:15-14:45 — fuchsia
Technical Features
Handles cross-midnight sessions correctly
Resets all drawings at each new session
Skips the first bar of each window to ensure valid 3-candle lookback
Clamps slot windows to session boundaries
Futures Risk-Based Position CalculatorFutures Risk‑Based Position Calculator — Description
This TradingView indicator automatically calculates and displays Entry, Stop Loss (SL), and Take Profit (TP) levels for futures trades based on a fixed dollar‑risk amount.
What it does
Uses your account balance, dollar risk, number of contracts, point value, and tick size to compute how far the stop should be from the entry.
Determines the take‑profit level using a chosen risk‑to‑reward ratio.
Draws three lines on the chart:
Entry line
Stop loss line
Take profit line
Places labels next to the SL and TP lines showing prices and point distances.
Key features
Supports long or short calculation mode.
Configurable line styling:
Width, style (solid/dashed/dotted), color, opacity.
Separate styling for entry, SL, and TP.
Configurable label behavior:
Optional background.
Text color choices.
Adjustable vertical offset to avoid overlapping the lines.
Lines extend left/right by user‑defined bar amounts.
Values are always rounded to the market's tick size.
How levels are calculated
Entry = current close rounded to tick size.
Stop distance (points) = dollarRisk / (contracts × pointValue).
SL = entry − distance (long) or entry + distance (short).
TP = entry + distance × RR (long) or entry − distance × RR (short).
Visual behavior
Lines and labels update only on the last bar to avoid clutter.
Labels show:
SL: price, point distance, and contract count.
TP: price and point distance.
Risk & Order Size Calculatorhello,
this will calculate the risk and you may change the script as per your risk appetite, my advise do not risk more than 2% of your capital.
Thank you
Standard Deviation Vidya Moving Average | QuantLapseStandard Deviation Vidya MA by QuantLapse
Overview
The Standard Deviation Vidya MA indicator by QuantLapse is an dynamic and unique trend-following tool that leverages Variable Index Dynamic Average (VIDYA) along with a statistical measure of standard deviation to assess trend strength, direction and volatility. By utilizing adaptive smoothing and volatility adjustment this indicator provides a more responsive and robust signal framework for traders.
______
Technical Composition, Calculation, Key Components & Features
📌 VIDYA (Variable Index Dynamic Average)
An adaptive moving average that automatically adjusts its sensitivity based on prevailing market volatility.
Employs a volatility-weighted smoothing constant derived from standard deviation ratios, allowing the average to respond faster during high-momentum phases and slow down during consolidation.
Reduces lag during trend expansion while suppressing noise in low-volatility environments.
Provides clearer trend structure and regime awareness compared to fixed-length moving averages.
Serves as a dynamic baseline for volatility envelopes and trend-state classification within the system.
📌 Volatility Adjustment – Standard Deviation
The system constructs a volatility-adaptive envelope around the VIDYA baseline using standard deviation, allowing band width to expand and contract dynamically with changing market conditions.
VIDYA’s smoothing factor is adjusted by comparing short-term and longer-term standard deviation, increasing responsiveness during volatility expansion and dampening noise during compression.
Upper and lower bands are calculated by applying a configurable standard deviation multiplier to the VIDYA value, creating a proportional volatility boundary rather than a fixed offset.
Price movement beyond these bands confirms volatility-supported momentum, while price contained within the bands signals consolidation or transitional phases.
📌 Trend Signal Calculation
A bullish trend state is triggered when price closes above the upper standard deviation band, indicating sustained upward momentum with volatility confirmation.
A bearish trend state is triggered when price closes below the lower band, confirming downside momentum under expanding volatility.
Once established, the trend state persists until an opposing volatility break occurs, reducing whipsaw and improving regime stability.
Trend direction is visually reinforced through dynamic color-coding of the VIDYA line and its envelope, providing immediate directional context at a glance.
______
How It Works in Trading
✅ Trend Strength Detection – Evaluates cumulative price movement over a defined window to assess directional conviction.
✅ Noise Reduction – Applies adaptive smoothing techniques to minimize whipsaws during choppy conditions.
✅ Dynamic Thresholding – Utilizes volatility-aware bands to define customizable trend continuation and invalidation levels.
✅ Color-Coded Visualization – Enhances chart readability by clearly distinguishing bullish, bearish, and neutral states.
______
Visual Representation
Trend Signals on Moving Average and Background Color:
🟢 Green/Teal Moving Average – Strong Uptrend
🔴 Red/Pink Candles – Strong Downtrend
✅ Long & Short Labels can be turned on or off for trade signal clarity.
📊 Display of entry & exit points based on entry and exit criteria's.
📊 Display of Indicators equity and buy and hold equity to compare performance.
______
Features and User Inputs
The Standard Deviation Vidya MA framework incorporates a flexible set of user-defined inputs designed to balance adaptability, clarity, and analytical control.
VIDYA Configuration – Customize the Variable Index Dynamic Average length and price source to control trend responsiveness based on volatility-adjusted smoothing.
Volatility & Deviation Controls – Adjust standard deviation lookback periods and multipliers to fine-tune adaptive upper and lower thresholds used for trend qualification.
Backtesting & Date Filters – Define a start date for historical evaluation and enable range filtering to analyze performance during specific market periods.
Display & Visualization Options – Toggle labels, equity curves, and visual overlays to tailor the chart presentation to personal trading preferences.
Color Customization – Fully configurable buy/sell colors for both trend signals and equity curves, allowing intuitive visual differentiation between bullish and bearish phases.
______
Practical Applications
The Standard Deviation VIDYA MA is designed for traders seeking an adaptive trend-following framework that dynamically responds to changing market volatility. By combining VIDYA’s volatility-sensitive smoothing with standard deviation–based thresholds, the indicator offers a robust approach to directional analysis across multiple market conditions.
Key applications include:
Adaptive Trend Identification – Detect sustained bullish and bearish trends using a volatility-adjusted moving average that automatically accelerates or slows based on market activity.
Volatility-Aware Entry & Exit Signals – Utilize standard deviation bands to define dynamic breakout and invalidation zones, helping reduce false signals during low-volatility consolidation phases.
Noise-Filtered Trend Participation – Avoid whipsaws by requiring price expansion beyond adaptive deviation thresholds before confirming trend direction.
Systematic Backtesting & Evaluation – Analyze historical trend performance using built-in equity curves and date filters to assess effectiveness across different market regimes.
Visual Trend Confirmation – Leverage color-coded VIDYA lines, deviation zones, and optional labels to clearly interpret trend state and momentum strength in real time.
This framework bridges volatility analysis with adaptive trend logic, providing a disciplined and data-driven method for trend participation while maintaining clarity and interpretability in live trading environments.
______
Conclusion
The Standard Deviation VIDYA MA by QuantLapse represents a modern evolution of adaptive trend analysis, blending volatility-weighted smoothing with statistically driven deviation thresholds. By integrating VIDYA’s responsiveness with standard deviation-based confirmation, the system delivers clearer trend structure, reduced noise, and more reliable directional context across varying market regimes.
This indicator is particularly well-suited for traders who value adaptability, clarity, and rule-based decision-making over static moving average techniques.
🔹 Who should use Standard Deviation VIDYA MA:
📊 Trend-Following Traders – Identify and stay aligned with sustained directional moves while avoiding premature reversals.
⚡ Momentum Traders – Capture volatility-supported expansions when price breaks beyond adaptive deviation bands.
🤖 Systematic & Algorithmic Traders – Ideal as a volatility-aware trend filter for rule-based entries, exits, and portfolio frameworks.
🔹 Disclaimer: Past performance does not guarantee future results. All trading involves risk, and no indicator or methodology can ensure profitability.
🔹 Strategic Advice: Always backtest thoroughly, optimize parameters responsibly, and align settings with your personal risk tolerance, timeframe, and market conditions before deploying the indicator in live trading.
krishnadeshmukh/NIFTY50 Micro Sentiment Part 1📘 Script Description: NIFTY50 Micro Sentiment — Part 1
This indicator tracks real-time micro sentiment across the top 25 weighted stocks of the NIFTY50 index using a volume-based distribution model.
🔍 How it works:
Scans last N bars (configurable) for each stock.
Divides each stock’s price range into equal bins.
Measures bullish vs bearish volume in each bin based on:
Candle Color (Close > Open) or
Close Near High (Close > Midpoint).
Assigns a sentiment value:
+1 → Bullish dominance
-1 → Bearish dominance
0 → Neutral
📊 Each stock's sentiment is weighted by its contribution to the index.
🧮 Displays:
Weighted Sentiment Score
Bullish / Bearish / Neutral Components
Updated every 5 bars with an easy-to-read table.
Use this to gauge underlying micro shifts in sentiment before broader market moves.
krishnadeshmukh/NIFTY50 Micro Sentiment Part 1📘 Script Description: NIFTY50 Micro Sentiment — Part 1
This indicator tracks real-time micro sentiment across the top 25 weighted stocks of the NIFTY50 index using a volume-based distribution model.
🔍 How it works:
Scans last N bars (configurable) for each stock.
Divides each stock’s price range into equal bins.
Measures bullish vs bearish volume in each bin based on:
Candle Color (Close > Open) or
Close Near High (Close > Midpoint).
Assigns a sentiment value:
+1 → Bullish dominance
-1 → Bearish dominance
0 → Neutral
📊 Each stock's sentiment is weighted by its contribution to the index.
🧮 Displays:
Weighted Sentiment Score
Bullish / Bearish / Neutral Components
Updated every 5 bars with an easy-to-read table.
Use this to gauge underlying micro shifts in sentiment before broader market moves.
krishnadeshmukh/NIFTY50 Micro Sentiment Part 2📘 Script Description: NIFTY50 Micro Sentiment — Part 2
This indicator continues the NIFTY50 Micro Sentiment model by analyzing the remaining 25 stocks (Rank 26–50 by index weight) of the NIFTY50.
🔍 Key Features:
Applies the same volume-bin methodology used in Part 1.
Sentiment detection based on:
Candle Color (default) or
*Close vs Midpoint of the candle range.
Stocks are weighted by their index influence.
Output is a clean sentiment table:
+ve / -ve / Neutral Volume Score
Weighted Sentiment Output
Use this in conjunction with Part 1 to analyze the entire NIFTY50 sentiment landscape.
📘 Script Description: NIFTY50 Combined Score
This script aggregates live sentiment data from both:
🧩 NIFTY50 Micro Sentiment — Part 1
🧩 NIFTY50 Micro Sentiment — Part 2
🚀 What it does:
Imports Score, +ve, -ve, and Neutral components from both scripts.
Combines them to produce:
✅ Total Weighted Sentiment
🟢 Bullish Weight
🔴 Bearish Weight
🟡 Neutral Component
📊 Outputs are shown via a middle-right sentiment table, updated every 5 bars.
Perfect for traders seeking a unified view of micro sentiment across the entire NIFTY50 ecosystem — in one glance.
Triple Supertrend + EMA CrossoverCustomized 3 supertrend and EMA crossover which is helpful for identification of the trend.






















