TRADLEWARE-DCA — Strategy by cs_lev
By cs_lev
Performance Metrics
- Author: cs_lev
- Symbol: BINANCE:ETHUSDT
- Timeframe: 1 day
- Win Rate: 36.3%
- Profit Factor: 5.1
Description
TRADLEWARE-DCA is a dollar-cost averaging reference strategy designed for honest side-by-side comparison with active trading strategies. TRADLEWARE is a trading middleware to connect tradingview signals to your exchanges in a fully private manner.How it worksOn a fixed schedule (default: every 30 bars ≈ monthly on a daily chart), it buys a fixed dollar amount of the asset using your initial capital. Once the total invested reaches the initial capital, buying stops automatically — no external money is ever added. The remaining cash stays safe and uninvested, exactly as it would in real life if you were transferring a fixed amount each month from your bank.At the end of the backtest period the full position is sold, so the Strategy Tester can report P&L.Why this matters for comparisonMost DCA scripts on TradingView keep buying indefinitely, drawing capital beyond the initial balance via margin. This inflates returns and distorts the comparison. This script hard-caps total spending at initial_capital, making it a fair benchmark: both the active strategy and DCA start with exactly the same budget.Key inputsInitial Capital — set this to match the strategy you are benchmarking against (e.g. $10,000)Amount per buy — fixed dollar amount per purchase (default $100). For full capital deployment, set this to approximately initial_capital ÷ number of expected buy events over the backtest periodEvery X Bars — frequency of purchases (default 30 ≈ monthly on daily chart; use 7 for weekly)Use Day of Week Mode — switch to buying on a fixed weekday instead of a bar intervalStart / End Date — match these to the strategy you are comparing againstInfo table (top-right)A live table shows: amount per buy, number of buys made, total invested vs budget (turns teal when fully deployed, orange if capital runs out before the period ends), remaining cash, and current equity.Commission and slippage are set to 0.1% and 3 ticks respectively — matching typical crypto spot taker fees. Adjust to match your active strategy for a like-for-like comparison.