Skip to content
All library documents

Configurable Signal Backtesting with ATR Targets, Costs, and Dashboards

Article TradingView scripts

Summary

This indicator is a configurable framework for simulating trades from moving average crossovers or external sources and trigger signals. Built-in choices include EMA crosses and a long-term SMA cross; external signals can be interpreted through marker appearance, zero crossings, value changes, or sign. A direction setting limits the simulation to long trades, short trades, or both. An optional ATR filter skips signals when volatility is below its smoothed average.

Targets and stops can be set as multiples of ATR, ticks, or price units. The script also includes optional spread and commission assumptions, plus a dashboard with trade metrics and time-based profit heatmaps. These features help compare signal behavior under chosen assumptions, but the document reports no backtest outcomes or independent validation. Simulated costs, signal interpretation, and target or stop settings are configurable inputs, so results depend on those choices and do not by themselves establish live tradability.

Key ideas

  • Signals can come from built-in moving average crosses, external crossovers, or external triggers.
  • External trigger interpretation can be configured in several ways, including marker appearance and zero crossings.
  • An optional ATR comparison filter is designed to suppress signals during lower-volatility conditions.
  • Take-profit and stop-loss distances can be expressed using ATR, ticks, or price units.
  • Optional spread and commission settings and dashboard summaries support scenario analysis, but the document reports no outcomes.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.