Indicator · Pine Script v5 · On the chart

MTF OHLC stats

by TamaraKGreen· code credited to notprofessorgreen

This indicator plots previous open, high, low and close levels from a selected timeframe on the price chart.

View on GitHub

Repaints

GitHub stars46on the repository
Pine versionv5runs as is
Lines of code347
Settings29inputs
LicenceNone statedfile: MPL-2.0
Last update7 weeks ago4 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

347 lines of Pine Script v5 from MTF OHLC retracement stats.txt, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.

MTF OHLC retracement stats.txt
// This Pine Script™ code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © notprofessorgreen

//@version=5
indicator("MTF OHLC stats", "OHLC MTF", true)

// Input groups
group1 = "General Settings"
string tf = input.timeframe("60", "Time Frame", group=group1)
int offset = input.int(1, "Offset", group=group1)

group2 = "Display Settings"
bool showLast = input.bool(false, "Show last OHLC levels only", group=group2)
bool extendLines = input.bool(false, "Extend OHLC levels", group=group2)
color bgcolor = input.color(color.new(color.silver, 80), "Background fill color", group=group2)
bool showLabels = input.bool(false, "Show previous level labels", group=group2)  // New input for labels

// Existing style inputs (groups 3-6)
group3 = "Previous Open Level"
string openStyle = input.string(line.style_solid, "Style", options=[line.style_solid, line.style_dashed, line.style_dotted], group=group3)
color openColor = input.color(color.black, "Color", group=group3)
int openWidth = input.int(1, "Thickness", group=group3)

group4 = "Previous High Level"
string highStyle = input.string(line.style_dashed, "Style", options=[line.style_solid, line.style_dashed, line.style_dotted], group=group4)
color highColor = input.color(color.green, "Color", group=group4)
int highWidth = input.int(1, "Thickness", group=group4)

group5 = "Previous Low Level"
string lowStyle = input.string(line.style_dashed, "Style", options=[line.style_solid, line.style_dashed, line.style_dotted], group=group5)
color lowColor = input.color(color.red, "Color", group=group5)
int lowWidth = input.int(1, "Thickness", group=group5)

group6 = "Previous Close Level"
string closeStyle = input.string(line.style_dashed, "Style", options=[line.style_solid, line.style_dashed, line.style_dotted], group=group6)
color closeColor = input.color(color.purple, "Color", group=group6)
int closeWidth = input.int(1, "Thickness", group=group6)

group7 = "Deviation Levels"
color devColor = input.color(color.gray, "Deviation Levels Color", group=group7)
int devWidth = input.int(1, "Deviation Thickness", group=group7)

// Table settings
var g_TABLE = "Table"
show_table = input.bool(true, "Show Stats Table", group = g_TABLE)
table_position = input.string('Top Right', "Table Position", options = ['Bottom Center', 'Bottom Left', 'Bottom Right', 'Middle Center', 'Middle Left', 'Middle Right', 'Top Center', 'Top Left', 'Top Right'], group = g_TABLE)
table_size = input.string('Tiny', "Text Size", options = ['Auto', 'Tiny', 'Small', 'Normal', 'Large', 'Huge'], group = g_TABLE)
table_text = input.color(color.black, "Text", group = g_TABLE)
table_bg = input.color(color.white, "Table Background", group = g_TABLE)
table_frame = input.color(color.black, "Table Frame", group = g_TABLE)
table_border = input.color(color.black, "Table Border", group = g_TABLE)
table_border_width = input.int(1, "Table Border Width", group = g_TABLE)
table_frame_width = input.int(2, "Table Frame Width", group = g_TABLE)

// Get OHLC data
bool newSession = ta.change(time(tf))
op = request.security(syminfo.tickerid, tf, open[offset - 1])
hi = request.security(syminfo.tickerid, tf, high[offset - 1])
lo = request.security(syminfo.tickerid, tf, low[offset - 1])
cl = request.security(syminfo.tickerid, tf, close[offset - 1])
x = request.security(syminfo.tickerid, tf, time)

// Capture current session open on first bar of new session
var float currSessionOpen = na
if newSession
    currSessionOpen := open

// Calculate deviation levels
c_range = hi - lo
dev02 = lo + (c_range * 0.2)
dev05 = lo + (c_range * 0.5)
dev08 = lo + (c_range * 0.8)

// Line variables
var line openLine = na
var line highLine = na
var line lowLine = na
var line closeLine = na
var line dev02Line = na
var line dev05Line = na
var line dev08Line = na
var linefill ohlc = na

// Hit tracking flags and counters (split by currSessionOpen > op)
var int totalSessionsAbove = 0
var int totalSessionsBelow = 0
var int highHitsAbove = 0
var int highHitsBelow = 0
var int lowHitsAbove = 0
var int lowHitsBelow = 0
var int closeHitsAbove = 0
var int closeHitsBelow = 0
var int openHitsAbove = 0
var int openHitsBelow = 0
var int dev02HitsAbove = 0
var int dev02HitsBelow = 0
var int dev05HitsAbove = 0
var int dev05HitsBelow = 0
var int dev08HitsAbove = 0
var int dev08HitsBelow = 0
var int highThenOpenHitsAbove = 0
var int highThenOpenHitsBelow = 0
var int lowTo05HitsAbove = 0
var int lowTo05HitsBelow = 0
var int highTo05HitsAbove = 0
var int highTo05HitsBelow = 0

var bool highHitThisSession = false
var bool lowHitThisSession = false
var bool closeHitThisSession = false
var bool openHitThisSession = false
var bool dev02HitThisSession = false
var bool dev05HitThisSession = false
var bool dev08HitThisSession = false
var bool highThenOpenHitThisSession = false
var bool highBrokenThisSession = false
var bool lowBrokenThisSession = false
var bool lowTo05HitThisSession = false
var bool highTo05HitThisSession = false

// Helper function for table position
get_table_position(pos) =>
    switch pos
        'Bottom Center' => position.bottom_center
        'Bottom Left' => position.bottom_left
        'Bottom Right' => position.bottom_right
        'Middle Center' => position.middle_center
        'Middle Left' => position.middle_left
        'Middle Right' => position.middle_right
        'Top Center' => position.top_center
        'Top Left' => position.top_left
        => position.top_right

// Helper function for table text size
get_table_text_size(size) =>
    switch size
        'Tiny' => size.tiny
        'Small' => size.small
        'Normal' => size.normal
        'Large' => size.large
        'Huge' => size.huge
        => size.auto

// Reset hit flags and increment session counter
if newSession
    if currSessionOpen > op
        totalSessionsAbove := totalSessionsAbove + 1
    else
        totalSessionsBelow := totalSessionsBelow + 1
    highHitThisSession := false
    lowHitThisSession := false
    closeHitThisSession := false
    openHitThisSession := false
    dev02HitThisSession := false
    dev05HitThisSession := false
    dev08HitThisSession := false
    highThenOpenHitThisSession := false
    highBrokenThisSession := false
    lowBrokenThisSession := false
    lowTo05HitThisSession := false
    highTo05HitThisSession := false

// Check hits
bool isAbove = currSessionOpen > op
if not highHitThisSession and (ta.cross(high, hi[1]) or ta.cross(low, hi[1]))
    if isAbove
        highHitsAbove := highHitsAbove + 1
    else
        highHitsBelow := highHitsBelow + 1
    highHitThisSession := true
    highBrokenThisSession := true

if not lowHitThisSession and (ta.cross(high, lo[1]) or ta.cross(low, lo[1]))
    if isAbove
        lowHitsAbove := lowHitsAbove + 1
    else
        lowHitsBelow := lowHitsBelow + 1
    lowHitThisSession := true
    lowBrokenThisSession := true

if not closeHitThisSession and (ta.cross(high, cl[1]) or ta.cross(low, cl[1]))
    if isAbove
        closeHitsAbove := closeHitsAbove + 1
    else
        closeHitsBelow := closeHitsBelow + 1
    closeHitThisSession := true

if not openHitThisSession and (ta.cross(high, op[1]) or ta.cross(low, op[1]))
    if isAbove
        openHitsAbove := openHitsAbove + 1
    else
        openHitsBelow := openHitsBelow + 1
    openHitThisSession := true

if not dev02HitThisSession and (ta.cross(high, dev02[1]) or ta.cross(low, dev02[1]))
    if isAbove
        dev02HitsAbove := dev02HitsAbove + 1
    else
        dev02HitsBelow := dev02HitsBelow + 1
    dev02HitThisSession := true

if not dev05HitThisSession and (ta.cross(high, dev05[1]) or ta.cross(low, dev05[1]))
    if isAbove
        dev05HitsAbove := dev05HitsAbove + 1
    else
        dev05HitsBelow := dev05HitsBelow + 1
    dev05HitThisSession := true

if not dev08HitThisSession and (ta.cross(high, dev08[1]) or ta.cross(low, dev08[1]))
    if isAbove
        dev08HitsAbove := dev08HitsAbove + 1
    else
        dev08HitsBelow := dev08HitsBelow + 1
    dev08HitThisSession := true

if highBrokenThisSession and not highThenOpenHitThisSession and (ta.cross(high, currSessionOpen) or ta.cross(low, currSessionOpen))
    if isAbove
        highThenOpenHitsAbove := highThenOpenHitsAbove + 1
    else
        highThenOpenHitsBelow := highThenOpenHitsBelow + 1
    highThenOpenHitThisSession := true

// New movement tracking
if lowBrokenThisSession and not lowTo05HitThisSession and (ta.cross(high, dev05[1]) or ta.cross(low, dev05[1]))
    if isAbove
        lowTo05HitsAbove := lowTo05HitsAbove + 1
    else
        lowTo05HitsBelow := lowTo05HitsBelow + 1
    lowTo05HitThisSession := true

if highBrokenThisSession and not highTo05HitThisSession and (ta.cross(high, dev05[1]) or ta.cross(low, dev05[1]))
    if isAbove
        highTo05HitsAbove := highTo05HitsAbove + 1
    else
        highTo05HitsBelow := highTo05HitsBelow + 1
    highTo05HitThisSession := true

// Display functions
displayLines(x1, x2) =>
    opLine = line.new(x1, op[1], x2, op[1], xloc.bar_time, color=openColor, style=openStyle, width=openWidth)
    hiLine = line.new(x1, hi[1], x2, hi[1], xloc.bar_time, color=highColor, style=highStyle, width=highWidth)
    loLine = line.new(x1, lo[1], x2, lo[1], xloc.bar_time, color=lowColor, style=lowStyle, width=lowWidth)
    clLine = line.new(x1, cl[1], x2, cl[1], xloc.bar_time, color=closeColor, style=closeStyle, width=closeWidth)
    d02Line = line.new(x1, dev02[1], x2, dev02[1], xloc.bar_time, color=devColor, style=line.style_dotted, width=devWidth)
    d05Line = line.new(x1, dev05[1], x2, dev05[1], xloc.bar_time, color=devColor, style=line.style_dotted, width=devWidth)
    d08Line = line.new(x1, dev08[1], x2, dev08[1], xloc.bar_time, color=devColor, style=line.style_dotted, width=devWidth)
    
    line.delete(opLine[1])
    line.delete(hiLine[1])
    line.delete(loLine[1])
    line.delete(clLine[1])
    line.delete(d02Line[1])
    line.delete(d05Line[1])
    line.delete(d08Line[1])
    
    [opLine, hiLine, loLine, clLine, d02Line, d05Line, d08Line]

displayLabels(x1, x2, x3, x4, x5, x6, x7) =>
    if showLabels  // Only display labels if showLabels is true
        label.new(line.get_x2(x1), line.get_y2(x1), "Prev. Open", xloc.bar_time, color=openColor, style=label.style_label_left, textcolor=color.white, size=size.tiny)
        label.new(line.get_x2(x2), line.get_y2(x2), "Prev. High", xloc.bar_time, color=highColor, style=label.style_label_left, textcolor=color.white, size=size.tiny)
        label.new(line.get_x2(x3), line.get_y2(x3), "Prev. Low", xloc.bar_time, color=lowColor, style=label.style_label_left, textcolor=color.white, size=size.tiny)
        label.new(line.get_x2(x4), line.get_y2(x4), "Prev. Close", xloc.bar_time, color=closeColor, style=label.style_label_left, textcolor=color.white, size=size.tiny)
        label.new(line.get_x2(x5), line.get_y2(x5), "Dev 0.2", xloc.bar_time, color=devColor, style=label.style_label_left, textcolor=color.white, size=size.tiny)
        label.new(line.get_x2(x6), line.get_y2(x6), "Dev 0.5", xloc.bar_time, color=devColor, style=label.style_label_left, textcolor=color.white, size=size.tiny)
        label.new(line.get_x2(x7), line.get_y2(x7), "Dev 0.8", xloc.bar_time, color=devColor, style=label.style_label_left, textcolor=color.white, size=size.tiny)

// Plot lines
if newSession and not showLast
    openLine := line.new(x[1], op, time, op, xloc.bar_time, color=openColor, style=openStyle, width=openWidth)
    highLine := line.new(x[1], hi, time, hi, xloc.bar_time, color=highColor, style=highStyle, width=highWidth)
    lowLine := line.new(x[1], lo, time, lo, xloc.bar_time, color=lowColor, style=lowStyle, width=lowWidth)
    closeLine := line.new(x[1], cl, time, cl, xloc.bar_time, color=closeColor, style=closeStyle, width=closeWidth)
    dev02Line := line.new(x[1], dev02, time, dev02, xloc.bar_time, color=devColor, style=line.style_dotted, width=devWidth)
    dev05Line := line.new(x[1], dev05, time, dev05, xloc.bar_time, color=devColor, style=line.style_dotted, width=devWidth)
    dev08Line := line.new(x[1], dev08, time, dev08, xloc.bar_time, color=devColor, style=line.style_dotted, width=devWidth)
    
    ohlc := linefill.new(highLine, lowLine, bgcolor)
    
    if not extendLines
        displayLabels(openLine, highLine, lowLine, closeLine, dev02Line, dev05Line, dev08Line)

if showLast
    [openLine2, highLine2, lowLine2, closeLine2, dev02Line2, dev05Line2, dev08Line2] = displayLines(x[1], x)
    if not extendLines 
        displayLabels(openLine2, highLine2, lowLine2, closeLine2, dev02Line2, dev05Line2, dev08Line2)
    linefill.new(highLine2, lowLine2, bgcolor)

if extendLines
    [openLine3, highLine3, lowLine3, closeLine3, dev03Line3, dev05Line3, dev08Line3] = displayLines(x, time)
    displayLabels(openLine3, highLine3, lowLine3, closeLine3, dev03Line3, dev05Line3, dev08Line3)
    linefill.new(highLine3, lowLine3, bgcolor)

// Display stats table
var table combined_table = na
if bar_index == 0
    combined_table := table.new(get_table_position(table_position), 3, 12, bgcolor = table_bg, frame_color = table_frame, frame_width = table_frame_width, border_color = table_border, border_width = table_border_width)

if show_table and barstate.islast
    table_text_size = get_table_text_size(table_size)
    table.cell(combined_table, 0, 0, "Previous candle level crossed", text_color=table_text, bgcolor=table_bg, text_size=table_text_size)
    table.cell(combined_table, 1, 0, "Current open > Previous open", text_color=table_text, bgcolor=table_bg, text_size=table_text_size)
    table.cell(combined_table, 2, 0, "Current open < Previous open", text_color=table_text, bgcolor=table_bg, text_size=table_text_size)
    
    table.cell(combined_table, 0, 1, "High", text_color=table_text, bgcolor=table_bg, text_size=table_text_size)
    table.cell(combined_table, 1, 1, totalSessionsAbove > 0 ? str.tostring(math.round(highHitsAbove/totalSessionsAbove*100, 2)) + "%" : "N/A", text_color=table_text, bgcolor=table_bg, text_size=table_text_size)
    table.cell(combined_table, 2, 1, totalSessionsBelow > 0 ? str.tostring(math.round(highHitsBelow/totalSessionsBelow*100, 2)) + "%" : "N/A", text_color=table_text, bgcolor=table_bg, text_size=table_text_size)
    
    table.cell(combined_table, 0, 2, "Low", text_color=table_text, bgcolor=table_bg, text_size=table_text_size)
    table.cell(combined_table, 1, 2, totalSessionsAbove > 0 ? str.tostring(math.round(lowHitsAbove/totalSessionsAbove*100, 2)) + "%" : "N/A", text_color=table_text, bgcolor=table_bg, text_size=table_text_size)
    table.cell(combined_table, 2, 2, totalSessionsBelow > 0 ? str.tostring(math.round(lowHitsBelow/totalSessionsBelow*100, 2)) + "%" : "N/A", text_color=table_text, bgcolor=table_bg, text_size=table_text_size)
    
    table.cell(combined_table, 0, 3, "Close", text_color=table_text, bgcolor=table_bg, text_size=table_text_size)
    table.cell(combined_table, 1, 3, totalSessionsAbove > 0 ? str.tostring(math.round(closeHitsAbove/totalSessionsAbove*100, 2)) + "%" : "N/A", text_color=table_text, bgcolor=table_bg, text_size=table_text_size)
    table.cell(combined_table, 2, 3, totalSessionsBelow > 0 ? str.tostring(math.round(closeHitsBelow/totalSessionsBelow*100, 2)) + "%" : "N/A", text_color=table_text, bgcolor=table_bg, text_size=table_text_size)
    
    table.cell(combined_table, 0, 4, "Open", text_color=table_text, bgcolor=table_bg, text_size=table_text_size)
    table.cell(combined_table, 1, 4, totalSessionsAbove > 0 ? str.tostring(math.round(openHitsAbove/totalSessionsAbove*100, 2)) + "%" : "N/A", text_color=table_text, bgcolor=table_bg, text_size=table_text_size)
    table.cell(combined_table, 2, 4, totalSessionsBelow > 0 ? str.tostring(math.round(openHitsBelow/totalSessionsBelow*100, 2)) + "%" : "N/A", text_color=table_text, bgcolor=table_bg, text_size=table_text_size)
    
    table.cell(combined_table, 0, 5, "Dev 0.2", text_color=table_text, bgcolor=table_bg, text_size=table_text_size)
    table.cell(combined_table, 1, 5, totalSessionsAbove > 0 ? str.tostring(math.round(dev02HitsAbove/totalSessionsAbove*100, 2)) + "%" : "N/A", text_color=table_text, bgcolor=table_bg, text_size=table_text_size)
    table.cell(combined_table, 2, 5, totalSessionsBelow > 0 ? str.tostring(math.round(dev02HitsBelow/totalSessionsBelow*100, 2)) + "%" : "N/A", text_color=table_text, bgcolor=table_bg, text_size=table_text_size)
    
    table.cell(combined_table, 0, 6, "Dev 0.5", text_color=table_text, bgcolor=table_bg, text_size=table_text_size)
    table.cell(combined_table, 1, 6, totalSessionsAbove > 0 ? str.tostring(math.round(dev05HitsAbove/totalSessionsAbove*100, 2)) + "%" : "N/A", text_color=table_text, bgcolor=table_bg, text_size=table_text_size)
    table.cell(combined_table, 2, 6, totalSessionsBelow > 0 ? str.tostring(math.round(dev05HitsBelow/totalSessionsBelow*100, 2)) + "%" : "N/A", text_color=table_text, bgcolor=table_bg, text_size=table_text_size)
    
    table.cell(combined_table, 0, 7, "Dev 0.8", text_color=table_text, bgcolor=table_bg, text_size=table_text_size)
    table.cell(combined_table, 1, 7, totalSessionsAbove > 0 ? str.tostring(math.round(dev08HitsAbove/totalSessionsAbove*100, 2)) + "%" : "N/A", text_color=table_text, bgcolor=table_bg, text_size=table_text_size)
    table.cell(combined_table, 2, 7, totalSessionsBelow > 0 ? str.tostring(math.round(dev08HitsBelow/totalSessionsBelow*100, 2)) + "%" : "N/A", text_color=table_text, bgcolor=table_bg, text_size=table_text_size)
    
    table.cell(combined_table, 0, 8, "Prev high sweep & \n retrace to current open", text_color=table_text, bgcolor=table_bg, text_size=table_text_size)
    table.cell(combined_table, 1, 8, totalSessionsAbove > 0 ? str.tostring(math.round(highThenOpenHitsAbove/totalSessionsAbove*100, 2)) + "%" : "N/A", text_color=table_text, bgcolor=table_bg, text_size=table_text_size)
    table.cell(combined_table, 2, 8, totalSessionsBelow > 0 ? str.tostring(math.round(highThenOpenHitsBelow/totalSessionsBelow*100, 2)) + "%" : "N/A", text_color=table_text, bgcolor=table_bg, text_size=table_text_size)
    
    table.cell(combined_table, 0, 9, "Cross prev low \n and retrace to 0.5", text_color=table_text, bgcolor=table_bg, text_size=table_text_size)
    table.cell(combined_table, 1, 9, totalSessionsAbove > 0 ? str.tostring(math.round(lowTo05HitsAbove/totalSessionsAbove*100, 2)) + "%" : "N/A", text_color=table_text, bgcolor=table_bg, text_size=table_text_size)
    table.cell(combined_table, 2, 9, totalSessionsBelow > 0 ? str.tostring(math.round(lowTo05HitsBelow/totalSessionsBelow*100, 2)) + "%" : "N/A", text_color=table_text, bgcolor=table_bg, text_size=table_text_size)
    
    table.cell(combined_table, 0, 10, "Cross prev high \n and retrace to 0.5", text_color=table_text, bgcolor=table_bg, text_size=table_text_size)
    table.cell(combined_table, 1, 10, totalSessionsAbove > 0 ? str.tostring(math.round(highTo05HitsAbove/totalSessionsAbove*100, 2)) + "%" : "N/A", text_color=table_text, bgcolor=table_bg, text_size=table_text_size)
    table.cell(combined_table, 2, 10, totalSessionsBelow > 0 ? str.tostring(math.round(highTo05HitsBelow/totalSessionsBelow*100, 2)) + "%" : "N/A", text_color=table_text, bgcolor=table_bg, text_size=table_text_size)
    
    table.cell(combined_table, 0, 11, "Total Sessions", text_color=table_text, bgcolor=table_bg, text_size=table_text_size)
    table.cell(combined_table, 1, 11, str.tostring(totalSessionsAbove), text_color=table_text, bgcolor=table_bg, text_size=table_text_size)
    table.cell(combined_table, 2, 11, str.tostring(totalSessionsBelow), text_color=table_text, bgcolor=table_bg, text_size=table_text_size)

Overview

MTF OHLC stats requests those values with a configurable bar offset and marks a new higher-timeframe session. Users can show only the latest levels, extend the lines, fill the background, and label earlier levels. Separate style, color and thickness settings apply to each OHLC line and to deviation levels. A stats table can be shown with adjustable position, text size and colors. With the default offset, the current higher-timeframe high, low and close can still change until that bar closes.

Details

Published by

TamaraKGreen on GitHub

Code credit

notprofessorgreen, as written in the script's header

Type

Indicator, Pine Script v5

Draws

On the price chart

Category

Support & resistance, Screeners & dashboards

Markets

Any symbol

Timeframes

Any timeframe

Risk Notes

  • Signals can change on the live bar or after it closes (repainting)

Settings

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

SettingTypeDefaultVariable
Time Frametimeframe60tf
Offsetint1offset
Show last OHLC levels onlyboolfalseshowLast
Extend OHLC levelsboolfalseextendLines
Background fill colorcolorcolor.new(color.silver, 80)bgcolor
Show previous level labelsboolfalseshowLabels
Stylestringline.style_solidopenStyle
Colorcolorcolor.blackopenColor
Thicknessint1openWidth
Stylestringline.style_dashedhighStyle
Colorcolorcolor.greenhighColor
Thicknessint1highWidth
Show all 29 settings
SettingTypeDefaultVariable
Stylestringline.style_dashedlowStyle
Colorcolorcolor.redlowColor
Thicknessint1lowWidth
Stylestringline.style_dashedcloseStyle
Colorcolorcolor.purplecloseColor
Thicknessint1closeWidth
Deviation Levels Colorcolorcolor.graydevColor
Deviation Thicknessint1devWidth
Show Stats Tablebooltrueshow_table
Table PositionstringTop Righttable_position
Text SizestringTinytable_size
Textcolorcolor.blacktable_text
Table Backgroundcolorcolor.whitetable_bg
Table Framecolorcolor.blacktable_frame
Table Bordercolorcolor.blacktable_border
Table Border Widthint1table_border_width
Table Frame Widthint2table_frame_width
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 overlay indicator scans a pasted list of symbols for ICT liquidity sweep patterns using prior swing sweeps. The screening method looks back one, two, or three swings and can list long and short signals in a results table with adjustable rows, position, an

Indicator v5 SMC / ICT / price actionScreeners & dashboards
Updated 1 year ago · MPL-2.0 GitHub repository of ICT Liquidity Sweep Pattern Scanner
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]

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
257 stars

This indicator overlays an intraday SPX and ES chart with a midnight session range, regular-trading-hours opening levels, and a VWAP projection box. It draws the midnight high, mid, and low, flags edge rejections within an absolute tolerance, and plots optiona

Indicator v6 TrendSupport & resistance
Updated 6 weeks ago · None stated GitHub repository of SPX Midnight Box + Snag Logic

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

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