[3Commas] UNI Vault Grid - UNI - Indicator UNI Vault Grid — UNI — Indicator
🔷 What it does:
This indicator is the visual + signal-only companion to the static geometric grid strategy for Uniswap (UNI/USDT). It draws all 57 grid levels on the chart, fires Buy and Sell signals on each close-cross event, tracks a virtual P&L card (simulating what the matching strategy would have done), and ships webhook alerts for routing signals to a connected grid bot. Use it when you want the grid logic running on your chart without strategy.* engine — for visual confirmation, manual entries, or external bot routing.
- 57 geometrically-spaced levels between Low (2.979) and High (4.171) drawn as horizontal lines
- Buy / Sell labels printed at each level on cross events
- Virtual P&L tracker mirrors the strategy version's bookkeeping
- Static range — grid does NOT shift up when price exits the band (trailing-up disabled)
- Webhook-ready alert payload for connected grid bot
🔷 Who is it for:
Traders who want to visualize the grid and signal layer on their chart without running the strategy engine.
Bot operators routing signals from TradingView alerts to a connected grid bot via webhook.
Discretionary swing traders who want grid levels as decision support while executing manually.
Users comparing live signal flow against backtested behavior of the matching strategy publication.
🔷 How does it work:
Grid Construction: On the first bar, the indicator pre-computes 57 price levels between Low (2.979) and High (4.171) using geometric spacing (≈ 0.61% step). Each level is drawn as a horizontal line — green for the lowest, red for the highest, aqua for the middle levels.
Signal Generation: On every confirmed bar, the indicator checks each level for a close-cross-down (Buy signal) or close-cross-up (Sell signal) against the next level above. A label is printed at the level on each cross. Buy labels are aqua, Sell labels are fuchsia and include the realized virtual P&L.
Virtual P&L Tracker: The indicator maintains its own bookkeeping that mirrors the strategy version — when a Buy level fills, qty is recorded; when the next-up Sell level crosses, the per-level P&L is added to the virtual net. Stats card displays Net P&L, Max Drawdown, Total Fills, Win Rate, and Profit Factor.
Webhook Alerts: A grid_start JSON payload (Bot ID, Email Token, Pair) is fired once when the first bar enters the configured backtest window. This is informational — grid bots are typically configured on the bot interface directly.
🔷 Why it's unique:
Identical grid math to the strategy publication — same 57 levels, same step, same cross-detection logic. The virtual P&L card lets you see live what the strategy version is doing in backtest, but on an indicator pane (no strategy.* engine, no order fills).
Static range fidelity — no trailing-up. The grid stays locked exactly where you configured it, which makes risk envelope easy to reason about before deploying capital.
Brand watermark + stats overlay — consistent visual layer with all other 3Commas Vault Grid publications.
🔷 Considerations Before Using the Indicator:
Market & Timeframe: Calibrated for a 15-minute chart on UNI/USDT spot pairs. The runtime warning label flags any TF other than 15m. Higher TFs produce far fewer fills; lower TFs (1m, 5m) generate more signals but slow chart rendering.
Limitations: The indicator does NOT place orders — it only signals. If you wire the alerts to a grid bot, the bot is responsible for executing entries and exits. The virtual P&L card is an in-indicator simulation only, not a real account P&L. It does not include funding, slippage, or partial fills.
Backtesting & Demo Testing: The strategy version is the canonical reference for realized backtest performance (with commission, slippage, and the strategy engine's order book). This indicator's virtual P&L is a useful estimate but cannot replace the strategy tester report. Demo-trade your bot for at least one month before any live deployment.
Parameter Adjustments: The grid range, level count, and per-level amount should be re-evaluated for each deployment period. UNI's "fair range" shifts over time — a grid calibrated for one regime may not work for the next. The default 2.979 — 4.171 envelope reflects UNI's recent volatility band as of publication.
🔷 INDICATOR SETTINGS
Grid High Price — Upper boundary of the grid range (default 4.171).
Grid Low Price — Lower boundary of the grid range (default 2.979).
Grid Levels — Total number of price levels (default 57).
Grid Mode — Geometric (constant % spacing) or Arithmetic (constant absolute spacing).
Amount per Level (USDT, ref) — Notional per fill (default 175.44) — used for virtual P&L only.
Trailing Up — Disabled by default. Enables adaptive grid behavior on breakout (off keeps grid static).
Trail Up Threshold % — % above High at which trailing fires (only used if Trailing Up enabled).
Shift Up Magnitude % — How much of the current range to shift when trailing-up fires.
Limit by Date Range — Constrain virtual backtest to a specific date window (default Jan 19 — May 19 2026).
Initial Capital (USDT, ref for % calc) — Used to convert virtual P&L into a % figure on the stats card.
Show grid lines on chart — Toggle horizontal level lines (red top, green bottom, aqua middle).
Show fill labels on chart — Toggle Buy / Sell labels printed on each cross.
Show stats card — Toggle the on-chart virtual backtest summary.
Stats card position — Where to anchor the stats card.
Show watermark — Toggle the brand watermark.
Watermark text / position / size / transparency — Controls for the watermark overlay.
Recommended TF (for warning) — Timeframe baseline for runtime warning (default 15m).
Webhook (Grid Bot) — Bot ID, Email Token, Pair label for signal routing.
🔷 ALERTS
grid_start — Fires once when the first bar enters the configured backtest window. Webhook-ready JSON payload with Bot ID, Email Token, and Pair label.
🔷 RELATED PUBLICATIONS
Strategy version (with full Strategy Tester backtest report): [https://www.tradingview.com/script/Dc5iUh2F-3Commas-UNI-Vault-Grid-UNI-USDT/
👨🏻💻💭 We hope this tool helps enhance your trading. Your feedback is invaluable, so feel free to share any suggestions for improvements or new features you'd like to see implemented.
__
The information and publications within the 3Commas TradingView account are not meant to be and do not constitute financial, investment, trading, or other types of advice or recommendations supplied or endorsed by 3Commas and any of the parties acting on behalf of 3Commas, including its employees, contractors, ambassadors, etc.
مؤشر Pine Script®






















