Mapping “The Dip”: A Visual Tool for Long-Term Investors

  • Here is a free All Time High and Pullback Indicator for TradingView
  • This one is quite useful for higher time frame and investing.
  • Code is open-source so you can adjust yourself 🙂
https://www.tradingview.com/script/96Q4caoG-Zen-ATH-Bands-v1/

Technical Details

This indicator plots horizontal drawdown levels projected into the right-hand margin. It calculates percentage drops from a selected anchor point (ATH or Current Price) to identify key price levels.

Technical Features

  • Dynamic ATH Tracking: Automatically calculates the highest high in the chart’s history without lookback limitations.
  • Non-Invasive Plotting: Uses right-extended lines and labels to keep the price action history unobstructed.
  • Performance Optimized: Only renders on the most recent bar to ensure zero impact on chart loading speeds.

Custom Options Explained

1. Reference (refMode)

  • Option 1 (ATH): Sets the anchor to the highest high ever recorded on the chart. All percentage bands are calculated as drops from this peak.
  • Option 0 (Last Price): Sets the anchor to the current closing price. Useful for visualizing potential downside risk from the current market value.

2. Right Offset (bars)

  • Purpose: Sets the horizontal distance between the current candle and the level labels.
  • Usage: Increase this value (e.g., 50 or 100). If you use a wide chart layout or decrease it if you prefer labels closer to the price action.

3. Percentage Band Toggles

  • Included Tiers: 2.5%, 5%, 10%, 15%, 20%, 25%, and 30%.
  • Function: Each level can be individually enabled or disabled via checkboxes.

4. Color Inputs

  • Customization: Each band has a dedicated color picker. This allows for high-contrast visibility regardless of whether you use a light or dark chart theme.

Indicator Inputs Table

Input LabelDefault ValueFunction
Reference1 (ATH)Toggle between All-Time High or Current Close as the calculation base.
Right Offset30Moves text labels X bars into the future margin.
Show [X]%EnabledBoolean toggle to show or hide specific percentage lines.
[X]% ColorVariesDefines the color for the specific line and label.

Post on using with the cash index coming soon!

Thanks

Tim F

Leave a comment

I’m Tim

Welcome to Zen Trading Tech.

I’m a Aussie day trader and I post trading tips, practice drills, and indicators that helped my trading get to a professional level.

Everything here is to help train the eyes and hands to trade better. If it helped me I’ll post it for others. Hope you enjoy!