ATR Differential

The ATR Differential is the difference between two Average True Ranges: ATR(fast) − ATR(slow). It rises when short-term volatility grows faster than long-term volatility.

Role in the strategy

SlotAvailableRole
Entry PointNo—
Entry RuleYesFilters entries: allows or denies opening a position.
Exit PointNo—
Exit RuleYesTriggers exits: allows or denies closing a position.

It produces conditions, not order prices: as an entry rule it is ANDed with the entry point and the other entry rules, as an exit rule it is ORed with the other exit rules. See Indicators for the slot semantics.

Logic rules

RuleLong signal is 1 whenShort signal is 1 when
Indicator risesthe line rose on the previous barthe line fell on the previous bar
Indicator fallsthe line fell on the previous barthe line rose on the previous bar
Indicator is higher than the Level linethe line is above the Levelthe line is below −Level
Indicator is lower than the Level linethe line is below the Levelthe line is above −Level
Indicator crosses the Level line upwardthe line crossed above the Level from belowthe line crossed below −Level from above
Indicator crosses the Level line downwardthe line crossed below the Level from abovethe line crossed above −Level from below
Indicator changes its direction upwardthe line formed a valleythe line formed a peak
Indicator changes its direction downwardthe line formed a peakthe line formed a valley

Rises and falls are states; the two direction changes and the two crossings are events, which makes them single-bar triggers for the Generator.

Parameters

ParameterTypeDefaultRangePurpose
Periodnumber102 to 1000Period of the fast ATR
Slow periodnumber142 to 1000Period of the slow ATR
Levelnumber0−1000 to 1000Long threshold; the short threshold is −Level

Calculation

  1. ATR(period) and ATR(slow period) are computed as incremental simple averages of True Range (tech.ATR), which is what MetaTrader's iATR returns.
  1. The indicator value is the fast ATR minus the slow ATR; the value is drawn as a histogram in its own pane below the price chart (separatedChart).

Backtesting

  • The rule is evaluated on the previous (closed) bar; the signal applies to the current bar.
  • The differential is positive while short-term volatility exceeds the long-term one, and the Level line is a threshold on that difference.
  • The indicator never changes the entry or exit order price; the level comes from the point indicator.