jdlim

Tom Demark (TD) Indicator

///////////////////////////////
// Tom Demark (T.D) Indicator //
/////////////////////////////
Based on the rules here and here.

Counts continue as per Tone Vays version.
I would recommend following him if you like this indicator.
@ToneVays on Twitter and his website.
You can also buy his version of the indicator (random number generator) directly from him for 0.05 BTC .
His donation addresses.
Bitcoin: 3Hk9cR6p8XAAbmD2GkvSdcbznhqXvLDX4o
Litecoin: LPUU9aMnzpjvhr5yEfW7hz1JjbgQ1zYDvw


T.D Setup
T.D sell setup: Green numbers on top of candles.
T.D buy setup: Red numbers on top of candles.
Perfect ➑ and ➒ are encircled.
Nines are indicated with little arrows at the top and bottom of the plotting area

T.D Countdown
Numbers below the candles.
T.D Buy Countdown: Red
T.D Sell Countdown: Green
13s have arrow watermark with direction.
Cancellation of the countdown: ⛔

Aggressive T.D Sequential: A13 (with arrow) – only the 13 is plotted on the graph.


Support and Resistance Lines (Risk Level)
Blue dotted lines as per the rules in the above document.
Buy Setup: Low of lowest low of setup bar minus the true range of that bar.
Sell Setup: HIGH of highest high of setup bar plus the true range of that bar.


Simple Moving Averages (added these as I have a free account and can't add lots of indicators to my chart).
20: orange
50: blue
200: purple


Previous Candles High and Low
High: Green dotted horizontal line
Low: Red dotted horizontal line


Alert Options
Price Up/down on 2 count on daily or 4 hourly


Still To Do
1. Perfect 13 encircled
2. T.D combo
3. Clean up aesthetics

--------------------------------------------------------------------------------------
-- Please let me know if you have any suggestions or see any errors. --
--------------------------------------------------------------------------------------
___________________________________________________________________________________________________________________
If you would like to make a donation to me here are my addresses. As you can see form the ZAR/USD price above I'd appriciate it :P
BTC: 1ASV2D5ALLLFGFb7SDmpQATj2drRKZcvMm
LTC: LNaTAUGmGvVfVtzDq1EbF8QwV6zSekJW1s
ETH: 0x033DdB9f4fa13815bB381aefA8d01000753D2E0D
___________________________________________________________________________________________________________________

Release Notes: Cleaned up the code a bunch. Hope I didn't break anything :P
Release Notes: Added perfect ⒀ for countdown.
Release Notes: Fixed an error with the math for the aggressive 13s. It's working now.
Release Notes: Added Alert Options
Price of current candle (sell TD2-9) goes above high of previous green TD candle
Price of current candle (buy TD2-9) goes below low of previous red TD candle
Count change from green to red and vice versa
Release Notes: I discovered inputs :D
If you click the cog (format button) next to the indicator name you chan change variables for the alerts and can also edit all the plot variables there.
Release Notes: Published with incorrect candle colours.
Release Notes: Added option to change transparency settings of countdown 1-12 and setups 1-7 in input parameters for ease of use. Helpful if the numbers are too light to be seen on your screen or chart background.
Release Notes: Added
Option to change transparency for A13 in inputs tab.
Please note that all style settings, such as colour, symbols, and transparency etc. (not the crypto "p") can be changed in the style tab of the indicator and you can save your preferences as the default.
TD up/down alerts now use the current chart timeframe. You can edit the alert message accordingly.
Added alerts for countdown 13 and A13.
Added alert for TD 9s (value can be changed in input settings) occurring on multiple timeframes simultaneously, for example, a green 9 on the daily and green 9 on the 4h charts.
Self-note: Would be nice to have the values for the other charts displayed at the top of the current chart, will see how to do this and format it nicely.

Cleaned up the code (seems to be performing the same).
Release Notes: Fixed error with alert across multiple timeframes (still haven't tested this alert yet).
Release Notes: Fixed some errors with alerts.
Release Notes: I removed the horizontal lines showing the high/low of the previous candle, they were quite invasive. Instead, there is now a symbol $ that appears on top of the chart showing a possible short on long entry (possible long play if the current price is trading above the previous candles high on a 2-8 count ). You can change this in the inputs tab, set the number to 1 to disable it.
This freed up a plot spot since I had reached the maximum number allowed in a script so I added a ⁹ to appear above a count of 1 if, at some stage, that 1 was a 9.
Release Notes: Changes to alerts
1a) Long play on selected count (Price Up): If the current candles count is equal to the value selected in the inputs tab (field 1a; default is 2) of the indicator and a green number, and the current price (set on the timeframe of the current chart when adding the alert) moves above the high of the previous candle times the multiplier value selected in the inputs tab (field 2; default is 1).
e.g. If the values in field 1a and field 2 (the multiplier) of the inputs tab are 3 and 1.10, respectively. An alert is triggered when the TD count on the current chart is a green 3, and the price moves 10% above the previous candles high (green TD count of 2).
1b) Short play on selected count (Price Down): As in 1a above, but the price times the multiplier is trading below the low of the previous candle and red numbers.
2a) Countdown hit a 13: If the countdown hits a 13 on the timeframe of the current chart when adding the alert.
2b) Countdown hit an A13: As above but for the aggressive 13.
3) The count has flipped: The count has changed from green to red (bullish or bearish price flip). This change can be adjusted using a multipler in the inputs tab (field 2, default is 1).
i.e. When the multiplier in input field 2 is set to 1.10 and the TD count flips from green to red (bullish to bearish) or vise versa an alert is triggered if the current price goes 10% the close 4 candles earlier (10% below for red count).
4) All the numbers have aligned: The count selected in the inputs tab (field 4a, the default is 9) has occurred on multiple timeframes simultaneously (field 4b, a default is 1h, 4h, daily and weekly). The counts must all be green or red.
i.e. If the values in field 4a and field 4ab of the inputs tab are 3 and '1h, 4h' respectively. Aan alert is triggered if there is a TD count of 3 on the 1h and 4h charts at the same time and both counts are either red or green.

Note: The condition field to the right of the indicators alert selection (initially showing '20sma') has no effect on alerts 1 to 4.

It would be great if someone makes a video explaining the use of the TD sequential and uses this indicator to illustrate it.
Release Notes: Fixed an error with the multipler for the alerts.
Release Notes
Release Notes: I made a video showing the features of the indicator.

Please note that the text on the chart above is only descriptive and not plotted by the code.
Release Notes: I added a version number so that you can confirm you are using the latest version as Trading View doesn't update the script already added to charts automatically.
I've simplified the alerts following some feedback. I've posted a new script, where I will be testing features. If you have any suggestions or request you can post there and we can try them out.

Features that are there but not here include:
  • SMA input option
  • Disable cancellation of TD countdown
  • Show only 9s and 13s
  • Show only current number
  • Alert on multiple timeframes
  • Alert multiplier (value to times the price by so alert only gets triggered if, for example, if the multiplier was set to 1.1 and a TD3 sell setup (can also be set) starts trading above the 10% high of a TD2)
  • Alert multiplier for price flip
Release Notes: Fixed an error with the plotting of perfected counts.
Release Notes: Fixed an error with the countdown 13s. Deferred 13 are now plotted as "+".
Release Notes: Fixed error with countdowns
Added an option to change moving average type.
Release Notes: Fixed an error with the perfected 9s not plotting.
Haven't had much time to add to this script but will fix errors if people notice them and add features in the future.
Release Notes: I've temporarily removed the popup to confirm inputs when adding the indicator due to a problem with tradingview.
Release Notes: Reverted to the previous version as TView fixed bug.


Links to my other indicators
TD sequential indicator


TD alternatives


RSI with a horizontal line


Plot MAs



Referral Links
Bitmex 10% fee discount for 6 months
https://www.bitmex.com/register/Ilzb0e
TradingView (50% off after trial period ends)
https://tradingview.go2cloud.org/SH2Hg

Tip Jar
BTC: 1FgEeDDMF7QKydQPJVCDjp7ypjREp8XG6c
LTC: LM9KsXz7GUxCN9g9EjTC8ayviDEmBK14rw
Release Notes: Pushed the wrong one.
Release Notes: I added some options for the moving averages. You can now select the price source and the MA type.
Release Notes: V5.1
Fixed the aggressive 13 arrow colours.
Made the cancellation of countdown symbol less invasive.
Release Notes: Fixed a bug causing compilation errors.
Release Notes: v 5.3: Added an option for double exponential moving averages (DEMA).
Release Notes: V5.4
Update to fix the "Take SnapShot" function. Who would have thought the elusive unicode unicorn to be the cause.

Links to my other new indicators

Oscillator Divergences


Swing Points and Swing Failure Patterns


Average directional index with directional movement indicator


Market Hours


Referral Links
Bitmex 10% fee discount for 6 months
https://www.bitmex.com/register/Ilzb0e
TradingView (50% off after trial period ends)
https://tradingview.go2cloud.org/SH2Hg

Tip Jar
BTC: 1FgEeDDMF7QKydQPJVCDjp7ypjREp8XG6c
LTC: LM9KsXz7GUxCN9g9EjTC8ayviDEmBK14rw
Release Notes: v5.5
Fixed error with priceflip alert
Remove from Favorite Scripts Add to Favorite Scripts
Amazing work, thx a lot
Reply
That’s awesome!Can I have access to the script please?
Thank you
Reply
Hey Jdlim, This looks fantastic! Would love to give the script a spin - could you please grant access to the script?
Much appreciated!
Reply
Hallo jdlim, I just found out about TD sequential trading and start to learn it and your indicator would be of great help.
I would appreciate it if I could use yours, as it is really awesome. Thanks a lot.
+3 Reply
Hi jdlim, please allow me access to this indicator. Also, do you have a user guide outside of Justin Wise video?
Reply
Dark theme is not supported :/
Reply
Best free sequential. Thanks a lot!
Reply
Hi, Jason. I appreciate your hard working effort! Please invite me to this awesome indicator with an access code. Thanks alot!:)
Reply
Hi! Nice work! is it possible for me to get access? Thank you very much!
Reply
Hi.
Very well done, can I have access please?
+2 Reply
Home Stock Screener Forex Screener Crypto Screener Economic Calendar How It Works Chart Features Pricing House Rules Moderators Website & Broker Solutions Widgets Charting Solutions Get Help Feature Request Blog & News FAQ Wiki Twitter
Profile Profile Settings Account and Billing Get Help Ideas Published Followers Following Private Messages Chat Sign Out