Skip to content
All library documents

Long DCA with Expanding Safety-Order Steps and an RSI Profit Exit

Article TradingView scripts

Summary

This script models a nonstop long dollar-cost-averaging position with a base order followed by up to eight safety orders as price falls. Each safety order uses the same configured volume, while the distance from the initial entry grows by a step coefficient. It tracks estimated average entry and only closes when price is at least 0.6% above that average and a 14-period RSI on the selected timeframe crosses above 70. The example specifies a 15-minute signal timeframe and disables a stop loss.

The document describes an exchange-specific perpetual-futures bot configuration, including isolated leverage, order sizing, fees, and slippage assumptions, and provides alerts for opening and closing a deal. It also includes a date-bounded backtest setup but reports no numerical performance result, directing readers elsewhere for an updated report. The method can accumulate exposure during declines, and without a stop loss losses may grow while the strategy waits for a qualifying exit. Results also depend on fill behavior, trading costs, and the fidelity of the script’s simulated orders to the bot and exchange.

Key ideas

  • The strategy opens a long base order and adds safety orders at progressively wider declines.
  • Safety-order volumes remain equal in the documented configuration.
  • The exit requires both an RSI cross above its threshold and a minimum gain over average entry.
  • The example disables stop loss, leaving the position exposed if price keeps falling.
  • The script specifies backtest assumptions but gives no performance results in this document.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.