TD Sequential Setup & TD Countdown

TD Sequential Setup & TD Countdown

On request I programmed the Thomas Demark indicator TD Sequential -Setup. It counts up to 9 consecutive bars to complete the setup and if the setup is completed with a “perfection buy /sell signal” it draws an arrow over/below the signal candle.

The TD Setup requires 9 consecutive bars matching criteria plus a final criterium to generate a buy/sell signal. After A TD Setup is completed the TD countdown starts which requires 13 occurrences of a pattern that don’t have to be consecutive. On completion this generates additional buy/sell signals (blue arrows).

The TD Sequential Indicator was developed by Tom DeMark for trading on the FOREX market. It is also suitable for the market of commodities and options.
This indicator looks for the opposite trend in order to anticipate and identify the turning points of the market. It provides signals in intraday and also on daily timeframe.

Discussions about this indicator can be found in this forum topic:


Share this

Risk disclosure:

No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.

ProRealTime ITF files and other attachments : How to import ITF files into ProRealTime platform?

PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials

  1. Hans63 • 09/25/2017 #

    your code

  2. Hans63 • 09/25/2017 #

    your code is quite different from the original (Demark on Trade Station)

  3. Hans63 • 09/25/2017 #

  4. Despair • 09/25/2017 #

    In which way? I can not see anything on your picture.
    I used the rules that I found for the setup and did not translate any code from tradestation so there should be differences

  5. Hans63 • 09/25/2017 #

    Daily Chart of EUR/USD. On the right the original indicator (paid indicator) that runs on Trade Station, on the left the same chart with your code with Prorealtime. As you can see there are many differences, and mostly the original one provides exact count

    Direct link:

  6. Hans63 • 09/25/2017 #


  7. Hans63 • 09/25/2017 #

  8. Despair • 09/25/2017 #

    The pictures are so small I can hardly read the figures even if zooming in. I think I can not debug it on the basis of this. Sorry.

  9. Despair • 09/25/2017 #

    Can you maybe zoom in and post a picture of the comparison again?

  10. Despair • 09/25/2017 #

    If you post a picture of the Tradestation version zoomed in so I can see the numbers on each candle and I also must see the date or time period the chart is showing, will try to make them matching.

  11. Despair • 09/25/2017 #

    …also it would be helpful to know which color in the TS version stands for what. Thanks.

  12. Despair • 09/25/2017 #

    I thought a little bit about this and came to the conclusion that there will be differences when you use this indicator on a daily chart (like i see you did). This is cause by IG markets infamous sunday candle. The problem is when I adapt it to daily timeframe to take care of the sunday candle it will give wrong results on any other timeframe instead. :-S

  13. Hans63 • 09/25/2017 #

    No, in the daily chart I posted there is not the sunday trading
    This is the link of the chart comparision. You can download it.

  14. Despair • 09/25/2017 #

    This is again the same picture. You have to zoom in so I can make use of it. Then I’m not sure if you understood me. The error is caused by IG markets sunday candle. And if I correct it for daily timeframe it will no longer work on intraday timeframes. 🙁

  15. mk_ok • 09/25/2017 #

    Which is the right code? the itf file or the code above? I obtain two different results

  16. Matt B • 09/25/2017 #

    Wich results do you have mk_ok ?

  17. Despair • 09/25/2017 #

    You should use the itf file.

  18. Zouhair1987 • 09/25/2017 #

    hii , i wonder if it is possible to create a screener based on demark indicator
    for exemple if the trend is down 100ema and 200ema are down and an arrow signal to sell has just pinted

  19. leonz007 • 09/25/2017 #

    Hi Despair, dont know why after import and add your indicator, it does not go on to the price chart, could you help out? thanks

    • Nicolas • 09/25/2017 #

      Apply it on the price chart with the wrench at the left upper side of the price chart.

  20. Sydneyhom • 09/25/2017 #

    Hi Despair
    Thanks for writing the code and for generously making it available to the public. I have been using Trading View and there is quite a good TD Sequential available on that platform but in some ways your version is superior, since it includes the “+” for the unperfected TD Sequential Countdown. The TV version that I am using does however have a handy feature in that it identifies the resistance and support lines, which are taken from the Lows of the TD Sell Setup and the Highs of the TD Buy Setup. If I knew how to code I would try to include these but alas I am unable, and so I’m wondering if you are someone else would consider adding this handy feature?
    Cheers Sydneyhom

Register or


avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar

+4 more likes

Related users ' posts
Pensera Hi Nicolas Thank´s for this great indicator ! Arnaud
juanj Strange that the ITF file did not import the parameters. You can either add the parameter yo...
Finning Hi JuanJ, just a question about the tollerance*pointsize. I know what it is/what it does (in...
JOKAMAURICE Hi I am looking to number bars in a chart to ease analysis. Any idea if a program has been d...
Copperwave Hi Juan - awesome implementation of Robins price action analysis. Any chance this can be mod...
Daniel da Costa Well done Juan!
idunnomuch IS this working in the latest version of prorealtime? I get the indicator, but not over my c...
jimkn0pf Christopher, wie saehe denn die Formel ohne Kontrollkerze (3. Kerze) aus?
Balmora74 thanks for this code Philippo ! So if i understand well a Positive (+) EntryOK x ROC means a...
Dritan Hi Philippo,thanks for sharing this code.Can You add please Volume more than 250.00?Thanks
jiddan78 how to convert to afl amibroker ?
Nicolas We do not supply free coding assistance for AFL Amibroker on the website. You can ask for pa...
Ngomsi @ Vonasi, how to use timeframe , 13 minutes ,21 minutes, 34 minutes,et 55 minutes with this...
nectouxg thank you Nicolas of your speed of response, I tried but, I have to fix something badly, bec...
Nicolas change the lastline with: RETURN lastsig and check if lastsig change its value with the a...
nectouxg Hello Nicolas, I will try tonight when I get home, just one last question, I trade the DA...
Pablo Carmona del Moral hola juanjo, muchas gracias por este screener que nos has compartido. creo que lo voy a util...
Pablo Carmona del Moral para el volumen he cambiado: // Volumen significativo VS=volume>2*(average[10](volume[1...
Juanjo Muchas Gracias Pablo, ...Tengo varios screener, uno lo tengo adaptado para operar intradía, ...
Bhanu Pratap Dear Sir, Can I get MQL4 File for this indicator and last man standing . pls looking forward...
ISTJ_T Hi Nicolas Thanks a lot for the indicator. Trading off the TradingView and have issues wit...
Nicolas Just use ProRealTime and its powerful screener for stocks.
Nicolas I changed the file, now it is all good.
JohnScher Thank you! Nicolas!
HeikinAshi looks interesting. can you say something about the variables? (L = 5 S = 95) are thos...
Geronima Ortiz I watched the video three times, but I can not put the npips parameter as a variable. I do...
Geronima Ortiz I think the video is for an old version of prorealtime, the images do not correspond at all ...
Nicolas indicator1 = CALL “PRC_StopReversal”[npips, 1] and define npips in the optimization window ...
FULVIO09 Attualmente non c'è sufficiente volatilità : la condizione "C0 = AverageTrueRange[1500](Clos...
vlongobardo67 Ma io intendevo in backtest ! Scusa non l’ho menzionato.
ciniselloftse salve fulvio .il trading sistem e sempre profittevole?
Nicolas Yes that's right, they are painted backwards.
Louloute Bonjour Nicolas, Je ne comprends pas bien la fonction des 2 lignes ci-dessous, pourriez-vou...
Nicolas Oui pourquoi pas? :)
gblast I added this indicator to my pro real time but its not showing up on my candles. Its invisible
Steven Bahia Hi Nicolas - great indicator - is there a way to place a alert when the Oscillator crosses ...
Nicolas Alerts can't be programmed, you have to set them yourself with the Alert tool of the platfor...
Steven Bahia just to add to this would there be a way to establish a entry price from the Oscillator
Francesco78 Hi Pepmartorell, please let's continue the discussion on the forum thread so that we can sha...
Francesco78 Hi Pepmartorell, please let's continue the discussion on the forum thread so that we can sha...
Jusmih1 Hi there, i am looking at your Strategy however when you put in automatic trading mode its ...
Nicolas Sorry no! all codes on our website is to be used with ProRealTime trading platform: https://...
wtangsiri Bonjour J'ai importé le fichier ITF en question, mais cela me donne, en bas de l'écran, un...
Nicolas Il faut ajouter l'indicateur sur le graphique du prix.