PROTECTED SOURCE SCRIPT
Обновлено

Wunder DCA Bot

13 771
The bot is based on the DCA system.

1. DCA is the investment method in which you buy a certain portion of the asset after the determined price deviation.

2. For entry, we evaluate the maximum and minimum levels for a given period that you can adjust in the script. The bot enters when price rebound from the specified levels.

3. For the exit, the bot will use the take profit percentage that you will specify in settings.
It is also possible to choose how the take profit is calculated either from the average entry price or from the entry order (first order).

4. DCA uses the following settings:
- Base order Volume: Volume of your first order on entry signal
- Subsequent orders volume: The volume of all subsequent orders except the first
- DCA orders count: This parameter will determine how many entries your overall strategy will have. For example: If you will put 3, that will mean that including your initial position you will have 2 additional orders.

- DCA order price deviation:
This is the value in % which determines the deviation of the additional entries from the entry price. Example: If you go long and the price of the asset is 100$ and you put an order price deviation of 1% that will mean that the first additional entry will occur when the price will drop by 1%, and the second entry will be triggered when the overall price will drop by 2% (as the interval between the first and the second additional entry will be 1%).

- DCA Order Volume Multiplier:
This parameter will determine the amount that you put into each additional position. If this parameter is equal to 1 that means that each additional entry will be equal to the initial amount. The extra volume will be added to your position from the second DCA entry. Example: Your initial position was 10$ and your Volume Multiplier is set to 2. When you reach your 1st DCA target your additional order will have the same volume of 10$. When you reach your 2nd DCA target your additional order will be 20$ (previous position volume * multiplier). Your 3rd DCA target will place the order of 40$.

- DCA order price Deviation Multiplier:
This value will increase the price deviation between each additional entry. It is calculated as the price deviation multiplied by the deviation multiplier. For example: if you enter long at the price 100$ and have a price deviation of 1% with the price deviation multiplier of 2 that will mean that the first additional entry will occur when the price will drop to 99$ however the second will occur when the price will go to 97$. The third additional position will be entered at 94$

5. For full automation of the bot, you should set your comments to the input in the bot settings in the "LONG" and "SHORT" fields. You also need to create an alert signal and set a Webhook to send signals.

IMPORTANT!!!

1. Position calculation should take into account several factors: your deposit, leverage, the number of DCA orders, the distance to the last DCA order;
2. When choosing leverage, it is important to correctly calculate the possible drawdown. If you set a high leverage value, then liquidation awaits and the bot will not be able to take profits and will exit the position ahead of time;
3. The size of the position must be determined in accordance with all risks and take into account the size of your deposit;
4. This DCA Bot is able to earn consistently with the correct calculated money management.
Информация о релизе
Fixed internal visual errors
Информация о релизе
Added additional indicator (MACD) as an entry point for the first order. If you would like us to add any other indicators for entry please comment below.
Информация о релизе
Updating MACD settings
Информация о релизе
Added additional indicator (Bollinger Bands) as an entry point for the first order.
Информация о релизе
- Fixed an error with incorrect calculation of DCA levels using the deviation multiplier.
- Changed activation conditions for extra orders from activation at closing to activation by touching DCA levels.
Информация о релизе
1. Added an additional indicator (VWRSI) as an entry point for the first order. VWRSI - Volume Weighted Relative Strength Index, which is the most accurate version of the classic RSI. This tool allows you to identify consolidated market phases and the ranges of exits from them, thereby providing greater accuracy than the classic RSI
2. Added the ability to use the percentage change in price as an entry point for the first order. For example, if the asset falls by 10% for a specified number of bars, the first DCA order will be opened.
3. Fixed visual bugs
Информация о релизе
1. Fixed a calculation bug when using the deviation multiplier.
2. Fixed bug with incorrect calculation of indexes for extra orders
3. Added an additional entry condition as an entry point for the first order - "ASAP" (As Soon As Possible) Trades are opened as soon as we are not in a trade. This mode works only in Trade direction “LONG” or “SHORT”
4. Added “Show Extra Order Line” function for visualization of DCA order levels.

Attention! For the most correct display of calculations and backtest it is recommended to use the script on the 1 min timeframe.
Информация о релизе
With the latest release of the Wunder DCA Bot, we evolved the system from a simple indicator-based strategy into a complete multi-stage trading engine designed for professional automation and portfolio deployment.

This layered execution model provides:
  • High-quality signal filtering
  • Strong trend alignment
  • Structured DCA execution
  • Advanced capital protection
  • Full compatibility with automated trading platforms


Full System Workflow (Entry → Filter → DCA → Exit)

Wunder DCA Bot operates as a structured, rule-based trading engine. Every trade follows a strict execution sequence to ensure signal quality, proper market alignment, controlled position scaling, and disciplined exits.
--------------------------------------------------------------------------------
ENTRY CONDITIONS

The Entry Conditions module defines the exact market situations where new positions are allowed. The strategy operates with one primary entry indicator at a time, ensuring that every trade is based on a clearly defined market logic.
Each entry method is built on a different market principle such as momentum, volatility, trend continuation, or mean reversion.

Breakout (Daily High / Low)
снимок
Trades failed breakouts around the previous daily range. Long entries occur on false breakdowns below the Daily Low followed by reclaim. Short entries occur on false breakouts above the Daily High followed by rejection.
Best for volatile breakout and liquidity sweep environments.

MACD (Momentum Shift)
снимок
Long entries require a bullish MACD crossover below the zero line. Short entries require a bearish MACD crossover above the zero line. This captures early-stage momentum shifts rather than late trend entries.
Best for trend-following and medium-term momentum trading.

Bollinger Bands (Mean Reversion)
снимок
Long entries occur when price reclaims the Lower Band after a volatility overshoot. Short entries occur when price rejects back below the Upper Band.
Best for range-bound, sideways, and volatility reversion markets.

Price Change (Impulse Detection)
снимок
Trades strong percentage-based price movements over a defined number of candles. Longs trigger after sharp declines, shorts after strong rallies. Optional RSI filtering improves accuracy.
Best for panic, FOMO, and impulse exhaustion phases.

VWRSI (Volume-Weighted Momentum)
снимок
Long entries trigger when VWRSI crosses above the oversold level. Short entries trigger when it crosses below the overbought level. Signals are volume-confirmed for stronger reliability.
Best for high-liquidity and momentum-driven markets.

ASAP Mode (Immediate Execution)
Bypasses all indicators and executes immediately in the selected trade direction when no active position exists.
Designed for manual trading support and live automation testing.
--------------------------------------------------------------------------------
TREND FILTER (Trade Permission & Market Regime Control)

The Trend Filter determines whether an entry signal is allowed to be executed. Even with a valid entry condition, a trade is blocked unless the filter confirms proper market alignment.

This prevents:
  • Trading against the dominant trend
  • Entries during low-quality sideways conditions
  • Trading during unfavorable volatility regimes


Available Trend Filters:

SuperTrend – ATR-based volatility-adjusted trend direction
SMA – Direction based on price relative to Simple Moving Average
EMA – Faster-reacting trend filter for intraday and momentum trading
TEMA – Ultra-low lag trend filter for high-volatility and fast-moving markets
ATR Volatility Filter – Allows trading only when sufficient volatility is present
--------------------------------------------------------------------------------
EXIT CONDITIONS (Position Management & Capital Protection)

The Exit Conditions module controls how profits are secured and how downside risk is limited. It supports a fully modular and layered exit structure, combining:

  • Fixed Take Profit
  • Fixed Stop Loss
  • Risk/Reward-based Take Profit
  • Indicator-based exits
  • Trailing Stop
  • Move Stop Loss to Breakeven (MSL)


Each exit component can operate independently or in combination, allowing both fully mechanical and adaptive exit strategies.

Risk Warning & Trading Disclaimer

Trading cryptocurrencies, forex, and other financial instruments involves a high level of risk and may not be suitable for all investors. The use of leverage and DCA-based strategies can significantly increase both potential profits and potential losses. Past performance is not indicative of future results.

Wunder DCA Bot is a fully automated strategy framework and does not guarantee profitability. Market conditions can change rapidly, and no algorithm can predict price behavior with certainty. Users are solely responsible for all trading decisions, risk management settings, capital allocation, and execution environments.

Отказ от ответственности

Информация и публикации не предназначены для предоставления и не являются финансовыми, инвестиционными, торговыми или другими видами советов или рекомендаций, предоставленных или одобренных TradingView. Подробнее читайте в Условиях использования.