NQ Market DNA MapNQ Market DNA Map
The Market DNA Map indicator is designed to visualize key trading sessions (Asia, London, and New York) on the chart while providing a probabilistic lookup table based on historical session patterns. This tool draws session boxes with midline references, extends session highs and lows until mitigated or a daily hardstop (16:00 in the selected timezone), and displays a summary table with statistical metrics derived from predefined historical data. The data mappings are hardcoded, reflecting an analytical approach for session-based price action. Note that all probabilities and metrics are based on past observations and should not be interpreted as predictions or guarantees of future market behavior. These statistics are only tested and generated based on NQ futures. This indicator is for educational and informational purposes only; trading decisions should incorporate additional analysis and risk management.
Key Features
• Session Visualization:
o Draws colored boxes for the Asia, London, and New York sessions, updating in real-time as the session progresses.
o Includes a dotted midline within each box for quick reference to the session's midpoint.
o Extends horizontal lines from the final session high and low until price mitigates them (crossing both above and below) or the daily hardstop is reached.
• Probabilistic Table:
o A customizable-position table appears on the chart (once the New York open is detected), summarizing conditions and metrics for the current day's setup.
o Conditions include: Asia range relative to its rolling average, London open relative to Asia's midpoint, London sweep type (high only, low only, both, or none), and New York open relative to London's midpoint.
o Metrics displayed include:
First High Sweep %: Probability (based on historical data) that the high of the prior session is swept first during New York.
First Low Sweep %: Probability that the low is swept first.
Med Pen ↑ (High): Median penetration distance (in points) above the session high.
Med Pen ↓ (Low): Median penetration below the session low.
Fail High -> Low %: Failure rate where an initial high sweep fails and reverses to sweep the low.
Fail Low -> High %: Failure rate for an initial low sweep reversing to the high.
Sample Size: Number of historical observations for the matching pattern (n value), with a rating of "High" (n ≥ 150), "Mid" (n ≥ 75), or "Low" (n < 75) to indicate data reliability.
o The table uses color-coding for quick interpretation: Green for above-average/above-mid conditions, red for below, and neutral tones for metrics.
• Asia Range Ratio: Calculates a rolling average of Asia session ranges over a user-defined lookback period to classify the current Asia range as above or below average.
• Hardstop Logic: All extensions cease at 16:00 in the selected timezone to align with typical daily cycle resets.
Inputs and Customization
• Calculation Timezone: Select from predefined options (e.g., "America/New_York", "Europe/London") to align session times with your preferred market clock. Default: "America/New_York".
• Session Times:
o Asia Session: Default "2000-0200" (8:00 PM to 2:00 AM in the selected timezone).
o London Session: Default "0200-0800" (2:00 AM to 8:00 AM).
o NY Session: Default "0800-1600" (8:00 AM to 4:00 PM). These can be adjusted to match specific market hours or personal preferences.
• Asia Ratio Rolling Window: Integer lookback (default: 20) for calculating the average Asia session range ratio (range divided by open price).
• Table Position: Choose where the summary table appears on the chart (e.g., top_right, bottom_right). Default: top_right.
• Colors: Customizable box fill and border colors for each session (Asia: yellow tones, London: blue, NY: gray) with transparency settings for overlay compatibility.
How It Works
1. Session Detection: The indicator checks the current bar's time against user-defined sessions in the selected timezone. Sessions are non-overlapping and assume a 24-hour cycle.
2. Box and Line Drawing:
o At session start, a box is initialized from the open/high/low.
o As the session progresses, the box expands to capture the live high/low, with the midline updating dynamically.
o Upon session end, final high/low are locked, and extension lines are drawn horizontally.
o Extensions persist until price fully mitigates the level (high ≥ level and low ≤ level) or the hardstop time is passed.
3. Asia Ratio Calculation: Maintains a historical array of Asia range ratios (high-low divided by open). The current ratio is compared to the average over the lookback to classify as "Above Avg" or "Below Avg".
4. Key Generation and Lookup:
o A unique key is built from four binary/ternary codes: Asia classification (0/1), London open vs. Asia mid (0/1), London sweep type (0=high only, 1=low only, 2=both, 3=none), NY open vs. London mid (0/1).
o This key queries a hardcoded map of historical data (e.g., "0_0_0_0" for above-avg Asia, above-mid London open, high-only sweep, above-mid NY open).
o Data includes sample size, probabilities, failure rates, and median penetrations, all derived from historical analysis (total samples across all keys: approximately 5,000+ based on the provided mappings).
5. Table Rendering: On the last bar (real-time), the table populates with the current key's data. Metrics are formatted for readability, and penetration values are scaled to the current London high/low in points for context.
6. Performance Notes: The indicator uses up to 500 lines and boxes for extensions and visuals, ensuring compatibility with TradingView limits. It is overlay=true, so it plots directly on the price chart.
Data Source and Limitations
The probabilistic data is hardcoded and represents a compilation of historical session patterns from backtested or observed market behavior on NQ futures. Exact data collection methodology is not specified in the script, but values are presented as-is for illustrative purposes. Users should verify applicability to their specific symbol/timeframe, as markets evolve and past patterns may not repeat. Low-sample patterns (rated "Low") have higher uncertainty.
This indicator does not generate buy/sell signals, alerts, or trading strategies—it solely provides visual and statistical context. Always combine with other tools, fundamental analysis, and proper risk controls. Trading involves risk of loss; no performance guarantees are implied. If republishing or modifying, please credit the original structure and adhere to TradingView's publication guidelines. For questions on usage, refer to TradingView documentation on session indicators and probabilistic tools.
אינדיקטורים ואסטרטגיות
Non-Repainting Dynamic EMA SystemDynamic EMA System - Detailed Explanation
Overview
This indicator creates four adaptive Exponential Moving Averages (EMAs) that automatically adjust their periods based on current market conditions. Unlike traditional fixed-period EMAs, these lines dynamically become faster or slower to better match the market's behavior.
Core Components
1. Base EMA Lengths (Starting Points)
EMA 1: Base period of 10 (fastest)
EMA 2: Base period of 20 (fast-medium)
EMA 3: Base period of 30 (medium)
EMA 4: Base period of 200 (trend identifier)
These base values are not fixed—they serve as starting points that get multiplied by various market condition factors.
Market Analysis Features
The indicator analyzes 12 different market characteristics to understand current conditions:
Technical Indicators Used:
RSI (Relative Strength Index)
Measures momentum and overbought/oversold conditions
Normalized to 0-1 scale
ADX (Average Directional Index)
Measures trend strength
Higher values = stronger trends
Bollinger Bands Position
Shows where price sits relative to volatility bands
Indicates potential reversals or breakouts
VWAP (Volume Weighted Average Price)
Institutional trading benchmark
Signals if price is above/below average weighted price
Ichimoku Cloud
Japanese indicator showing support/resistance
Tenkan-Kijun relationship indicates trend direction
TRAMA (Triangular Moving Average)
Advanced adaptive moving average
Responds to genuine price movements
Volume Analysis
Compares current volume to 20-period average
Higher volume = more significant moves
ATR-Based Volatility
Weighted by volume for accuracy
Adjusts EMAs to market speed
Shannon Entropy
Measures market randomness vs. order
High entropy = choppy; Low entropy = trending
Price Correlation (Short-term)
How consistent price movements are
Detects momentum shifts
Price Correlation (Long-term)
Broader trend consistency
Confirms regime stability
Volume Strength
Normalized volume ratio
Validates price movements
How Length Adaptation Works
Market Regimes Identified:
The system identifies 4 distinct market conditions based on the 12 features:
Regime 1 (Green): Calm, ranging market → Shorter EMAs (more responsive)
Regime 2 (Blue): Strong trending market → Medium-length EMAs (balance speed/noise)
Regime 3 (Red): High volatility/choppy → Longer EMAs (filter noise)
Regime 4 (Gray): Transitional/neutral → Moderate EMAs (adaptive middle ground)
Adaptation Formula:
Each EMA length is calculated as:
Final Length = Base Length × Regime Multiplier × Volatility Adjustment × Momentum Adjustment × Entropy Adjustment
Where:
Regime Multiplier: 0.3x to 2.5x depending on market type
Volatility Adjustment: Increases length during high volatility (filters noise)
Momentum Adjustment: Based on RSI - extreme readings adjust sensitivity
Entropy Adjustment: Lower entropy (trending) = tighter EMAs
Key Adaptive Features
1. Volatility Response
When market volatility increases:
EMAs lengthen automatically to avoid whipsaws
Calculated using ATR weighted by volume
2. Volume Integration
Higher volume makes the system:
React faster to price changes
Increase learning rate
Trust the current move more
3. Correlation Analysis
Short-term correlation: Detects immediate momentum
Long-term correlation: Confirms overall trend stability
Adjusts EMA sensitivity accordingly
4. Entropy Monitoring
Measures market "disorder"
Trending markets → Tighter EMAs (follow trend)
Choppy markets → Wider EMAs (reduce noise)
Non-Repainting Design
Critical Safety Features:
Confirmed Data Only
All calculations use close , high , low , etc.
Current bar data is only used if barstate.isconfirmed
Locked Updates
EMA lengths only change when bar closes
Variables prefixed with confirmed_ store locked values
No Look-Ahead
System learns from past bars only
Future data cannot influence current values
Historical Consistency
Once a bar closes, its EMA values never change
Alerts and signals are reliable
Visual Interpretation
Background Colors:
Green: Calm/ranging market (Regime 1)
Blue: Strong trend (Regime 2)
Red: High volatility/choppy (Regime 3)
Gray: Transitional state (Regime 4)
Color transparency indicates confidence:
Solid color = High confidence in regime identification
Faint color = Lower confidence, potential transition
EMA Lines:
Red EMA (fastest): Short-term momentum
Orange EMA: Medium-term trend
Yellow EMA: Intermediate trend confirmation
Blue EMA: Long-term trend direction
Information Dashboard
The top-right table displays:
Metric Purpose
Regime Strength How strongly current conditions match the identified regime (0-1)
Silhouette Score Quality of regime identification (>0.5 = Excellent, >0.2 = Good)
EMA Values & Lengths Current price level and adaptive period for each EMA
Vol Volatility Volume-weighted volatility measure
Entropy Market randomness level (0 = trending, 1 = random)
Volume Strength Current volume relative to average
Learning Rate How quickly the system adapts (higher = faster adaptation)
Trading Applications
Trend Following:
EMAs aligned in order (1 > 2 > 3 > 4) = Strong uptrend
EMAs aligned reversed = Strong downtrend
Use EMA 4 as major trend filter
Entry Signals:
Fast EMA crosses medium EMA in trend direction
Price pullback to EMA 3 in trending regime
All EMAs converging in ranging regime
Exit Signals:
Fast EMA crosses below medium EMA
Regime change (background color shift)
Silhouette score drops (poor quality)
Regime-Based Strategy:
Green Background: Range trading, fade extremes
Blue Background: Trend following, ride momentum
Red Background: Reduce position size, wait for clarity
Gray Background: Cautious, potential regime shift
Advantages Over Standard EMAs
Automatic Adjustment: No manual tweaking needed for different markets
Context Aware: Understands if market is trending, ranging, or volatile
Volume Integration: Respects institutional involvement
Multi-Factor Analysis: Uses 12 indicators, not just price
Quality Metrics: Silhouette score shows when to trust signals
Non-Repainting: Reliable for backtesting and live trading
Best Practices
Do:
Wait for bar close before acting on signals
Check Silhouette score (>0.2 is reliable)
Use regime color as risk filter
Combine with your trading system
Don't:
Trade against EMA 4 in strong trends
Ignore regime changes
Use in extremely low liquidity
Expect perfection in all conditions
Summary
This is an intelligent, self-adjusting EMA system that reads 12 different market characteristics to automatically optimize its speed. It identifies whether the market is trending, ranging, volatile, or transitional, then adjusts all four EMAs accordingly. The non-repainting design ensures historical accuracy, while the quality metrics (Silhouette score, regime strength) tell you when to trust the signals most.
CHOCH & Liquidity Sweep Detectorso think of this one as an upgraded version from the previous liquidity sweep and reversal indicator i shared. This one:
Identifies when price wicks above a swing high then closes below it (bearish sweep 💧)
Identifies when price wicks below a swing low then closes above it (bullish sweep 💧)
Orange labels mark the sweeps with dashed lines showing the liquidity level
CHOCH (Change of Character) Detection
After a liquidity sweep, it watches for structure breaks
Bearish CHOCH: After bullish sweep, price breaks below previous structure low (🔴 SHORT setup)
Bullish CHOCH: After bearish sweep, price breaks above previous structure high (🟢 LONG setup)
Market Structure Tracking
Shows current structure highs/lows with dotted lines
Tracks whether market is in bullish, bearish, or neutral trend
Dashboard (bottom-right)
Shows current trend direction
Liquidity sweep status
CHOCH confirmation
Setup Ready alert when both conditions align
Clear action recommendation
How to use with tf alignment indicator:
Apply both indicators to your 1hr/4hr chart
Wait for alignment (Daily/Weekly/Monthly all bearish or bullish)
Look for liquidity sweep (💧 label appears)
Wait for CHOCH (big red/green label with "CHOCH")
Enter on retest of the broken structure level
Mid-term Valuation Indicator | MiesOnChartsMedium-Term Valuation Indicator
This medium-term valuation indicator integrates multiple valuation metrics to assist investors in identifying oversold and overbought market conditions with greater precision.
How it works:
This indicator uses an average of multiple valuation indicators like technical mean reversion, sentiment and on-chain indicators. Its core innovation is an adaptive z-score aggregation that normalizes these diverse inputs (e.g., RSI for mean reversion or NUPL for on-chain sentiment) into a unified score, minimizing noise from isolated metrics and providing a more reliable valuation snapshot than traditional single-indicator tools.
All included indicators have individual flexible metrics, allowing users to customize them as needed. Additionally, the script uses color-coding based on the aggregation of z-scores, which aids in visualizing whether the market is overvalued or undervalued.
How to Interpret:
The indicator employs adaptive standard deviation bands to define extreme market zones. The red band signals a strongly overbought condition, while the green band indicates a significantly oversold condition.
How to Apply:
Investors can leverage these extreme levels as strategic points for taking profits or implementing dollar-cost averaging (DCA) strategies, optimizing entry and exit decisions in the market.
Disclaimer: NOT Financial advice. Past performance is not indicative of future results. No trading strategy can guarantee success in financial markets.
RSI 14 Cross Up SMA(14) With Volume FiltersUpgrade previous script to show crossover volume strength
ShooterViz Lazy Trader EMA SystemShooterViz Lazy Trader EMA System - Complete User Guide
What This Script Does
This is a position scaling indicator that tells you exactly when to enter, add to, and exit trades using a simplified 5-EMA system. It removes the guesswork and decision fatigue from trading by giving you clear visual signals.
The Core Concept
3 entry signals that build your position from 20% → 50% → 100%
2 exit signals that scale you out at 50% → 50% (complete exit)
1 higher timeframe filter that keeps you on the right side of the trend
No Fibonacci calculations, no RSI divergence, no multi-indicator confusion. Just EMAs and price action.
What You'll See On Your Chart
1. Colored EMA Lines
Blue Lines (Entry Zone):
3 EMA (lightest blue) - Early reversal detector
5 EMA (darker blue) - Confirmation line
Green Lines (Add Zone):
21 EMA (bright green) - First add location
34 EMA (lighter green) - Final add location
Red Lines (Exit Zone):
89 EMA (lighter red) - First exit trigger
144 EMA (darker red) - Final exit trigger
Orange Lines (Hyper Frame - optional):
Hyper 21 EMA (from higher timeframe) - Trend direction
Hyper 34 EMA (from higher timeframe) - Bias confirmation
2. Triangle Signals
Green Triangles (Below Price) = BUY/ADD:
Lime triangle with "20%" = Entry 1: Price reclaimed 3→5 EMA (starter position)
Green triangle with "30%" = Entry 2: Price bounced off 21 EMA (first add)
Teal triangle with "50%" = Entry 3: Price broke out from 34 EMA compression (final add)
Red Triangles (Above Price) = SELL:
Orange triangle with "50% OFF" = Exit 1: Price broke below 89 EMA (take half off)
Red triangle with "EXIT ALL" = Exit 2: Price broke below 144 EMA (close remaining position)
3. Background Color (Trend Bias)
Light green background = Hyper frame EMAs trending up (bias LONG)
Light red background = Hyper frame EMAs trending down (bias SHORT)
Gray background = Neutral/choppy (be cautious)
4. Info Table (Top Right Corner)
A live status dashboard showing:
Which entry signals are currently active (✓ or —)
Which exit signals are currently active (⚠ or ⛔)
Current hyper frame bias (🟢 LONG / 🔴 SHORT / ⚪ NEUTRAL)
Which timeframe you're using for hyper frame filtering
How to Install and Set Up
Step 1: Add the Script to TradingView
Open TradingView
Click "Pine Editor" at the bottom of the screen
Copy the entire script code
Paste it into the Pine Editor
Click "Add to Chart"
Step 2: Configure Your Settings
Click the gear icon ⚙️ next to "LazyEMA" in your indicators list.
Critical Settings to Configure:
Hyper Frame Selection (Most Important!)
Location: "Hyper Frame (Pick ONE)" section
Setting: "Timeframe"
What to choose:
Trading 15min or 1H charts? → Use "240" (4-hour)
Trading 4H or Daily charts? → Use "D" (Daily)
Trading Daily or Weekly charts? → Use "W" (Weekly)
Why this matters: This filter keeps you aligned with the bigger trend. Only take longs when this timeframe is green, shorts when it's red.
MA Type (Optional, default is fine)
Location: "MA Config" section
Default: EMA (recommended)
Options: EMA, SMA, WMA, HMA, RMA, VWMA
Most traders should stick with EMA
Visual Toggles (Customize your view)
Entry Zone: Turn individual EMAs on/off (3, 5, 21, 34)
Exit Zone: Turn individual EMAs on/off (89, 144)
Hyper Frame: Toggle the higher timeframe EMAs on/off
Step 3: Clean Up Your Chart
Turn OFF these if visible:
Volume bars (they clutter the view)
Any other indicators you have loaded
Grid lines (optional, but cleaner)
Keep ONLY:
Price candles
Your ShooterViz Lazy Trader EMA System
Maybe support/resistance levels if you manually draw them
How to Trade With This Script
The Basic Workflow
Before the Market Opens:
Check the background color and info table bias
Green background? Look for LONG setups only
Red background? Look for SHORT setups only
Gray background? Stay flat or trade small
During the Trading Session:
LONGS (When hyper frame is bullish):
Wait for Entry 1 signal:
Lime triangle appears with "20%"
Price has reclaimed the 5 EMA after dipping to 3 EMA
Action: Enter 20% of your intended position
Stop loss: Place below the 5 EMA or recent swing low
Wait for Entry 2 signal:
Green triangle appears with "30%"
Price pulled back to 21 EMA and bounced
Action: Add 30% more (you're now at 50% total)
Move stop: Trail it up to below 21 EMA
Wait for Entry 3 signal:
Teal triangle appears with "50%"
Price compressed at 34 EMA and broke out
Action: Add final 50% (you're now 100% loaded)
Move stop: Trail it up to below 34 EMA
Wait for Exit 1 signal:
Orange triangle appears with "50% OFF"
Price broke below 89 EMA
Action: Exit 50% of your position immediately
Move stop on rest: Trail to 89 EMA or lock in profits
Wait for Exit 2 signal:
Red triangle appears with "EXIT ALL"
Price broke below 144 EMA
Action: Exit remaining 50% (you're now flat)
Or: Stop gets hit at 89 EMA (same result)
SHORTS (When hyper frame is bearish):
Same process, but inverted
Triangles appear above price instead of below
Look for breakdowns below EMAs instead of bounces off them
Exit when price reclaims 89 and 144 EMAs
Real-World Example Walkthrough
Setup: Trading ES (S&P 500 Futures) on 1H Chart
Chart Configuration:
Timeframe: 1 Hour
Hyper Frame: 240 (4-hour)
Ticker: ES
Pre-Market Check:
Background is light green
Info table shows "🟢 LONG" for Hyper Bias
Decision: Only look for long entries today
9:30 AM - Market Opens
Price dips and touches 3 EMA
Watch for: Reclaim of 5 EMA
9:45 AM - Entry 1 Triggers
Lime triangle appears below bar
Price closed above 5 EMA at $4,550
Action taken:
Enter long 20% position (2 contracts if targeting 10 total)
Stop loss at $4,545 (below 5 EMA)
Risk: $10 per contract × 2 = $20 risk
10:30 AM - Entry 2 Triggers
Price rallied to $4,565, pulls back
Green triangle appears at 21 EMA ($4,555)
Action taken:
Add 30% (3 more contracts, now have 5 total)
Move stop to $4,550 (below 21 EMA)
Current P/L: +$25 ($5 gain on original 2 contracts, break-even on new 3)
11:15 AM - Entry 3 Triggers
Price consolidates at 34 EMA around $4,560
Teal triangle appears as price breaks to $4,568
Action taken:
Add final 50% (5 more contracts, now have 10 total)
Move stop to $4,555 (below 34 EMA)
Current P/L: +$70
1:00 PM - Price Extends
Price rallies to $4,595 (on track)
89 EMA is at $4,575
No action yet, let it run
2:15 PM - Exit 1 Triggers
Price pulls back from $4,600
Orange triangle appears as price breaks below 89 EMA at $4,580
Action taken:
Exit 50% (5 contracts closed at $4,580)
Keep 5 contracts with stop at 89 EMA ($4,575)
Banked: +$150 average gain on closed 5 contracts
2:45 PM - Exit 2 Triggers
Price continues down
Red triangle appears as price breaks 144 EMA at $4,570
Action taken:
Exit remaining 5 contracts at $4,570
Banked: +$100 on remaining 5 contracts
Final Results:
Total gain: $250 on the trade
Initial risk: $50 (if stopped out at Entry 1)
Risk/Reward: 5:1
Time in trade: ~5 hours
Common Questions
"What if I miss Entry 1? Can I still take Entry 2?"
Yes! Each entry is independent. If you miss the 3→5 reclaim, wait for the 21 EMA bounce. You'll start with a 30% position instead of 20%, but that's fine.
Rule: Never chase. Wait for the next EMA setup.
"What if multiple entry signals trigger at the same bar?"
Rare, but possible. If you see both Entry 1 and Entry 2 trigger together:
Take Entry 1 first (20%)
If the next bar confirms Entry 2 is still valid, add 30%
When in doubt, scale in gradually
"The hyper frame is green but I'm seeing short signals?"
Don't take them. The hyper frame is your bias filter. If it says "go long," ignore short setups. They're usually lower probability and will get stopped out.
"Can I use this for swing trading overnight?"
Absolutely. Just switch your hyper frame:
If you're on Daily charts, use Weekly hyper frame
If you're on 4H charts, use Daily hyper frame
Adjust position sizes for overnight risk
"What if the signal appears right at market close?"
Don't chase it. Wait for the next bar (next day) to confirm. Signals that appear in the last 5 minutes are often noise.
"How do I set up alerts?"
Right-click on the chart
Select "Add Alert"
Choose "LazyEMA" from the condition dropdown
Select which signal you want alerts for:
Entry 1: 3→5 Reclaim
Entry 2: 21 EMA Add
Entry 3: 34 EMA Breakout
Exit 1: 89 EMA Break
Exit 2: 144 EMA Break
Click "Create"
Pro tip: Set up all 5 alerts so you never miss a signal.
Position Sizing Guide see
swingtradenotes.substack.com
Critical Rule: Know your total risk BEFORE you take Entry 1. Don't wing it.
Customization Tips
For Day Traders (Scalpers)
Use 5min or 15min charts
Hyper frame: 1H or 4H
Expect 2-4 setups per day
Tighter stops (0.5% risk per entry)
For Swing Traders
Use 4H or Daily charts
Hyper frame: Daily or Weekly
Expect 1-2 setups per week
Wider stops (1-2% risk per entry)
For Position Traders
Use Daily or Weekly charts
Hyper frame: Weekly or Monthly
Expect 1-2 setups per month
Widest stops (2-3% risk per entry)
The "Don't Be Stupid" Checklist
Before taking ANY signal from this script, ask:
✅ Is the hyper frame bias pointing in my direction?
✅ Is the signal clean (not at a weird time or during news)?
✅ Do I know my stop loss level?
✅ Do I know my position size?
✅ Can I afford to lose if this trade fails?
If you answered "no" to ANY of these, skip the trade.
Troubleshooting
"I'm not seeing any signals"
Possible causes:
The "Show Lazy Trader System" toggle is off (turn it on)
Your chart timeframe is too high (try 1H or 4H)
Market is in a tight range (EMAs are compressed)
You need to refresh the chart
"Too many signals, getting whipsawed"
Fixes:
Increase your chart timeframe (go from 15m to 1H)
Switch to a less volatile ticker
Only trade when hyper frame bias is STRONG (not neutral)
Add a minimum bar count between signals
"The info table is covering my price action"
Fix:
Edit the script
Find the line: table.new(position.top_right, ...
Change position.top_right to position.bottom_right or position.top_left
"Signals appear then disappear"
This is normal (repainting). Some signals (especially compression breakouts) can disappear if the next bar reverses. This is why you:
Wait for bar close before acting
Use alerts that only fire on confirmed bars
Don't chase signals mid-bar
Final Thoughts
This script is a decision-making tool, not a crystal ball. It shows you high-probability setups based on EMA dynamics and trend structure. You still need to:
Manage your risk
Choose your position size
Stick to the rules
Accept losses when they happen
The system works when YOU work the system.
Print this guide, tape it next to your monitor, and follow it religiously for 20 trades before making ANY changes.
Good luck, and stay lazy (the smart way).
Scary Flush Indicator R0Work in progress.
Calculates the gradient based on candle lows (previous low to current low). Works on all time frames.
Looks for a selling gradient of >0.75pts per minute then highlights. Anything less than this indicates a lazy grind down and indicates a potential invalidation for the FBD.
Cold Brew Ranges🧭 Core Logic and Calculation
The fundamental logic for each range (OR and CR) is identical:
Time Definition: Each range is defined by a specific Start Time and a fixed 30-second duration. The timestamp function, using the "America/New_York" time zone, is used to calculate the exact start time in Unix milliseconds for the current day.
Example: t0200 = timestamp(TZ, yC, mC, dC, 2, 0, 0) sets the start time for the 02:00 OR to 2:00:00 AM NY time.
Range Data Collection: The indicator uses the request.security_lower_tf() function to collect the High (hArr) and Low (lArr) prices of all bars that fall within the defined 30-second window, using a user-specified, sub-chart-timeframe (openrangetime, defaulted to "1" second, "30S", or "5" minutes). This ensures high precision in capturing the exact high and low during the 30-second window.
High/Low Determination: It iteratively finds the absolute highest price (OR_high) and the absolute lowest price (OR_low) recorded by the bars during that 30-second window.
Range Locking: Once the current chart bar's time (lastTs) passes the 30-second End Time (tEnd), the High and Low are locked (OR_locked = true), meaning the range calculation is complete for the day.
Drawing: Upon locking, the range is drawn on the chart using line.new for the High, Low, and Equilibrium, and box.new for the shaded fill. The lines are extended to a subsequent time anchor point (e.g., the 02:00 OR is extended to 08:20, the 09:30 OR is extended to 16:00).
Equilibrium (EQ): This is calculated as the simple average (midpoint) of the High and Low of the range.
EQ=
2
OR_High+OR_Low
⏰ Defined Trading Ranges
The indicator defines and tracks the following specific 30-second ranges:
Range Name Type Start Time (NY) Line Extension End Time (NY) Common Market Context
02:00 OR Opening 02:00:00 08:20:00 Asian/European Market Overlap
08:20 OR Opening 08:20:00 16:00:00 Pre-New York Open
09:30 OR Opening 09:30:00 16:00:00 New York Stock Exchange Open (Most significant OR)
18:00 OR Opening 18:00:00 20:00:00 Futures Market Open (Sunday/Monday)
20:00 OR Opening 20:00:00 Next Day's session start Asian Session Start
15:50 CR Closing 15:50:00 20:00:00 New York Close Range
⚙️ Key User Inputs and Customization
The script offers extensive control over which ranges are displayed and how they are visualized:
Range Time & History
openrangetime: Sets the sub-timeframe (e.g., "1" for 1 second) used to calculate the precise High/Low of the 30-second range. Crucial for accuracy.
showHistory: A toggle to show the ranges from previous days (up to a histCap of 50 days).
Range Toggles and Styling
On/Off Toggles: Independent input.bool (e.g., OR_0200_on) to enable or disable the display of each individual range.
Colors & Width: Separate color and width inputs for the High/Low lines (hlC), the Equilibrium line (eqC), and the background fill (fillC) for each range.
Line Styles: Global inputs for the line styles of High/Low (lineStyleInput) and Equilibrium (eqLineStyleInput) lines (Solid, Dotted, or Dashed).
showFill: Global toggle to enable the shaded background box that highlights the area between the High and Low.
Extensions
The script calculates and plots extensions (multiples of the initial range) above the High and below the Low.
showExt: Toggles the visibility of the extension lines.
useRangeMultiples: If true, the step size for each extension level is equal to the initial range size:
Step=Range=OR_High−OR_Low
If false, the step size is a fixed value defined by stepPts (e.g., 60.0 points, which is a common value for NQ futures).
stepCnt: Determines how many extension levels (multiples) are drawn above and below the range (default is 10).
📈 Trading Strategy Implications
The Cold Brew Ranges indicator is a tool for session-based support and resistance and range breakout/reversal strategies.
Key Support/Resistance: The High and Low of these defined opening ranges often act as strong, predefined price levels. Traders look for price rejection off these boundaries or a breakout with conviction.
Equilibrium (Midpoint): The EQ often represents a fair value for that specific session's opening. Movements away from it are seen as opportunities, and a return to it is common.
Extensions: The range extensions serve as potential profit targets or stronger, layered support/resistance levels if the market trends aggressively after the opening range is set.
The core idea is that the activity in the first 30 seconds of a significant trading session (like the NYSE or a market session open) sets a bias and initial boundary for the trading period that follows.
RSI 14 Cross Up SMA(14) Within Last 4 BarsMomentum based crossover, seems to be best for swing trades
RV − IV Spread Alert (SPY vs VIX)Realized vs Implied Volatility Spread (RV − IV) for the S&P 500 / SPY.
Plots the daily difference between 30-day realized volatility (SPY) and implied volatility (VIX) in basis points.
Key insight from the research: when the spread turns and stays above ≈ +50 bps, forward returns historically degrade and volatility of returns rises sharply — a useful early-warning regime flag.
Features:
- Clean daily plot of RV − IV in bps
- Horizontal lines at 0, −50 bps and +50 bps
- Red background when spread > +50 bps
- Built-in alert condition that fires once per bar close when spread closes above +50 bps
- Optional “all-clear” alert when it drops back below
Use on SPY or ES1! daily chart. Perfect for anyone wanting a simple notification when the market enters the “risk-on” volatility regime highlighted by Machina Quanta and the original Bali & Hovakimian (2007) paper.
Moon Boys LineWe have the 44 and 125 day moving averages. When they cross, the trend is bullish or bearish.
STUDENT WYCKOFF Smart RSISTUDENT WYCKOFF Smart RSI is not just “RSI above 70 / below 30”.
It adapts its levels to volatility, highlights real extreme zones and marks the moments when momentum is leaving them.
Use it to see where buying or selling pressure is truly exhausting and combine it with your own price action and Wyckoff logic.
STUDENT WYCKOFF Smart RSI is a flexible, context-driven version of the classic RSI. It is designed for traders who want to read momentum in a more intelligent way than just “RSI above 70, RSI below 30”.
━━━━━━━━━━
1. Concept
━━━━━━━━━━
Instead of fixing RSI to one rigid set of levels, this script lets you choose how sensitive you want the oscillator to be and how you want to visualize that information:
• Classic 70/30 – standard overbought/oversold bands, familiar to most traders.
• Aggressive 80/20 – fewer but more extreme signals, useful for strong trends.
• Dynamic Std Bands – adaptive zones based on the mean and standard deviation of RSI, so the levels “breathe” with volatility rather than staying flat.
The goal is not to create magic entry signals, but to give you a clean, configurable picture of buying/selling pressure that fits different market conditions and styles of trading.
━━━━━━━━━━
2. RSI logic and plotting
━━━━━━━━━━
• Base indicator: standard RSI calculated on a chosen source (by default – close) with a configurable length.
• Optional smoothing: a short SMA of RSI (signal length) to reduce noise. If you set the smoothing length to 1, the script plots the raw RSI.
• Auto-coloring:
– Above 50 → “bullish pressure” color.
– Below 50 → “bearish pressure” color.
– Around 50 → neutral color.
You can fully customize all colors directly in the settings.
The script can also show:
• Overbought / oversold level lines (depending on the selected mode).
• A middle line at 50 to quickly see which side of the market is dominant.
• Background highlighting when RSI is inside overbought or oversold zones, so you can read the context at a glance without staring at numbers.
━━━━━━━━━━
3. Smart zone exits and signals
━━━━━━━━━━
Instead of signaling every time RSI simply “touches” a level, the script focuses on exits from extreme zones:
• LONG context signal
– RSI has been below the lower band (oversold).
– Then RSI crosses back above this lower band.
– A small green upward triangle is plotted at the RSI value.
• SHORT context signal
– RSI has been above the upper band (overbought).
– Then RSI crosses back below this upper band.
– A small red downward triangle is plotted at the RSI value.
All signals are calculated only on bar close using `barstate.isconfirmed`. This helps reduce repaint-like behaviour and makes the signals more reliable for alerts and discretionary decision-making.
These signals are NOT a complete trading system. They are context markers that tell you: “momentum is leaving an extreme zone, pay attention to the price action, volume and higher-timeframe structure”.
━━━━━━━━━━
4. Alerts
━━━━━━━━━━
The script contains two built-in alertconditions with constant messages:
• STUDENT WYCKOFF Smart RSI LONG – triggers when RSI exits the oversold zone upward.
• STUDENT WYCKOFF Smart RSI SHORT – triggers when RSI exits the overbought zone downward.
To use them:
1. Add the indicator to your chart.
2. Open the Alerts panel in TradingView.
3. Choose this script as the condition.
4. Select one of the available alert names (LONG or SHORT).
5. Set your preferred timeframe, expiry and notification method.
Once configured, the alerts will inform you every time a new arrow appears.
━━━━━━━━━━
5. How to use in practice
━━━━━━━━━━
• Works on any symbol and timeframe supported by TradingView.
• On higher timeframes, the Dynamic Std Bands mode can help you see where RSI is “statistically unusual” relative to its recent behaviour.
• On lower timeframes, Classic or Aggressive modes can help filter noise by waiting for strong expansions of momentum and subsequent exits.
• Combine the signals with your own price action, Wyckoff logic, volume analysis, trend structure and risk management. RSI alone should never be the only reason to enter or exit a position.
━━━━━━━━━━
6. Disclaimer
━━━━━━━━━━
This script is published for educational and analytical purposes only. It does not provide financial, investment or trading advice and does not guarantee any results. Always test tools on historical data, understand the logic behind them and use proper risk management according to your own trading plan.
仓位计算器# 仓位计算器
通过开仓、止损、止盈计算固定盈亏比适合的开仓数量,根据开仓和止损判断开仓方向。
首次使用需要手动设置开仓、止盈、止损,之后可以手动拖拽价格线设置值然后自动计算仓位信息。
---
# Position Calculator
Calculates the optimal position size with a fixed profit/loss ratio based on opening, stop-loss, and take-profit levels. Determines the direction of the position based on the opening and stop-loss settings.
Initial use requires manual setting of opening, take-profit, and stop-loss. Afterward, you can manually drag the price line to set values and the system will automatically calculate position information.
Price Forecast - Future price Ichimoku ATR RSI Kumo It predicts
Future price (projected close)
future high-low (ATR projection)
Ichimoku Future Span overlay
alerts "future price above/below threshold".
Ichimoku Kumo Projection (Leading Span A & B). Senkou Span A (Future A) Senkou Span B (Future B).
ATR Projection Channel (ATR Bands/Volatility Forecast).
Linear regression forecast for +1 bar.
Multi timeframe
RSI+Kumo filter for clearer signals.
SHUBHAM 50000 ULTRA OPTIONSHUBHAM 50000 ULTRA OPTION
OptionFlow Pro: Smart Money & Anomaly Detection Indicator
Tagline: Don't just follow the flow. Understand it.
Core Concept:
OptionFlow Pro is an advanced, real-time market scanner and visual indicator that transforms raw options chain data into actionable trading intelligence. It goes beyond simple volume and open interest by identifying Unusual Options Activity (UOA), tracking Sweep Orders, and calculating the Volume-Weighted Put/Call Ratio to highlight where institutional "smart money" is placing its bets.
Key Features for Traders:
Unusual Activity & Sweep Detector:
What it does: Scans every tick for orders that significantly deviate from normal trading patterns—large block trades executed at the ask (for calls) or bid (for puts), and "sweep" orders that clean out multiple price levels instantly.
Trader Benefit: Pinpoints potential breakout or breakdown candidates before major moves occur in the underlying stock. Alerts you to aggressive, high-conviction buying or selling that retail traders often miss.
Volume-Weighted Put/Call Ratio (with Trend):
What it does: Calculates the put/call ratio not just by volume, but by the premium spent. A high premium-weighted put/call ratio shows bears are putting serious money behind their bets, making it a stronger signal.
Trader Benefit: Offers a more nuanced view of market sentiment than standard PCR. Helps gauge extreme fear (potential oversold bounce) or complacency (overbought top) in a specific stock or index (SPX/SPY).
Max Pain & Gamma Exposure (GEX) Visualizer:
What it does: Dynamically calculates the "Max Pain" strike (where option sellers face minimal losses) and estimates Gamma Exposure levels. Visual overlays on the chart show key pin levels and large gamma walls.
Trader Benefit: Identifies potential price magnets for weekly/monthly expiry. Understand where hedging activity by market makers may amplify volatility (negative gamma) or suppress it (positive gamma), aiding in entry/exit planning.
Implied Volatility (IV) Rank & Skew Analysis:
What it does: Compares current IV to its historical range (IV Rank) and visualizes the volatility smile/skew across strikes. Highlights expensive vs. cheap option premiums.
Trader Benefit: Empowers you to sell overpriced volatility (high IV Rank) and buy underpriced volatility (low IV Rank). Skew anomalies can signal asymmetric risk/reward opportunities or market fears about a sharp directional move.
Customizable Alerts & Heatmaps:
What it does: Set alerts for specific UOA criteria, PCR spikes, or IV changes. The platform-wide heatmap aggregates flow data across all symbols to show sector-level money movement.
Trader Benefit: Saves hours of manual scanning. Focus only on the setups that match your strategy (e.g., "Alert me for any $1M+ call sweeps in tech stocks").
Who Is It For?
Active Options Traders & Scalpers: Find high-probability directional plays with institutional confirmation.
Hedgers & Portfolio Managers: Identify tail-risk hedging activity and gauge overall market dealer positioning.
Volatility Traders: Precisely time entries for strangles, straddles, or iron condors based on IV regime and gamma.
Swing Traders & Technical Analysts: Confirms or diverges from classic chart patterns (e.g., breakout with strong call flow = higher conviction).
Why It's Different:
Most indicators look backward at price. OptionFlow Pro looks forward at market structure, liquidity, and dealer hedging flows. It doesn't predict the future; it reveals the present positioning that will influence future price action.
Platform Integration: Available as a standalone web platform, a TradingView custom script, and a direct data feed into thinkorswim, Interactive Brokers, and other major brokerages.
MMBS HkOrE FX [V5.11]The Multi-Model Bias System (MMBS) is a composite bias-detection framework that evaluates price behavior using three independent analytical engines: structural confirmation, normalized volatility expansion, and momentum velocity dynamics. The goal of the tool is not to generate trading signals, but to identify the dominant directional bias through multi-factor validation.
🔧 1. Structural Recognition Engine (Multi-Pivot Confirmation)
MMBS identifies market structure using a multi-confirmation pivot model rather than a single swing point.
A Swing High/Low is only confirmed when several consecutive pivot conditions align.
This reduces noise and produces a “stable structure map.”
A bullish bias requires sequential higher-low and higher-high confirmations; bearish bias requires the opposite.
Because this model relies on progressive confirmation, it behaves differently from common fractal-based structure indicators.
This approach allows the bias to remain stable during minor price fluctuations.
🔧 2. Normalized Volatility Boundary (Modified ATR Model)
Volatility is processed using a custom ATR-based normalization:
The script calculates a rolling ATR range, then scales it using a smoothing function to prevent extreme expansion.
This produces a volatility boundary line that adapts proportionally to recent market conditions.
When price approaches this boundary while structural strength weakens, the system flags reduced confidence in the existing bias.
This method differs from standard ATR bands because it compresses outlier volatility instead of amplifying it.
🔧 3. Momentum Velocity Engine (Smoothed ROC Filter)
The momentum module measures acceleration rather than raw momentum:
A smoothed Rate-of-Change curve evaluates whether price velocity is supporting or diverging from the current structure.
Deceleration near the volatility boundary is interpreted as potential instability.
No buy/sell signals are generated—momentum is used strictly for bias confidence filtering.
By focusing on velocity shifts instead of momentum direction alone, the system captures early structural weakening.
🔗 How the Components Interact
A directional bias is assigned only when:
Structure confirmation
Volatility normalization
Momentum velocity
are aligned in the same direction.
If any module diverges, MMBS defaults to a neutral (no-bias) state.
This behavior distinguishes it from single-module indicators that rely solely on trend, volatility, or momentum.
📊 Visual Output
Bias Color Bar — shows the dominant directional bias (bullish / bearish / neutral).
Volatility Boundary Line — reflects the normalized ATR range used for stability validation.
Momentum Markers — point to areas where velocity divergence may invalidate the bias.
These components are informational only and do not represent entry or exit signals.
⚙️ User-Adjustable Inputs
Structure Sensitivity — modifies how many pivot confirmations are required.
Volatility Scaling — adjusts ATR normalization strength.
Momentum Smoothing — controls responsiveness to short-term velocity changes.
🔒 Why the Script Is Invite-Only
The script uses custom structural logic, a custom-developed ATR normalization method, and a ROC-based velocity filter that differs from publicly available tools.
Invite-only access is maintained to ensure responsible use and preserve controlled distribution of the multi-factor bias-model framework.
The script does not rely on any publicly available template and integrates multiple independent computational layers, which justifies restricted visibility under TradingView’s policies.















