Swing/Daytrading strategy with reversal option
Nov 19, 2020

The Swing/Daytrading strategy with reversal option indicator is a comprehensive trend-following and mean-reversion tool designed to capture market momentum using price action relative to high/low levels and the T3 Moving Average. It aims to provide traders with a structured approach to swing trading by combining candle breakouts with a highly smoothed moving average to filter market noise.
Usage
The strategy can be utilized in two primary ways: trend-following (normal) and mean-reversion (inverse). In its standard configuration, a long position is initiated when the current close is above the previous candle's high and above the T3 Moving Average. Conversely, a short position is opened when the close is below the previous candle's low and below the T3 Moving Average.
Users can toggle the "Inverse" mode, which swaps these entry conditions, effectively trading against the breakout—a method that can be particularly effective in range-bound markets or specific instruments where false breakouts are common. The script also includes a session-based filter to restrict entries to specific hours, such as the New York or London sessions, to avoid low-liquidity periods.
Details
The core of the strategy relies on the T3 Moving Average, which is a triple exponential moving average known for being smoother and more responsive than a standard EMA while reducing lag. By requiring the price to be on the correct side of the T3 and breaking the previous bar's extremum, the strategy filters out minor fluctuations. The logic is designed as a "reversal" system where closing a long trade simultaneously opens a short trade (and vice versa) unless manual exit parameters are enabled.
Settings
Date Range
- From Day/Month/Year: Sets the start date for the strategy backtesting.
- To Day/Month/Year: Sets the end date for the strategy backtesting.
Indicator Settings
- T3 Length: Determines the period used for the T3 Moving Average calculation.
- My Defined Hours: A session string defining the specific window when the strategy is allowed to enter trades.
- Exit Time: A specific time window during which the strategy can trigger an automated exit.
Strategy Controls
- Take Profit: The percentage-based target for profit-taking (requires "Use Exit" to be active).
- Stop Loss: The percentage-based stop loss level (requires "Use Exit" to be active).
- Modified: Enables the time-based exit and profit/loss management system.
- Inverse: When enabled, the strategy enters long on short signals and short on long signals.
- Use Exit: Activates the specific Take Profit and Stop Loss levels for trade management.
FAQ
How do I access the Swing/Daytrading strategy with reversal option?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Which timeframes are best for this strategy?
While it can function on various timeframes, it is optimized for the 1-hour chart and higher to minimize the impact of market noise and spreads.
Does this strategy always have an open position?
By default, the strategy operates as a "flip" system where one trade closes as another opens. However, if the "Use Exit" setting is active, the strategy can close trades based on profit or loss targets, leaving the script in a flat position.
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.