OPEN-SOURCE SCRIPT
SmartDCA by TradeAkademi

SmartDCA is an advanced position-management strategy built to deliver consistent results even as market conditions shift. Its price-action–driven structure, intelligent DCA scaling model, and multiple entry options provide a powerful automation framework suitable for both beginners and professional traders. With flexible TP/DCA configurations and safety modules such as Smart Take Profit, Risk Reset Exit, and Fail Safe Stop, positions scale more efficiently, risks are managed proactively, and capital remains protected at every stage. SmartDCA is a fully customizable, modern trading engine that offers high adaptability across different assets and timeframes.
The strategy supports five entry methodologies:
• Break_Default - Opens positions on breakout confirmations based on the selected period’s local highs and lows.
• Break_Volatility - Uses the same breakout logic while filtering entries that would place the target level outside the system’s defined safety zone.
• Break_Safety - Extends the volatility model with an additional candle-quality filter, avoiding structurally weak entries and behaving more conservatively.
• RSI_Based - Generates entries when RSI drops below 30 or rises above 70.
• Ema_Based - Opens positions based on directional shifts in the moving average.
SmartDCA is fully configurable: entry logic, DCA percentage and multiplier, take-profit (TP) settings, maximum DCA steps, order-size mode, and directional preferences can all be tailored to fit any asset, market condition, or timeframe.
Default parameters are optimized for the 30-minute chart.
The strategy also includes two optional mechanisms:
Smart Take Profit - Closes profitable trades early when price approaches the target within a configurable proximity, reducing exposure to potential reversal signals.
Trend Following Exit - After a defined DCA step, the position is closed at breakeven once price returns to the average entry level.
The strategy supports five entry methodologies:
• Break_Default - Opens positions on breakout confirmations based on the selected period’s local highs and lows.
• Break_Volatility - Uses the same breakout logic while filtering entries that would place the target level outside the system’s defined safety zone.
• Break_Safety - Extends the volatility model with an additional candle-quality filter, avoiding structurally weak entries and behaving more conservatively.
• RSI_Based - Generates entries when RSI drops below 30 or rises above 70.
• Ema_Based - Opens positions based on directional shifts in the moving average.
SmartDCA is fully configurable: entry logic, DCA percentage and multiplier, take-profit (TP) settings, maximum DCA steps, order-size mode, and directional preferences can all be tailored to fit any asset, market condition, or timeframe.
Default parameters are optimized for the 30-minute chart.
The strategy also includes two optional mechanisms:
Smart Take Profit - Closes profitable trades early when price approaches the target within a configurable proximity, reducing exposure to potential reversal signals.
Trend Following Exit - After a defined DCA step, the position is closed at breakeven once price returns to the average entry level.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.