PROTECTED SOURCE SCRIPT

3Commas DCA (asap)

51
3Commas DCA (asap) – Automated DCA Bot Strategy

This strategy replicates the DCA (Dollar Cost Averaging) "asap" logic from 3Commas, supporting both LONG and SHORT operations.

How it works:

Opens the first market order (Base Order) when there is no active deal.

Immediately places a series of Safety Orders (limit orders) at fixed price deviations from the base entry price. The number and size of safety orders can be configured.

When price moves against the position, safety orders are executed, averaging the entry price.

The deal is closed only when the total profit across all open trades reaches or exceeds the configured Target Profit (in %), at which point all positions are closed and all unfilled safety orders are canceled.

The process repeats for the next deals.

Features:

Configurable base order size, safety order size, number of safety orders, safety order volume scale, and price deviation.

Supports both LONG and SHORT modes.

Backtest range selection for strategy evaluation.

Visual labels, position lines, and detailed statistics table for analysis.

Inputs:

Base order size, safety order size, safety order count, safety order scale, price deviation, target profit, trading fee, price range filters, and more.

Best Practice:
Test thoroughly with historical data before using live. Adjust risk, volume, and parameters to suit your exchange and asset.

Risk Warning:
DCA strategies can amplify losses in trending markets. Use with caution and proper risk management.

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。