Strat-test ALERTS
May 8, 2020

The Strat-test ALERTS indicator is a comprehensive signaling tool designed to trigger alerts based on complex multi-factor strategies involving Moving Averages, RSI, and MACD across multiple timeframes. It serves as an alert-optimized companion to strategy testing, allowing users to implement and receive notifications for various technical conditions within a single script.
Usage
The script is designed to be highly modular, allowing you to select specific entry and exit "poisons" or logic sets. You can use it to receive alerts for:
- Crossovers: Moving Average (EMA/SMA) crossovers or price-vs-MA crosses.
- Momentum: MACD crossovers, zero-line breaches, or signal line transitions.
- Overbought/Oversold: RSI thresholds on the local timeframe or a Higher Timeframe (HTF).
- Trend Filtering: Combining local signals with HTF MA or MACD conditions to ensure alignment with the broader market direction.
To use the script, configure your desired strategy parameters (e.g., SMA 50/100 crossover with RSI > 50 filter). Once the visual signals align with your strategy, you can set a TradingView alert using the script's condition outputs.
Details
The indicator consolidates several popular technical analysis concepts:
- Trend Following: Implements both Simple Moving Averages (SMA) and Exponential Moving Averages (EMA).
- Oscillators: Features a standard RSI and a customizable MACD (with options for SMA or EMA smoothing).
- Multi-Timeframe Analysis (MTF): Uses
request.securityto fetch data from higher timeframes for MAs, RSI, and MACD, providing a "top-down" approach to signal generation. - Time Windowing: Includes a date-range filter to restrict signals and alerts to a specific historical or future period.
Settings
Strategies
- Type Strategy: Choose between Long & Short, Long Only, or Short Only logic.
- Pick your poison (Long/Short): Select the primary trigger condition (e.g., MA Cross, RSI Strategy, MACD).
- Extra/Second Argument: Optional secondary and tertiary conditions to add confluence (e.g., HTF MACD must be positive).
Indicator Parameters
- (E)MA Settings: Individual length and type (EMA vs SMA) selections for four local MAs and four HTF MAs.
- RSI/MACD Settings: Standard period settings and smoothing options for the integrated oscillators.
- HTF Settings: Define the specific timeframes for the higher timeframe data requests.
- Time: Set the "Since" and "Till" dates to define the active window for the indicator logic.
FAQ
How do I use the HTF features?
You can define the "HTF" timeframe in the settings (e.g., Daily). Then, select an "Extra Argument" that references HTF, such as "Close above (E)MA 1 (HTF)". The script will then only trigger if the condition is met on the higher timeframe.
Can I use this for automated trading?
Yes, the script generates clear "Buy", "Sell", "Short", and "Close" plot shapes which can be tied to alert conditions for use with third-party execution bots.
How do I access Strat-test ALERTS?
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.