Smart Order Flow Automator

### by Shiv Shakti Algo Systems
---
## 🔥 What Is This Indicator?
Smart Order Flow Automator tells you **WHERE the big players (banks, institutions, hedge funds) are buying and selling** — and gives you a clear **BUY or SELL signal** when the setup is ready.
Think of it as your personal trading assistant that:
- Shows you the **hidden levels** where big money is waiting
- Tells you **when to enter** with high-confidence signals
- Automatically calculates your **Stop Loss and 3 Take Profit** levels
- Works for **Forex, Gold (XAUUSD), Nifty, and BankNifty**
No guesswork. No confusion. Just clean signals with risk management.
---
## 👁 What Will You See On Your Chart?
### 🟢🔴 Colored Boxes (Order Blocks)
These are zones where institutions placed large orders in the past. When price comes back to these zones, there's a high probability of a bounce.
- **Green boxes** = Demand zones (institutions were BUYING here → expect price to bounce UP)
- **Red boxes** = Supply zones (institutions were SELLING here → expect price to bounce DOWN)
- **Bright color** = Fresh zone (never tested — STRONGEST)
- **Faded color** = Tested once (still good, but weaker)
- **Gray color** = Tested multiple times (weak — avoid)
### 🟦 Semi-Transparent Zones (Fair Value Gaps — FVG)
These are price gaps where the market moved too fast, leaving unfilled orders behind. Price tends to come back and fill these gaps.
- **Teal/Blue zones** = Bullish FVG (price may bounce UP from here)
- **Maroon/Dark Red zones** = Bearish FVG (price may reject DOWN from here)
- When a gap gets 50% filled, it fades automatically
- When fully filled, it disappears from your chart — keeping things clean
### ── Horizontal Lines (Key Levels)
These are the most important price levels that institutions watch every single day:
| Line | Color | What It Means |
|------|-------|---------------|
| **PDH** (Previous Day High) | Red | Yesterday's highest price — acts as resistance |
| **PDL** (Previous Day Low) | Green | Yesterday's lowest price — acts as support |
| **PDC** (Previous Day Close) | Gray | Yesterday's closing price — reference point |
| **PD POC** (Previous Day Point of Control) | Yellow (thick) | Where MOST volume was traded yesterday — price magnet (80% chance price comes here) |
| **PD VAH** (Previous Day Value Area High) | Red (thin) | Top of yesterday's fair value zone — resistance |
| **PD VAL** (Previous Day Value Area Low) | Green (thin) | Bottom of yesterday's fair value zone — support |
| **PWH** (Previous Week High) | Red (thick) | Last week's high — strong resistance for swing trades |
| **PWL** (Previous Week Low) | Green (thick) | Last week's low — strong support for swing trades |
| **PW POC** (Previous Week POC) | Yellow (thick) | Last week's volume magnet |
**💡 Simple Rule:** When price reaches these lines, WAIT for a signal. These are the levels where the best trades happen.
### 📈📉 Signal Labels
| What You See | What It Means | What To Do |
|---|---|---|
| 🟢 **"STRONG BUY"** (green label below candle) | All conditions confirmed — HIGH probability buy | Enter a BUY trade. SL/TP will appear automatically. |
| 🔴 **"STRONG SELL"** (red label above candle) | All conditions confirmed — HIGH probability sell | Enter a SELL trade. SL/TP will appear automatically. |
| 🔼 **"BUY"** (small green triangle) | Good setup but not all conditions met | Enter with caution, use tighter position size |
| 🔽 **"SELL"** (small red triangle) | Good setup but not all conditions met | Enter with caution, use tighter position size |
| 💎 **"SWEEP"** (circle below/above candle) | Big players grabbed liquidity and reversed | Very powerful reversal signal — enter in sweep direction |
### 💎 Diamond Markers (Liquidity Sweeps)
- **Green diamond below candle** = Price swept below a key low and bounced back up — Bullish reversal
- **Pink diamond above candle** = Price swept above a key high and dropped back — Bearish reversal
This is how institutions trap retail traders — they push price past a level to trigger stop losses, then reverse. This marker tells you when that happens.
### ✚ Yellow Crosses (Volume Spikes)
Small yellow crosses appear when trading volume suddenly increases significantly. High volume = something big is happening. Combine this with nearby zones for the best trades.
### ✕ Orange X-Marks (Poor High/Low)
- **Orange X above candle** = Flat top (Poor High) — likely to be swept. Future target for price.
- **Orange X below candle** = Flat bottom (Poor Low) — likely to be swept. Future target for price.
### 🚩 Small Flags (Single Prints)
These mark fast-move zones where price shot up or down without any pause. Price tends to come back to these areas. Think of them as "unfinished business."
### ── Thick Colored Line (Anchored VWAP)
This line shows the **average price** weighted by volume since the start of the session.
- **Line is GREEN** = Price is trading ABOVE average → Bullish bias → Look for BUY signals
- **Line is RED** = Price is trading BELOW average → Bearish bias → Look for SELL signals
**Simple Rule:** Only take BUY signals when the VWAP line is green. Only take SELL signals when it's red.
### ── Red/Green Dashed Lines (Stop Loss & Take Profit)
When a signal appears, you'll see automatic lines:
- **Red line** = Your Stop Loss (exit if price hits this — you were wrong)
- **Light green line** = TP1 (first target — book partial profit here)
- **Medium green line** = TP2 (second target — book more profit)
- **Dark green line** = TP3 (final target — let the rest ride to here)
These levels are **dynamic** — they adjust based on current market volatility. In a volatile market, SL is wider. In a calm market, SL is tighter. This protects you from being stopped out too early.
### 🎨 Background Colors (Session Killzones — Forex/Gold Only)
The chart background changes color based on which trading session is active:
| Background | Session | Best For |
|---|---|---|
| **Purple tint** | Asian Session | Ranging market — wait for breakout |
| **Blue tint** | London Session | High volatility — best for entries |
| **Orange tint** | New York Session | High volatility — best for entries |
**💡 Pro Tip:** The BEST signals come during London and New York sessions (blue and orange backgrounds). Avoid trading during Asian session unless you see a STRONG signal.
### 🇮🇳 Indian Market Background Colors
| Background | What It Means |
|---|---|
| **Gray tint** (11:30 AM – 1:30 PM) | Lunch time — low activity, avoid new trades |
| **Red tint** (after 3:00 PM) | Market closing soon — exit or avoid new entries |
---
## 📊 The Dashboard (Top Right Corner)
A live information panel that shows you everything at a glance:
### PREV DAY Section
- All previous day levels with their exact prices
- Distance from current price (in ticks) — tells you how far away each level is
### WEEKLY Section
- Previous week high, low, and POC prices
### MARKET STATE Section
| Label | What It Shows |
|---|---|
| **HTF Trend** | Is the bigger picture Bullish 🟢, Bearish 🔴, or Neutral ⚪? |
| **Market Type** | EXPANSION 🔥 (strong move), TRENDING 📈 (directional), or RANGE 📊 (sideways) |
| **HTF RSI** | Shows if the market is Overbought (🔴 avoid buys) or Oversold (🟢 avoid sells) |
| **Volume** | Current volume compared to average — HIGH ⚡ means something big is happening |
### SESSION Section
- Which session is active (London/NY/Asian for Forex, or Active/Lunch/Closing for Indian)
- AVWAP status — is price above ✅ or below ❌
### SIGNAL Section
- **🟢 LONG ACTIVE** = Buy trade is running
- **🔴 SHORT ACTIVE** = Sell trade is running
- **⏳ IN BUY/SELL ZONE** = Price is in a zone, waiting for confirmation
- **👁 WATCHING** = No setup yet, be patient
- When trade is active: shows live SL, TP1, TP2, TP3 prices
### RISK Section
- Current ATR value (market volatility measurement)
- Your risk percentage setting
### 🇮🇳 Indian Market Extra Info
- **Gap** — Shows if today opened with a Gap Up, Gap Down, or No Gap
- **OR H/L** — Opening Range High and Low values
- **⚠️ EXPIRY** — Thursday warning for weekly expiry volatility
---
## 🎯 How To Use — Step by Step
### Step 1: Set Up
- Add the indicator to your chart
- Go to Settings → Select your **Market Type** (Forex/Gold or Indian NSE/BSE)
- Choose your preferred timeframe (recommended: 5M or 15M)
### Step 2: Read The Dashboard
Before doing anything, check:
- ✅ HTF Trend — Which direction is the big picture?
- ✅ Volume — Is it HIGH? (Good for trading) or LOW? (Wait)
- ✅ Session — Is it an active session? (London/NY for Forex, 9:30-11:30 for India)
### Step 3: Wait For Price To Reach A Zone
- Watch for price approaching the horizontal lines (PDH, PDL, POC, etc.)
- Watch for price entering colored boxes (Order Blocks)
- The dashboard will show "⏳ IN BUY/SELL ZONE" when price reaches a zone
### Step 4: Wait For The Signal
- **DO NOT enter just because price is in a zone!**
- Wait for a **STRONG BUY**, **STRONG SELL**, or **SWEEP** label to appear
- The indicator checks volume, candle pattern, VWAP alignment, and RSI — all automatically
### Step 5: Enter The Trade
- When a signal appears, SL and TP lines will appear automatically
- Enter your trade in the signal direction
- Set your Stop Loss at the red line
- Set Take Profit at TP1 (safe), TP2 (moderate), or TP3 (aggressive)
### Step 6: Manage The Trade
- Book partial profit at TP1 (move SL to entry for a risk-free trade)
- Let remaining position run to TP2 or TP3
- For Indian markets: EXIT all trades by 3:15 PM regardless
---
## 💡 Golden Rules For Best Results
1. **Only trade STRONG signals** until you're confident with the system
2. **Best signals come at Previous Day levels** — PDH, PDL, and especially PD POC
3. **Liquidity Sweep + STRONG signal = Highest probability trade** in the entire system
4. **Fresh Order Blocks (bright color) > Tested Order Blocks (faded)** — always
5. **Green VWAP = only take buys. Red VWAP = only take sells.** Never go against it.
6. **London and New York sessions** give the best moves for Forex/Gold
7. **9:30 AM – 11:30 AM** is the golden window for Indian markets
8. **If HTF RSI shows OVERBOUGHT** — do NOT buy, wait for sells only
9. **If dashboard says RANGE** — trade towards the POC (middle). If EXPANSION — trade with the trend.
10. **Always risk maximum 1-2% per trade** — protect your capital first, profits will follow
---
## ⚙️ Quick Settings Guide
| Setting | What It Does | Recommended |
|---|---|---|
| Market Type | Switches between Forex and Indian mode | Pick your market |
| Volume Multiplier | How much volume spike is needed for signal | 1.5x (default) |
| ATR SL Multiplier | How wide your stop loss is | 1.5 (Gold), 2.0 (Forex) |
| RSI HTF Timeframe | Which timeframe for RSI filter | 240 (4 Hour) |
| Killzone Toggle | Show/hide session backgrounds | ON for Forex |
| Dashboard | Show/hide the info panel | ON (recommended) |
Everything else can stay at default. Adjust only after you're familiar with the system.
---
## ⚠️ DISCLAIMER & RISK WARNING
**PLEASE READ CAREFULLY BEFORE USING THIS INDICATOR:**
❗ **This indicator is for educational and informational purposes only.** It does NOT constitute financial advice, investment advice, or trading advice of any kind. The signals and analysis provided are tools for your own research — not instructions to buy or sell.
❗ **Trading in Forex, Gold, Equities, Futures, and Options involves substantial risk of loss.** You could lose part of or all of your invested capital. Past performance of any signal or system is NOT a guarantee of future results. Markets can and do behave unpredictably.
❗ **No indicator is 100% accurate.** Signals generated by this indicator may result in losing trades. Market conditions including slippage, spread widening, low liquidity, news events, and broker execution can affect outcomes in ways that no indicator can predict or account for.
❗ **You are solely responsible for your trading decisions.** By using this indicator, you accept full responsibility for any trades you take. The developer(s) of this indicator shall not be held liable for any financial losses, damages, or consequences resulting from the use of this indicator.
❗ **This indicator is NOT approved, endorsed, or regulated by any financial authority** including SEBI (India), SEC (USA), CFTC (USA), FCA (UK), ASIC (Australia), or any other regulatory body.
❗ **Always trade with money you can afford to lose.** If you are new to trading, we strongly recommend practicing on a demo/paper trading account before using real capital. Consult a qualified financial advisor before making investment decisions.
**By adding this indicator to your chart, you acknowledge that:**
- You have read and understood this disclaimer completely
- You accept all risks associated with trading financial markets
- You will NOT hold the developer(s) responsible for any trading losses
- You understand that signals are tools, not guarantees
- Trading decisions are 100% your own responsibility
---
*If you find this indicator helpful, please give it a 👍 and follow us for future updates! Drop a comment below if you have any questions — we're happy to help.*
*Happy Trading! 🚀*
Скрипт с ограниченным доступом
Доступ к этому скрипту имеют только пользователи, одобренные автором. Вам необходимо запросить и получить разрешение на его использование. Обычно оно предоставляется после оплаты. Для получения подробной информации следуйте инструкциям автора ниже или свяжитесь напрямую с Rajeevsharma5.
TradingView НЕ рекомендует оплачивать или использовать скрипт, если вы полностью не доверяете его автору и не понимаете, как он работает. Вы также можете найти бесплатные, открытые альтернативы в наших скриптах сообщества.
Инструкции от автора
Отказ от ответственности
Скрипт с ограниченным доступом
Доступ к этому скрипту имеют только пользователи, одобренные автором. Вам необходимо запросить и получить разрешение на его использование. Обычно оно предоставляется после оплаты. Для получения подробной информации следуйте инструкциям автора ниже или свяжитесь напрямую с Rajeevsharma5.
TradingView НЕ рекомендует оплачивать или использовать скрипт, если вы полностью не доверяете его автору и не понимаете, как он работает. Вы также можете найти бесплатные, открытые альтернативы в наших скриптах сообщества.