Indicator · Pine Script v5 · On the chart

Gann Hurst Pivot HL 2024 V1.2

by mikeyhu70· code credited to congacindy

This indicator marks swing highs and lows from pivot bars on the price chart and projects dates ahead using Gann and Hurst cycle timing ideas.

View on GitHub

GitHub stars1on the repository
Pine versionv5runs as is
Lines of code631
Settings23inputs
LicenceNone statedfile: MPL-2.0
Last update6 months ago15 Apr 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

631 lines of Pine Script v5 from Gann/Gann Hurst Pivot HL 2024-V1.2.ps, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.

Gann Hurst Pivot HL 2024-V1.2.ps
// This Pine Script™ code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © congacindy

//@version=5
indicator("Gann Hurst Pivot HL 2024-V1.2", overlay = true)

// Inputs
leftBars = input.int(6, "Left Bars Gann", minval=1)
rightBars = input.int(6, "Right Bars Gann", minval=1)
HleftBars = input.int(12, "Left Bars Hurst", minval=1)
HrightBars = input.int(12, "Right Bars Hurst", minval=1)
nswing = input.int(2, "Number of Gann Swing to Display", minval=1)
nHswing = input.int(1, "Number of Hurst Swing to Display", minval=1)
nStore= input.int(15, "Number of Swing?", minval=1)
nPastDaystoInclude = input.int(2, "Number of PAST Days to include for final output?", minval=1)
nHDatePast = input.int(3, "Number of Days in the past to include for Hurst Cycle?", minval=1)
nNearFuture= input.int(21, "Number of Days in the future to display?", minval=1)
debugHigh = input.bool(false,title="Display Debug for Gann Pivot High")
debugLow = input.bool(false,title="Display Debug for Gann Pivot Low")
HdebugHigh = input.bool(false,title="Display Debug Hurst Cycle Pivot High")
HdebugLow = input.bool(false,title="Display Debug Hurst Cycle Pivot Low")
sortHigh = input.bool(true,title="Sort Gann Pivot High Date")
sortLow = input.bool(true,title="Sort Gann Pivot Low Date")
HsortHigh = input.bool(true,title="Sort Hurst Pivot High Date")
HsortLow = input.bool(true,title="Sort Hurst Pivot Low Date")

// Get swing high and low
pivotHigh = ta.pivothigh(high, leftBars, rightBars)
pivotLow = ta.pivotlow(low, leftBars, rightBars)
HpivotHigh = ta.pivothigh(high, HleftBars, HrightBars)
HpivotLow = ta.pivotlow(low, HleftBars, HrightBars)

txt_col_bull = input.color(color.rgb(76, 244, 169), 'Text/Frame Color', group='Dashboard')
txt_col_bear = input.color(color.rgb(228, 95, 235), 'Text/Frame Color', group='Dashboard')

txt_col = input.color(color.rgb(182, 186, 200), 'Text/Frame Color', group='Dashboard')
dash_loc_extra = input.string('Top Left', 'Dashboard Location for Soltice ...', options=['Top Right', 'Bottom Right', 'Top Left', 'Mid Left', 'Mid Right'], group='Dashboard')
text_size = input.string('Tiny', 'Dashboard Size', options=['Tiny', 'Small', 'Normal', 'Large'], group='Dashboard')


// Store last 10 swing high and low values
//var float[] lastHighs = array.new_float(nswing)
//var float[] lastLows = array.new_float(nswing)
//var int[] lastHighDates = array.new_int(nswing)
//var int[] lastLowDates = array.new_int(nswing)

int daysToShift8 = 0
int daysToShift17 = 0
int daysToShift34 = 0
int daysToShift68 = 0

// ****************************************

// Declare SwingLowData as matrices
var swingLowData = matrix.new<float>(nStore, 10)
//var sortedSwingLowData = matrix.new<float>(nStore, 10, float(na))


if not na (pivotLow)
    // Shift the existing rows down
    for i = nStore - 1 to 1
        for j = 0 to 9
            matrix.set(swingLowData, i, j, matrix.get(swingLowData, i - 1, j))
    
    // Add the new data to the first row
    matrix.set(swingLowData, 0, 0, low[rightBars])
    matrix.set(swingLowData, 0, 1, time[rightBars])
    matrix.set(swingLowData, 0, 2, time[rightBars] + 22.5 * 24 * 60 * 60 * 1000)
    matrix.set(swingLowData, 0, 3, time[rightBars] + 45 * 24 * 60 * 60 * 1000)
    matrix.set(swingLowData, 0, 4, time[rightBars] + 90 * 24 * 60 * 60 * 1000)
    matrix.set(swingLowData, 0, 5, time[rightBars] + 135 * 24 * 60 * 60 * 1000)
    matrix.set(swingLowData, 0, 6, time[rightBars] + 180 * 24 * 60 * 60 * 1000)
    matrix.set(swingLowData, 0, 7, time[rightBars] + 225 * 24 * 60 * 60 * 1000)
    matrix.set(swingLowData, 0, 8, time[rightBars] + 270 * 24 * 60 * 60 * 1000)
    matrix.set(swingLowData, 0, 9, time[rightBars] + 315 * 24 * 60 * 60 * 1000)



// *****************************************

// Declare swingHighData as a matrix
//var swingHighData = matrix.new<float>(nStore, 10)

// Initialize the swingHighData matrix with the desired dimensions
var swingHighData = matrix.new<float>(nStore, 10, float(na))
//var sortedSwingHighData = matrix.new<float>(nStore, 10, float(na))


if not na(pivotHigh) 
    // Shift the existing rows down
    for i = nStore - 1 to 1
        for j = 0 to 9
            matrix.set(swingHighData, i, j, matrix.get(swingHighData, i - 1, j))
    
    // Add the new data to the first row
    matrix.set(swingHighData, 0, 0, high[rightBars])
    matrix.set(swingHighData, 0, 1, time[rightBars])
    matrix.set(swingHighData, 0, 2, time[rightBars] + 22.5 * 24 * 60 * 60 * 1000)
    matrix.set(swingHighData, 0, 3, time[rightBars] + 45 * 24 * 60 * 60 * 1000)
    matrix.set(swingHighData, 0, 4, time[rightBars] + 90 * 24 * 60 * 60 * 1000)
    matrix.set(swingHighData, 0, 5, time[rightBars] + 135 * 24 * 60 * 60 * 1000)
    matrix.set(swingHighData, 0, 6, time[rightBars] + 180 * 24 * 60 * 60 * 1000)
    matrix.set(swingHighData, 0, 7, time[rightBars] + 225 * 24 * 60 * 60 * 1000)
    matrix.set(swingHighData, 0, 8, time[rightBars] + 270 * 24 * 60 * 60 * 1000)
    matrix.set(swingHighData, 0, 9, time[rightBars] + 315 * 24 * 60 * 60 * 1000) 

// *********************************

// Declare SwingLowData as matrices
var HswingLowData = matrix.new<float>(nStore, 10)
//var HsortedSwingLowData = matrix.new<float>(nStore, 10, float(na))

if not na (HpivotLow)
    // Shift the existing rows down
    for i = nStore - 1 to 1
        for j = 0 to 9
            matrix.set(HswingLowData, i, j, matrix.get(HswingLowData, i - 1, j))

    // Calculate the number of days to shift for each cycle
    while time[HrightBars] + daysToShift8 * 24 * 60 * 60 * 1000 < timenow - nHDatePast * 24 * 60 * 60 * 1000
        daysToShift8 += 8

    while time[HrightBars] + daysToShift17 * 24 * 60 * 60 * 1000 < timenow - nHDatePast * 24 * 60 * 60 * 1000
        daysToShift17 += 17

    while time[HrightBars] + daysToShift34 * 24 * 60 * 60 * 1000 < timenow - nHDatePast * 24 * 60 * 60 * 1000
        daysToShift34 += 34

    while time[HrightBars] + daysToShift68 * 24 * 60 * 60 * 1000 < timenow - nHDatePast * 24 * 60 * 60 * 1000
        daysToShift68 += 68
    
    // Add the new data to the first row
    matrix.set(HswingLowData, 0, 0, low[HrightBars])
    matrix.set(HswingLowData, 0, 1, time[HrightBars])
    matrix.set(HswingLowData, 0, 2, time[HrightBars] + 8 * 24 * 60 * 60 * 1000)
    //matrix.set(HswingLowData, 0, 2, time[HrightBars] + daysToShift8 * 24 * 60 * 60 * 1000)
    //matrix.set(HswingLowData, 0, 3, time[HrightBars] + 17 * 24 * 60 * 60 * 1000)
    matrix.set(HswingLowData, 0, 3, time[HrightBars] + daysToShift17 * 24 * 60 * 60 * 1000)
    //matrix.set(HswingLowData, 0, 4, time[HrightBars] + 34 * 24 * 60 * 60 * 1000)
    matrix.set(HswingLowData, 0, 4, time[HrightBars] + daysToShift34 * 24 * 60 * 60 * 1000)
    //matrix.set(HswingLowData, 0, 5, time[HrightBars] + 68 * 24 * 60 * 60 * 1000)
    matrix.set(HswingLowData, 0, 5, time[HrightBars] + daysToShift68 * 24 * 60 * 60 * 1000)
    matrix.set(HswingLowData, 0, 6, time[HrightBars] + 136 * 24 * 60 * 60 * 1000)
    matrix.set(HswingLowData, 0, 7, time[HrightBars] + 273 * 24 * 60 * 60 * 1000)
    matrix.set(HswingLowData, 0, 8, time[HrightBars] + 546 * 24 * 60 * 60 * 1000)
    matrix.set(HswingLowData, 0, 9, time[HrightBars] + 1637 * 24 * 60 * 60 * 1000)


// ***********************************

// Declare swingHighData as a matrix
//var swingHighData = matrix.new<float>(nStore, 10)

// Initialize the swingHighData matrix with the desired dimensions
var HswingHighData = matrix.new<float>(nStore, 10, float(na))
//var HsortedSwingHighData = matrix.new<float>(nStore, 10, float(na))


if not na(HpivotHigh) 
    // Shift the existing rows down
    for i = nStore - 1 to 1
        for j = 0 to 9
            matrix.set(HswingHighData, i, j, matrix.get(HswingHighData, i - 1, j))

    // Calculate the number of days to shift for each cycle
    while time[HrightBars] + daysToShift8 * 24 * 60 * 60 * 1000 < timenow - nHDatePast * 24 * 60 * 60 * 1000
        daysToShift8 += 8

    while time[HrightBars] + daysToShift17 * 24 * 60 * 60 * 1000 < timenow - nHDatePast * 24 * 60 * 60 * 1000
        daysToShift17 += 17

    while time[HrightBars] + daysToShift34 * 24 * 60 * 60 * 1000 < timenow - nHDatePast * 24 * 60 * 60 * 1000
        daysToShift34 += 34

    while time[HrightBars] + daysToShift68 * 24 * 60 * 60 * 1000 < timenow - nHDatePast * 24 * 60 * 60 * 1000
        daysToShift68 += 68
    
    // Add the new data to the first row
    matrix.set(HswingHighData, 0, 0, high[HrightBars])
    matrix.set(HswingHighData, 0, 1, time[HrightBars])
    //matrix.set(HswingHighData, 0, 2, time[HrightBars] + daysToShift8 * 24 * 60 * 60 * 1000)
    matrix.set(HswingHighData, 0, 2, time[HrightBars] + 8 * 24 * 60 * 60 * 1000)
    matrix.set(HswingHighData, 0, 3, time[HrightBars] + daysToShift17 * 24 * 60 * 60 * 1000)
    //matrix.set(HswingHighData, 0, 3, time[HrightBars] + 17 * 24 * 60 * 60 * 1000)
    matrix.set(HswingHighData, 0, 4, time[HrightBars] + daysToShift34 * 24 * 60 * 60 * 1000)
    //matrix.set(HswingHighData, 0, 4, time[HrightBars] + 34 * 24 * 60 * 60 * 1000)
    matrix.set(HswingHighData, 0, 5, time[HrightBars] + daysToShift68 * 24 * 60 * 60 * 1000)
    //matrix.set(HswingHighData, 0, 5, time[HrightBars] + 68 * 24 * 60 * 60 * 1000)
    matrix.set(HswingHighData, 0, 6, time[HrightBars] + 136 * 24 * 60 * 60 * 1000)
    matrix.set(HswingHighData, 0, 7, time[HrightBars] + 273 * 24 * 60 * 60 * 1000)
    matrix.set(HswingHighData, 0, 8, time[HrightBars] + 546 * 24 * 60 * 60 * 1000)
    matrix.set(HswingHighData, 0, 9, time[HrightBars] + 1637 * 24 * 60 * 60 * 1000)


// Create table
//var table swingTable = table.new(position.top_right, 6, nswing+1, border_color=txt_col,border_width=1,frame_color=txt_col,frame_width=1)

//var table_position_low = dash_loc_low == 'Top Left' ? position.top_left : dash_loc_low == 'Bottom Left' ? position.bottom_left : dash_loc_low == 'Top Right' ? position.top_right : position.bottom_right
//var table_position_high = dash_loc_high == 'Top Left' ? position.top_left : dash_loc_high == 'Bottom Left' ? position.bottom_left : dash_loc_high == 'Top Right' ? position.top_right : position.bottom_right
//var table_position_extra = dash_loc_extra == 'Top Left' ? position.top_left : dash_loc_extra == 'Bottom Left' ? position.bottom_left : dash_loc_extra == 'Top Right' ? position.top_right : position.bottom_right

var table_position_extra = dash_loc_extra == 'Top Left' ? position.top_left : dash_loc_extra == 'Bottom Left' ? position.bottom_left : dash_loc_extra == 'Top Right' ? position.top_right : dash_loc_extra == 'Mid Left' ? position.middle_left : dash_loc_extra == 'Mid Right' ? position.middle_right : position.bottom_right

var table_text_size = text_size == 'Tiny' ? size.tiny : text_size == 'Small' ? size.small : text_size == 'Normal' ? size.normal : size.large

    
currentDate = time
float cellDate = 0.0
float cellDate0 = 0.0
fourteenDaysInFuture = int(timenow + nNearFuture * 24 * 60 * 60 * 1000)

if debugHigh
    var table swingHighTable = table.new(position.bottom_right, 15, nStore + 1, border_width=1)

    // Add the table header
    table.cell(swingHighTable, 0, 0, "Row", text_color=color.white, bgcolor=color.black,text_size=size.small)
    table.cell(swingHighTable, 1, 0, "High", text_color=color.white, bgcolor=color.black,text_size=size.small)
    table.cell(swingHighTable, 2, 0, "Time", text_color=color.white, bgcolor=   color.black,text_size=size.small)
    table.cell(swingHighTable, 3, 0, "+22.5", text_color=color.white, bgcolor=color.black,text_size=size.small)
    table.cell(swingHighTable, 4, 0, "+45", text_color=color.white, bgcolor=color.black,text_size=size.small)
    table.cell(swingHighTable, 5, 0, "+90", text_color=color.white, bgcolor=color.black,text_size=size.small)
    table.cell(swingHighTable, 6, 0, "+135", text_color=color.white, bgcolor=color.black,text_size=size.small)
    table.cell(swingHighTable, 7, 0, "+180", text_color=color.white, bgcolor=color.black,text_size=size.small)
    table.cell(swingHighTable, 8, 0, "+225", text_color=color.white, bgcolor=color.black,text_size=size.small)
    table.cell(swingHighTable, 9, 0, "+270", text_color=color.white, bgcolor=color.black,text_size=size.small)
    table.cell(swingHighTable, 10, 0, "+315", text_color=color.white, bgcolor=color.black,text_size=size.small)

    //table.cell(swingHighTable, 0, 1, str.tostring(1), text_color=color.white, bgcolor=color.black,text_size=size.small)
    //table.cell(swingHighTable, 1, 1, str.tostring(matrix.get(swingHighData, 0, 0)), text_color=color.green, bgcolor=color.black,text_size=size.small)
    //table.cell(swingHighTable, 2, 1, str.format("{0,date,yyyy-MM-dd}",matrix.get(swingHighData, 0, 1)), text_color=color.white, bgcolor=color.black,text_size=size.small)
    //table.cell(swingHighTable, 3, 1, str.format("{0,date,yyyy-MM-dd}",matrix.get(swingHighData, 0, 2)), text_color=color.white, bgcolor=color.black,text_size=size.small)
    //table.cell(swingHighTable, 4, 1, str.format("{0,date,yyyy-MM-dd}",matrix.get(swingHighData, 0, 3)), text_color=color.white, bgcolor=color.black,text_size=size.small)
    //table.cell(swingHighTable, 5, 1, str.format("{0,date,yyyy-MM-dd}",matrix.get(swingHighData, 0, 4)), text_color=color.white, bgcolor=color.black,text_size=size.small)
    //table.cell(swingHighTable, 6, 1, str.format("{0,date,yyyy-MM-dd}",matrix.get(swingHighData, 0, 5)), text_color=color.white, bgcolor=color.black,text_size=size.small)
    //table.cell(swingHighTable, 7, 1, str.format("{0,date,yyyy-MM-dd}",matrix.get(swingHighData, 0, 6)), text_color=color.white, bgcolor=color.black,text_size=size.small)
    //table.cell(swingHighTable, 8, 1, str.format("{0,date,yyyy-MM-dd}",matrix.get(swingHighData, 0, 7)), text_color=color.white, bgcolor=color.black,text_size=size.small)
    //table.cell(swingHighTable, 9, 1, str.format("{0,date,yyyy-MM-dd}",matrix.get(swingHighData, 0, 8)), text_color=color.white, bgcolor=color.black,text_size=size.small)
    //table.cell(swingHighTable, 10, 1, str.format("{0,date,yyyy-MM-dd}",matrix.get(swingHighData, 0, 9)), text_color=color.white, bgcolor=color.black,text_size=size.small)

    //table.cell(swingHighTable, 0, 2, str.tostring(2), text_color=color.white, bgcolor=color.black)

    //Add the table rows
    for k = 0 to nStore-1
        table.cell(swingHighTable, 0,  k+1, str.tostring(k), text_color=color.red, bgcolor=color.black,text_size=size.small)
        table.cell(swingHighTable, 1,  k+1, str.tostring(matrix.get(swingHighData, k,0)), text_color=color.green, bgcolor=color.black,text_size=size.small)
        table.cell(swingHighTable, 2 , k+1 , str.format("{0,date,yyyy-MM-dd}", matrix.get(swingHighData, k,1)), text_color=color.white, bgcolor=color.black,text_size=size.small)
    
        //for j = 2 to 10
        //    table.cell(swingHighTable, j , k+1 , str.format("{0,date,yyyy-MM-dd}",matrix.get(swingHighData, k,j-1)), text_color=color.white, bgcolor=color.black,text_size=size.small)

        for j = 3 to 10
        
            cellDate := matrix.get(swingHighData, k, j-1)

            //table.cell(swingHighTable, j , k+1 , str.format("{0,date,yyyy-MM-dd}", cellDate), text_color=color.white, bgcolor=color.black,text_size=size.small)
        
            if (cellDate >= currentDate - nPastDaystoInclude * 86400000) and (cellDate <= fourteenDaysInFuture)
                table.cell(swingHighTable, j , k+1 , str.format("{0,date,yyyy-MM-dd}", cellDate), text_color=color.white, bgcolor=color.black,text_size=size.small)
            else
                table.cell(swingHighTable, j , k+1 , "", text_color=color.white, bgcolor=color.black,text_size=size.small)

            table.cell(swingHighTable, 11,  k+1, str.format("{0,date,yyyy-MM-dd}", cellDate), text_color=color.red, bgcolor=color.black,text_size=size.small)
            table.cell(swingHighTable, 12,  k+1, str.format("{0,date,yyyy-MM-dd}", currentDate), text_color=color.red, bgcolor=color.black,text_size=size.small)
            table.cell(swingHighTable, 13,  k+1, str.format("{0,date,yyyy-MM-dd}", fourteenDaysInFuture), text_color=color.red, bgcolor=color.black,text_size=size.small)
            table.cell(swingHighTable, 14,  k+1, str.tostring(k) + "," + str.tostring(j-1), text_color=color.red, bgcolor=color.black,text_size=size.small)


if debugLow
    var table swingLowTable = table.new(position.bottom_right, 15, nStore + 1, border_width=1)

    // Add the table header
    table.cell(swingLowTable, 0, 0, "Row", text_color=color.white, bgcolor=color.black,text_size=size.small)
    table.cell(swingLowTable, 1, 0, "Low", text_color=color.white, bgcolor=color.black,text_size=size.small)
    table.cell(swingLowTable, 2, 0, "Time", text_color=color.white, bgcolor=   color.black,text_size=size.small)
    table.cell(swingLowTable, 3, 0, "+22.5", text_color=color.white, bgcolor=color.black,text_size=size.small)
    table.cell(swingLowTable, 4, 0, "+45", text_color=color.white, bgcolor=color.black,text_size=size.small)
    table.cell(swingLowTable, 5, 0, "+90", text_color=color.white, bgcolor=color.black,text_size=size.small)
    table.cell(swingLowTable, 6, 0, "+135", text_color=color.white, bgcolor=color.black,text_size=size.small)
    table.cell(swingLowTable, 7, 0, "+180", text_color=color.white, bgcolor=color.black,text_size=size.small)
    table.cell(swingLowTable, 8, 0, "+225", text_color=color.white, bgcolor=color.black,text_size=size.small)
    table.cell(swingLowTable, 9, 0, "+270", text_color=color.white, bgcolor=color.black,text_size=size.small)
    table.cell(swingLowTable, 10, 0, "+315", text_color=color.white, bgcolor=color.black,text_size=size.small)

    //table.cell(swingLowTable, 0, 1, str.tostring(1), text_color=color.white, bgcolor=color.black,text_size=size.small)
    //table.cell(swingLowTable, 1, 1, str.tostring(matrix.get(swingLowData, 0, 0)), text_color=color.green, bgcolor=color.black,text_size=size.small)
    //table.cell(swingLowTable, 2, 1, str.format("{0,date,yyyy-MM-dd}",matrix.get(swingLowData, 0, 1)), text_color=color.white, bgcolor=color.black,text_size=size.small)
    //table.cell(swingLowTable, 3, 1, str.format("{0,date,yyyy-MM-dd}",matrix.get(swingLowData, 0, 2)), text_color=color.white, bgcolor=color.black,text_size=size.small)
    //table.cell(swingLowTable, 4, 1, str.format("{0,date,yyyy-MM-dd}",matrix.get(swingLowData, 0, 3)), text_color=color.white, bgcolor=color.black,text_size=size.small)
    //table.cell(swingLowTable, 5, 1, str.format("{0,date,yyyy-MM-dd}",matrix.get(swingLowData, 0, 4)), text_color=color.white, bgcolor=color.black,text_size=size.small)
    //table.cell(swingLowTable, 6, 1, str.format("{0,date,yyyy-MM-dd}",matrix.get(swingLowData, 0, 5)), text_color=color.white, bgcolor=color.black,text_size=size.small)
    //table.cell(swingLowTable, 7, 1, str.format("{0,date,yyyy-MM-dd}",matrix.get(swingLowData, 0, 6)), text_color=color.white, bgcolor=color.black,text_size=size.small)
    //table.cell(swingLowTable, 8, 1, str.format("{0,date,yyyy-MM-dd}",matrix.get(swingLowData, 0, 7)), text_color=color.white, bgcolor=color.black,text_size=size.small)
    //table.cell(swingLowTable, 9, 1, str.format("{0,date,yyyy-MM-dd}",matrix.get(swingLowData, 0, 8)), text_color=color.white, bgcolor=color.black,text_size=size.small)
    //table.cell(swingLowTable, 10, 1, str.format("{0,date,yyyy-MM-dd}",matrix.get(swingLowData, 0, 9)), text_color=color.white, bgcolor=color.black,text_size=size.small)

    //table.cell(swingLowTable, 0, 2, str.tostring(2), text_color=color.white, bgcolor=color.black)

    //Add the table rows
    for k = 0 to nStore-1
        table.cell(swingLowTable, 0,  k+1, str.tostring(k), text_color=color.red, bgcolor=color.black,text_size=size.small)
        table.cell(swingLowTable, 1,  k+1, str.tostring(matrix.get(swingLowData, k,0)), text_color=color.green, bgcolor=color.black,text_size=size.small)
        table.cell(swingLowTable, 2 , k+1 , str.format("{0,date,yyyy-MM-dd}", matrix.get(swingLowData, k,1)), text_color=color.white, bgcolor=color.black,text_size=size.small)

        //for j = 2 to 10
        //    table.cell(swingLowTable, j , k+1 , str.format("{0,date,yyyy-MM-dd}",matrix.get(swingLowData, k,j-1)), text_color=color.white, bgcolor=color.black,text_size=size.small)
        
        for j = 3 to 10
        
            cellDate := matrix.get(swingLowData, k, j-1)
        
            if (cellDate >= currentDate - nPastDaystoInclude * 86400000) and (cellDate <= fourteenDaysInFuture)
                table.cell(swingLowTable, j , k+1 , str.format("{0,date,yyyy-MM-dd}", cellDate), text_color=color.white, bgcolor=color.black,text_size=size.small)
            else
                table.cell(swingLowTable, j , k+1 , "", text_color=color.white, bgcolor=color.black,text_size=size.small)

            table.cell(swingLowTable, 11,  k+1, str.format("{0,date,yyyy-MM-dd}", cellDate), text_color=color.red, bgcolor=color.black,text_size=size.small)
            table.cell(swingLowTable, 12,  k+1, str.format("{0,date,yyyy-MM-dd}", currentDate), text_color=color.red, bgcolor=color.black,text_size=size.small)
            table.cell(swingLowTable, 13,  k+1, str.format("{0,date,yyyy-MM-dd}", fourteenDaysInFuture), text_color=color.red, bgcolor=color.black,text_size=size.small)
            table.cell(swingLowTable, 14,  k+1, str.tostring(k) + "," + str.tostring(j-1), text_color=color.red, bgcolor=color.black,text_size=size.small)


if HdebugHigh
    var table HswingHighTable = table.new(position.bottom_right, 15, nStore + 1, border_width=1)

    // Add the table header
    table.cell(HswingHighTable, 0, 0, "Row", text_color=color.white, bgcolor=color.black,text_size=size.small)
    table.cell(HswingHighTable, 1, 0, "High", text_color=color.white, bgcolor=color.black,text_size=size.small)
    table.cell(HswingHighTable, 2, 0, "Time", text_color=color.white, bgcolor=   color.black,text_size=size.small)
    table.cell(HswingHighTable, 3, 0, "10D", text_color=color.white, bgcolor=color.black,text_size=size.small)
    table.cell(HswingHighTable, 4, 0, "20D", text_color=color.white, bgcolor=color.black,text_size=size.small)
    table.cell(HswingHighTable, 5, 0, "40D", text_color=color.white, bgcolor=color.black,text_size=size.small)
    table.cell(HswingHighTable, 6, 0, "80D", text_color=color.white, bgcolor=color.black,text_size=size.small)
    table.cell(HswingHighTable, 7, 0, "20W", text_color=color.white, bgcolor=color.black,text_size=size.small)
    table.cell(HswingHighTable, 8, 0, "40W", text_color=color.white, bgcolor=color.black,text_size=size.small)
    table.cell(HswingHighTable, 9, 0, "18M", text_color=color.white, bgcolor=color.black,text_size=size.small)
    table.cell(HswingHighTable, 10, 0, "54M", text_color=color.white, bgcolor=color.black,text_size=size.small)


    //Add the table rows
    for k = 0 to nStore-1
        table.cell(HswingHighTable, 0,  k+1, str.tostring(k), text_color=color.red, bgcolor=color.black,text_size=size.small)
        table.cell(HswingHighTable, 1,  k+1, str.tostring(matrix.get(HswingHighData, k,0)), text_color=color.green, bgcolor=color.black,text_size=size.small)
        table.cell(HswingHighTable, 2 , k+1 , str.format("{0,date,yyyy-MM-dd}", matrix.get(HswingHighData, k,1)), text_color=color.white, bgcolor=color.black,text_size=size.small)
    
        //for j = 2 to 10
        //    table.cell(HswingHighTable, j , k+1 , str.format("{0,date,yyyy-MM-dd}",matrix.get(swingHighData, k,j-1)), text_color=color.white, bgcolor=color.black,text_size=size.small)

        for j = 3 to 10
        
            cellDate := matrix.get(HswingHighData, k, j-1)
            
            //table.cell(HHswingHighTable, j , k+1 , str.format("{0,date,yyyy-MM-dd}", cellDate), text_color=color.white, bgcolor=color.black,text_size=size.small)
        
            if (cellDate >= currentDate - nPastDaystoInclude * 86400000) and (cellDate <= fourteenDaysInFuture)
                table.cell(HswingHighTable, j , k+1 , str.format("{0,date,yyyy-MM-dd}", cellDate), text_color=color.white, bgcolor=color.black,text_size=size.small)
            else
                table.cell(HswingHighTable, j , k+1 , "", text_color=color.white, bgcolor=color.black,text_size=size.small)

            table.cell(HswingHighTable, 11,  k+1, str.format("{0,date,yyyy-MM-dd}", cellDate), text_color=color.red, bgcolor=color.black,text_size=size.small)
            table.cell(HswingHighTable, 12,  k+1, str.format("{0,date,yyyy-MM-dd}", currentDate), text_color=color.red, bgcolor=color.black,text_size=size.small)
            table.cell(HswingHighTable, 13,  k+1, str.format("{0,date,yyyy-MM-dd}", fourteenDaysInFuture), text_color=color.red, bgcolor=color.black,text_size=size.small)
            table.cell(HswingHighTable, 14,  k+1, str.tostring(k) + "," + str.tostring(j-1), text_color=color.red, bgcolor=color.black,text_size=size.small)


if HdebugLow
    var table HswingLowTable = table.new(position.bottom_right, 15, nStore + 1, border_width=1)

    // Add the table header
    table.cell(HswingLowTable, 0, 0, "Row", text_color=color.white, bgcolor=color.black,text_size=size.small)
    table.cell(HswingLowTable, 1, 0, "Low", text_color=color.white, bgcolor=color.black,text_size=size.small)
    table.cell(HswingLowTable, 2, 0, "Time", text_color=color.white, bgcolor=   color.black,text_size=size.small)
    table.cell(HswingLowTable, 3, 0, "10D", text_color=color.white, bgcolor=color.black,text_size=size.small)
    table.cell(HswingLowTable, 4, 0, "20D", text_color=color.white, bgcolor=color.black,text_size=size.small)
    table.cell(HswingLowTable, 5, 0, "40D", text_color=color.white, bgcolor=color.black,text_size=size.small)
    table.cell(HswingLowTable, 6, 0, "80D", text_color=color.white, bgcolor=color.black,text_size=size.small)
    table.cell(HswingLowTable, 7, 0, "20W", text_color=color.white, bgcolor=color.black,text_size=size.small)
    table.cell(HswingLowTable, 8, 0, "40W", text_color=color.white, bgcolor=color.black,text_size=size.small)
    table.cell(HswingLowTable, 9, 0, "18M", text_color=color.white, bgcolor=color.black,text_size=size.small)
    table.cell(HswingLowTable, 10, 0, "54M", text_color=color.white, bgcolor=color.black,text_size=size.small)

    //table.cell(HswingLowTable, 0, 1, str.tostring(1), text_color=color.white, bgcolor=color.black,text_size=size.small)
    //table.cell(HswingLowTable, 1, 1, str.tostring(matrix.get(swingLowData, 0, 0)), text_color=color.green, bgcolor=color.black,text_size=size.small)
    //table.cell(HswingLowTable, 2, 1, str.format("{0,date,yyyy-MM-dd}",matrix.get(swingLowData, 0, 1)), text_color=color.white, bgcolor=color.black,text_size=size.small)
    //table.cell(HswingLowTable, 3, 1, str.format("{0,date,yyyy-MM-dd}",matrix.get(swingLowData, 0, 2)), text_color=color.white, bgcolor=color.black,text_size=size.small)
    //table.cell(HswingLowTable, 4, 1, str.format("{0,date,yyyy-MM-dd}",matrix.get(swingLowData, 0, 3)), text_color=color.white, bgcolor=color.black,text_size=size.small)
    //table.cell(HswingLowTable, 5, 1, str.format("{0,date,yyyy-MM-dd}",matrix.get(swingLowData, 0, 4)), text_color=color.white, bgcolor=color.black,text_size=size.small)
    //table.cell(HswingLowTable, 6, 1, str.format("{0,date,yyyy-MM-dd}",matrix.get(swingLowData, 0, 5)), text_color=color.white, bgcolor=color.black,text_size=size.small)
    //table.cell(HswingLowTable, 7, 1, str.format("{0,date,yyyy-MM-dd}",matrix.get(swingLowData, 0, 6)), text_color=color.white, bgcolor=color.black,text_size=size.small)
    //table.cell(HswingLowTable, 8, 1, str.format("{0,date,yyyy-MM-dd}",matrix.get(swingLowData, 0, 7)), text_color=color.white, bgcolor=color.black,text_size=size.small)
    //table.cell(HswingLowTable, 9, 1, str.format("{0,date,yyyy-MM-dd}",matrix.get(swingLowData, 0, 8)), text_color=color.white, bgcolor=color.black,text_size=size.small)
    //table.cell(HswingLowTable, 10, 1, str.format("{0,date,yyyy-MM-dd}",matrix.get(swingLowData, 0, 9)), text_color=color.white, bgcolor=color.black,text_size=size.small)

    //table.cell(HswingLowTable, 0, 2, str.tostring(2), text_color=color.white, bgcolor=color.black)

    //Add the table rows
    for k = 0 to nStore-1
        table.cell(HswingLowTable, 0,  k+1, str.tostring(k), text_color=color.red, bgcolor=color.black,text_size=size.small)
        table.cell(HswingLowTable, 1,  k+1, str.tostring(matrix.get(HswingLowData, k,0)), text_color=color.green, bgcolor=color.black,text_size=size.small)
        table.cell(HswingLowTable, 2 , k+1 , str.format("{0,date,yyyy-MM-dd}", matrix.get(swingLowData, k,1)), text_color=color.white, bgcolor=color.black,text_size=size.small)

        //for j = 2 to 10
        //    table.cell(HswingLowTable, j , k+1 , str.format("{0,date,yyyy-MM-dd}",matrix.get(swingLowData, k,j-1)), text_color=color.white, bgcolor=color.black,text_size=size.small)

        for j = 3 to 10
        
            cellDate := matrix.get(HswingLowData, k, j-1)
        
            if (cellDate >= currentDate - nPastDaystoInclude * 86400000) and (cellDate <= fourteenDaysInFuture)
                table.cell(HswingLowTable, j , k+1 , str.format("{0,date,yyyy-MM-dd}", cellDate), text_color=color.white, bgcolor=color.black,text_size=size.small)
            else
                table.cell(HswingLowTable, j , k+1 , "", text_color=color.white, bgcolor=color.black,text_size=size.small)

            table.cell(HswingLowTable, 11,  k+1, str.format("{0,date,yyyy-MM-dd}", cellDate), text_color=color.red, bgcolor=color.black,text_size=size.small)
            table.cell(HswingLowTable, 12,  k+1, str.format("{0,date,yyyy-MM-dd}", currentDate), text_color=color.red, bgcolor=color.black,text_size=size.small)
            table.cell(HswingLowTable, 13,  k+1, str.format("{0,date,yyyy-MM-dd}", fourteenDaysInFuture), text_color=color.red, bgcolor=color.black,text_size=size.small)
            table.cell(HswingLowTable, 14,  k+1, str.tostring(k) + "," + str.tostring(j-1), text_color=color.red, bgcolor=color.black,text_size=size.small)

// Function to get the timestamp for approximate equinox and solstice dates
getTimestamp(year, month, day) =>
    timestamp(year, month, day, 0, 0)

// Current year
currentYear = year(timenow)

// Approximate dates for equinoxes and solstices
springEquinoxMonth = 3
springEquinoxDay = 20
summerSolsticeMonth = 6
summerSolsticeDay = 21
autumnEquinoxMonth = 9
autumnEquinoxDay = 23
winterSolsticeMonth = 12
winterSolsticeDay = 21

// Calculate timestamps for the current year
spring_equinox_timestamp = getTimestamp(currentYear, springEquinoxMonth, springEquinoxDay)
summer_solstice_timestamp = getTimestamp(currentYear, summerSolsticeMonth, summerSolsticeDay)
autumn_equinox_timestamp = getTimestamp(currentYear, autumnEquinoxMonth, autumnEquinoxDay)
winter_solstice_timestamp = getTimestamp(currentYear, winterSolsticeMonth, winterSolsticeDay)

// Create a table to display the turning dates
// 4 rows for sean soltice date + max (10) * nswinhfor Gann + max (10) * nHswinh for hurst
var table gann_turning_dates = table.new(position=table_position_extra , columns=2, rows=4+nswing+10*nHswing*10, border_color=txt_col,border_width=1,frame_color=txt_col,frame_width=1)

int table_cnt = 0
int table_cnt2 = 0
int _display_low = 0
int _display_high = 0
int _display_hlow = 0
int _display_hhigh = 0
string _txt = ""

// Update the table with the turning dates
if barstate.islast 
    table.cell(gann_turning_dates, 0, 0, "Turning Date", text_color=txt_col, text_size=table_text_size)
    table.cell(gann_turning_dates, 1, 0, "Date", text_color=txt_col, text_size=table_text_size)
    table_cnt := table_cnt + 1    

    table.cell(gann_turning_dates, 0, 1, "Spring Equinox", text_color=txt_col, text_size=table_text_size)
    table.cell(gann_turning_dates, 1, 1, str.format("{0,date,yyyy-MM-dd}", spring_equinox_timestamp), text_color=txt_col, text_size=table_text_size)
    table_cnt := table_cnt + 1 

    table.cell(gann_turning_dates, 0, 2, "Summer Solstice", text_color=txt_col, text_size=table_text_size)
    table.cell(gann_turning_dates, 1, 2, str.format("{0,date,yyyy-MM-dd}", summer_solstice_timestamp), text_color=txt_col, text_size=table_text_size)
    table_cnt := table_cnt + 1     

    table.cell(gann_turning_dates, 0, 3, "Autumn Equinox", text_color=txt_col, text_size=table_text_size)
    table.cell(gann_turning_dates, 1, 3, str.format("{0,date,yyyy-MM-dd}", autumn_equinox_timestamp), text_color=txt_col, text_size=table_text_size)
    table_cnt := table_cnt + 1     

    table.cell(gann_turning_dates, 0, 4, "Winter Solstice", text_color=txt_col, text_size=table_text_size)
    table.cell(gann_turning_dates, 1, 4, str.format("{0,date,yyyy-MM-dd}", winter_solstice_timestamp), text_color=txt_col, text_size=table_text_size)
    table_cnt := table_cnt + 1    


// ====================================================================================

    //for k = 1 to nswing
    for j = 2 to 9
        _display_high := 0
        for k = 1 to nStore - 1

            var sortedSwingHighData = matrix.copy(swingHighData)
            if not sortHigh
                cellDate := matrix.get(swingHighData, k, j-1)
                cellDate0 := matrix.get(swingHighData, k, 1)
            else
                matrix.sort(sortedSwingHighData, j, order.ascending)
                cellDate := matrix.get(sortedSwingHighData, k, j-1)
                cellDate0 := matrix.get(swingHighData, k, 1)

            if (j ==3)
                _txt := "+22.5"
            else if (j == 4)
                _txt := "+45"
            else if (j == 5)
                _txt := "+90"
            else if (j == 6)
                _txt := "+135"
            else if (j == 7)
                _txt := "+180"
            else if (j == 8)
                _txt := "+225"
            else if (j == 9)
                _txt := "+270"
            else 
                _txt := "+315"
        
            if (_display_high < nswing) and (cellDate >= currentDate - nPastDaystoInclude * 86400000) and (cellDate <= fourteenDaysInFuture)
                table.cell(gann_turning_dates, 0, table_cnt+table_cnt2, "Gann H (" + str.format("{0,date,YY-MM-dd}", cellDate0) + ") " + _txt, text_color=txt_col_bear, text_size=table_text_size,bgcolor = color.new (color.gray, transp=60))
                table.cell(gann_turning_dates, 1, table_cnt+table_cnt2, str.format("{0,date,yyyy-MM-dd}", cellDate), text_color=txt_col_bear, text_size=table_text_size,bgcolor = color.new (color.gray, transp=60))
                table_cnt2 := table_cnt2 + 1 
                _display_high := _display_high+ 1

// ====================================================================================

    //for k = 1 to nHswing
    for j = 2 to 9
        _display_hhigh := 0
        for k = 1 to nStore - 1

            var HsortedSwingHighData = matrix.copy(HswingHighData)
            if not HsortHigh
                cellDate := matrix.get(HswingHighData, k, j-1)
                cellDate0 := matrix.get(HswingHighData, k, 1)
            else
                matrix.sort(HsortedSwingHighData, j, order.ascending)
                cellDate := matrix.get(HsortedSwingHighData, k, j-1)
                cellDate0 := matrix.get(HswingHighData, k, 1)

            if (j ==3)
                _txt := "10D"
            else if (j == 4)
                _txt := "20D"
            else if (j == 5)
                _txt := "40D"
            else if (j == 6)
                _txt := "80D"
            else if (j == 7)
                _txt := "20W"
            else if (j == 8)
                _txt := "40W"
            else if (j == 9)
                _txt := "54W"
            else 
                _txt := "18M"
        
            if (_display_hhigh < nHswing) and (cellDate >= currentDate - nPastDaystoInclude * 86400000) and (cellDate <= fourteenDaysInFuture)
                table.cell(gann_turning_dates, 0, table_cnt+table_cnt2, "Hurst H (" + str.format("{0,date,YY-MM-dd}", cellDate0) + ") " + _txt, text_color=txt_col_bear, text_size=table_text_size)
                table.cell(gann_turning_dates, 1, table_cnt+table_cnt2, str.format("{0,date,yyyy-MM-dd}", cellDate), text_color=txt_col_bear, text_size=table_text_size)
                table_cnt2 := table_cnt2 + 1 
                _display_hhigh := _display_hhigh + 1

// ====================================================================================

    //for k = 1 to nswing
    for j = 2 to 9
        _display_low := 0
        for k = 1 to nStore - 1

            var sortedSwingLowData = matrix.copy(swingLowData)
            if not sortLow
                cellDate := matrix.get(swingLowData, k, j-1)
                cellDate0 := matrix.get(swingLowData, k, 1)
            else
                matrix.sort(sortedSwingLowData, j, order.ascending)
                cellDate := matrix.get(sortedSwingLowData, k, j-1)
                cellDate0 := matrix.get(swingLowData, k, 1)    

            if (j ==3)
                _txt := "+22.5"
            else if (j == 4)
                _txt := "+45"
            else if (j == 5)
                _txt := "+90"
            else if (j == 6)
                _txt := "+135"
            else if (j == 7)
                _txt := "+180"
            else if (j == 8)
                _txt := "+225"
            else if (j == 9)
                _txt := "+270"
            else 
                _txt := "+315"
        
            if (_display_low < nswing) and (cellDate >= currentDate - nPastDaystoInclude * 86400000) and (cellDate <= fourteenDaysInFuture)
                table.cell(gann_turning_dates, 0, table_cnt+table_cnt2, "Gann L (" + str.format("{0,date,YY-MM-dd}", cellDate0) + ") " + _txt, text_color=txt_col_bull, text_size=table_text_size,bgcolor = color.new (color.gray, transp=60))
                table.cell(gann_turning_dates, 1, table_cnt+table_cnt2, str.format("{0,date,yyyy-MM-dd}", cellDate), text_color=txt_col_bull, text_size=table_text_size, bgcolor = color.new (color.gray, transp=60))
                table_cnt2 := table_cnt2 + 1 
                _display_low := _display_low + 1

// ====================================================================================  
    
    //for k = 1 to nHswing
    for j = 2 to 9
        _display_hlow := 0
        for k = 1 to nStore - 1

            var HsortedSwingLowData = matrix.copy(HswingLowData)
            if not HsortLow
                cellDate := matrix.get(HswingLowData, k, j-1)
                cellDate0 := matrix.get(HswingLowData, k, 1)
            else
                matrix.sort(HsortedSwingLowData, j, order.ascending)
                cellDate := matrix.get(HsortedSwingLowData, k, j-1)
                cellDate0 := matrix.get(HswingLowData, k, 1)

            if (j ==3)
                _txt := "10D"
            else if (j == 4)
                _txt := "20D"
            else if (j == 5)
                _txt := "40D"
            else if (j == 6)
                _txt := "80D"
            else if (j == 7)
                _txt := "20W"
            else if (j == 8)
                _txt := "40W"
            else if (j == 9)
                _txt := "54W"
            else 
                _txt := "18M"

        
            if (_display_hlow < nHswing) and (cellDate >= currentDate - nPastDaystoInclude * 86400000) and (cellDate <= fourteenDaysInFuture)
                table.cell(gann_turning_dates, 0, table_cnt+table_cnt2, "Hurst L (" + str.format("{0,date,YY-MM-dd}", cellDate0) + ") " + _txt, text_color=txt_col_bull, text_size=table_text_size)
                table.cell(gann_turning_dates, 1, table_cnt+table_cnt2, str.format("{0,date,yyyy-MM-dd}", cellDate), text_color=txt_col_bull, text_size=table_text_size)
                table_cnt2 := table_cnt2 + 1 
                _display_hlow := _display_hlow + 1

Overview

Tables show the pivot dates and nearby future dates, with colours for bullish and bearish pivots. The left and right bar counts set how pivots are found. It is for planning around dates and gives no trade signals. Pivots confirm only after the right bars have printed. Version 1.2 adds date sorting options.

Details

Published by

mikeyhu70 on GitHub

Code credit

congacindy, as written in the script's header

Type

Indicator, Pine Script v5

Draws

On the price chart

Category

Support & resistance

Markets

Any symbol

Timeframes

Any timeframe

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.

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Left Bars Gannint6leftBars
Right Bars Gannint6rightBars
Left Bars Hurstint12HleftBars
Right Bars Hurstint12HrightBars
Number of Gann Swing to Displayint2nswing
Number of Hurst Swing to Displayint1nHswing
Number of Swing?int15nStore
Number of PAST Days to include for final output?int2nPastDaystoInclude
Number of Days in the past to include for Hurst Cycle?int3nHDatePast
Number of Days in the future to display?int21nNearFuture
Display Debug for Gann Pivot HighboolfalsedebugHigh
Display Debug for Gann Pivot LowboolfalsedebugLow
Show all 23 settings
SettingTypeDefaultVariable
Display Debug Hurst Cycle Pivot HighboolfalseHdebugHigh
Display Debug Hurst Cycle Pivot LowboolfalseHdebugLow
Sort Gann Pivot High DatebooltruesortHigh
Sort Gann Pivot Low DatebooltruesortLow
Sort Hurst Pivot High DatebooltrueHsortHigh
Sort Hurst Pivot Low DatebooltrueHsortLow
Text/Frame Colorcolorcolor.rgb(76, 244, 169)txt_col_bull
Text/Frame Colorcolorcolor.rgb(228, 95, 235)txt_col_bear
Text/Frame Colorcolorcolor.rgb(182, 186, 200)txt_col
Dashboard Location for Soltice ...stringTop Leftdash_loc_extra
Dashboard SizestringTinytext_size
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

948 stars

Moving Average Channel plots separate simple moving averages for upper and lower bands on the price chart. It fills the space between bands with semi-transparent color and colors bars green above the upper band, red below the lower band, or gray in between. Us

Indicator v4 Moving averagesSupport & resistance
Updated 11 days ago · GPL-3.0 GitHub repository of Moving Average Channel

ICT Equal Highs and Lows

by ArunKBhaskar
575 stars

This overlay indicator finds pivot highs and lows on the price chart and compares the last two highs and the last two lows. When the percentage difference between a pair is below the Equal HL threshold, it treats them as equal levels and draws a box. Left and

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · MPL-2.0 GitHub repository of ICT Equal Highs and Lows
330 stars

This indicator monitors multiple cryptocurrency symbols for trading signals. It calculates and plots entry prices, take profit, and stop loss levels for each symbol including BTCUSDT, ETHUSDT, BNBUSDT and others. Price crossovers trigger buy, sell or close ale

Indicator v5 Support & resistanceScreeners & dashboards
Updated 2 months ago · None stated GitHub repository of Multi Alert Long/Short [Alorse]

This overlay indicator draws a fixed-range volume profile on the price chart, splitting traded activity into up and down volume at each price level. It also plots a sentiment profile, a developing point of control, and value-area high and low around a configur

Indicator v5 VolumeSupport & resistance
Updated 2 months ago · MIT GitHub repository of Volume Profile and Indicator by DGT

BZ-tracker

by Allen1212
303 stars

The BZ-tracker indicator marks ARK Invest buy and sell transactions on stock charts with labels. It plots green labels for purchases and red labels for sales, each annotated with a multiplier such as X1 or X2 to show the number of ARK ETFs trading the stock on

Indicator v4 Support & resistanceScreeners & dashboards
Updated 2 years ago · None stated GitHub repository of BZ-tracker

Function - Linear Regression

by ricardosantos79
261 stars

This indicator fits a linear regression through stored pivot highs and lows and draws the resulting channel on the price chart. A function returns predicted values, maximum and minimum deviations, and the average absolute deviation. Confirmed two-bar pivots up

Indicator v5 TrendSupport & resistance
Updated 4 years ago · None stated GitHub repository of Function - Linear Regression

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