Chỉ báo và chiến lược
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.
avax by dionfor adding liquidity for view the trend then avax foundation adding liquidity whats the price action
Market Potential EstimatorWhat this indicator shows
This indicator measures how much potential movement the market still has, not direction.
It answers the question:
“Does the market still have room to move, or is it already exhausted?”
Red zone (Low potential)
Exhaustion / slowdown zone.
The market has used most of its available range.
Expect:
consolidation
pullbacks
reduced follow-through
⚠️ Red does NOT mean reversal
How to use it correctly
Use it as a filter, not a trigger
Avoid opening new trades in red zones
Reduce targets when potential is low
Combine with:
direction/bias
momentum
structure
EURUSD | Yield Curve Flip Strategy (2s10s State Flips)Strategy Core (Concept)
The strategy trades EURUSD exclusively when the US yield curve regime (2Y/10Y) flips into a new, clearly bullish or bearish regime. The core assumption is that re-pricing in the US yield curve (rather than individual data points) is a robust driver of USD strength or weakness and can act as a structural trigger for trend changes.
⸻
Data Basis
• Uses US 2Y Yield (TVC:US02Y) and US 10Y Yield (TVC:US10Y).
• The 2s10s curve is calculated as:
curveUS = US10Y – US2Y
• Regime assessment is based on the N-day change (default: 5 days), calculated on true rates bars (not intraday noise).
⸻
Regime Detection (Correct Bond Logic)
First, the strategy checks whether the curve has significantly steepened or flattened over the lookback period:
• Steepener if Δ(2s10s) > thrCurve (default: +0.10 percentage points = 10 bp)
• Flattener if Δ(2s10s) < −thrCurve
Next, a leg confirmation determines the specific type of steepener/flattener (default thrLeg = 5 bp):
Bull Steepener
• Curve steepens because yields fall, with the 2Y falling more (risk-off / rate-cut pricing)
Bear Steepener
• Curve steepens because yields rise, with the 10Y rising more (reflation / term-premium move)
Bull Flattener
• Curve flattens because yields fall, with the 10Y falling more (growth shock / long-end rally)
Bear Flattener
• Curve flattens because yields rise, with the 2Y rising more (hawkish repricing / front-end up)
Important: By default, a Bear Steepener is not treated as a bearish signal, unless allowBearSteepForShort is enabled.
⸻
State Machine (Memory + Flip Triggers)
The strategy maintains a persistent state variable curveState:
• +1 = bullish
• −1 = bearish
• 0 = neutral
The state is updated only on a new rates bar (daily rates when tfRates = "D"), avoiding intraday noise.
A trade is generated only on a true regime flip:
• flipToBull: new state turns bullish and the previous state was bearish (or neutral, if allowed)
• flipToBear: new state turns bearish and the previous state was bullish (or neutral, if allowed)
The option enterFromNeutral controls whether the first clear regime emerging from neutral is traded.
The option onlyOnNewRatesBar ensures signals occur only when a new rates bar is printed, providing clean timing.
⸻
Trading Rules (Entry / Exit)
There are no stops, targets, or trailing mechanisms. The strategy is a pure regime-switching / reversal system:
• On flipToBull
• Close short (“S”)
• Open long (“L”)
• On flipToBear
• Close long (“L”)
• Open short (“S”)
Positions are therefore held until the next regime flip.
⸻
Parameter Interpretation
• N: Smoothing / inertia. Smaller = faster but noisier; larger = more stable but later.
• thrCurve: Minimum curve move required to define a regime.
• thrLeg: Minimum move of the confirming leg (2Y or 10Y) to reduce misclassification.
• allowBearSteepForShort: Makes the system more aggressive (more bearish signals), but represents a different macro case.
• enterFromNeutral: Increases trade frequency by trading the first regime impulse.
⸻
What You See on the Chart
• Background shading:
• Green for bullish state
• Red for bearish state
• The curve and Δ-curve are plotted but hidden (display=none), mainly for debugging and analysis.
High Volume Breakout DetectorThis indicator is a dedicated volume analysis tool displayed in a separate pane below the price chart. It visually highlights significant volume surges (spikes) by comparing the current bar's volume to a dynamic threshold based on a Simple Moving Average (SMA) of volume.
Key Concepts and Methodology:
- The core calculation uses a user-configurable Simple Moving Average (default: 20 periods) of historical volume to establish a baseline of "normal" trading activity.
- A customizable multiplier (default: 1.50, meaning 150% of the SMA) defines the threshold for a volume spike. When the current bar's volume meets or exceeds this threshold, it is classified as a spike—indicating unusually high participation that often accompanies breakouts, reversals, climaxes, or institutional activity.
- Volume bars are plotted as columns and colored based on two factors:
- Candle direction: Green shades for bullish candles (close ≥ open), red shades for bearish candles (close < open).
- Spike status: Brighter/solid colors for confirmed spikes, muted/translucent colors for normal volume. This candle-matched coloring helps traders quickly assess whether the surge supports buying pressure (green spike on up candle) or selling/distribution (red spike on down candle).
- Optional overlays include the volume SMA line (blue) and the dynamic threshold line (orange, plotted as circles for easy distinction).
Features and Customization:
- Fully adjustable inputs: SMA length, multiplier threshold, colors for up/down/normal/spike bars, and toggles for showing the SMA line, threshold line, or background highlighting on spikes.
- Built-in alert condition triggers reliably on volume spikes (≥ selected multiplier of SMA), with a constant message string including ticker, timeframe, volume value, and threshold reference.
How to Use:
- Add to any chart in a separate pane (overlay=false).
- Look for brighter colored volume bars as potential signals of conviction in price moves. For example:
- Green spikes on up candles may signal strong accumulation or breakout confirmation.
- Red spikes on down candles may indicate distribution or exhaustion selling.
- Combine with price action, support/resistance, or trend indicators for confluence.
- Ideal for day trading, swing trading, or spotting volume climaxes on stocks, forex, crypto, or futures across any timeframe.
The unique combination of candle-direction-matched coloring for spikes, visual threshold plotting, and focused spike highlighting provides clearer, more actionable insight into directional volume pressure compared to standard volume displays.
MTF rsi/stoch imdI just built this indicator.
It displays a multi-timeframe (MTF) table directly on the chart, showing Stoch RSI K and RSI values per timeframe.
Cell background colors are driven by predefined value ranges, while text color turns green or red depending on whether the value is rising or falling compared to the previous candle on the same timeframe.
The RSI color conditions are based on the levels 36, 46, 56, and 65.
The Timeframe Pack selector works as follows:
Pack 1 (BNC): 3m, 9m, 27m, 1h, 81m, 3h, 9h, 12h, 1D, 3D, 1W, 9D
Pack 2: 1h through 24h
Pack 3: 1D through 24D
Pack 4 (Custom): fully user-defined timeframes via the 24 slots
Only when Pack 4 (Custom) is selected do the custom timeframe slots apply; in Packs 1–3 they are ignored.
All visual behavior (box colors, text colors, transparency, or a single-color override) is configurable under Style, and the entire table can be toggled on or off.
Custom ORB (Adjustable Time + Alerts)Opening range Breakout for the current day only. Time frame and be adjusted for first 15 min, 30 min, e.g., 9:30 am to 9:45 am or to 10 am, etc. You can add price alerts for high and low. You can also change the color of solid lines.
VWMA Strategy Signals - Daily OptimizedVWMA Strategy Signals using RSI, Supertrend, EMA and VWMA on the Daily charts.
Trading Sessions Highlighter (Extensible) - v6Allows you to create customisable trading sessions besides the usual ones
ICT FVG + BPR + Liquidity StrategyICT-Based Strategy combining:
• 4H Fair Value Gaps (FVG) for directional bias
• Balanced Price Range (BPR) zones for entry refinement
• PDH/PDL liquidity sweeps for confirmation
• Daily swing high/low structure
• London session time windows (07:45-11:45 & 14:00-14:45 GMT)
• High-volume liquidity zone detection
• Trailing stops at 1R increments
Features:
✓ 15+ years backtested (2010-2025)
✓ Works on GBPUSD, GBPJPY, USDCAD
✓ Asymmetric risk/reward (1R-10R winners vs -1R losses)
✓ Automated entry/exit signals
✓ Full risk management (1% per trade)
Best for: Personal accounts, swing trading, education
Prop firm modifications included in comments.
Free to use & modify - Share improvements!
Created by: BacktestBay
Volume Suite: RVOL + Delta CandlesRelative Volume + High Volume Delta Candles.
Great to spot high Effort from Buyers and Sellers.
Nifty Hierarchical Macro GuardOverview
The Nifty Hierarchical Macro Guard is a "Market Compass" indicator specifically designed for Indian equity traders. It locks its logic to the Nifty 50 Index (NSE:NIFTY) and applies a strict hierarchy of trend analysis. The goal is simple: prioritize the long-term trend (Monthly/Weekly) to decide if you should even be in the market, then use the short-term trend (Daily) for precise exit timing.
This script ensures you never ignore a macro "crash" signal while trying to trade minor daily fluctuations.
The Color Hierarchy (Priority Logic)
The indicator uses a "Top-Down" filter. Higher timeframe signals override lower timeframe signals:
Level 1: Monthly (Ultra-Macro) — Deep Maroon
Condition: Nifty 10 EMA is below the 20 EMA on the Monthly chart.
Action: This is the highest priority. The background will turn Deep Maroon, overriding all other colors. This is your "Forget Trading" signal. The long-term structural trend is broken.
Level 2: Weekly (Macro Warning) — Dark Red
Condition: Monthly is Bullish, but Nifty 10 EMA is below the 20 EMA on the Weekly chart.
Action: The background turns Dark Red. This indicates a significant macro correction. You should stay out of fresh positions and protect capital.
Level 3: Daily (Tactical) — Light Red / Light Green
Condition: Both Monthly and Weekly are Bullish (Green).
Action: The background will now react to the Daily 10/20 EMA cross.
Light Green: Nifty is healthy; safe for fresh positions.
Light Red: Tactical exit signal. Nifty is seeing short-term weakness; exit positions quickly.
Key Features
Symbol Locked: No matter what stock you are viewing (Reliance, HDFC, Midcaps), the background only reacts to NSE:NIFTY.
Clean Interface: No messy lines or labels on the price chart. The information is conveyed purely through background color shifts.
Customizable: Change the MA types (EMA/SMA) and lengths (e.g., 10/20 or 20/50) in the settings.
Macro Dashboard: A small, transparent table in the top-right corner displays exactly which timeframe is currently controlling the background color.
How to Use for Nifty Strategy
Stay Out: If the chart is Deep Maroon or Dark Red, do not look for "buying the dip." Wait for the macro health to return.
Take Exits: If the background is Light Green and suddenly turns Light Red, it means the Daily Daily 10/20 cross has happened. Exit your Nifty-sensitive positions immediately.
WMD Weekly OR (IST) Sidweekly OR (First hour) and mid point for various instruments based on indian standard time.
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
VWMA Strategy Signals - Daily OptimizedVWMA, RSI, SUPERTREND, EMA INDICATOR buy sell signals optimized for the daily charts
Advance SMC (Milad Tayefi)Smart money indicator which recognizes market structure and produces buy/sell signals.






















