• Products
  • Community
  • Markets
  • Brokers
  • More
Get started
  • Community
  • /
  • /Trend Intensity Index (TII)

Trend Intensity Index (TII)

Trend Intensity Index With SignalLineHi guys, This is my first public script on TV. I was just messing about with some simple ideas and I noticed that the difference between a signalLine and the TrendIntensity line was (potentially and theoretically) a good way of spotting a ranging market. I was initially just going to release Evergets version of this with a histogram and a signal-line, but I decided I'd much rather put in the work and code it from scratch so I could practice my coding. I am still relatively new to Pinescript, but I have compared this to Evergets version, and on the same settings it is 1 to 1. How to use: When TrendIntensity(aqua) is above SignalMa (maroon), it implies a bullish sentiment. When SignalMa is above TrendIntensity, it implies a bearish sentiment. The histogram is simply the absolute difference between the two. Green = bullish, Red = bearish, flat = potentially ranging. Enjoy guys. I would like to thank Everget for his Jurik moving average. Feedback welcome, but be kind... this is free and open for you all to use as you please.
Pine Script® indicator
by bennycjonesmusic
Updated Jan 16, 2021
1313
Trend Intensity IndexTrend Intensity Index indicator script. This indicator was originally developed by M. H. Pee (06/2002 issue of Stocks and Commodities Magazine)
Pine Script® indicator
by everget
Updated Apr 2, 2018
33

Select market data provided by ICE Data services. Select reference data provided by FactSet. Copyright © 2025 FactSet Research Systems Inc.© 2025 TradingView, Inc.

More than a product
  • Supercharts
Screeners
  • Stocks
  • ETFs
  • Bonds
  • Crypto coins
  • Crypto pairs
  • CEX pairs
  • DEX pairs
  • Pine
Heatmaps
  • Stocks
  • ETFs
  • Crypto
Calendars
  • Economic
  • Earnings
  • Dividends
More products
  • Yield curves
  • Options
  • News Flow
  • Pine Script®
Apps
  • Mobile
  • Desktop
Community
  • Social network
  • Wall of Love
  • Refer a friend
  • House Rules
  • Moderators
Ideas
  • Trading
  • Education
  • Editors' picks
Pine Script
  • Indicators & strategies
  • Wizards
  • Freelancers
Tools & subscriptions
  • Features
  • Pricing
  • Market data
Special offers
  • CME Group futures
  • Eurex futures
  • US stocks bundle
About company
  • Who we are
  • Manifesto
  • Athletes
  • Blog
  • Careers
  • Media kit
Merch
  • TradingView store
  • Tarot cards for traders
  • The C63 TradeTime
Policies & security
  • Terms of Use
  • Disclaimer
  • Privacy Policy
  • Cookies Policy
  • Accessibility Statement
  • Security vulnerability
  • Status page
Business solutions
  • Widgets
  • Charting libraries
  • Lightweight Charts™
  • Advanced Charts
  • Trading Platform
Growth opportunities
  • Advertising
  • Brokerage integration
  • Partner program
  • Education program
Community
  • Social network
  • Wall of Love
  • Refer a friend
  • House Rules
  • Moderators
Ideas
  • Trading
  • Education
  • Editors' picks
Pine Script
  • Indicators & strategies
  • Wizards
  • Freelancers
Business solutions
  • Widgets
  • Charting libraries
  • Lightweight Charts™
  • Advanced Charts
  • Trading Platform
Growth opportunities
  • Advertising
  • Brokerage integration
  • Partner program
  • Education program
Look FirstLook First