Scalping Dips On Trend
Apr 1, 2021

The Scalping Dips On Trend tool is a trend-following strategy designed to identify buying opportunities during minor price pullbacks within a broader bullish market structure. By combining moving average filters with percentage-based dip detection, the script aims to capture short-term upward momentum with predefined risk parameters.
Usage
The Scalping Dips On Trend strategy is primarily intended for use on the 1-hour timeframe. It looks for specific conditions where the price is trading above a long-term Moving Average (defaulting to 50 periods), indicating a bullish trend, and then triggers an entry when the price drops by a certain percentage (dip) within a set lookback period.
The strategy manages risk through fixed percentage-based exits:
- Entry: Occurs when the price is above the Moving Average and a specific negative price change (dip) is detected.
- Take Profit: Automatically closes the position when a 3% gain is achieved.
- Stop Loss: Provides downside protection with a 10% wide stop to allow for volatility while preventing catastrophic drawdowns.
Details
The strategy logic is built on the premise that in a bull market, dips are often temporary and provide high-probability entry points. It uses a Simple Moving Average (SMA) as a trend filter to ensure trades are only taken when the price is in an uptrend. The "dip" is calculated as the percentage change over a specific lookback period. If this change is less than the user-defined negative dip threshold, a long entry is executed.
Settings
Strategy Parameters
- Lookback Period: Defines the number of bars used to calculate the percentage price change for dip detection.
- Moving Average: Sets the length of the Simple Moving Average used to determine the trend direction.
- Dip %: The percentage drop required to trigger a buy signal.
- Stop Loss %: The percentage distance from the entry price at which the trade will be closed to limit losses.
- Take Profit %: The target percentage gain at which the trade will be closed for a profit.
Backtest Window
- From/Thru Date: These settings allow you to define a specific date range (Day, Month, Year) to run the strategy backtest.
- Show Date Range: Toggles the visibility of the date range filter application.
FAQ
How do I access Scalping Dips On Trend?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
What is the best timeframe for this strategy?
While it can be adapted to various charts, the strategy was originally optimized for the 1-hour timeframe to balance signal frequency and trend reliability.
Why is the stop-loss wider than the take-profit?
The strategy relies on a high win rate characteristic of bull market pullbacks. The wider stop-loss prevents being stopped out by minor market noise, assuming the majority of trades will reach the smaller take-profit target first.
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.