External Signal Backtester (patched + Pivot SR)This strategy is designed for traders who want to backtest external buy/sell signals with flexible exit and stop-loss management. It supports up to three independent buy and sell signal sources, allowing you to toggle each one on or off and combine them for confluence-based entries.
Key features include:
Multiple Signal Inputs: Up to three buy and three sell signals, with customizable toggles.
Exit Modes: Choose between Opposite Signal exits or Fixed Risk/Reward exits.
Stop-Loss Options: Flexible stop-loss modes including Candle Lookback, Swing High/Low, Moving Average, ATR, and Pivot-based Support/Resistance.
Pivot SR Tracking: Stores and updates pivot highs/lows for dynamic support/resistance stop placement.
Trade Visualization: Plots stop-loss and target levels, plus entry/exit arrows for recent trades.
Performance Stats Table: Displays win rate, profit factor, expectancy, Sharpe ratio, Sortino ratio, and more for the last N trades.
Risk Management: Configurable risk/reward ratio, ATR multiplier, and maximum trades shown.
Pine Script® Strategie






















