Free Indicator

3Commas DCA Backtester & Signals for TradingView

3Commas DCA Backtester & Signals indicator on a crypto chart showing order levels, take profit, average price and safety order lines

3Commas DCA Backtester & Signals is a free TradingView indicator that emulates 3Commas DCA bots directly on your chart. It supports 4 configurable buy signals, plots all order levels visually, and shows a real-time performance panel so you can dial in your strategy before committing capital.

Built by Lane Dotson · Last updated · View on TradingView →
This is a free indicator - Add it to your TradingView charts at no cost.
Add to TradingView →

WHAT IT DOES

Core Features

This backtester gives you a full DCA bot simulation with visual order tracking, a real-time info panel and fully customizable bot settings so you can dial in your strategy before risking real capital.

Visual Order Tracking

The indicator plots all of your backtesting orders directly on the chart so you can see exactly how your strategy would have performed. The red line is your take profit level, the blue line is your average price level, the white line is your first order and the green lines are your average down (safety) orders. If you enable a stop loss in the settings, it will appear as an orange line once all of your average down orders have been hit. It will not be set until price has dipped below your covered trading range.

These levels update in real time as conditions change during backtesting so you can visualize how your strategy responds to price action and see if your percentage deviation is large enough to cover dips. When backtesting trades are taken, the chart shows where they occurred along with info on each trade. The order number, the size of that order and the percentage deviation from the initial buy.

Info Panel

The right side of the screen displays an info panel so you can quickly see your bot settings and performance metrics without leaving the chart.

In the top right corner your bot settings are displayed in purple: stoploss percentage (if enabled), take profit percentage, average down order percentage, average down order percentage multiplier, volume multiplier, max number of orders and size of your base order.

The “Current Trade” section shows: the open trade’s average price, take profit price, PNL, how far price is from your take profit in percentage, your open position size and number of open orders.

The “Overall Performance” section shows: total number of trades taken during the backtesting range, the largest number of trades open at one time, max drawdown, average number of bars per trade, gross profit, net profit, percent profit from initial capital, current portfolio value and your initial capital.

4 Built-In Buy Signals

The backtester includes your choice of 4 different buy signals, 2 of which can be adjusted directly in the settings. Use the backtester to figure out which trigger performs best for the asset and timeframe you’re trading, then set up that indicator separately to send live alerts to your 3Commas bot.

Sending Signals to 3Commas

TradingView cannot sync this backtester directly to 3Commas. The best workflow is to use this backtester to determine which buy trigger you want, then set up that indicator separately to send alerts to your bot. All of the indicators used as buy signals in this backtester are available for free on TradingView and can be configured to match these settings.

Make sure you set your alerts to “once per bar close” and don’t use less than a 15-second timeframe. Going lower can trigger TradingView’s alert rate threshold and get your alerts shut off.

You can also make a copy of the open-source script and code in your own buy signals to backtest them as a DCA strategy.

INTERPRETATION GUIDE

How to Read the Chart

Order Level Lines

Trade Labels

When backtesting trades are taken, the chart displays labels showing the order number, the size of that order and how far it deviates from the initial buy in percentage. This lets you visually confirm your coverage and see where your capital is being allocated.

CONFIGURATION

Settings Overview

The 3Commas DCA Backtester has a full set of customizable options that mirror the settings available on 3Commas bots. Here are the settings and what they control.

Main Settings

Setting Default Description
Stoploss On/Off Off Turns the stop loss on or off. When off, no stop loss is applied.
Stoploss Percentage 5 The percentage below your final average down order price where the stop loss is placed to limit drawdown on large dips.
Take Profit Percentage 0.5 The percentage of profit required to close the entire DCA trade. This level updates every time you average down.
Average Down Percentage 0.5 The percentage price must drop from your initial order to trigger your first safety order. If the multiplier is set to 1, this stays the same for every order.
Average Down % Multiplier 1.2 Multiplies the average down percentage so each successive safety order requires a larger deviation. Keeps buys closer together early and further apart deeper into the range.
Volume Multiplier 1.5 Multiplies the size of each safety order relative to the base order. A 2x multiplier on a $100 base order produces orders of $200, $400, $800.
Size of Base Order 100 The dollar size of your first position entry. Used as the starting point for the volume multiplier. Must be larger than the share price when backtesting stocks.
Max Number of Orders 12 The maximum number of orders the bot can take, including the base order. Adjust to match the capital you're willing to allocate.

GOOD TO KNOW

Important Notes & Limitations

This is a strategy backtester, not a standalone indicator. It cannot send alerts directly to 3Commas. Use it to identify your preferred buy signal, then set up that signal indicator separately for live alerts.
When backtesting stocks, your base order must be larger than the share price across the entire backtesting range or calculations will be incorrect.
The info panel only reflects normal backtesting results. Deep backtesting results from TradingView's strategy panel will not be reflected in the info panel.
Historical data depth depends on your TradingView subscription tier.

STRATEGY TIPS

Tips for Best Results

If you don’t have a lot of capital to work with, use longer timeframes with a reasonable take profit percentage so you don’t need a lot of average down orders. You can also try keeping the volume multiplier close to 1.

You can use the 3Commas DCA bot settings page to see how much capital your strategy will require if you match it to the settings on this indicator. You can also check how much percentage deviation your bot is covering to make sure you have a reasonable trading range with enough orders to cover large dips. The green lines on the chart show your average down orders. See how far down the chart they extend to gauge your coverage.

Make sure the initial capital in the Properties tab has enough to cover all of your orders, otherwise you will get unrealistic backtesting results. Leave the order size in the Properties tab set to “contracts” so it calculates your trades correctly. The only setting you need to change in the Properties tab is the initial capital, unless you are trading on an exchange with lower commission fees.

Increasing the volume multiplier makes your average price and take profit target follow price more closely as it falls, but it can also lead to very large orders quickly in the 1.5–3x range. Try using a high volume multiplier with fewer safety orders but keep capital on the sidelines to add on major dips. This bot is meant to make money with lots of small wins, so don’t get greedy and make sure you have enough money to cover large dips.

Only trade assets with good liquidity. The larger your orders get, the harder it will be to exit if volume is thin. The bot is set to 0.5% commission on buy and sell orders by default. Some exchanges offer no-fee trading on certain pairs, so look for those to maximize profits.

Test a lot of different setting combinations across multiple assets over several months of data to see how the strategy would have performed under various market conditions. You can also use the deep backtesting feature of TradingView’s strategy panel, but the info panel on this indicator will only reflect the normal backtesting range, not deep backtesting results.

FREE ON TRADINGVIEW

3Commas DCA Backtester & Signals is Free to Use

Add it to your TradingView charts and start backtesting DCA strategies today. No subscription required.

100% Free
No Account Required
All Future Updates

COMMON QUESTIONS

Frequently Asked Questions

No. TradingView strategies cannot sync alerts to 3Commas the way standalone indicators can. Use this backtester to find the buy signal and settings that work best, then set up that indicator separately to send alerts to your bot. All the signals used in this backtester are available for free on TradingView.
It works on any market including crypto, stocks, forex and futures across all timeframes. When using it on stocks, make sure your base order size is larger than the share price across the entire backtesting range.
White is your initial entry, green lines are safety (average down) orders, blue is your average price, red is your take profit target, and orange is your stop loss (only visible when enabled and all safety orders have been filled).
The most common cause is not having enough initial capital set in the Properties tab to cover all of your orders. Also make sure the order size is set to "contracts" in the Properties tab. The only setting you should change there is the initial capital (and optionally commission if your exchange charges less than 0.5%).
Yes. This is an open-source script, so you can make a copy and code in your own buy signals to backtest them as a DCA strategy.

CHANGELOG

Release Notes

Initial Release

First public release of the 3Commas DCA Backtester & Signals with 4 built-in buy signals, full DCA strategy simulation, visual order tracking and an on-chart info panel.

What's Included
4 buy signal options (2 adjustable) for DCA entry triggers
Color-coded order level lines (entry, safety orders, average price, take profit, stop loss)
On-chart info panel with bot settings, current trade stats and overall performance metrics
Fully customizable settings: stop loss, take profit, average down percentage, multipliers, base order size and max orders

EXPLORE MORE

Related Indicators

Free

RSI-based buy and sell signals for scalping and swing trading. One of the signal types used inside this backtester. Use it standalone to send alerts to your 3Commas bot.

Free

Momentum-based entry signals for scalping and swing trades. Pairs with this backtester as a standalone alert source for your DCA bot triggers.

Free

Combines Money Flow Index, RSI and momentum into a single on-chart trend label. Useful for confirming the directional bias behind your DCA entries.