Marked Highs/Lows — Support & Resistance

JohnMuchow Updated   
This indicator mimics the functionality of marked highs/lows in MarketSmith, a charting tool available from Investor's Business Daily. Marked highs/lows, sometimes referred to as pivot highs/lows, can be used to locate areas of support and resistance. These same points can also be helpful when drawing trendlines and channels.

I've added several customization options that add to the flexibility and overall usefulness of this technical indicator.

Custom Ranges for Marked Highs/Lows

In MarketSmith, a marked high is the highest high going back nine bars and forward nine bars. The number of required bars with lower highs on each side of the high is referred to as the period. The default for the indicator is a nine bar period, however, you can configure the period to fit with your trading style.

View Marked Highs/Lows on Any Timeframe

MarketSmith only supports marked highs/lows on daily charts. With this indicator you can view marked highs/lows on any timeframe.


■ Draw horizontal rays from the most recent marked high and low to help visualize areas of support and resistance.

■ Create a channel to show the current trading range. Draw a trendline across marked highs and a separate trendline across marked lows.

■ Increase the marked high/low periods to find more significant highs and lows.

Release Notes:
Version 2.0

■ Minor updates to the layout of price/symbol.
Release Notes:
Version 3.0

■ Show percent advance/decline from most recent Marked Highs/Lows (optional).
■ Auto-generated lines of support and resistance (optional).

Release Notes:
Version 4.0

■ Percent change is no longer shown when there is no prior Marked High/Low.
Release Notes:
Version 5.0

■ Update the max line/label settings to allow for more high/low values on the chart.

Your support is greatly appreciated! Cheers! 🍻

$30 worth of TradingView Coins for you & a friend:
Paypal Donation:
Power Trend Pro:
Protected script
This script is published closed-source but you may use it freely. You can favorite it to use it on a chart. You cannot view or modify its source code.

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?