All indicators

External Signals Strategy Tester

Mar 29, 2025

Static chart image
SignalsMoney Management

The External Signals Strategy Tester indicator is a backtesting tool designed to simulate trading performance by connecting to external buy and sell signals from other indicators. This tool allows users to evaluate signal accuracy and profitability using real-time execution logic without needing to convert indicator code into a formal strategy.

Usage

To use the script, add both the External Signals Strategy Tester and the indicator you wish to test onto the same chart. Open the strategy settings and navigate to the Signal Inputs group. From the dropdown menus for "Buy Signal" and "Sell Signal", select the specific plots or lines from your external indicator that represent your entry conditions.

The strategy initiates a trade when the selected signal source crosses above zero. This is particularly useful for testing:

  • Custom oscillators or trend-following indicators.
  • Signal lines that output binary (0/1) or threshold-based values.
  • Comparative performance between different signal providers.

Details

The strategy functions by listening to two input.source connections. When a crossover occurs on the selected source, the script executes orders based on the user's risk management and trade direction settings. It is built to process signals in real-time without lookahead bias, ensuring that backtest results are representative of actual market conditions. The script also includes visual markers (triangles) to highlight exactly where the strategy detected signals relative to the price action.

Settings

Date Range

  • Start Date: Sets the beginning timestamp for the backtesting period.
  • End Date: Sets the concluding timestamp for the backtesting period.

Signal Inputs

  • Buy Signal: Defines the external plot or price source used to trigger long entries.
  • Sell Signal: Defines the external plot or price source used to trigger short entries.

Trade Settings

  • Enable Long: Toggle to allow the strategy to take buy positions.
  • Enable Short: Toggle to allow the strategy to take sell positions.
  • Close on Opposite Signal: When enabled, an existing position will be closed if a signal in the opposite direction is detected.
  • Reverse Position on Opposite Signal: If enabled, the strategy will close the current position and immediately open one in the opposite direction upon a reverse signal.

Risk Management

  • Take Profit (%): The percentage of profit at which the position will automatically close. Set to 0 to disable.
  • Stop Loss (%): The percentage of loss at which the position will automatically close. Set to 0 to disable.
  • BreakEven (%): The profit threshold required to move the stop-loss to the entry price. Set to 0 to disable.

FAQ

How do I access External Signals Strategy Tester?

You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.

Can I test signals that don't cross zero?

The current logic is optimized for zero-line crossovers. If your indicator uses a different threshold, you may need to adjust the source output of the external indicator to center around zero.

Does this strategy repaint?

No, the strategy processes signals based on bar closes and does not use future data, ensuring reliable backtesting results.

Free indicator

Get free access to this indicator on the platforms below.

TradingView
NinjaTrader
MetaTrader 4/5

Unlock the entire LuxAlgo Library

Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.