Indicator · Pine Script v5 · On the chart

High Low Live Super

by dearvn· code credited to donaldit

Marks intraday swing tops and bottoms on the price chart with labels and short horizontal lines.

View on GitHub

GitHub stars257on the repository
Pine versionv5runs as is
Lines of code117
Settings0inputs
LicenceNone statedfile: MPL-2.0
Last update6 weeks ago11 Sep 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above, or the copy button on the code below.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.

Source Code

117 lines of Pine Script v5 from supper-high-low-live.txt, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.

supper-high-low-live.txt
// This Pine Script™ code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © donaldit

//@version=5
indicator("Donaltit.net - High Low Live Super", overlay = true, max_labels_count = 500, max_lines_count = 500, max_polylines_count = 100)

float pull_back = 2
float point_entry_call = 20
float point_entry_put = 20

if str.format("{0}", timeframe.period) == '2'
    pull_back := 1.4
if str.format("{0}", timeframe.period) == '5'
    pull_back := 1

interval = time + math.round(ta.change(time) * 8)
interval2 = time + math.round(ta.change(time) * 2)

////////////////////////////////////strong call start
var float LowPrice = 0.0
var float HighPrice = 0.0

var int bar_index_high = 0
var int bar_index_low = 0

if minute(time_close, "UTC-8") <= 45 and hour(time_close, "UTC-8") == 6 or hour(time_close, "UTC-8") < 6
    HighPrice := 0.0
    LowPrice := 0.0

    bar_index_high := 0
    bar_index_low := 0

////////////////////////////////////////////////// logic trailing start
var float Low_Price = 0.0
var float High_Price = 0.0

var int bar_index_high_price = 0
var int bar_index_low_price = 0

if minute(time_close, "UTC-8") <= 30 and hour(time_close, "UTC-8") == 6 or hour(time_close, "UTC-8") < 6
    High_Price := 0.0
    Low_Price := 0.0
    
    bar_index_high_price := 0
    bar_index_low_price := 0

if Low_Price == 0.0 or Low_Price > low
    Low_Price := low
    bar_index_low_price := bar_index

if High_Price == 0.0 or High_Price < high
    High_Price := high
    bar_index_high_price := bar_index

// down trend to CALL start
var float trailing_ll_point = 0.0
trailing_ll_ok = false
var float last_low = 0.0

if bar_index_high_price > 0 and bar_index_low_price > 0 and bar_index_high_price < bar_index_low_price
    if trailing_ll_point == 0.0 or trailing_ll_point != 0.0 and trailing_ll_point < High_Price - close
        trailing_ll_point := High_Price - close

    var float track_trailing_ll_point = 0

    if trailing_ll_point > point_entry_call
        track_trailing_ll_point := trailing_ll_point


    var int barindex_ll = 0

    if (track_trailing_ll_point > 0 and (High_Price - close) <= (track_trailing_ll_point - pull_back))
        trailing_ll_point := 0.0
        track_trailing_ll_point := 0.0
        trailing_ll_ok := true


        label label_ll = na
        //label.delete(label_ll)
        label_ll := label.new(x=interval2, y=Low_Price, text=str.format("{0} Bottom", Low_Price), color=color.new(#000000, 100), textcolor = color.rgb(243, 242, 245), size=size.normal, style=label.style_label_left, xloc=xloc.bar_time, yloc=yloc.price)
        line.new(bar_index, Low_Price, bar_index+6, Low_Price,  style=line.style_solid, color=color.white, width = 4)
        
        High_Price := 0.0
        
// down trend to CALL end

// up trend to PUT start
var float trailing_hh_point = 0.0
var float last_high = 0.0

trailing_hh_ok = false

if bar_index_high_price > 0 and bar_index_low_price > 0 and bar_index_high_price > bar_index_low_price
    if trailing_hh_point == 0.0 or trailing_hh_point != 0.0 and trailing_hh_point < close - Low_Price
        trailing_hh_point := close - Low_Price

    var float track_trailing_hh_point = 0

    if trailing_hh_point > point_entry_put
        track_trailing_hh_point := trailing_hh_point


    var int barindex_hh = 0
    if (track_trailing_hh_point > 0 and (close - Low_Price) <= (track_trailing_hh_point - pull_back))
        trailing_hh_point := 0.0
        track_trailing_hh_point := 0.0
        trailing_hh_ok := true


        var label label_hh = na
        //label.delete(label_hh)
        label_hh := label.new(x=interval2, y=High_Price, text=str.format("{0} Top", High_Price), color=color.new(#000000, 100), textcolor = color.rgb(243, 242, 245), size=size.normal, style=label.style_label_left, xloc=xloc.bar_time, yloc=yloc.price)
        line.new(bar_index, High_Price, bar_index+6, High_Price,  style=line.style_solid, color=color.blue, width = 4)
        
        Low_Price := 0.0
        
// up trend to PUT end

Overview

After a morning session reset in the UTC-8 time zone, it tracks the running high and low, measures how far price has moved away from the extreme, and prints a label such as Bottom when price pulls back by a set amount after a move of at least twenty points. Distances are hard-coded, with a smaller pullback on 2 and 5 minute charts, and there are no user inputs.

Details

Published by

dearvn on GitHub

Code credit

donaldit, as written in the script's header

Type

Indicator, Pine Script v5

Draws

On the price chart

Category

Support & resistance, Sessions & time

Markets

Indices

Timeframes

M1-M5

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Topics

futures-markettradingviewtradovatetrading-futureses1best-indicator-tradingviewnq1trading-futurerus-stock-market

Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.

Similar Pine Scripts

575 stars

This indicator builds Market Profile Time Price Opportunity (TPO) structures across defined session timeframes directly on the main price chart. It visualizes the Point of Control (POC) and Value Area boundaries using dynamic box drawings. An integrated multi-

Indicator v5 Support & resistanceScreeners & dashboards
Updated 1 year ago · MPL-2.0 GitHub repository of Market Profile with Screener
219 stars

This indicator plots reference levels for previous daily high and low prices directly on the price chart. It requests daily timeframe data using the security function and plots the offset values as continuous lines, displaying resistance in red and support in

Indicator v4 Support & resistanceSessions & time
Updated 5 years ago · None stated GitHub repository of 昨日高低點標示

Golden Bullet Strategy

by TradersPost
218 stars

The Golden Bullet Strategy is an overlay signal indicator based on Smart Money Concepts and time-based liquidity models. It identifies liquidity sweeps of a designated reference session range during a specified hunt window. It then confirms Market Structure Sh

Indicator v6 SMC / ICT / price actionSessions & time
Updated 3 months ago · None stated GitHub repository of Golden Bullet Strategy

Moon Dev GEX Arrows

by moondevonyt
92 stars

This overlay indicator plots option strike walls and an optional session VWAP on the price chart for SPY or ES. It spaces major strikes by the selected instrument, draws a set number of strikes on each side, and marks wall-trap and sweep events after a cooldow

Indicator v5 Support & resistanceSessions & time
Updated 2 months ago · Custom licence GitHub repository of Moon Dev GEX Arrows

Key Levels

by cryptorife
75 stars

This indicator plots reference levels and session markers directly on the price chart. It calculates and draws lines for the daily open, weekly open, monthly open, previous day OHLC, and previous week extremes, along with a selectable day-of-week range and ini

Indicator v4 Support & resistanceSessions & time Repaints
Updated 3 years ago · GPL-3.0 GitHub repository of Key Levels

Opening High/Low

by be-thomas
65 stars

This indicator tracks and plots the high and low price levels from the first bar of a specified trading session directly on the price chart. Users can configure the target session time window using input settings. When a new session starts, the script captures

Indicator v4 Support & resistanceSessions & time
Updated 5 days ago · GPL-3.0 GitHub repository of Opening High/Low

More indicators

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers