External Signals Strategy Tester

Mar 29, 2025

Static chart image
Signals
Money 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 access on the following platforms
tradingviewSymbolTradingView
Open in your browser

This in-app browser is not compatible with Get Access from the library.

Tap the menu (...) at the top of your screen and select "Open in Browser", "Open in Safari", or "Open in Chrome" to continue.

ninjatraderNinjaTrader
Open in your browser

This in-app browser is not compatible with Get Access from the library.

Tap the menu (...) at the top of your screen and select "Open in Browser", "Open in Safari", or "Open in Chrome" to continue.

metatrader4MetaTrader 4/5
Open in your browser

This in-app browser is not compatible with Get Access from the library.

Tap the menu (...) at the top of your screen and select "Open in Browser", "Open in Safari", or "Open in Chrome" to continue.

thinkorswimThinkorswim
Open in your browser

This in-app browser is not compatible with Get Access from the library.

Tap the menu (...) at the top of your screen and select "Open in Browser", "Open in Safari", or "Open in Chrome" to continue.

Trading & investing are risky and many will lose money in connection with trading and investing activities. All content on this site is not intended to, and should not be, construed as financial advice. Decisions to buy, sell, hold or trade in securities, commodities and other investments involve risk and are best made based on the advice of qualified financial professionals. Past performance does not guarantee future results.

Hypothetical or Simulated performance results have certain limitations. Unlike an actual performance record, simulated results do not represent actual trading. Also, since the trades have not been executed, the results may have under-or-over compensated for the impact, if any, of certain market factors, including, but not limited to, lack of liquidity. Simulated trading programs in general are designed with the benefit of hindsight, and are based on historical information. No representation is being made that any account will or is likely to achieve profit or losses similar to those shown.

Testimonials appearing on this website may not be representative of other clients or customers and is not a guarantee of future performance or success.

As a provider of technical analysis tools and strategies, we do not have access to the personal trading accounts or brokerage statements of our customers. As a result, we have no reason to believe our customers perform better or worse than traders as a whole based on any content, tool, or platform feature we provide.

Charts used on this site are by TradingView in which the majority of our technical indicators are built on. TradingView® is a registered trademark of TradingView, Inc. www.TradingView.com TradingView® has no affiliation with the owner, developer, or provider of the Services described herein.

Market data is provided by CBOE, CME Group, BarChart, Massive, CoinAPI. Select U.S. equities data is provided through Massive. CBOE BZX real-time U.S. equities data is licensed from CBOE and provided through BarChart. Real-time futures data is licensed from CME Group and provided through BarChart. Select cryptocurrency data, including major coins, is provided through CoinAPI. All data is provided “as is” and should be verified independently for trading purposes.

This does not represent our full Disclaimer. Please read our full disclaimer.

© 2026 LuxAlgo Global, LLC.