Skip to content
All library documents

TD_I DeMarker Variant with Adjustable Bar Shift

Article MQL5 code base

Summary

TD_I is presented as a modified DeMarker oscillator attributed to Thomas DeMark. It scales readings to a 0–100 range and compares the current bar’s high and low with those from a configurable earlier bar, rather than always using the immediately preceding bar. Setting the shift to 1 reproduces the standard DeMarker comparison described here; larger shifts change the comparison interval and are intended to filter noise.

The calculation takes simple moving averages of upward high differences and downward low differences over a chosen period, then divides the high-difference average by the sum of both averages and scales the result by 100. Period, shift, overbought, and oversold levels are the listed inputs. The document captions example comparisons for different shifts, but includes no numerical results, trading rules, or performance tests. It does not explain how to interpret threshold crossings or how a larger shift affects signals across market regimes, so those choices require independent evaluation.

Key ideas

  • TD_I expresses its readings on a 0–100 scale.
  • It compares current highs and lows with values from a configurable earlier bar.
  • A shift of 1 corresponds to the standard DeMarker comparison described in the document.
  • The indicator averages high and low differences over a selected period.
  • The document gives no trading rules or performance evidence for its thresholds.

Tags

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