Order Block Volumatic FVG Strategy by TagsTrading
By TagsTrading
Performance Metrics
- Author: TagsTrading
- Symbol: BINANCE:BTCUSDT
- Timeframe: 45 minutes
- Net P&L: +105.94 USDT (+105.94%)
- Win Rate: 68.8%
- Profit Factor: 12.854
- Max Drawdown: 28.20 USDT (21.66%)
- Total Trades: 80
Description
Inspired by: Volumatic Fair Value Gaps [BigBeluga] — License: CC BY-NC-SA 4.0 (Creative Commons Attribution–NonCommercial–ShareAlike).This script is a non-commercial derivative work that credits the original author and keeps the same license.What this strategy doesThis turns BigBeluga’s visual FVG concept into an entry/exit strategy. It scans bullish and bearish FVG boxes, measures how deep price has mitigated into a box (as a percentage), and opens a long/short when your mitigation threshold and filters are satisfied. Risk is managed with a fixed Stop Loss % and a Trailing Stop that activates only after a user-defined profit trigger.Additions vs. the original indicator✅ Strategy entries based on % mitigation into FVGs (long/short).✅ Lower-TF volume split using upticks/downticks; fallback if LTF data is missing (distributes prior bar volume by close’s position in its H–L range) to avoid NaN/0.✅ Per-FVG total volume filter (min/max) so you can skip weak boxes.✅ Age filter (min bars since the FVG was created) to avoid fresh/immature boxes.✅ Bull% / Bear% share filter (the 46%/53% numbers you see inside each FVG).✅ Optional candle confirmation and cooldown between trades.✅ Risk management: fixed SL % + Trailing Stop with a profit trigger (doesn’t trail until your trigger is reached).✅ Pine v6 safety: no unsupported args, no indexof/clamp/when, reverse-index deletes, guards against zero/NaN.How a trade is decided (logic overview)Detect FVGs (same rules as the original visual logic).For each FVG currently intersected by the bar, compute:Mitigation % (how deep price has entered the box).Bull%/Bear% split (internal volume share).Total volume (printed on the box) from LTF aggregation or fallback.Age (bars) since the box was created.Apply your filters:Mitigation ≥ Long/Short threshold.Volume between your min and max (if enabled).Age ≥ min bars (if enabled).Bull% / Bear% within your limits (if enabled).(Optional) the current candle must be in trade direction (confirm).If multiple FVGs qualify on the same bar, the strategy uses the most recent one.Enter long/short (no pyramiding).Exit with:Fixed Stop Loss %, andTrailing Stop that only starts after price reaches your profit trigger %.Input settings (quick guide)Mitigation source: close or high/low. Use high/low for intrabar touches; close is stricter.Mitigation % thresholds: minimal mitigation for Long and Short.TOTAL Volume filter: skip FVGs with too little/too much total volume (per box).Bull/Bear share filter: require, e.g., Long only if Bull% ≥ 50; avoid Short when Bull% is high (Short Bull% max).Age filter (bars): e.g., ≥ 20–30 bars to avoid fresh boxes.Confirm candle: require candle direction to match the trade.Cooldown (bars): minimum bars between entries.Risk:Stop Loss % (fixed from entry price).Activate trailing at +% profit (the trigger).Trailing distance % (the trailing gap once active).Lower-TF aggregation:Auto: TF/Divisor → picks 1/3/5m automatically.Fixed: choose 1/3/5/15m explicitly.If LTF can’t be fetched, fallback allocates prior bar’s volume by its close position in the bar’s H–L.Suggested starting presets (you should optimize per market)Mitigation: 60–80% for both Long/Short.Bull/Bear share:Long: Bull% ≥ 50–70, Bear% ≤ 100.Short: Bull% ≤ 60 (avoid shorting into strong support), Bear% ≥ 0–70 as you prefer.Age: ≥ 20–30 bars.Volume: pick a min that filters noise for your symbol/timeframe.Risk: SL 4–6%, trailing trigger 1–2%, distance 1–2% (crypto example).Set slippage/fees in Strategy Properties.Notes, limitations & best practicesData differences: The LTF split uses request.security_lower_tf. If the exchange/data feed has sparse LTF data, the fallback kicks in (it’s deliberate to avoid NaNs but is a heuristic).Real-time vs backtest: The current bar can update until close; results on historical bars use closed data. Use “Bar Replay” to understand intrabar effects.No pyramiding: Only one position at a time. Modify pyramiding in the header if you need scaling.Assets: For spot/crypto, TradingView “volume” is exchange volume; in some markets it may be tick volume—interpret filters accordingly.Risk disclosure: Past performance ≠ future results. Use appropriate position sizing and risk controls; this is not financial advice.CreditsVisual FVG concept and original implementation: BigBeluga.This derivative strategy adds entry/exit logic, volume/age/share filters, robust LTF handling, and risk management while preserving the original spirit.License remains CC BY-NC-SA 4.0 (non-commercial, attribution required, share-alike).