TD Sequential Ultimate

TD Sequential Ultimate MetaTrader indicator shows all parts of the TD Sequential method developed by the legendary technical analyst, Tom DeMark. TD Sequential Ultimate displays Buy and Sell Setups, including the Setup Perfection arrows, Buy and Sell Countdowns, including the failed count 13 attempts, and TDST Support and Resistance levels. Unlike many other implementations of the TD Sequential method, this indicator offers multiple improvements:

  • Recalculates only those candles that require recalculation, which makes it work faster, especially on lower timeframes.
  • The distance from candlestick highs and lows to count values is recalculated using pixel-to-price ratios depending on the chart scale and font size, ensuring consistent non-overlapping indicator output across all kinds of trading instruments.
  • Everything is calculated according to the original TD Sequential rules. For example, Countdown candles can be non-consequential, while Setup Perfection can come any number of candles after Count 9 is printed.
  • All output is available as indicator buffers for easy integration into other indicators or expert advisors via iCustom() function.
  • Alerts on multiple conditions and via multiple media are built into the indicator.

This indicator is available for MetaTrader version 4 and 5 and doesn't use any other indicators in its code.

Input parameters


  • BuySetupColor (default = clrLime) — color of the Buy Setup counts and Perfection arrows.
  • SellSetupColor (default = clrRed) — color of the Sell Setup counts and Perfection arrows.
  • CountdownColor (default = clrOrange) — color of the Countdown values.
  • FontFace (default = "Verdana") — font face to use for counts.
  • FontSize (default = 12) — font size to use for counts.
  • ArrowWidth (default = 2) — arrow size for Setup Perfection.
  • PixelDistance (default = 3) — vertical distance between count objects in pixels.
  • Prefix (default = "TDS_") — text prefix for naming chart objects.


  • AlertOnSetup (default = false) — trigger alert when Buy/Sell Setup is finished (count #9 is printed).
  • AlertOnPerfecting (default = false) — trigger alert when Buy/Sell Setup is perfected (an arrow appears).
  • AlertOnCount13 (default = false) — trigger alert when Countdown candle #13 appears.
  • AlertOnSupportResistance (default = false) — trigger alert when a candle closes above resistance or below support.
  • AlertNative (default = false) — if true, then a native popup alert will be issued each time an alert event occurs.
  • AlertEmail (default = false) — if true, alerts will be sent via email. Email should be properly configured in MetaTrader via Tools->Options->Email.
  • AlertNotification (default = false) — if true, alerts will be sent via push-notifications to your mobile device. You need to set up MetaQuotes ID in MetaTrader via Tools->Options->Notifications for this to work properly.


TD Sequential Ultimate Indicator Example MetaTrader Chart

There are multiple ways to trade based on TD Sequential technique. The main point is that the whole framework was developed by Tom DeMark to find potential reversals in trends. For example, the Countdown mark 13 is believed to coincide often with the trend's top or bottom. Another method to work with TD Sequential is to buy/sell following a perfected Setup that was close to a support/resistance, but none of the candles closed below/above that support/resistance.

My own observations of the indicator on Forex pairs suggest that support and resistance levels printed by TD Sequential offer quite good levels for entering and exiting trades. Closing below a support or above a resistance line can be used to go short or long, respectively.

However, this indicator system doesn't seem to be providing any sustainable edge without applying confirmations from additional technical indicators or fundamental signals.

Indicator buffers

If you would like to use TD Sequential outputs in your own custom indicator or expert advisor, you can access them via indicator buffers:

  • Buffer #0 — TDST Resistance: actual price level. EMPTY_VALUE on empty value.
  • Buffer #1 — TDST Support: actual price level. EMPTY_VALUE on empty value.
  • Buffer #2 — Setup: candle number - positive for Buy Setup, negative for Sell Setup. 0 on empty value.
  • Buffer #3 — Countdown: candle number - positive for Buy Countdown, negative for Sell Countdown. 0 on empty value.
  • Buffer #4 — Setup Perfection: 1.0 for Buy Setup Perfection, -1.0 for Sell Setup Perfection. 0 on empty value.

Downloads (ver. 1.00, 2020-09-08)

TD Sequential Ultimate for MetaTader 4 in .zip

TD Sequential Ultimate for MetaTader 4 in .mq4

TD Sequential Ultimate for MetaTader 5 in .zip

TD Sequential Ultimate for MetaTader 5 in .mq5

TD Sequential Ultimate is being developed via a dedicated GitHub repository. You can actively participate in the improvement of this indicator by submitting your own features via pull-requests and by reviewing existing suggestions, changes, fixes, and so on.


Warning! If you do not know how to install this indicator, please read the MetaTrader Indicators Tutorial.

Do you have any suggestions or questions regarding this indicator? You can always discuss TD Sequential Ultimate with the other FX traders and MQL programmers on the indicators forums.

© 2005–2020

Design — Mart Studio

Forex trading bears intrinsic risks of loss. You must understand that Forex trading, while potentially profitable, can make you lose your money. Never trade with the money that you cannot afford to lose! Trading with leverage can wipe your account even faster.

CFDs are leveraged products and as such loses may be more than the initial invested capital. Trading in CFDs carry a high level of risk thus may not be appropriate for all investors.