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.
指标和策略
MTF H4 Double Maru - All Historydouble marubozu level at h4 will appear at lower timeframe, use it wisely , take action after price already near or react with the level
ORB Pro - NY Opening Range Breakout by Elev8+ORB Pro - NY Opening Range Breakout | Smart Support & Resistance
ORB Pro is a comprehensive, professional-grade toolkit designed for intraday traders who rely on the Opening Range Breakout (ORB) strategy.
Unlike standard ORB indicators that simply draw lines, this suite offers a complete dashboard-driven system that monitors four distinct sessions simultaneously, providing real-time status updates and precision alerts.
— — —
🎯 What is the Opening Range Breakout (ORB)?
The Opening Range is the price range established during the first period of the trading session (e.g., the first 15 or 30 minutes). This period represents the initial balance between buyers and sellers. A breakout from this range often signals the likely trend direction for the remainder of the session.
— — —
🚀 Key Features
1. Multi-ORB Monitoring
Stop switching settings constantly. This suite monitors four key ranges at once:
Pre-Market 15m (08:00 – 08:15 ET)
Pre-Market 30m (08:00 – 08:30 ET)
NY Cash Open 15m (09:30 – 09:45 ET)
NY Cash Open 30m (09:30 – 10:00 ET)
2. Smart Status Dashboard
A compact panel in the bottom-right corner gives you the live state of every session:
⏳ Waiting: The session has not started yet.
⚡ Forming: The range is currently being built.
↔️ Range: The range has formed, but price is still contained within the range.
🚀 BULL / 📉 BEAR: A confirmed breakout has occurred.
⛔ OFF: The session is disabled in settings.
3. "Dynamic Resolution" Technology
This is a unique pro feature.
Precision: The script always calculates the High/Low levels using 1-minute data , ensuring your support/resistance lines are pixel-perfect regardless of your chart timeframe.
Flexibility: Breakout signals (Alerts/Labels) are triggered based on your current chart timeframe. This allows you to trade a 5m or 15m breakout strategy while keeping 1m-level precision on your levels.
4. Visual Clarity
Breakout Labels: Automatically plots "BULL" or "BEAR" labels on the exact candle that confirms a breakout.
Profit Targets: Optional toggle to show 1x and 2x profit targets projected from the breakout level.
Time-Bound Signals: Signals are strictly time-bound to the active window to prevent late, low-quality alerts.
— — —
🛠️ How to Use
Add to Chart: Works best on intraday timeframes (1m, 5m, 15m).
Configure: Enable the sessions you trade (e.g., NY 15m) in the settings.
Wait for Forming: Watch the box form live. The dashboard will show "⚡ Forming".
Trade the Break: Wait for a candle Close outside the range. The dashboard will flip to "BULL" or "BEAR" and a label will appear.
Manage Risk: Use the opposite side of the range or the midline as your stop loss.
— — —
⚙️ Settings Overview
Global Settings: Toggle forming boxes, dashboard, and label visibility.
Breakout Method: Choose between Close (safer) or Wick (aggressive) for signal triggers.
Session Groups: Individually enable/disable the 4 distinct sessions and customize their colors/styles.
— — —
📝 Update Notes (Recent)
New PDH/PDL Levels: Added the ability to display Previous Day High and Previous Day Low lines on the chart.
Auto-Update & Cleanup: The PDH/PDL lines now automatically update daily and erase historical lines, ensuring only the current day's levels are visible to keep the chart clean.
Dashboard Positioning: Added a new setting to move the Status Dashboard to any corner of the screen.
Enhanced Customization: Added full styling options in settings for PDH/PDL lines and Dashboard positioning.
— — —
Disclaimer: This tool is for educational and analytical purposes only. Past performance of a strategy does not guarantee future results. Always manage your risk.
PMax & MOST SynergyIntroduction
This script brings together two of the most powerful trend-following and volatility-based trailing stop-loss indicators in the technical analysis world: Profit Maximizer (PMax) and Moving Stop Loss (MOST). By merging these two tools into a single, optimized script, this indicator aims to reduce chart clutter while providing a comprehensive trend-tracking solution. Both indicators are integrated with their original logic and default parameters, now fully compatible with the latest Pine Script v5 standards.
Development & Technical Logic
The indicator is designed for versatility, allowing traders to monitor dual layers of protection and trend confirmation.
PMax Integration: It utilizes the volatility-adjusted trailing stop-loss logic combined with a variety of selectable Moving Average types (SMA, EMA, VAR, etc.). In this version, the default PMax settings are pre-configured to utilize the Variable Moving Average (VAR) to ensure smoother trend detection with reduced lag.
MOST Integration: The script includes the Moving Stop Loss (MOST) logic, which provides a dynamic exit strategy based on percentage-based trailing stops.
Visual Enhancements: The PMax line has been visually updated to a distinct Blue color for better clarity, and all secondary signals (Support/Resistance lines and highlights) are set to be optional to keep the interface clean and professional.
Conclusion
This combined version is an ideal tool for trend followers who want to benefit from multiple confirmation layers. Whether you are looking for long-term trend stability with PMax or tactical exit/entry signals with MOST, this script provides the flexibility to adjust both independently. It eliminates the need for multiple indicator slots and offers a unified dashboard for trend analysis across various timeframes and assets.
Acknowledgements
I would like to express my sincere gratitude to the original developers who designed these essential tools:
Kivanc Ozbilgic (@KivancOzbilgic): Thank you for your immense contribution to the trading community and for developing the Profit Maximizer (PMax). Your work continues to be a cornerstone for many traders worldwide.
Ceyhun (@ceyhun): A special thanks for designing the Moving Stop Loss (MOST) indicator. Your innovative approach to trailing stops has significantly improved how we manage risk in the markets.
Tiered Buy IndicatorTiered Buy Indicator
accumulation strategy using 120 day sma + bollinger bands + RSI
EMA(Any) Cross Entries This indicator is a clean, directional EMA(6) crossover entry tool designed to identify high-quality trend entries while eliminating crossover noise. It plots a single EMA with a default length of 6 (optionally overridden by a user-defined length) and generates an ENTER LONG signal when price crosses above the EMA and an ENTER SHORT signal when price crosses below it. To prevent signal spam in trending or choppy conditions, the logic uses a directional arming system, allowing only one entry per direction until price crosses back to the opposite side of the EMA. An optional cooldown period further limits how frequently signals can occur. The result is a disciplined, visually clean entry tool that highlights meaningful momentum shifts rather than repeated micro-crosses around the moving average.
MACD + Divergence Indicator [Dynamic Filter]Title: MACD + Divergence
Description: This is an enhanced momentum analysis suite based on the classic Moving Average Convergence Divergence (MACD). It addresses the common weakness of the standard MACD—false signals during low-volatility consolidation—by integrating a Dynamic Volatility Filter and a Multi-Timeframe (MTF) Dashboard.
The Problem It Solves: Standard MACD indicators often generate "whipsaw" crossovers when the market is ranging (moving sideways). Traders often struggle to identify these consolidation zones until it is too late. This script solves this by calculating a dynamic "Consolidation Zone" based on Standard Deviation, visually warning traders when momentum is too weak to be reliable.
Key Features:
1. Dynamic Consolidation Filter (The Grey Zone)
The script calculates Upper and Lower bands around the MACD line using Standard Deviation (Volatility).
Grey Fill: When the MACD line is inside the grey bands, the market is in a "Squeeze" or low-volatility consolidation. Crossovers in this zone are often lower probability.
Breakout: When the MACD line exits the bands, it indicates a volatility expansion and a potentially stronger trend.
2. Automated Divergence Detection
Automatically scans for both Regular (Reversal) and Hidden (Continuation) divergences between Price and Momentum.
Bullish: Marked with Green lines/labels.
Bearish: Marked with Red lines/labels.
Customization: You can choose to calculate divergence based on the MACD Line or the Histogram via settings.
3. Multi-Timeframe (MTF) Dashboard
A customizable information table (optional) displays the MACD state across 4 different timeframes (e.g., 15m, 1H, 4H, Daily).
It checks for Trend Alignment (e.g., are all timeframes Bullish?) to help you trade in the direction of the higher timeframes.
4. Enhanced Visuals
4-Color Histogram: Visualizes momentum growing (bright) vs. momentum fading (pale) for both bullish and bearish phases.
Line Highlights: The MACD and Signal lines are clearly distinct, with configurable smoothing options (EMA/SMA).
Settings Guide:
Consolidation Filter: Increase the Dynamic Filter Multiplier (Default: 0.5) to widen the grey zone if you want to filter out more noise.
Oscillator Source: Switch between "MACD Line" or "Histogram" for divergence detection depending on your strategy.
Table: You can toggle the dashboard on/off or change its position to fit your chart layout.
Credits: Base MACD logic derived from standard technical analysis concepts. Dynamic filtering logic adapted from volatility band theories.
Multiple SMAs-EMAs & CrossesMoving averages (MA) are the bedrock of trend analysis. Choosing between Simple (SMA) and Exponential (EMA) depends on whether you prioritize stability or speed.SMA vs. EMA: The Main DifferenceThe core difference lies in how they handle data.
Simple Moving Average (SMA): Treats all days equally. A 50-day SMA averages the last 50 closing prices with no bias. It is smoother and less prone to "fake-outs," making it the gold standard for identifying long-term trends (e.g., the 200-day SMA).
Exponential Moving Average (EMA): Places more weight on the most recent price data. It reacts much faster to sudden market shifts. Short-term traders (scalpers and day traders) prefer EMAs to catch trend changes early.
The Crossover Strategy
A crossover occurs when a "fast" (short-period) MA crosses a "slow" (long-period) MA. This signals a shift in market momentum.
Golden Cross: Fast MA (e.g., 50) crosses above Slow MA (e.g., 200). Bullish: Indicates a potential long-term uptrend.
Death Cross: Fast MA (e.g., 50) crosses below Slow MA (e.g., 200).Bearish: Indicates a potential long-term downtrend.
Using Multiple Moving Averages, Traders often use a "ribbon" or a stack of three MAs to filter noise: Short-term (e.g., 9 or 20): Shows immediate price direction.Medium-term (e.g., 50): Acts as a trend filter and dynamic support/resistance. Long-term (e.g., 200): Defines the "big picture" macro trend.
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.
MTF RSI + Stoch RSI Panel RogmanThis script shows RSI and Stoch RSI values to assist with timing scalps
Hicham XAUUSD Key Levels PRO (Custom Series) V2🔑 XAUUSD Key Levels PRO | 1H / 4H Structure + Psychological Levels v2
This indicator is designed specifically for Gold (XAUUSD) traders who want clean, institutional-grade key levels without chart clutter.
It combines market structure levels with true psychological price levels used by institutions, making it ideal for scalping, intraday, and swing trading.
📌 Features
🔹 Market Structure Key Levels
Automatic 1H & 4H High / Low detection
Based on swing pivots (configurable strength)
Solid lines for clear structure visibility
🔹 Gold Psychological Levels (XAUUSD)
Major levels: every 500$ (strong institutional zones)
Medium levels: every 250$
Minor levels: every 10$
Dynamic levels around current price
No line spam, optimized performance
🔹 Visual Clarity
Solid / dashed / dotted line styles
Custom colors & line thickness
Optional price labels
Works perfectly on M1 → H4
🎯 Best Use Cases
Liquidity sweeps & reactions
Premium / discount zones
Stop-loss & take-profit placement
Confluence with BOS / CHoCH
London & New York sessions
⚙️ Fully Customizable
Toggle 1H / 4H levels
Adjust psychological level spacing
Enable / disable labels
Clean & lightweight (no lag)
⚠️ Notes
Optimized for XAUUSD (Gold)
Best results when combined with price action & structure
Not a trading signal indicator
If you want:
Session-based levels
Alerts on key levels
Smart Money Concepts integration
Feel free to comment or DM 👊
Happy trading 💛📈
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
hichamfata
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Liquidity Sweep Guardian-NQ versionThis indicator is only optimized for CME future NQ or MNQ. If you want to use for other product, adjust your own setting.
The indicator is used as a visual aid for warning trader do not fade trend before PDL or PDH liquidity sweep. The box wrapper around PDH and PDL is a warning box. Liquidity can be super thin when price is approaching the box, so do not fade the trend (counter trend trading when you are near the box before PDH or PDL sweep.
There is no universal strategy if you should go long or short when PDL or PDH is reached, but this indicator is designed for trader to avoid get caught when fading a trend that is going to sweep PDL or PDH.
example here
Here is the Full guide:
# Liquidity Sweep Guardian
## Overview
A visual warning system that helps traders avoid premature counter-trend entries near key liquidity levels (Previous Day High/Low). The indicator displays danger zones centered on PDH/PDL and tracks when these levels have been swept and reclaimed.
**This is a WARNING system, not a trade signal generator.**
---
## The Problem It Solves
One of the most common trading mistakes:
> Price is falling toward PDL. You see a bullish candle 40 points above PDL and think "maybe it reverses here." You enter long. Price then accelerates DOWN, sweeps PDL, and your stop gets hit. The reversal you wanted happens AFTER the sweep—without you.
This indicator prevents that mistake by:
1. Showing you when you're in the "danger zone" near a key level
2. Warning you NOT to fade until the level has been swept
3. Unlocking fade consideration only AFTER sweep + reclaim
---
## How It Works
### Danger Zone (Red Box)
- Centered on PDH and PDL
- Default: ±75 points (150 point total zone)
- When price is in this zone and the level hasn't been swept → **avoid counter-trend trades**
### Critical Zone (Inner Red Box)
- Tighter zone around the level
- Default: ±25 points
- Highest risk area for premature entries
### Sweep Detection
When price penetrates beyond the level:
- **SWEEP** (10-25 pts): Normal liquidity grab, watch for reclaim
- **EXTENDED** (25-50 pts): Deeper than typical, use caution
- **CONTINUATION** (50+ pts): Likely trend continuation, not a sweep
### Unlock Condition
**"🔓 LONG UNLOCKED"** or **"🔓 SHORT UNLOCKED"** appears when:
1. The level has been swept (price went beyond it)
2. Price has reclaimed back through the level
3. Sweep depth was NOT in continuation territory (50+ pts)
**UNLOCKED means you MAY now consider a fade setup. It is NOT an entry signal.**
---
## Visual Elements
| Element | Description |
|---------|-------------|
| **Red Box** | Danger zone - avoid fading until swept |
| **Inner Red Box** | Critical zone - highest trap risk |
| **Green Box** | Zone is unlocked - sweep complete |
| **"SWEEP" Label** | Level has been penetrated |
| **"🔓 UNLOCKED" Label** | Sweep complete + reclaim - may consider fade |
| **"⚠️ CONTINUATION?" Label** | Deep penetration (50+ pts) - likely not a reversal |
---
## Settings
### Danger Zone Settings
- **Danger Zone Size**: Distance above AND below level (default: 75 pts)
- **Critical Zone Size**: Inner high-risk zone (default: 25 pts)
### Sweep Classification
- **Real Sweep Min/Max**: Point range for normal sweep (default: 10-25 pts)
- **Fake Sweep / Continuation**: Depth that suggests continuation (default: 50 pts)
- **Max Bars for Reclaim**: How quickly price should reclaim (default: 5 bars)
---
## How to Use
### ❌ DON'T
- Enter long when price is in PDL danger zone and PDL hasn't been swept
- Enter short when price is in PDH danger zone and PDH hasn't been swept
- Fade immediately when you see the "SWEEP" label
- Treat "UNLOCKED" as a buy/sell signal
### ✅ DO
- Wait for the SWEEP label before considering a fade
- Wait for the UNLOCKED label before looking for entry setups
- Use your own entry criteria AFTER unlock (consolidation, reclaim, patterns, etc.)
- Respect deep penetrations (50+ pts) as potential continuation, not reversal
---
## The Core Concept
**Price often accelerates INTO liquidity sweeps.**
That bullish candle you see 40 points above PDL? It's often the last gasp before the sweep, not the reversal. Smart money needs to:
1. Sweep the lows (trigger stops)
2. Grab liquidity
3. THEN reverse
By waiting for the sweep + reclaim, you align with this flow instead of getting trapped.
---
## Alerts
- **Entering Danger Zone**: Price entering PDH/PDL zone
- **Swept**: Level has been penetrated
- **Unlocked**: Sweep complete + reclaim
- **Deep Continuation**: 50+ point penetration warning
---
## Best Practices
1. **Patience over prediction**: Don't anticipate the sweep—wait for it
2. **Unlock ≠ Entry**: Unlocked means you can START looking for setups
3. **Respect continuation**: 50+ point penetration often means trend continues
4. **Use with your system**: This is a filter/warning, not a strategy
---
## Notes
- Designed for NQ/ES futures but works on any instrument
- Adjust point values for different instruments (e.g., ES uses smaller values)
- Session resets at 6PM ET (CME futures session)
- Works on any timeframe
---
## Summary
> **Don't fade until swept. Don't enter until unlocked. Unlocked ≠ Entry signal.**
The indicator's job is to keep you OUT of bad trades, not get you INTO trades. Your job is to find quality entries AFTER the indicator gives you permission to look.
---
*"The reversal you want comes AFTER the sweep. Every time. And when it doesn't? It wasn't a reversal—it was continuation. Either way, waiting was the right choice."*
BK AK-IED💥 Introducing BK AK-IED — Volatility Ignition / Expansion / Detonation 💥
A pressure-to-release weapon system for traders who want timing, not noise.
Markets don’t move clean because they “feel like it.” They load, they ignite, and then they detonate into expansion. BK AK-IED is built to expose that sequence in real time—so you stop trading randomness and start trading regime shifts.
⚔️ What BK AK-IED is
BK AK-IED is a 3-speed VWMA energy oscillator that blends price movement + volume into a single pressure readout:
Fast (5) = ignition energy (range-driven)
Medium (21) = core pressure engine
Slow (55) = structural volatility backdrop
It’s not a “direction oracle.” It’s an energy meter that tells you when the market is coiling, when it’s waking up, and when it’s breaking out with force.
🧠 Core Weapon Systems
✅ Dynamic Scaling
Keeps the oscillator readable across symbols (no ridiculous y-axis blowouts).
✅ Volatility State Bar (Bottom Strip) — Your War Room
🟨 CONTRACTION = VWMA convergence / coil / pressure loading
🟩 EXPANSION = energy spike begins
🟥 BREAKOUT = expansion without contraction (release phase)
⬜ NEUTRAL = dead zone, don’t force it
✅ Breakout Peak Icons (Crown markers)
Crowns print only when there’s true breakout energy and the move hits major peak territory versus recent extremes. Translation:
tighten risk, scale-out, stop getting greedy. These are exhaustion warnings—not automatic reversals.
Timeframe-adaptive peak filtering is built in:
< 1H: stricter peak requirement
≥ 1H: more realistic swing threshold
🧭 How to use it (execution, not opinions)
1) 🟨 Contraction = don’t bleed.
This is the chop factory. You wait. You map levels. You stalk.
2) 🟩 Expansion = prepare.
Start aligning with structure: trend framework, VWAP, key levels, HTF bias.
3) 🟥 Breakout = engage.
This is where moves pay. Trade the direction your structure supports and manage risk like a professional.
4) 👑 Peak during breakout = harvest / protect.
Scale. Tighten stops. Don’t turn winners into donations.
🧱 Inputs that matter (what you’re actually tuning)
Amplitude Multiplier = how aggressive the energy read is
VWMA Spread Contraction Threshold = how tight “coil” must be to count
Scale Lookback = how far back the dynamic scaling references
Peak Thresholds = how selective peaks are (auto-switches based on timeframe)
The “AK” in the name is an acknowledgment of my mentor A.K. His standards (patience, precision, clarity, and emotional control) are a major reason I build tools with structure instead of hype.
And above all: all praise to Gd — the true source of wisdom, restraint, and right timing.
👑 King Solomon Lens — ZENITH Discipline
Solomon didn’t build greatness by impulse. He built it by measure, order, and restraint.
When the Temple was built, the stones were prepared away from the site—so the structure went up with precision, not chaos. That is the market lesson: the decisive moment is loud, but the preparation is silent. If you only show up for the noise, you will always arrive late.
BK AK-IED is that Solomon blueprint on a chart:
🟨 Contraction is the quarry.
The market is cutting the stones in silence. This is where the undisciplined burn money “doing something.” The wise do the opposite: they reduce noise, define levels, and wait.
🟩 Expansion is the line being set.
Pressure starts to move. This is where you bring structure online—bias, levels, risk plan. Not excitement.
🟥 Breakout is the placement.
The stone drops into position. This is the only phase where aggression is righteous—because it’s backed by a real shift, not hope.
👑 Peak icons are ZENITH—crown-of-the-move logic.
Zenith is where force and momentum reach their highest point before decay begins. The crown is not “celebrate and add.” The crown is govern yourself: harvest, tighten, protect. Solomon’s edge wasn’t prediction—it was rule over the self. That’s what separates profit from punishment.
This is what wisdom looks like in trading: not guessing the future—governing your exposure when the present is telling you the truth. And may Gd bless your restraint as much as your entries, because restraint is where survival becomes power.
✅ Final
BK AK-IED is your volatility weapon for market warfare:
Load → Ignite → Detonate.
Use it with structure. Use it with discipline. And give praise to Gd for every protected loss, every clean entry, and every moment you didn’t force a trade. 🙏
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.
Tradegrill: Dollar Value TradedTraditional volume shows the number of shares/contracts traded, but it doesn't account for price differences. A $100 stock trading 1 million shares represents far more capital commitment than a $10 stock trading the same amount.
VWAP based long only- AdamMancini//@version=6
indicator("US500 Levels Signal Bot (All TF) v6", overlay=true, max_labels_count=500, max_lines_count=500)
//====================
// Inputs
//====================
levelsCSV = input.string("4725,4750,4792.5,4820", "Key Levels (CSV)")
biasMode = input.string("Auto", "Bias Timeframe", options= )
emaLen = input.int(21, "Bias EMA Length", minval=1)
rsiLen = input.int(14, "RSI Length", minval=1)
atrLen = input.int(14, "ATR Length", minval=1)
proxATR = input.float(0.35, "Level Proximity (x ATR)", minval=0.05, step=0.05)
slATR = input.float(1.30, "SL (x ATR)", minval=0.1, step=0.05)
tp1ATR = input.float(1.60, "TP1 (x ATR)", minval=0.1, step=0.05)
tp2ATR = input.float(2.80, "TP2 (x ATR)", minval=0.1, step=0.05)
useTrend = input.bool(true, "Enable Trend Trigger (Break & Close)")
useMeanRev = input.bool(true, "Enable Mean-Reversion Trigger (Sweep & Reclaim)")
showLevels = input.bool(true, "Plot Levels")
//====================
// Bias TF auto-mapping
//====================
f_autoBiasTf() =>
sec = timeframe.in_seconds(timeframe.period)
string out = "240" // default H4
if sec > 3600 and sec <= 14400
out := "D" // 2H/4H -> Daily bias
else if sec > 14400 and sec <= 86400
out := "W" // D -> Weekly bias
else if sec > 86400
out := "W"
out
biasTF = biasMode == "Auto" ? f_autoBiasTf() :
biasMode == "H4" ? "240" :
biasMode == "D" ? "D" :
biasMode == "W" ? "W" : "Off"
//====================
// Parse levels CSV + plot lines (rebuild on change)
//====================
var float levels = array.new_float()
var line lvlLines = array.new_line()
f_clearLines() =>
int n = array.size(lvlLines)
if n > 0
// delete from end to start
for i = n - 1 to 0
line.delete(array.get(lvlLines, i))
array.clear(lvlLines)
f_parseLevels(_csv) =>
array.clear(levels)
parts = str.split(_csv, ",")
for i = 0 to array.size(parts) - 1
s = str.trim(array.get(parts, i))
v = str.tonumber(s)
if not na(v)
array.push(levels, v)
f_drawLevels() =>
f_clearLines()
if showLevels
int n = array.size(levels)
if n > 0
for i = 0 to n - 1
lv = array.get(levels, i)
array.push(lvlLines, line.new(bar_index, lv, bar_index + 1, lv, extend=extend.right))
if barstate.isfirst or levelsCSV != levelsCSV
f_parseLevels(levelsCSV)
f_drawLevels()
// Nearest level
f_nearestLevel(_price) =>
float best = na
float bestD = na
int n = array.size(levels)
if n > 0
for i = 0 to n - 1
lv = array.get(levels, i)
d = math.abs(_price - lv)
if na(bestD) or d < bestD
bestD := d
best := lv
best
//====================
// Bias filter (higher TF) - Off supported
//====================
bool biasBull = true
bool biasBear = true
if biasTF != "Off"
b_close = request.security(syminfo.tickerid, biasTF, close, barmerge.gaps_off, barmerge.lookahead_off)
b_ema = request.security(syminfo.tickerid, biasTF, ta.ema(close, emaLen), barmerge.gaps_off, barmerge.lookahead_off)
b_rsi = request.security(syminfo.tickerid, biasTF, ta.rsi(close, rsiLen), barmerge.gaps_off, barmerge.lookahead_off)
biasBull := (b_close > b_ema) and (b_rsi > 50)
biasBear := (b_close < b_ema) and (b_rsi < 50)
//====================
// Execution logic = chart timeframe (closed candle only)
//====================
atr1 = ta.atr(atrLen)
rsi1 = ta.rsi(close, rsiLen)
c1 = close
c2 = close
h1 = high
l1 = low
// Manual execution reference: current bar open (next-bar-open proxy)
entryRef = open
lvl = f_nearestLevel(c1)
prox = proxATR * atr1
nearLevel = not na(lvl) and (math.abs(c1 - lvl) <= prox or (l1 <= lvl and h1 >= lvl))
crossUp = (c2 < lvl) and (c1 > lvl)
crossDown = (c2 > lvl) and (c1 < lvl)
sweepDownReclaim = (l1 < lvl) and (c1 > lvl)
sweepUpReject = (h1 > lvl) and (c1 < lvl)
momBull = rsi1 > 50
momBear = rsi1 < 50
buySignal = nearLevel and biasBull and momBull and ((useTrend and crossUp) or (useMeanRev and sweepDownReclaim))
sellSignal = nearLevel and biasBear and momBear and ((useTrend and crossDown) or (useMeanRev and sweepUpReject))
//====================
// SL/TP (ATR-based)
//====================
slBuy = entryRef - slATR * atr1
tp1Buy = entryRef + tp1ATR * atr1
tp2Buy = entryRef + tp2ATR * atr1
slSell = entryRef + slATR * atr1
tp1Sell = entryRef - tp1ATR * atr1
tp2Sell = entryRef - tp2ATR * atr1
//====================
// Plot signals
//====================
plotshape(buySignal, title="BUY", style=shape.labelup, text="BUY", location=location.belowbar, size=size.tiny)
plotshape(sellSignal, title="SELL", style=shape.labeldown, text="SELL", location=location.abovebar, size=size.tiny)
//====================
// Alerts (Dynamic) - set alert to "Any alert() function call"
//====================
if buySignal
msg = "US500 BUY | TF=" + timeframe.period + " | Bias=" + biasTF +
" | Lvl=" + str.tostring(lvl) +
" | EntryRef=" + str.tostring(entryRef) +
" | SL=" + str.tostring(slBuy) +
" | TP1=" + str.tostring(tp1Buy) +
" | TP2=" + str.tostring(tp2Buy)
alert(msg, alert.freq_once_per_bar_close)
if sellSignal
msg = "US500 SELL | TF=" + timeframe.period + " | Bias=" + biasTF +
" | Lvl=" + str.tostring(lvl) +
" | EntryRef=" + str.tostring(entryRef) +
" | SL=" + str.tostring(slSell) +
" | TP1=" + str.tostring(tp1Sell) +
" | TP2=" + str.tostring(tp2Sell)
alert(msg, alert.freq_once_per_bar_close)
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)
Tamil, Buy/Sell Signal for Day Trade and Swing TradeTamil – Buy/Sell Signal for Day Trade and Swing Trade is a price-action style indicator that prints Long and Short signals and automatically projects a full trade plan on the chart: Entry (EP), Stop-Loss (SL), and up to 5 Take-Profit levels (TP1–TP5).
It combines multiple momentum/overextension filters (Keltner Channel bands, CCI, ROC, RSI, Parabolic SAR, and Balance of Power) to detect oversold dips for longs and overbought spikes for shorts. When a signal triggers, the script:
• Draws a signal label showing EP/SL/TP1–TP5 values.
• Plots step lines for EP, SL, and TP levels so you can manage the trade visually.
• Marks TP hits and Stop hits with shapes + background highlights.
• Includes a 200-length DEMA plot for higher-timeframe trend context (optional visual filter).
How signals work (high level):
• Long Signal: price pushes below a deeper Keltner lower band (mean-reversion setup) + bearish momentum extremes (CCI/BOP/ROC) with SAR/median conditions confirming a dip setup.
• Short Signal: price pushes into upper Keltner expansion + bullish momentum extremes (CCI/RSI/ROC) with SAR/median conditions confirming a spike setup.
Best use: intraday scalps or swing entries where you want clear, pre-defined levels for scaling out (TP1→TP5) and strict risk control (SL).
Note: This is an indicator (not a strategy backtest). Always validate on your instrument/timeframe and use risk management
Goldbach Timing Model This indicator is designed as a simple visual framework rather than a rigid signal system. It highlights time-based structure and key alignment zones to help identify when price behavior is more likely to be active or responsive. The logic is intentionally flexible, allowing the user to apply their own discretion instead of relying on strict conditions. Its primary value is visual clarity and context, not automatic entries or exits.
Yearly VWAPIn this update, I’ve enhanced the Yearly VWAP script so that it now works reliably on all timeframes starting from the 5-minute chart and higher. Previously, the monthly reset logic caused inconsistencies on lower timeframes. Now, the indicator uses a yearly reset based on the calendar year, ensuring stable and accurate VWAP calculations without issues.
In short, you can confidently apply this Yearly VWAP to any timeframe from 5 minutes upwards and get consistent results.






















