Skip to content
All library documents

Comparing Oscillator-Based Trading Rules in a Backtest Tool

Article Strategy library · Author: mks17

Summary

This partial source describes a TradingView strategy tool for evaluating oscillator signals under several selectable trading-rule templates. The visible options include moving-average behavior and crossovers, zero-line crossings, trading at extreme readings, mean reversion, and take-profit logic. Users can select among three oscillator inputs and adjust their scales and timeframe factors. The code also calculates an average absolute price return, with a user multiplier, apparently to help calibrate oscillator-related settings.

The excerpt exposes configurable lengths and thresholds for several rules, plus take-profit and stop-loss inputs for the mean-reversion variant. It is presented as a backtesting analysis tool and includes transaction-cost settings, but the supplied text ends partway through the inputs and does not show the remaining calculations, exact entry and exit conditions, or any backtest results. Consequently, the excerpt supports understanding the tool’s intended comparison framework, but not assessing how its strategies perform or whether their signals are robust.

Key ideas

  • The tool offers several rule families for testing oscillator-driven entries and exits.
  • Users can select among three oscillator inputs and adjust scale and timeframe factors.
  • A cumulative average of absolute returns is used as a calibration quantity.
  • Visible inputs include thresholds and mean-reversion risk controls, but the source excerpt is incomplete.
  • No performance results or evidence of robustness are included in the supplied text.

Tags

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