RSI-Based Long DCA with Safety Orders and Profit-Gated Exits
Summary
This script models a long-only dollar-cost averaging approach for HYPE quoted in USDT. It opens a base position when RSI crosses below a configurable threshold, then places up to a configured number of safety orders at progressively wider price declines from the initial entry. Each additional order increases in size according to a volume multiplier, so the average entry price shifts as the position grows.
A deal closes only when price reaches the minimum profit above the calculated average entry and, by default, RSI also crosses above its sell threshold. The script tracks the deal state, plots average entry and safety-order levels, displays backtest metrics, and can emit alerts formatted for a bot integration. It has no stop loss configured in the described source, and the document supplies no actual performance results. Its simulated order handling and alert behavior should be checked against exchange execution, fees, slippage, and the risk of extended declines.
Key ideas
- The base long entry is triggered by RSI crossing below a configurable level.
- Safety orders are triggered at cumulative declines from the base price, with widening spacing and increasing order size.
- The exit requires a minimum gain relative to average entry and can also require an RSI sell signal.
- The script includes deal tracking, performance displays, and bot-compatible alerts, but its source describes no stop loss.
- No backtest outcome is provided, and simulated fills may differ from live execution.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.