TD Lines

First milestone of the Implementation of the TD Lines Strategy.
You can choose between TD Points Level 1, 2 or 3
There are still issues, e.g. a manually calculated highest-high value sometimes seems to be different than the result of the function "highest()"
Release Notes: More accurate trendlines and trendline-breaks.
Release Notes: resolved bugfix regarding the trendline-break
Release Notes: Added TP/ SL signals, based on the default RR 3:1
TP/ SL are based on Tom Demarks price-projects:
If a trendline-break occurs, look for the lowest value under the trendline and add the distance between that low and the trendline to the point where the trendline was broken.
The green-lines currently show the TP level, redlines indicate the SL level
Release Notes: Some bugfixes regarding Trendlines with TD Points Level 3: Now the TD lines/ Trendlines should be accurate for TD points Level 1, 2 or 3.
Implemented Supply Line Qualifiers 1 and 2, still doing research on qualifier 3
Release Notes: some more bugfixes
Release Notes: - bugfixes regarding TD Points/ trendlines
- now you can choose to apply trendline-break qualifier 1 and/ or 2 or just use a simple trendline-break
Release Notes: Added Q3
Added alertconditions for LONG ENTRY, TP and SL
Release Notes: some visual improvements
Release Notes: Bugfixes + added TD demand points
Release Notes: Added TD demand lines (blue), TD supply lines now are red by default
Release Notes:
  • TD demand points/ lines are visualized
  • sell signals
  • supply/ demand Qualifier 1-3
  • TP Supply: If price of (X+1) bar closes below the supply line
  • TP Demand: If price of (X+1) bar closes above the demand line
Release Notes: fixed calculation of slope.
Should be fine now for Level 1 Points but there are still visualization issues with level 2 and 3
Release Notes: some more bugfixes
Release Notes: - TD line Lvl 1 improved
- fixed repainting issues (Lvl 1 for now): TD Points are only plotted after the current was closed
Release Notes: First approach for an alternative to the R:R based TPs/SLs:
  • Trailing-Stops based on Peter Brandt's 3 day trailing stop rule ("3DTSR")
  • only implemented for long-trades
  • currently only the first two of the three constraints are implemented
  • there is a black X on the chart showing the trailing stops
  • the trailing stops currently are only visualized - there might occur multiple trailing stops altthough the trade should have been closed already
Release Notes: Refactoring to ensure that TD Points and buy/ sell signals are calculated based on closed candles.
The refactoring was made only for Level 1 Points for now, after testing is complete, I will implement the behavior for Level 2 and 3
Release Notes: New Release - almost production ready:
  • Implemented long/ short signals
  • TP/ SL based on a customizable risk/ reward ration (R:R) or a trailing stop rule (3DTSR)
  • alertconditions for buy-/ sell, TP, SL and "early exits"

Should now work perfect with AutoView.
Release Notes: Release Candidate 1
some minor bugfixes
Release Notes:
  • Added new TP style: R:R+3DTSL - this combines both styles with having a SL via the R:R approach while using 3DTSL for TP/ trailing stops
  • bugfix: nomore TP/ SL signals at the same time
Release Notes: Reworked properties and possible SL/TP and trailing SL combination - Now you can mix each with everything
Release Notes: Some properties were renamed for more Clarity.
RSI Filter added
Release Notes: Renamed Alerts to differentiate between STOP LOSS and EARLY EXIT

Pro Divergence - get it here:
Lifetime Access All Areas -
Invite-only script

Access to this script is restricted to users authorized by the author and usually requires payment. You can add it to your favorites, but you will only be able to use it after requesting permission and obtaining it from its author. Contact stefcom for more information, or follow the author's instructions below.

TradingView does not suggest paying for a script and using it unless you 100% trust its author and understand how the script works. In many cases you can find a good open-source alternative for free in our Community Scripts.


The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?

Warning: please read before requesting access.