UltimateFlow by Kate V0.2Ultimate Flow Script: Tracks market structure breaks, buy/sell entries (CE/SE), and trends with a Zero Lag SMA. Highlights Bullish & Bearish Order Blocks (OB, BB, MM) with dynamic boxes and tiny labels. Zigzag swings visualize market structure for smart entries. Play with the various settings to suit your trading style. Alerts available for MSB changes and price in OB zones.
Disclaimer: This script is for educational and informational purposes only. It should be used in line with your own trading strategy, risk management, and discretion. Past performance is not indicative of future results.
This script is designed for price action, market structure, and order block analysis on TradingView. It includes:
Buy & Sell Signals (CE/SE) – Highlights potential entries based on market structure breaks and trend changes. Mini triangles or markers indicate possible reversals.
Zero Lag SMA (ZSMA) – Smooths price action for trend confirmation without delay. Helps identify trend direction and support/resistance areas.
Order Blocks (OBs) – Highlights key Bullish (Bu-OB) and Bearish (Be-OB) order blocks on the chart. Boxes dynamically extend as price evolves and include tiny labels (Bu-OB, Be-BB, MM, etc.) for clarity.
Zigzag Market Structure – Draws swing highs and lows to visualize market structure breaks (MSB).
How it works:
OB boxes extend automatically and change when price breaks them.
CE/SE markers help identify high-probability trade entries.
ZSMA confirms trend direction.
Alerts can be set for MSB changes or when price enters an OB zone.
Indicators and strategies
RSI Curl 52/48 UpdatedI have change My Original RSI Curl Indicator this now plots the RSI In a separate pane and gives buy and sell signals on the RSI I use It with Support and resistance and with My MTF with DXY and ADR Filter I only will trade in the Direction of the MTF the Large Triangle on the chart are from The MTF Letting you know all Timeframe Directions
Turn off the DXY Filter if not Trading Gold and It is better to monitor the 30 min to one Hour chart as better signals you can then trade on 15m 5 m or any timeframe of your choice I use other Indicator for confirmation please use your favorite ones
RSI + BB + ATR Short SignalThis indicator highlights potential short setups by combining three conditions:
RSI Overbought – RSI must be above the user-defined level.
Bollinger Band Break – Price must close above the upper Bollinger Band.
Extended Above the 5-Day Low – Price must sit at least X ATR above the recent 5-day low.
When all conditions line up on the same bar, the script plots a red triangle above the candle and triggers an alert so you can act immediately.
To help visualise the setup, the script also plots the full Bollinger Bands (upper, middle, lower) and a line showing the threshold of 5-day-low + ATR × multiplier. You can adjust RSI length and level, Bollinger settings, ATR length, and the ATR multiplier.
FX Swing — Compact Auto-Sizing (Fixed)A compact Forex swing-trading strategy that combines higher-timeframe EMA trend bias, EMA pullback confirmation, and RSI momentum filtering. It automatically sizes positions using either risk-percentage or fixed-risk, adapts pip values for JPY and non-JPY pairs, and generates clear SL/TP levels with partial take-profit exits. The script also sends structured JSON alerts for webhooks or WhatsApp automation, making it ideal for fast, disciplined, and risk-controlled swing entries.
Multiple EMA 5/13/26Multiple EMS's. 5-13-26. 3 EMA's at one place. Easy to use. Helps a lot in chart reading.
BRS ADR Fixed Label on ChartReturns ADR in fixed label on chart with settings for lookback, color, etc;
Previous Day & Week Highs and Lows 1.3Overlay indicator that plots horizontal lines for the previous day’s and previous week’s highs and lows. Lines extend until the next period starts, so you can see these levels throughout the current day or week.
The indicator detects new daily and weekly sessions and draws lines at the previous period’s high and low. Daily levels use green (high) and red (low); weekly levels use blue (high) and magenta (low). You can toggle daily/weekly independently, customize colors, and adjust line width. It works on intraday timeframes and helps identify support/resistance and track breakouts relative to prior periods.
Volume Orderblock Breakout — Naaganeunja Lite v3.5Pre signal update for volume orderblock breakout
THIS IS 4 HOUR SIGNAL FOR SWING TRADING, WIINNING RATE IS 80~90%
O'Neil Market TimingBill O'Neil Market Timing Indicator - User Guide
Overview
This Pine Script indicator implements William O'Neil's market timing methodology, which assigns one of four distinct states to a market index (such as SPY or QQQ) to help traders identify optimal market conditions for investing. The indicator is designed to work exclusively on Daily timeframe charts.
The Four Market States
The indicator tracks the market through four distinct states, with specific transition rules between them:
1. Confirmed Uptrend (Green)
- Meaning: The market is in a healthy uptrend with institutional support
- Action: Favorable conditions for building positions in leading stocks
- Can transition to: State 2 (Uptrend Under Pressure)
2. Uptrend Under Pressure (Yellow)
- Meaning: The uptrend is showing signs of weakness with increasing distribution
- Action: Be cautious, tighten stops, reduce position sizes
- Can transition to: State 1 (Confirmed Uptrend) or State 3 (Downtrend)
3. Downtrend (Red)
- Meaning: The market is in a confirmed downtrend
- Action: Stay mostly in cash, avoid new purchases
- Can transition to: State 4 (Rally Attempt)
4. Rally Attempt (Pink/Fuchsia)
- Meaning: The market is attempting to bottom and reverse
- Action: Watch for Follow-Through Day to confirm new uptrend
- Can transition to: State 1 (Confirmed Uptrend) or State 3 (Downtrend)
Key Concepts
Distribution Day
A distribution day occurs when:
1. The index closes down by more than the critical percentage (default 0.2%)
2. Volume is higher than the previous day's volume
Distribution days indicate institutional selling and are marked with red triangles on the indicator.
Follow-Through Day
A follow-through day occurs during a Rally Attempt when:
1. The index closes up by more than the critical percentage (default 1.6%)
2. Volume is higher than the previous day's volume
A Follow-Through Day confirms a new uptrend and triggers the transition from Rally Attempt to Confirmed Uptrend.
State Transition Logic
Valid Transitions
The system only allows specific transitions:
- 1 → 2: When distribution days reach the "pressure number" (default 5) within the lookback period (default 25 bars)
- 2 → 1: When distribution days drop below the pressure number
- 2 → 3: When distribution days reach "downtrend number" (default 7) AND price drops by "downtrend criterion" (default 6%) from the lookback high
- 3 → 4: When the market doesn't make a new low for 3 consecutive days
- 4 → 3: When a new low is made, undercutting the downtrend low
- 4 → 1: When a Follow-Through Day occurs during the Rally Attempt
Input Parameters
Distribution Day Parameters
- Distribution Day % Threshold (default 0.2%, range 0.1-2.0%)
- Minimum percentage decline required to qualify as a distribution day. While 0.2% seems to be the canonical number I see in literature about this, I use a much higher threshold (at least 0.5%)
Follow-Through Day Parameters
- Follow-Through Day % Threshold (default 1.6%, range 1.0-2.0%)
- Minimum percentage gain required to qualify as a follow-through day
### State Transition Parameters
- Pressure Number (default 5, range 3-6)
- Number of distribution days needed to transition from Confirmed Uptrend to Uptrend Under Pressure
- Lookback Period (default 25 bars, range 20-30)
- Number of days to count distribution days
- Downtrend Number (default 7, range 4-10)
- Number of distribution days needed (with price drop) to transition to Downtrend
- Downtrend % Drop from High (default 6%, range 5-10%)
- Percentage drop from lookback high required for downtrend confirmation
Visual Settings
- Color customization for each state
- Table position selection (Top Left, Top Right, Bottom Left, Bottom Right)
## How to Use This Indicator
### Installation
1. Open TradingView and navigate to SPY or QQQ (or another major index)
2. **Important**: Switch to the Daily (1D) timeframe
3. Click on "Indicators" at the top of the chart
4. Click "Pine Editor" at the bottom of the screen
5. Copy and paste the Pine Script code
6. Click "Add to Chart"
### Interpretation
**When the indicator shows:**
- **Green (State 1)**: Market is healthy - consider adding quality positions
- **Yellow (State 2)**: Exercise caution - tighten stops, be selective
- **Red (State 3)**: Defensive mode - preserve capital, avoid new buys
- **Pink (State 4)**: Watch closely - prepare for potential Follow-Through Day
### The Information Table
The table displays:
- **Current State**: The current market condition
- **Distribution Days**: Number of distribution days in the lookback period
- **Lookback Period**: Number of bars being analyzed
- **Rally Attempt Day**: (Only in State 4) Days into the current rally attempt
### Visual Elements
1. **State Line**: A stepped line showing the current state (1-4)
2. **Red Triangles**: Mark each distribution day
3. **Horizontal Reference Lines**: Dotted lines marking each state level
4. **Color-Coded Display**: The state line changes color based on the current market condition
## Trading Strategy Guidelines
### In Confirmed Uptrend (State 1)
- Build positions in stocks breaking out of proper bases
- Use normal position sizing
- Focus on stocks showing institutional accumulation
- Hold winners as long as they act properly
### In Uptrend Under Pressure (State 2)
- Take partial profits in extended positions
- Tighten stop losses
- Be more selective with new entries
- Reduce overall exposure
### In Downtrend (State 3)
- Move to cash or maintain very light exposure
- Avoid new purchases
- Focus on preservation of capital
- Use the time for research and watchlist building
### In Rally Attempt (State 4)
- Stay mostly in cash but prepare
- Build a watchlist of strong stocks
- On Day 4+ of the rally attempt, watch for Follow-Through Day
- If FTD occurs, begin cautiously adding positions
## Best Practices
1. **Use with Major Indices**: This indicator works best with SPY, QQQ, or other broad market indices
2. **Daily Timeframe Only**: The indicator is designed for daily bars - do not use on intraday timeframes
3. **Combine with Stock Analysis**: Use the market state as a filter for individual stock decisions
4. **Respect the Signals**: When the market enters Downtrend, reduce exposure regardless of individual stock setups
5. **Monitor Distribution Days**: Pay attention when distribution days accumulate - it's a warning sign
6. **Wait for Follow-Through**: Don't jump back in too early during Rally Attempt - wait for confirmation
## Alert Conditions
The indicator includes built-in alert conditions for:
- State changes (entering any of the four states)
- Distribution Day detection
- Follow-Through Day detection during Rally Attempt
To set up alerts:
1. Click the "Alert" button while the indicator is on your chart
2. Select "O'Neil Market Timing"
3. Choose your desired alert condition
4. Configure notification preferences
## Customization Tips
### For More Sensitive Detection
- Lower the "Pressure Number" to 3-4
- Lower the "Distribution Day % Threshold" to 0.15%
- Reduce the "Downtrend Number" to 5-6
### For More Conservative Detection
- Raise the "Pressure Number" to 6
- Raise the "Distribution Day % Threshold" to 0.3-0.5%
- Increase the "Downtrend Number" to 8-9
### For Different Market Conditions
- **Bull Market**: Consider slightly higher thresholds
- **Bear Market**: Consider slightly lower thresholds
- **Volatile Market**: May need to increase percentage thresholds
## Limitations and Considerations
1. **Not a Crystal Ball**: The indicator identifies conditions but doesn't predict the future
2. **False Signals**: Follow-Through Days can fail - use proper risk management
3. **Whipsaws Possible**: In choppy markets, the indicator may switch states frequently
4. **Confirmation Lag**: By design, there's a lag as the system waits for confirmation
5. **Works Best with Price Action**: Combine with your analysis of individual stocks
## Historical Context
This methodology is based on William J. O'Neil's decades of market research, documented in books like "How to Make Money in Stocks" and through Investor's Business Daily. O'Neil's research showed that:
- Most major market tops are preceded by accumulation of distribution days
- Most successful rallies begin with a Follow-Through Day on Day 4-7 of a rally attempt
- Identifying market state helps prevent buying during unfavorable conditions
## Troubleshooting
**Problem**: Indicator shows "Initializing"
- **Solution**: Let the chart load at least 5 bars to establish the initial state
**Problem**: No distribution day markers appear
- **Solution**: Verify you're on daily timeframe and check if volume data is available
**Problem**: Table not visible
- **Solution**: Check the table position setting and ensure it's not off-screen
**Problem**: State seems to change too frequently
- **Solution**: Increase the lookback period or adjust threshold parameters
## Support and Further Learning
For deeper understanding of this methodology:
- Read "How to Make Money in Stocks" by William J. O'Neil
- Study Investor's Business Daily's "Market Pulse"
- Review historical market tops and bottoms to see the pattern
- Practice identifying distribution days and follow-through days manually
## Version History
**Version 1.0** (November 2025)
- Initial implementation
- Four-state system with proper transitions
- Distribution day detection and marking
- Follow-through day detection
- Customizable parameters
- Information table display
- Alert conditions
---
## Quick Reference Card
| State | Number | Color | Action |
|-------|--------|-------|--------|
| Confirmed Uptrend | 1 | Green | Buy quality setups |
| Uptrend Under Pressure | 2 | Yellow | Tighten stops, be selective |
| Downtrend | 3 | Red | Cash position, no new buys |
| Rally Attempt | 4 | Pink | Watch for Follow-Through Day |
**Distribution Day**: Down > 0.2% on higher volume (red triangle)
**Follow-Through Day**: Up > 1.6% on higher volume during Rally Attempt (triggers State 4→1)
---
*Remember: This indicator is a tool to help identify market conditions. It should be used as part of a comprehensive trading strategy that includes proper risk management, position sizing, and individual stock analysis.*
Also, I created this with the help of an AI coding framework, and I didn't exhaustively test it. I don't actually use this for my own trading, so it's quite possible that it's materially wrong, and that following this will lead to poor investment decisions.. This is "copy left" software, so feel free to alter this to your own tastes, and claim authorship.
Michael's FVG Detector═══════════════════════════════════════
Michael's FVG Detector
═══════════════════════════════════════
A clean and efficient Fair Value Gap (FVG) indicator for TradingView that helps traders identify market imbalances with precision.
───────────────────────────────────────
Overview
───────────────────────────────────────
Fair Value Gaps (FVGs) are price inefficiencies that occur when there's a gap between the wicks of candlesticks, indicating rapid price movement with minimal trading activity. These gaps often act as support/resistance zones where price may return to "fill the gap."
This indicator automatically detects and visualizes both bullish and bearish FVGs on any timeframe, making it easy to spot potential trading opportunities.
───────────────────────────────────────
Features
───────────────────────────────────────
Core Functionality
Automatic FVG Detection : Identifies Fair Value Gaps in real-time as they form
Bullish & Bearish FVGs : Detects both upward and downward price gaps
3-Candle Pattern : Uses classic FVG logic (current candle low > high from 2 bars ago for bullish, vice versa for bearish)
Gap Size Display : Shows the exact size of each FVG in ticks directly on the box
Confirmed Bars Only : Only draws FVGs on confirmed bars to prevent repainting
Customization
Color Settings : Fully customizable colors for bullish and bearish FVGs with transparency control
Text Color : Configurable color for the tick size labels
Default Styling : Comes with sensible defaults (20% transparency, dark gray labels)
Performance Optimization
Smart Cleanup : Automatically removes boxes outside the visible chart area
Efficient Rendering : Maintains optimal performance even on lower timeframes
No Repainting : Uses confirmed bars only for reliable signals
───────────────────────────────────────
How It Works
───────────────────────────────────────
Detection Logic
Bullish FVG:
Current bar's low is higher than the high from 2 bars ago
Creates an upward gap that price left behind during bullish momentum
Bearish FVG:
Current bar's high is lower than the low from 2 bars ago
Creates a downward gap that price left behind during bearish momentum
Visual Display
Each detected FVG is displayed as:
A semi-transparent colored box spanning the gap area
The box extends from bar -2 to the current bar
Gap size in ticks shown at the bottom-left of each box
Singular/plural formatting ("1 tick" vs "X ticks")
───────────────────────────────────────
Performance Notes
───────────────────────────────────────
Cleanup runs every 50 bars to maintain optimal performance
Only creates boxes on confirmed bars (no real-time repainting)
Efficiently manages memory by removing off-screen boxes
Suitable for both manual and automated trading strategies
───────────────────────────────────────
Disclaimer
───────────────────────────────────────
This indicator is for educational and informational purposes only. It is not financial advice. Always do your own research and risk management before making trading decisions.
───────────────────────────────────────
Author : Michael
Version : 1.0
License : Free for personal use
Last Updated : November 2025
PEGY Ratio (Div Adj PEG)Identifying the PEGY (Dividend Adjusted PEG) to find value investment opportunities.
Absorption — Bullish or BearishAbsorption — Bullish or Bearish Only is a lightweight and minimalistic tool designed to identify pure absorption events in the market.
It highlights only two conditions:
Bullish Absorption
• Volume spike
• Small candle body
• Positive delta behavior (close > open)
→ Indicates potential buy-side absorption at lows
Bearish Absorption
• Volume spike
• Small candle body
• Negative delta behavior (close < open)
→ Indicates potential sell-side absorption at highs
This script intentionally keeps the chart clean by marking only “Bullish” or “Bearish” labels, without any additional visuals, colors, or extra signals.
Ideal for traders who want a simple, non-disruptive absorption confirmation tool.
Futures EMA 9×20 Scanner (Daily + 4H + 15m)This script is to facilitate the swing trading in 15min TF using the Daily and 4H.
TFU Multi-Symbol Screener + VWAP + Table Size Option + Blank RowTFU Multi-Symbol Screener + VWAP + Table Size Option + Blank Row
Stoch Cross OB/OS Signals CleanStoch Cross OB/OS Signals
Displays fast (%K) and slow (%D) Stochastic lines with visual signals for overbought and oversold conditions. Alerts when the fast line crosses the slow line in OB/OS zones using customizable symbols. Ideal for spotting short-term reversals and timing entries/exits. Features adjustable periods, OB/OS levels, and symbol sizes for clear chart visualization.
52-Week High Percentage BandsGeneral price band indicator for momentum trading:
How to use the code
Open TradingView and navigate to a chart.
Click the "Pine Editor" tab at the bottom of your screen.
Delete any existing code in the editor window.
Copy and paste the Pine Script code provided above into the Pine Editor.
Click "Add to Chart" to apply the indicator.
How the code works
indicator("52-Week High Percentage Bands", overlay=true): This line names the indicator and tells TradingView to plot it directly on the price chart.
request.security(syminfo.tickerid, "D", ta.highest(high, lookbackPeriod)): This is the most critical part. It fetches the highest price from the daily timeframe over the last 365 days. This ensures accuracy even if your chart is set to a different timeframe (e.g., 4-hour or weekly).
upperBand and lowerBand: These variables calculate the specific price levels for the 10% and 23% bands by multiplying the 52-week high by 0.90 and 0.77, respectively.
plot(): This function draws the horizontal lines on the chart for each band.
fill(): This function takes two plots as arguments and colors the space between them to create the "band" effect.
highestHigh: This optional plot adds a line to show you the exact 52-week high.
BTC EMA 5-9 Flip Strategy AutobotThis strategy is designed for fast and accurate trend-following trades on Bitcoin.
It uses a crossover between EMA 5 and EMA 9 to detect instant trend reversals and automatically flips between Long and Short positions.
How the strategy works
EMA 5 crossing above EMA 9 → Long
EMA 5 crossing below EMA 9 → Short
Automatically closes the opposite trade during a flip
Executes trades only on candle close
Prevents double entries with internal position-state logic
Fully compatible with automated trading via webhooks (Delta Exchange)
Why this strategy works
EMA 5–9 is extremely responsive for BTC’s volatility
Captures trend reversals early
Works best on 15-minute timeframe
Clean, simple logic without over-filtering reduces missed opportunities
Performs well in both uptrends and downtrends
Automation Ready
This strategy includes alert conditions and webhook-ready JSON for automated execution.
This is a fast-reacting BTC bot designed for intraday and swing crypto trend trading.
Time ColorsTime Colors – Custom Trading Sessions Visualizer
Time Colors is a simple visual helper for backtesting and intraday trading.
It lets you define up to 10 custom time blocks and highlights the chart background during those periods.
Use it to:
Mark the exact times when you are realistically able to trade
Visually separate different sessions (e.g. London, New York, Asia)
Filter out “dream trades” that happened while you were sleeping or at work
Features
Up to 10 fully customizable time blocks
Individual on/off toggle for each block
Custom color for every block
Works on any intraday timeframe
Session resolution input for flexible time handling
How to use
Add the Time Colors indicator to your chart.
Set each Time Block to your personal trading hours (based on your TradingView timezone).
Disable blocks you don’t need with “Enable Block X”.
When backtesting, only count trades that occur inside the colored areas – those are the times you could have actually taken trades.
MAG8 Breadth RSI This indicator is for my personal monitoring breadth of MAG 8 , including AVGO for use to trade spy/es and qqq/nq.
A green bar over 6 translates to 6 out of the 8 stocks have RSI's<30. Conversely a red indicator at 6 would indicate 6 out of 8 are overbought, RSI >70.
Extreme 6-8 of 8 either overbought (red) or oversold (green)
Moderate 4-5 of 8 either overbought (red) or oversold (green)
No Signal 0-3 of 8 either overbought (red) or oversold (green)
Not trading advice but thought I would share.
Smoothed VWAP Bands🎯 Best Smoothing Setting for Scalping (What You Should Use)
Style σ Smoothing Result
Fast scalping (1min) EMA 14 Very responsive, still filters noise
Balanced intraday (1–5min) EMA 20 Best overall reliability
Slow confirmation (5–15min) EMA 30 Eliminates nearly all fakeouts
✅ What We Are Actually Smoothing
You are NOT smoothing VWAP itself.
You are smoothing the standard deviation (σ) that creates the VWAP bands:
✔ What this does:
* Computes the raw standard deviation (σ) of price relative to VWAP
* Smooths that σ using EMA smoothing
* Builds ±1 and ±2 bands using the smoothed σ
* You get clean, stable bands that filter fakeouts
✔ Result:
* Bands do NOT twitch in chop
* Fakeouts are filtered
* Real breakouts show obvious expansion
IDRV – Market Structure & Projection ("cup and handle")1. Market Context
1. IDRV has completed a multi-month bottoming structure resembling a rounded accumulation base.
2. Price has broken above local resistance, confirming a bullish shift in trend.
3. RSI signals alternating bear/bull divergences, showing momentum compression before expansion.
2. Accumulation & Breakout Structure
4. Multiple higher lows since early 2024 indicate sustained accumulation.
5. The breakout above the neckline marks the beginning of an upward trend cycle.
6. Volume and structure support continuation rather than a fake-out.
3. Bullish Continuation Zone
7. The chart highlights a bullish expansion zone between $38 and $42.
8. Holding above this zone confirms trend strength and supports further upside.
9. A clean retest in this area offers a high-probability reload opportunity.
4. Projection Target
10. The projected upside shows a potential +56% move, targeting the $48–$52 region.
11. This aligns with previous supply zones and Fibonacci extension symmetry.
12. Price is expected to follow an ascending impulse pattern into 2026.
5. Risk Management
13. Invalidations occur below the $34–$35 support band where trend structure breaks.
14. A loss of this zone signals a likely return to the accumulation range.
15. Watch RSI bear signals during the climb for early signs of exhaustion.
6. Summary
16. Rounded base → Breakout → Retest → Expansion.
17. Structure supports continued bullish momentum into 2026.
18. Target zone remains $48–$52 if support is maintained.
150% Volume Surge1M charts show 150% volume surge to confirm scalping oppos in the direction of the general trend.






















