PROTECTED SOURCE SCRIPT
3Commas DCA (asap)

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.
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.
Script protetto
Questo script è pubblicato come codice protetto. Tuttavia, è possibile utilizzarlo liberamente e senza alcuna limitazione – per saperne di più clicca qui.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.
Script protetto
Questo script è pubblicato come codice protetto. Tuttavia, è possibile utilizzarlo liberamente e senza alcuna limitazione – per saperne di più clicca qui.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.