INJ DCA Long Strategy [3Commas & QuantPilot] by 3Commas
By 3Commas
Performance Metrics
- Author: 3Commas
- Symbol: BINANCE:INJUSDT.P
- Timeframe: 4 hours
- Win Rate: 82.2%
- Profit Factor: 17.886
Description
INJ DCA Long Strategy [3Commas & QuantPilot]🔷 What it does:This is a long-only DCA (Dollar-Cost Averaging) strategy for INJ / USDT that opens a position only in deep-oversold conditions and then averages down on a fixed safety-order ladder. A base order fires when 4h RSI(14) drops below 28; if price keeps falling, five averaging orders add to the position at fixed deviations from the base entry, each larger than the last. The full position is closed at a fixed take-profit above the blended average entry. There is no trailing exit and no stop loss — the position is structurally bounded by the five-order ladder. - Single entry filter: 4h RSI(14) below 28 (deep oversold). - Five averaging orders at fixed deviations (−2%, −5%, −9.5%, −16%, −25%) with 1.8× size scaling per rung. - Fixed take-profit (9%) on the blended average entry; no trailing, no stop loss. - Every fill and close emits a webhook-ready JSON alert payload for a DCA Bot.🔷 The one change that mattered — Take Profit tuning:This strategy started from a baseline configuration with a 3% fixed take-profit. Running the same script, on the same market, over the same period through the QuantPilot Pine Script optimizer, the take-profit parameter was swept and the best-performing value landed at 9%. Nothing else was touched — same RSI entry, same five-order ladder, same deviations, same 1.8× sizing, same fees. Only the Take Profit input changed from 3% to 9%. - Baseline (Take Profit 3%): Net +6,888.76 USDT (+6.89%), Max Drawdown 4.39%, 84 closed trades, 71.43% profitable, Profit Factor 4.925. - Optimized (Take Profit 9%): Net +15,830.72 USDT (+15.83%), Max Drawdown 5.65%, 90 closed trades, 82.22% profitable, Profit Factor 17.886. Widening the target lets each recovery run further before the position is banked, capturing the fuller mean-reversion bounce instead of exiting on the first small pop. The trade-off is a modestly higher drawdown (4.39% → 5.65%) and longer average hold time. The published defaults use the optimized 9% value; the baseline metrics are shown here purely so the effect of the single parameter change is transparent.🔷 Who is it for: - Swing traders accumulating INJ on deep RSI flushes rather than chasing momentum. - Bot operators who want a chart-driven signal source with base / safety-order / close webhook JSON ready to drive a DCA Bot. - Traders comfortable with martingale-style averaging who size their capital to the worst-case ladder fill. - Range / mean-reversion traders who prefer mechanical oversold entries over discretionary timing.🔷 How does it work: Entry (Base Order): On each closed 4h bar the strategy reads RSI(14). When RSI falls below 28 and there is no open position, it opens the base order at market (or limit, optionally) and dispatches the entry webhook. Averaging Orders: Once in a position, the strategy watches price relative to the original base entry. The five safety orders are armed at fixed deviations from that base entry — not cumulatively — at −2%, −5%, −9.5%, −16%, and −25%. As each threshold is crossed on bar close, the corresponding averaging order fires. Order sizes scale 1.8× per rung ($900 → $1,620 → $2,916 → $5,249 → $9,448 from a $500 base), pulling the blended average entry down toward the latest fill. Exit (Take Profit): While in a position, the strategy computes a take-profit price 9% above the current average entry. When price closes at or above that level, the entire position is closed at market and the close webhook fires. There is no trailing and no stop loss. Capital Bounds: Total deployed capital cannot exceed the base order plus the five safety orders. Once all five averaging orders are filled, no further adds occur — the position simply waits for the take-profit. This ladder cap is the strategy's primary risk control.🔷 Why it's unique: - Optimizer-Tuned Exit: The 9% take-profit is not an arbitrary round number — it is the value the QuantPilot Pine Script optimizer selected as best-performing on the historical sample, with every other parameter held constant. - Deep-Oversold-Only Entries: A single, strict RSI(14) < 28 filter on 4h keeps the strategy out of the market in normal conditions and only commits capital after a meaningful flush. - Fixed-Deviation Martingale Ladder: Safety orders are placed at fixed percentages from the base entry with deliberate 1.8× size scaling, so each rung has progressively more influence on the average — a transparent, fully-specified averaging schedule rather than an opaque adaptive grid. - Full Webhook Chain: Base order, each safety order, and the close all emit dedicated JSON payloads, driving a DCA Bot end-to-end with no glue layer.🔷 Considerations Before Using the Strategy: Optimization / Overfitting Risk: The 9% take-profit was selected by sweeping the parameter over the same historical window shown in the results. A value that was best in-sample is not guaranteed to be best out-of-sample — this is the standard caveat for any optimized parameter. Treat the optimized metrics as the ceiling of what this configuration achieved historically, not as a forward expectation, and re-validate on fresh data before committing capital. Trade Volume — Below the Statistical Floor: The optimized configuration produced 90 closed trades over ~30 months (84 on the baseline). Both are below the ~100-trade threshold often used as a floor for statistical relevance, so treat the win rate and the high profit factor as indicative rather than conclusive. The strict RSI < 28 filter is what keeps the trade count low. Martingale Tail Risk: Order sizes scale 1.8× per rung, so the deepest fills are by far the largest. If INJ trends hard below the −25% AO5 level without recovering to take-profit, the position sits fully loaded with no further adds and no stop — unrealized loss can grow until price reverts. A wider 9% target also means positions are held longer, so the grid can sit loaded through deeper dips before the exit is reached. No Stop Loss Justification: There is no exit on adverse moves. Per-order risk is bounded by the fixed ladder allocation; aggregate exposure is capped at base + five AOs (≈ $20,633 on the default $100k account, ~20.6% of equity). Size the base/AO inputs down to match the worst-case exposure you are willing to hold. Fees: The default commission (0.06% per trade) should be matched to your exchange's actual taker fees. Demo Testing: Always demo-test before going live. Past results do not guarantee future performance, particularly for martingale-style averaging strategies whose risk profile is dominated by rare deep drawdowns.🔷 STRATEGY PROPERTIES Symbol: BYBIT:INJUSDT.P (Perpetual) — strategy is portable to any INJ / USDT pair. Timeframe: 4H (RSI sampled on 4h). Test Period: January 1, 2024 — July 16, 2026 (~30 months). Initial Capital: 100,000 USDT. Base Order Size: 500 USDT. Averaging Orders: 5, at −2% / −5% / −9.5% / −16% / −25% from base entry. AO Sizing: 1.8× per rung — 900 / 1,620 / 2,916 / 5,249 / 9,448 USDT. Max Deployed Capital: ≈ 20,633 USDT (~20.6% of equity, all AOs filled). Commission: 0.06% per trade. Slippage: 3 ticks. Entry Filter: 4h RSI(14) below 28. Take Profit: 9% above average entry (optimizer-tuned from a 3% baseline). Stop Loss: None — ladder allocation is the structural risk cap. Trailing: None. Strategy: Long Only.🔷 STRATEGY RESULTS (Optimized — Take Profit 9%) ⚠️ Remember, past results do not guarantee future performance. Net Profit: +15,830.72 USDT (+15.83%) Max Equity Drawdown: 6,426.47 USDT (5.65%) Total Closed Trades: 90 Percent Profitable: 82.22% (74 / 90) Profit Factor: 17.886🔷 STRATEGY RESULTS (Baseline — Take Profit 3%, for comparison) Net Profit: +6,888.76 USDT (+6.89%) Max Equity Drawdown: 4,429.13 USDT (4.39%) Total Closed Trades: 84 Percent Profitable: 71.43% (60 / 84) Profit Factor: 4.925🔷 How to Use It: 🔸 Adjust Settings: Open the strategy inputs and confirm the RSI level (28), the five AO deviations and sizes, and the Take Profit (default 9%) match your risk profile. Scale the base/AO sizes down for lower exposure. 🔸 Results Review: Run a full-period backtest and confirm Max Drawdown stays within your personal risk band — note the optimized configuration reached 5.65%. Keep in mind the 90-trade sample is below the ~100-trade floor for statistical confidence, and the high profit factor reflects that small, optimized sample. 🔸 Create alerts to trigger the DCA Bot: Add one alert on the strategy using "Any alert() function call". Paste your DCA Bot's webhook URL into the alert's Webhook field, and fill the Bot ID, Email Token, and Pair inputs on the script. The base order, each safety order, and the close will each emit a dedicated JSON payload.🔷 INDICATOR SETTINGS Base Order Size: Capital committed on the first (base) entry. AO Deviations: Fixed percentage distances from the base entry where each safety order fires. AO Sizes: Capital per safety order (1.8× scaling by default). RSI Timeframe / Length / Level: Oversold filter for the base entry (default 4h, 14, below 28). Take Profit (%): Distance above average entry where the full position closes (default 9%, optimizer-tuned). Bot ID / Email Token / Pair: Webhook fields injected into every alert payload. Visualization: Toggle the AO ladder, fill labels, avg/TP lines, and status table. Brand Watermark: Configurable text, position, size, and transparency.👨🏻💻💭 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.