StratNinjaTableAuthor’s Instructions for StratNinjaTable
Purpose:
This indicator is designed to provide traders with a clear and dynamic table displaying The Strat candle patterns across multiple timeframes of your choice.
Usage:
Use the input panel to select which timeframes you want to monitor in the table.
Choose the table position on the chart (top left, center, right, or bottom).
The table will update each bar, showing the candle type, direction arrow, and remaining time until the candle closes for each selected timeframe.
Hover over or inspect the table to understand current market structure per timeframe using The Strat methodology.
Notes:
The Strat pattern is displayed as "1", "2U", "2D", or "3" based on the relationship of current and previous candle highs and lows.
The timer updates in real-time and adapts to daily, weekly, monthly, and extended timeframes.
This script requires Pine Script version 6. Please use it on supported platforms.
MFI or other indicators are not included in this base version but can be integrated separately if desired.
Credits:
Developed and inspired by shayy110 — thanks for your foundational work on The Strat in Pine Script.
Disclaimer:
This script is for educational and informational purposes only. Always verify signals and manage risk accordingly.
Volume
Multi-Tool Nasdaq US100 IndikatorA combination of several tools such as moving averages (EMA 50, 100, 200), Fibonacci retracements, pivot points, RSI (Relative Strength Index), order blocks, fair value gaps, supply and demand zones, and a simple volume profile.
The indicator is designed to enable high profitability by combining various established technical analysis approaches into one tool, facilitating decision-making regarding entry and exit points.
The script can be integrated and used directly in TradingView by creating a new indicator script and pasting the code there.
Volume Statistics - IntraweekVolume Statistics - Intraweek: For Orderflow Traders
This tool is designed for traders using volume footprint charts and orderflow methods.
Why it matters:
In orderflow trading, you care about the quality of volume behind each move. You’re not just watching price; you’re watching how much aggression is behind that price move. That’s where this indicator helps.
What to look at:
* Current Volume shows you how much volume is trading right now.
* Central Volume (median or average over 24h or 7D) gives you a baseline for what's normal volume VS abnormal volume.
* The Diff vs Central tells you immediately if current volume is above or below normal.
How this helps:
* If volume is above normal, it suggested elevated levels of buyer or seller aggression. Look for strong follow-through or continuation.
* If volume is below normal, it may signal low interest, passive participation, a lack of conviction, or a fake move.
* Use this context to decide if what you're seeing in the footprint (imbalances, absorption, traps) is actually worth acting on.
Extra context:
* The highest and lowest volume levels and their timestamps help you spot prior key reactions.
* Second and third highest bars help you see other major effort points in the recent window.
Comment with any suggestions on how to improve this indicator.
SquirrelofwallstreetAlien technologia
possible strategic entrie
English:
This content is provided for informational purposes only. We disclaim any responsibility for how it may be used. Please consult a qualified professional for any specific advice.
Volume Weighted Average PriceBasic VWAP indicator based on standard indicator with addition of previous period
Liquidation Heatmap Proxy [victhoreb]Author: victhoreb
This script was inspired by the Coinglass indicator: www.coinglass.com
It divides each bar into subbars determined by the intrabar period. For each bar, it considers subbars with a positive OID (open interest delta) (if the user sets "Filter by Signal" to true, it only considers subbars with OID > 0 from a main bar that had a peak in open interest). In these subbars, it considers opened long/short positions based on the intrabar price movement and the dispersion factor (which becomes completely unnecessary if the user is using Intrabar Resolution in ticks; in this case, set the dispersion factor = 0).
After determining the opened long and short positions, it determines, based on the user-selected leverages, the liquidation level for each position. The width of each level is given by syminfo.mintick * scale. The script uses the intrabar OID from the previous step to store an estimate of the number of contracts to be liquidated at each level. This estimate is used to color the levels by order of magnitude.
If there is a subsequent increase in liquidations at a pre-existing level, the script accumulates the estimated number of contracts to be liquidated and repaints the level. A note about a visual limitation of the script is important: in Coinglass' version, when there is a subsequent increase in liquidations at a pre-existing level, Coinglass paints the level a brighter color ONLY from the moment of the increase—however, this script does not do this; it repaints the entire level with the brighter color. Note: While accurate, this script is only a proxy. Use at your own risk.
This script has alerts for when there is liquidation in the long or short direction.
volume for vsaThis script provides a color-coded volume indicator based on relative volume levels compared to a smoothed average. It highlights ultra-high, high, and above-average volume bars, which are commonly used in Volume Spread Analysis (VSA) and general volume-based trading strategies.
Key Features:
- Real-time bar coloring to indicate:
• Ultra-high volume (red)
• High volume (yellow)
• Above-average volume (green)
• Low volume (blue)
- Dynamic volume zones plotted as shaded areas using smoothed average volume
- Adjustable smoothing parameter for average volume calculation
This tool can help traders visually detect potential supply/demand shifts or significant activity spikes that may precede price reversals or trend continuations. Designed for use alongside price-action or VSA-based chart analysis.
Gold Killzone Bias Suite🟡 Gold Killzone Bias Suite
The Gold Killzone Bias Suite is an advanced institutional-grade tool designed to generate high-confidence directional bias for XAU/USD (Gold) during the London and New York killzones.
Built for traders using a structured, confluence-driven approach, this tool blends price action, smart money principles, momentum, and volume into a real-time bias engine with a clean, easy-to-read dashboard.
🔧 Key Features
🕰️ Session-Based Bias (London / New York)
Independent bias calculation per session
Killzone times customizable with timezone support
Background highlighting (blue/red) for each session
📊 VWAP Engine
Reclaim & rejection detection
VWAP deviation alerts
Daily HTF VWAP integration
Score impact based on VWAP behaviour
📉 Market Structure (CHoCH / BOS)
Detects swing highs/lows
Labels bullish/bearish CHoCHs
Structure score contributes to session bias
💧 Liquidity Grabs
Detects stop hunts above highs / below lows
Confirms with candle rejection (body % filter)
Plots labels and adds to bias scoring
⚡ Momentum Filters
RSI: Bullish >55, Bearish <45
MACD: Histogram + Signal Line crossovers
Combined momentum score used in bias
🧠 Smart Money Proximity
Optional FVG/OB score toggle (placeholder for custom logic)
Adds static confluence for proximity-based setups
⏫ Higher Time Frame Context
Daily VWAP comparison
4H high/low structure breaks
Adds trend score to current session bias
🧠 How Bias Works
The suite uses a scoring model. Each confluence adds or subtracts points:
VWAP reclaim/reject: ±30
CHoCH/BOS: ±30
Liquidity grab: ±20
RSI/MACD: ±10
FVG/OB Proximity: +10
Daily VWAP trend: ±10
H4 Trend Break: ±10
Final Bias:
Bullish if score ≥ +20
Bearish if score ≤ -20
Neutral if between -19 and +19
A confidence % (capped at 100) is also shown, along with the contributing confluences (VWAP, Structure, Liquidity, etc.).
📋 Dashboard
A real-time dashboard shows for each session:
Session name and time
Bias (Bullish / Bearish / Neutral)
Confidence (%)
Confluences used
Position can be moved (Top Left, Top Right, etc.). Designed to be unobtrusive yet informative.
🧪 Best Practices
Use on 15m / 5m charts for intraday setups
Confirm with D1 or H4 structure for directional context
Combine with OB/FVG zones or SMT for entries
Use Trading View alerts for bias flips or liquidity grabs (custom logic can be added)
Bar Replay compatible for back testing and journaling bias shifts
🔐 Notes
Does not generate trade signals or alerts by default
Focused on bias generation and confluence stacking
Compatible with funded account trading models
📈 Built for traders who want a systematic, score-based approach to identifying directional edge in high-volume gold sessions.
Sharp Entry TMixture of Combined Technical indicators :
FAST EMA
SLOW EMA
RSI
ADX
VOLUME
Combined together to provide sharp BUY and SELL signals .
Order Block + FVG Detector- chakrashows OBs with entry and exits and volumes. It also shows the volumes in each Order block
EMA 6/21/50 PROIndicator Description: EMAs 6/21/50 + MACD + AO + Panel + Alerts
This technical indicator combines several analysis tools to help identify opportunities to enter consolidated trends. It integrates Exponential Moving Averages (EMAs), the MACD, the Amazing Oscillator (AO), and an interactive information panel that allows you to visualize entry signals, trend direction, and potential exit levels (Take Profit and Stop Loss). It is designed for day or swing traders who want a quick and structured reading of the market.
What does the script do? The indicator does the following: It draws 6, 21, and 50-period EMAs on the chart to detect the direction of the trend. It generates LONG/SHORT entry signals based on EMA crossover, alignment with the overall trend (EMA50), and confirmation by indicators: MACD:
Momentum filter. AO: Impulse depletion filter. It visually displays the TP (Take Profit) and SL (Stop Loss) levels when there is a signal. It includes an informative graphical panel with icons and text summarizing the market status and entry conditions.
It issues customizable alerts for entry signals, allowing it to be used in automated strategies or as a manual guide. Allows you to enable/disable visual elements with buttons to customize the experience.
How does it do it?
EMAs and crossover signals: It uses three EMAs: 6 (fast), 21 (medium), and 50 (slow).
A LONG signal occurs when the 6-EMA crosses above the 21-EMA, the price is above the 50-EMA, the MACD confirms bullish momentum, and the AO shows no exhaustion.
A SHORT signal is given in reverse conditions, with the option to limit the system to long signals only (Long signals only).
Additional filters:
MACD: Entry is avoided if there is no favorable crossover between the MACD line and its signal.
AO: Entry is avoided if the OA shows signs of weakness or exhaustion. TP/SL Visual:
TP and SL levels are calculated based on user-defined pips, and are automatically drawn on the chart when there is a valid signal.
Information panel: Each bar is automatically updated. Samples: general trend, EMA crossover, MACD/AO filters, and presence of LONG/SHORT signal. It is possible to hide it with a button from the settings panel.
Alerts: Alerts are generated when the full LONG or SHORT entry conditions are met. They are useful for receiving automatic notifications or integrating them into automated systems.
How to use it?
Add to chart and configure options: Year of start of the analysis.
Activate only long signals if you wish.
Show/hide panel, EMAs, or TP/SL levels. Interpreting signals:
Green triangle under a candle = Possible LONG entry.
Red triangle above a candle = Possible SHORT entry.
Green Line = Suggested Take Profit. Red Line = Suggested Stop Loss. Trigger alerts from TradingView's alert settings to be notified in real-time.
Important Note
This script does not execute orders or represent an automated trading strategy.
It is a visual analysis tool that can support decision-making, but it is recommended to use it in conjunction with other elements of analysis and proper risk management.
CnagdaCnagda indicator fuses multiple concepts: anchored VWAP, average of key MAs, volatility stops, swing and scalp trading logic, advanced volume and RSI usage, and visually handy outputs. It’s intended to give clear, multi-layered signals and adapt to different trading styles (trend following, swing, and scalp).
Here’s the entry and exit logic of this strategy in simple
Buy Entry (SCALP):
When a special moving average crossover happens, the script waits until the price rises above a recent high — then it signals a buy.
Sell Entry (SCALP):
When the crossover happens in the other direction, the script waits until the price falls below a recent low — then it signals a sell.
Exit from Buy/Sell
when condition neutral
Swing Trades:
If both price and its low are above an important average, it suggests a buy signal.
If both price and its high are below this average, it suggests a sell signal.
RSI/Volume Special Signals:
The strategy also checks for extra conditions combining momentum (RSI) and high volume spikes for more buy/sell signals, but only when the price's location supports it.
It buys when price shows fresh strength and sells when price shows fresh weakness
Fibonacci-Based Volume Flow (VFI)Fibonacci-based Volume Flow is an advanced next-generation evolution of LazyBear’s original VFI script that calculates and averages up to 21 Fibonacci-based VFI pairings to create a smoothed composite volume flow signal. This unique and powerful approach reduces noise, adapts to volatility, and provides a clearer view of trend strength and market structure across all timeframes. It also includes dynamic fibonacci guide levels, adaptive lookbacks, EMA crossovers, and structure-aware pivot labeling to help traders identify high-quality reversals, confirm directional bias, and detect divergences with greater precision. It's ideal for traders looking to enhance momentum analysis through volume-based confirmation.
🧠 Key Features🧠
🔹 Multi-VFI Fibonacci Fusion🔹
Blends up to 21 VFI signals (5, 13, 21, 34… up to 610) into smartly paired averages (e.g., 13/34, 55/144) — forming a smoothed composite VFI that’s more adaptive, less noisy, and highly responsive across market conditions.
🔸🔸 Dynamic Lookbacks🔸 🔸
Automatically adjusts histogram high/low tracking based on your chart’s timeframe — no more static tuning. Perfect for scalping fast charts or confirming long-term trends.
🟥🟩 Color-Coded Histogram🟥🟩
Visualizes VFI momentum with gradient coloring.
🧩🧩 Signal Crossovers 🧩🧩
Color-coded crossover lines persistently show bullish or bearish dominance.
Includes three powerful crossover systems:
➖5/13 VFI: Fast, early reversal detection
➖8/21 VFI: Swing-trading sweet spot
➖55/144 VFI: Trend confirmation across long cycles
🏷️ 🏷️Pivot Structure Labels🏷️🏷️
Labels oscillator swings with full structural logic:
➖HH, HL, LH, LL, EQ
➖Displays percent change, price at pivot, oscillator reading
➖Smart coloring detects divergence & trend continuation
📈 📈Dynamic Histogram Guides📈📈
Optional zero and ±50% bands anchor histogram levels based on real histogram extremes, not static thresholds — visually frame momentum shifts with context.
📍 📍Persistent High/Low Pivot Lines📍📍
Track the most significant histogram pivots (not price) across time, with smart labels:
➖Volume flow structure zones
➖Label shows price at pivot, oscillator level, and bars since event
➖Ideal for spotting divergence zones, momentum failures, and trend exhaustion.
🔍 🔍Volatility Table (ATR%)🔍🔍
💡Shows real-time volatility compression or expansion
💡Uses multiple ATR periods (e.g., 14 & 55) for short- and medium-term comparison
💡Helps traders understand whether momentum is likely to continue or stall
🔩🔩Volume-weighted VFI baselines🔩🔩
🟢A daily session-based VWAP of the VFI, which resets each day and highlights intraday volume flow context.
🟠A rolling VWA of VFI, which acts like a VWMA over a fixed window (e.g., 55 bars), smoothing short-term fluctuations and supporting trend/momentum confirmation.
These VWAP-style overlays help traders identify strength vs. weakness relative to volume-weighted baselines — useful for divergence spotting, mean reversion setups, or breakout confirmation.
🧰 🧰Under the Hood: How It Works🧰🧰
🔧 Core VFI Logic
Based on LazyBear’s foundational VFI:
➖Uses log returns of price (HLC3)
➖Filters insignificant moves using volatility-weighted thresholds
➖Normalizes volume via adaptive capping (e.g., 2.5× average)
🌀 Composite Blend System
Each VFI instance is smoothed and then fused via user-selectable pairs. This creates a customizable average VFI representing short, mid, and long-term pressure — one value, many time horizons.
📊 EMA Signal Layer
Crosses trigger persistent color shifts in signal lines, making trend strength clear at a glance.
VFI blend feeds into EMA crossovers. You can toggle visibility for:
➖Fast (5/13)
➖Medium (8/21)
➖Slow (55/144)
🧭 Pivot Framework
Structure logic only compares pivots on same-side polarity:
➖Highs compare to highs above zero
➖Lows compare to lows below zero
This avoids nonsensical comparisons and preserves logical sequences (HH → LH → HL).
🧱 Dynamic Labels
All pivots and persistent levels display:
➖Oscillator value
➖Price value
➖Structure tag (e.g., LH, HL)
➖% change from prior pivot
➖Lookback info
➖Bar age
Unlike traditional VFI:
✅ It blends timeframes with Fibonacci precision
✅ Uses dynamic, volatility-aware logic
✅ Embeds visual structure & divergence intelligence
✅ Enhances entry confidence and exit timing
🔧 This isn’t just an indicator — it’s a volume-informed decision engine.
Ideal For:
🔶Trend-followers wanting cleaner volume-based confirmation
🔶Reversal traders spotting structure + divergence
🔶Scalpers or investors needing adaptable signals
🔶Those who loved LazyBear's VFI
📌 Final Note:
As powerful as Fibonacci Blended Volume Flow is, no single indicator should be used in isolation. For best results, combine it with price action analysis, higher-timeframe context, and complementary tools like trendlines, moving averages, or support/resistance levels. Use it as part of a well-rounded trading approach to confirm setups — not to define them alone.
Dollar Volume + SD [ZTD]### So, What's the Big Deal with SD Dollar Volume?
TL:DR
What you see:
1. $ Volume = (Price * Volume) / 1M (we divide it by 1M by default so you don't have to look at 12 digits but you can select between 100k/1M/10M)
2. User selected M.A. period with difference sources
3. Up to 4 Standard Deviation from that M.A.
4. Color coded (explained below)
That's it, no fancy useless multi color rainbows. Functional, bringing depth and clarity to your analysis based on reality not optical illusion.
--------------
The Long version
You know how we've always looked at volume? It's a classic, but it's got a blind spot. A million shares traded when a stock is at $10 is a completely different ballgame from a million shares traded when it's at $200. The first is $10M in action; the second is $200M. Traditional volume treats them the same, but they are not the same story.
That's the whole idea behind the **Dollar Volume Standard Deviation (SD $VVOLUME)** indicator. Instead of just counting shares, it tracks the **actual dollar amount** ( also refered as Dollar Volume) changing hands. This gives you a much clearer picture of the real financial power behind a price move. It helps you see when the "big money" is truly stepping in or backing off.
Think about it this way: after a 20% drop on earnings, you might see a 10% volume increase and think, "Wow, buyers are stepping in!" But if you look at the *value traded*, it might actually be lower than the day before because the share price is so much cheaper. This indicator cuts through that noise.
What about that smaller stock you bought that suddenly doubles in prices in a matter of months. Do you really thing the volume you are looking at carries any meaning anymore?
On longer time frame? Think about Volume traded vs Value Traded on NVDA for example. Looking at volume alone on those charts is absolutely meaningless. I even wonder why volume alone ever existed in the first place as an indicator.
### How to Use It in Your Trading
This isn't just theory; here’s how you can actually use it to make better decisions.
#### Reading the Indicator
The indicator is designed to be visual and intuitive. Here’s what you're looking at:
* **The Bars:** Each bar on the indicator represents the total dollar value traded during that period. Bigger bar, more money moved.
* **The White Line:** This is your baseline—the moving average of the value traded. It shows you the normal level of money flow for that stock.
* **Bar Colors (The Important Part):**
* **Direction:** **Green** means the stock closed higher in that period. **Red** means it closed lower. Simple enough.
* **Intensity:** This is the real magic. The brightness or intensity of the color tells you how significant that money flow was. A dull, faded bar means the value traded was pretty average. A **bright, intense bar** means the value was way above normal (usually 1 or 2 standard deviations away from the average). *That's* when you need to pay attention.
#### Actionable Signals for Your Strategy
* **Spotting High-Conviction Moves:** When you see a bright, intense red or green bar that towers over the others, that's a signal of major conviction. Big players are making a decisive move, either buying up everything in sight or dumping their positions. This is your cue that something significant is happening.
* **Confirming a Trend's Strength:** Are you in a strong uptrend? Look for a consistent pattern of bright green bars. This tells you that significant capital is flowing in to support the rising price. It's confirmation that the trend has legs.
* **Catching a Weakening Trend (Divergence):** This is a powerful one. Imagine the stock price is grinding out new highs, but on the SD
V
VOLUME
indicator, the bars are getting smaller and less intense. That's a major red flag. It shows that even though the price is inching up, the real money isn't following. There's no conviction, and the trend could be about to reverse.
* **Gauging Liquidity:** If the bars are consistently low and dull, it's a sign that interest in the stock is drying up. It's a good way to spot illiquid conditions and avoid getting trapped in a stock that's hard to get out of.
Ultimately, SD SEED_YASHALGO_NSE_BREADTH:VOLUME helps you see the market from a different angle. It's not just about the noise of shares being traded; it's about following the money.
Dark Pool Block Trades - Institutional Volume📊 Dark Pool Block Trades - Institutional Volume
Visualize where institutional money positions before major price moves occur. This indicator reveals hidden dark pool block trades that often precede significant price movements - because when smart money deploys millions and billions in strategic accumulation or distribution, retail traders need to see where it's happening.
🎯 WHY DARK POOL DATA MATTERS:
Institutions don't move large capital randomly. Dark pool block trades represent strategic positioning by sophisticated money managers with superior research and conviction. These trades create hidden support/resistance levels that often predict future price action.
The key principle: Follow institutional flow, don't fight it. When institutions get involved, they create high-probability trading opportunities.
💰 HOW INSTITUTIONS INFLUENCE PRICE:
- Large block trades establish hidden accumulation/distribution zones
- Smart money builds positions BEFORE retail awareness increases
- Institutional activity creates "footprints" at key technical levels
- These trades often signal conviction plays ahead of major moves
- Institutions typically add to winning positions throughout trends
🔍 WHAT THIS INDICATOR SHOWS:
- Visual overlay of dark pool block trades directly on price charts
- Track institutional positioning across major stocks and ETFs
- Identify accumulation/distribution zones before they become obvious to retail
- Spot high-conviction institutional trades in real-time visualization
- Customizable block trade size filters and timeframe selection
- Historical institutional activity up to 5 years or custom ranges
💡 THE TRADING ADVANTAGE:
Instead of guessing price direction, see where institutions are already positioning. When large block trades appear in dark pools, you're witnessing strategic institutional commitment that frequently leads to significant price movements.
⚡ HOW IT WORKS:
This Pine Script displays institutional dark pool transactions as visual markers on your charts. The script comes with sample data for immediate use. For expanded ticker coverage and real-time updates, external data services are available.
🎯 IDEAL FOR:
- Swing traders following institutional footprints
- Traders seeking setups backed by smart money conviction
- Position traders looking for accumulation zones
- Anyone wanting to align with institutional flow rather than fight it
🔄 SAMPLE DATA INCLUDED:
Pre-loaded with institutional activity data across popular tickers, updated daily to demonstrate how dark pool activity correlates with future price movements.
The script initially covers these tickers going back 6 months showing the top 10 trades by volume over 400,000 shares: AAPL, AMD, AMZN, ARKK, ARKW, BAC, BITO, COIN, COST, DIA, ETHA, GLD, GOOGL, HD, HYG, IBB, IWM, JNJ, JPM, LQD, MA, META, MSFT, NVDA, PG, QQQ, RIOT, SLV, SMCI, SMH, SOXX, SPY, TLT, TSLA, UNH, USO, V, VEA, VNQ, VOO, VTI, VWO, WMT, XLE, XLF, XLK, XLU, XLV, XLY
Profitable Pullback Strategy Mark804📝 Strategy Description: Pullback Trading Strategy v2.0 by Mark804
Overview
This strategy is a refined, trend-following pullback system designed to identify high-probability entry points within an established trend. Based on **EMA stacking**, it captures short-term retracements (pullbacks) in the direction of the larger trend. It has been fully updated to **Pine Script v5** with dynamic inputs, clear visualization, backtesting functionality, and risk management via stop loss and take profit.
---
🔧 How It Works
1. **Trend Detection**
The strategy first identifies a trend using a combination of four EMAs:
* **Fast EMA**
* **Signal EMA**
* **Medium EMA**
* **Slow EMA** (optional filter)
A valid trend is defined by **EMA stacking**:
* **Uptrend**: Fast > Signal > Medium (> Slow, if enabled)
* **Downtrend**: Fast < Signal < Medium (< Slow, if enabled)
This ensures the strategy trades **only in the direction of the dominant trend**, avoiding countertrend setups.
---
2. **Pullback Entry Conditions**
The strategy looks for pullbacks (retracements) within the confirmed trend:
*Buy Setup (Long Pullback)**:
* In an uptrend
* Price **closes below** the Signal EMA on the previous bar
* Then **closes back above** the Signal EMA on the current bar
* **Sell Setup (Short Pullback)**:
* In a downtrend
* Price **closes above** the Signal EMA on the previous bar
* Then **closes back below** the Signal EMA on the current bar
These conditions aim to enter on price dips or rallies that offer better entries while staying aligned with trend momentum.
---
3. **Entry & Exit Logic**
When a pullback signal is detected:
* A **market order** is placed in the trend direction
* A **take profit** and **stop loss** is applied immediately based on percentage inputs
Example:
* Take Profit: 2% above entry (for long)
* Stop Loss: 1% below entry (for long)
This creates a favorable **risk-to-reward ratio** and clear exit strategy.
---
4. **Customizable Inputs**
All key parameters can be tuned via the script’s settings panel:
* `maSrc`: Source for EMAs (default: `close`)
* `fastLen`, `signalLen`, `mediumLen`, `slLen`: EMA lengths
* `slEnabled`: Toggle to include the slow EMA as a trend filter
* `takeProfitPct`, `stopLossPct`: % values for TP and SL
* `showRibbon`: Toggle visibility of EMA lines (the "ribbon")
This flexibility allows optimization for different timeframes, assets, or market conditions.
---
5. **Visuals & Alerts**
* **EMA Ribbon**: Optionally plots all 4 EMAs in distinct colors
* **Alerts**: Configurable alerts for both Buy and Sell pullback signals
* **Strategy Tester**: Fully compatible with TradingView’s backtester to review performance
---
✅ Key Features
* Pine Script **v5** compatible
* Simple yet powerful **trend-pullback strategy**
* Built-in **risk management** (TP/SL)
* Highly **customizable** and easy to optimize
* Works on **any timeframe or market** (stocks, crypto, forex, etc.)
* Optional **EMA Ribbon** and slow filter for visual context
---
📊 Strategy Use Cases
* Intraday trading
* Swing trading
* Trend continuation setups
* Building automated systems in TradingView
* Manual trade confirmation for other systems
---
⚙️ Example Settings
| Parameter | Value |
| ----------------- | --------- |
| Fast EMA Length | 8 |
| Signal EMA Length | 13 |
| Medium EMA Length | 21 |
| Slow EMA Length | 55 |
| Take Profit (%) | 2.0 |
| Stop Loss (%) | 1.0 |
| Use Slow EMA | ✅ Enabled |
---
📌 Important Notes
* This is a **trend-following strategy**. Best results occur in trending markets.
* In sideways or choppy markets, false signals may occur. Consider using higher timeframes or combining with volume filters.
* You can expand this strategy further by integrating:
* Multi-timeframe trend confirmation
* Additional filters (e.g. RSI, MACD)
* Trailing stop loss for dynamic exits
* Visual overlays (e.g. pivot points, fractals) for added context
ATR 5 min- FOREX + XAUThis indicator displays the Average True Range (ATR) over the last 20 candles, calculated using the 5-minute timeframe, regardless of the chart timeframe you're currently viewing.
It supports:
All major forex pairs
XAUUSD (Gold), with ATR displayed in full dollars
Key Features
Always reflects 5-minute volatility
Accurate pip scaling:
JPY pairs = 1 pip = 0.01
Other forex pairs = 1 pip = 0.0001
XAUUSD = 1 pip = 1.00 (i.e., full dollar)
Clean and minimal top-right table display
Automatically adapts based on the instrument you're viewing
Helps traders gauge recent market volatility across timeframes
This is an ideal tool for scalpers, intraday traders, or swing traders who want to monitor short-term volatility conditions from any timeframe view.
Moby Tick Prints - version 1.0.0Prints are aggregated by date and price. If there are multiple trades on the same day at the same price, they are added and represented in the Shares column
📊 Supertrend + EMA + VWAP + Proximity AlertThis is a combination of Indicator as mentioned above. Proximity Alert may be used for giving alert on 200 ema on Multi time frame. Made by AjaySharma
Volume Pressure Gauge + Volume %Volume Pressure Gauge and Volume Percentage Indicator – Pine Script Guide
This indicator provides a simplified, real-time visualization of both volume pressure (buy vs. sell activity) and today’s trading volume in comparison to historical averages. It is designed to help traders assess whether buyers or sellers dominate the current session and whether today’s volume is significant relative to recent behaviour.
________________________________________
Key Functional Segments
1. Inputs and Configuration
Users can configure the length of the Simple Moving Average (SMA) used to calculate average volume, set the position of the gauge table on the chart, and toggle the visibility of the volume pressure display. This allows flexibility in integrating the tool with various trading styles and chart layouts.
2. Volume Data Calculations
The indicator calculates three key volume metrics:
• volToday: The current day’s volume.
• volAvg: The average volume over the user-defined SMA period (default is 20 bars).
• volPct: The current volume as a percentage of the average.
This enables traders to quickly recognize whether current trading activity is above or below normal, which can be a precursor to potential trend strength or weakness.
3. Volume Pressure Calculation
The script estimates buying and selling pressure based on price movement and volume. It distributes volume into upward (buy) and downward (sell) segments and expresses them as percentages of the total volume. This gives an immediate sense of whether bulls or bears are more active in the current session.
4. Visual Representation (Progress Bars)
The indicator renders a simplified visual gauge using horizontal bar segments (pseudo-bars) to reflect the proportion of buy and sell pressure. The length of each bar correlates with the strength of pressure from buyers or sellers, helping users assess dominance without analyzing candlestick behavior in depth.
5. Table Display
A compact table is drawn on the chart showing:
• Buy pressure percentage and corresponding bar.
• Sell pressure percentage and corresponding bar.
• Volume percentage compared to the recent average.
This format makes it easy to evaluate volume dynamics at a glance, without cluttering the price chart or relying on separate overlays.
________________________________________
How Traders Benefit from This Indicator
• Momentum Shift Detection: Early signs of trend reversal can be observed when volume pressure flips direction.
• Breakout Validation: High volume combined with dominant pressure supports the credibility of breakout moves.
• False Move Avoidance: If price moves on low volume or mixed pressure, traders can avoid low-probability entries.
• Market Context Awareness: Users can assess whether a day is behaving normally in terms of participation or is unusually quiet or aggressive.
________________________________________
Basic Usage Guide
1. Add the script to your TradingView chart and set your preferred SMA length for volume comparison.
2. Customize the table’s position using the X and Y settings for clarity and alignment.
3. Interpret the outputs:
o A higher red bar indicates dominant sell pressure.
o A higher green bar indicates dominant buy pressure.
o Volume % above 100% suggests above-average activity, while values below 100% may imply low conviction.
4. Apply to trading decisions:
o High buy pressure and high volume may indicate a strong long opportunity.
o High sell pressure and high volume may support short setups.
o Low volume or conflicting signals may call for caution.
5. Combine with other tools such as trend indicators, support/resistance zones, or price action patterns for more reliable trade setups.
________________________________________
Practical Example
• Sell Pressure: 70% → Suggests strong seller control; potential for short setups.
• Buy Pressure: 30% → Weak buying interest; long trades may carry risk.
• Volume Percentage: 120% → Indicates a surge in participation; movement may have greater validity.
________________________________________
Tips for New Traders
• Use this indicator as a confirmation tool rather than a standalone strategy.
• Begin on higher timeframes (4-hour or daily) to develop familiarity.
• Compare multiple examples to identify reliable patterns over time.
• Always incorporate proper risk management, including stop losses.
________________________________________
Disclaimer from aiTrendview
This indicator is intended solely for educational and informational use. It does not constitute investment advice, trade signals, or financial recommendations. aiTrendview and its affiliates are not liable for any trading losses incurred through use of this tool. All trading involves risk. Past performance of any indicator does not guarantee future results. Users should conduct independent research and consult with a certified financial advisor before making any trading decisions.
Game Theory Trading StrategyGame Theory Trading Strategy: Explanation and Working Logic
This Pine Script (version 5) code implements a trading strategy named "Game Theory Trading Strategy" in TradingView. Unlike the previous indicator, this is a full-fledged strategy with automated entry/exit rules, risk management, and backtesting capabilities. It uses Game Theory principles to analyze market behavior, focusing on herd behavior, institutional flows, liquidity traps, and Nash equilibrium to generate buy (long) and sell (short) signals. Below, I'll explain the strategy's purpose, working logic, key components, and usage tips in detail.
1. General Description
Purpose: The strategy identifies high-probability trading opportunities by combining Game Theory concepts (herd behavior, contrarian signals, Nash equilibrium) with technical analysis (RSI, volume, momentum). It aims to exploit market inefficiencies caused by retail herd behavior, institutional flows, and liquidity traps. The strategy is designed for automated trading with defined risk management (stop-loss/take-profit) and position sizing based on market conditions.
Key Features:
Herd Behavior Detection: Identifies retail panic buying/selling using RSI and volume spikes.
Liquidity Traps: Detects stop-loss hunting zones where price breaks recent highs/lows but reverses.
Institutional Flow Analysis: Tracks high-volume institutional activity via Accumulation/Distribution and volume spikes.
Nash Equilibrium: Uses statistical price bands to assess whether the market is in equilibrium or deviated (overbought/oversold).
Risk Management: Configurable stop-loss (SL) and take-profit (TP) percentages, dynamic position sizing based on Game Theory (minimax principle).
Visualization: Displays Nash bands, signals, background colors, and two tables (Game Theory status and backtest results).
Backtesting: Tracks performance metrics like win rate, profit factor, max drawdown, and Sharpe ratio.
Strategy Settings:
Initial capital: $10,000.
Pyramiding: Up to 3 positions.
Position size: 10% of equity (default_qty_value=10).
Configurable inputs for RSI, volume, liquidity, institutional flow, Nash equilibrium, and risk management.
Warning: This is a strategy, not just an indicator. It executes trades automatically in TradingView's Strategy Tester. Always backtest thoroughly and use proper risk management before live trading.
2. Working Logic (Step by Step)
The strategy processes each bar (candle) to generate signals, manage positions, and update performance metrics. Here's how it works:
a. Input Parameters
The inputs are grouped for clarity:
Herd Behavior (🐑):
RSI Period (14): For overbought/oversold detection.
Volume MA Period (20): To calculate average volume for spike detection.
Herd Threshold (2.0): Volume multiplier for detecting herd activity.
Liquidity Analysis (💧):
Liquidity Lookback (50): Bars to check for recent highs/lows.
Liquidity Sensitivity (1.5): Volume multiplier for trap detection.
Institutional Flow (🏦):
Institutional Volume Multiplier (2.5): For detecting large volume spikes.
Institutional MA Period (21): For Accumulation/Distribution smoothing.
Nash Equilibrium (⚖️):
Nash Period (100): For calculating price mean and standard deviation.
Nash Deviation (0.02): Multiplier for equilibrium bands.
Risk Management (🛡️):
Use Stop-Loss (true): Enables SL at 2% below/above entry price.
Use Take-Profit (true): Enables TP at 5% above/below entry price.
b. Herd Behavior Detection
RSI (14): Checks for extreme conditions:
Overbought: RSI > 70 (potential herd buying).
Oversold: RSI < 30 (potential herd selling).
Volume Spike: Volume > SMA(20) x 2.0 (herd_threshold).
Momentum: Price change over 10 bars (close - close ) compared to its SMA(20).
Herd Signals:
Herd Buying: RSI > 70 + volume spike + positive momentum = Retail buying frenzy (red background).
Herd Selling: RSI < 30 + volume spike + negative momentum = Retail selling panic (green background).
c. Liquidity Trap Detection
Recent Highs/Lows: Calculated over 50 bars (liquidity_lookback).
Psychological Levels: Nearest round numbers (e.g., $100, $110) as potential stop-loss zones.
Trap Conditions:
Up Trap: Price breaks recent high, closes below it, with a volume spike (volume > SMA x 1.5).
Down Trap: Price breaks recent low, closes above it, with a volume spike.
Visualization: Traps are marked with small red/green crosses above/below bars.
d. Institutional Flow Analysis
Volume Check: Volume > SMA(20) x 2.5 (inst_volume_mult) = Institutional activity.
Accumulation/Distribution (AD):
Formula: ((close - low) - (high - close)) / (high - low) * volume, cumulated over time.
Smoothed with SMA(21) (inst_ma_length).
Accumulation: AD > MA + high volume = Institutions buying.
Distribution: AD < MA + high volume = Institutions selling.
Smart Money Index: (close - open) / (high - low) * volume, smoothed with SMA(20). Positive = Smart money buying.
e. Nash Equilibrium
Calculation:
Price mean: SMA(100) (nash_period).
Standard deviation: stdev(100).
Upper Nash: Mean + StdDev x 0.02 (nash_deviation).
Lower Nash: Mean - StdDev x 0.02.
Conditions:
Near Equilibrium: Price between upper and lower Nash bands (stable market).
Above Nash: Price > upper band (overbought, sell potential).
Below Nash: Price < lower band (oversold, buy potential).
Visualization: Orange line (mean), red/green lines (upper/lower bands).
f. Game Theory Signals
The strategy generates three types of signals, combined into long/short triggers:
Contrarian Signals:
Buy: Herd selling + (accumulation or down trap) = Go against retail panic.
Sell: Herd buying + (distribution or up trap).
Momentum Signals:
Buy: Below Nash + positive smart money + no herd buying.
Sell: Above Nash + negative smart money + no herd selling.
Nash Reversion Signals:
Buy: Below Nash + rising close (close > close ) + volume > MA.
Sell: Above Nash + falling close + volume > MA.
Final Signals:
Long Signal: Contrarian buy OR momentum buy OR Nash reversion buy.
Short Signal: Contrarian sell OR momentum sell OR Nash reversion sell.
g. Position Management
Position Sizing (Minimax Principle):
Default: 1.0 (10% of equity).
In Nash equilibrium: Reduced to 0.5 (conservative).
During institutional volume: Increased to 1.5 (aggressive).
Entries:
Long: If long_signal is true and no existing long position (strategy.position_size <= 0).
Short: If short_signal is true and no existing short position (strategy.position_size >= 0).
Exits:
Stop-Loss: If use_sl=true, set at 2% below/above entry price.
Take-Profit: If use_tp=true, set at 5% above/below entry price.
Pyramiding: Up to 3 concurrent positions allowed.
h. Visualization
Nash Bands: Orange (mean), red (upper), green (lower).
Background Colors:
Herd buying: Red (90% transparency).
Herd selling: Green.
Institutional volume: Blue.
Signals:
Contrarian buy/sell: Green/red triangles below/above bars.
Liquidity traps: Red/green crosses above/below bars.
Tables:
Game Theory Table (Top-Right):
Herd Behavior: Buying frenzy, selling panic, or normal.
Institutional Flow: Accumulation, distribution, or neutral.
Nash Equilibrium: In equilibrium, above, or below.
Liquidity Status: Trap detected or safe.
Position Suggestion: Long (green), Short (red), or Wait (gray).
Backtest Table (Bottom-Right):
Total Trades: Number of closed trades.
Win Rate: Percentage of winning trades.
Net Profit/Loss: In USD, colored green/red.
Profit Factor: Gross profit / gross loss.
Max Drawdown: Peak-to-trough equity drop (%).
Win/Loss Trades: Number of winning/losing trades.
Risk/Reward Ratio: Simplified Sharpe ratio (returns / drawdown).
Avg Win/Loss Ratio: Average win per trade / average loss per trade.
Last Update: Current time.
i. Backtesting Metrics
Tracks:
Total trades, winning/losing trades.
Win rate (%).
Net profit ($).
Profit factor (gross profit / gross loss).
Max drawdown (%).
Simplified Sharpe ratio (returns / drawdown).
Average win/loss ratio.
Updates metrics on each closed trade.
Displays a label on the last bar with backtest period, total trades, win rate, and net profit.
j. Alerts
No explicit alertconditions defined, but you can add them for long_signal and short_signal (e.g., alertcondition(long_signal, "GT Long Entry", "Long Signal Detected!")).
Use TradingView's alert system with Strategy Tester outputs.
3. Usage Tips
Timeframe: Best for H1-D1 timeframes. Shorter frames (M1-M15) may produce noisy signals.
Settings:
Risk Management: Adjust sl_percent (e.g., 1% for volatile markets) and tp_percent (e.g., 3% for scalping).
Herd Threshold: Increase to 2.5 for stricter herd detection in choppy markets.
Liquidity Lookback: Reduce to 20 for faster markets (e.g., crypto).
Nash Period: Increase to 200 for longer-term analysis.
Backtesting:
Use TradingView's Strategy Tester to evaluate performance.
Check win rate (>50%), profit factor (>1.5), and max drawdown (<20%) for viability.
Test on different assets/timeframes to ensure robustness.
Live Trading:
Start with a demo account.
Combine with other indicators (e.g., EMAs, support/resistance) for confirmation.
Monitor liquidity traps and institutional flow for context.
Risk Management:
Always use SL/TP to limit losses.
Adjust position_size for risk tolerance (e.g., 5% of equity for conservative trading).
Avoid over-leveraging (pyramiding=3 can amplify risk).
Troubleshooting:
If no trades are executed, check signal conditions (e.g., lower herd_threshold or liquidity_sensitivity).
Ensure sufficient historical data for Nash and liquidity calculations.
If tables overlap, adjust position.top_right/bottom_right coordinates.
4. Key Differences from the Previous Indicator
Indicator vs. Strategy: The previous code was an indicator (VP + Game Theory Integrated Strategy) focused on visualization and alerts. This is a strategy with automated entries/exits and backtesting.
Volume Profile: Absent in this strategy, making it lighter but less focused on high-volume zones.
Wick Analysis: Not included here, unlike the previous indicator's heavy reliance on wick patterns.
Backtesting: This strategy includes detailed performance metrics and a backtest table, absent in the indicator.
Simpler Signals: Focuses on Game Theory signals (contrarian, momentum, Nash reversion) without the "Power/Ultra Power" hierarchy.
Risk Management: Explicit SL/TP and dynamic position sizing, not present in the indicator.
5. Conclusion
The "Game Theory Trading Strategy" is a sophisticated system leveraging herd behavior, institutional flows, liquidity traps, and Nash equilibrium to trade market inefficiencies. It’s designed for traders who understand Game Theory principles and want automated execution with robust risk management. However, it requires thorough backtesting and parameter optimization for specific markets (e.g., forex, crypto, stocks). The backtest table and visual aids make it easy to monitor performance, but always combine with other analysis tools and proper capital management.
If you need help with backtesting, adding alerts, or optimizing parameters, let me know!
Accumulation Phase DetectorClean Accumulation Phase Indicator — Description
This TradingView indicator visually identifies the Accumulation Phase in price action, based on the Wyckoff methodology and volume-price analysis. The Accumulation Phase is where insiders or "smart money" gradually build positions before a significant price breakout.
Key Features:
Range Detection: The indicator calculates a price range over a configurable period (Range Length). It marks this range on the chart with red horizontal lines representing support and resistance.
Volume Spike Identification: It detects unusually high volume relative to the average volume over the same period (Volume Spike Multiplier). These spikes highlight potential insider buying activity.
Accumulation Phase Highlighting: When price action remains within the detected range and volume spikes occur, the indicator considers the market to be in an accumulation phase. Volume bars during this phase are colored blue for easy visualization.
Campaign Start & End Labels: The indicator places a "Campaign starts" label at the beginning of the accumulation phase and a "Campaign ends - warehouse full" label when the accumulation ends. This mimics the idea that insiders fill their “warehouses” before a breakout.
Breakout Detection: Once accumulation ends, the indicator monitors for a price breakout above the resistance level and places a "Breakout" label at the breakout bar.
How to Use:
Adjust the Range Length and Volume Spike Multiplier inputs to suit the timeframe and instrument you’re analyzing.
Watch for the blue volume bars within the red range lines to identify the accumulation phase.
Use the campaign labels to identify when the phase starts and ends.
Watch for the breakout label as a potential entry signal.