LONG DCA Trigger RSI+StochRSI
Oct 10, 2021

The LONG DCA Trigger RSI+StochRSI indicator provides a specialized signal generation tool that combines the Relative Strength Index (RSI) and Stochastic RSI to identify potential entry points for Dollar Cost Averaging (DCA) strategies.
Usage
This tool is primarily used to identify oversold conditions where a "BUY" signal is triggered based on the confluence of RSI and Stochastic RSI levels. By default, it looks for both indicators to be at or below specific oversold thresholds, making it suitable for long-position accumulation.
Users can integrate this script with external backtesting engines by referencing the "SIGNAL" output. The indicator includes a visual "BUY" label on the chart and an optional settings table to keep track of the active configuration across different assets.
Details
The script calculates both a standard RSI and a Stochastic RSI. The signal logic is based on a three-way confluence check:
- RSI Condition: Checks if the RSI value meets the user-defined operator (e.g., <= 30).
- Stoch K Condition: Checks if the Stochastic %K value meets its operator.
- Stoch D Condition: Checks if the Stochastic %D value meets its operator.
Only when all active conditions are met simultaneously is a signal generated. This allows for more granular control over entry triggers compared to using a single momentum oscillator.
Settings
Stochastic RSI
- Source for RSI and Stochastic RSI: Determines the price data used for calculations (default is Close).
- Stoch RSI SmoothK: The smoothing period for the Stochastic %K line.
- Stoch RSI Smoothd: The smoothing period for the Stochastic %D line.
- Stoch Length: The lookback period for the Stochastic calculation.
- Stoch RSI Length: The lookback period for the internal RSI used by the Stochastic RSI.
- RSI Length: The lookback period for the standalone RSI calculation.
UI
- Show Table With Settings: Toggle to display a visual summary table on the chart containing the current configuration.
Deal Trigger Conditions
- RSI Trigger: Selection of the comparison operator (not used, <=, >=) and the threshold value for the RSI.
- Stoch K Trigger: Selection of the comparison operator and the threshold value for the Stochastic %K.
- Stoch D Trigger: Selection of the comparison operator and the threshold value for the Stochastic %D.
FAQ
How do I use this with a backtester?
You can select this script as an external source in compatible backtesters by pointing the indicator source to the "SIGNAL" output.
Why are signals appearing differently on different timeframes?
Momentum indicators like RSI are highly sensitive to timeframe settings. You should adjust the lengths and trigger values to match the specific volatility and trend of the asset and timeframe you are trading.
How can I access this tool?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Free indicator
Get free access to this indicator on the platforms below.
Unlock the entire LuxAlgo Library
Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.