Indicator · Pine Script v6 · On the chart

TICK.US Status Box

by BrayFlex

TICK.US Status Box is an overlay indicator that reads the NYSE TICK index (TICK.US) on the chart's timeframe and shows its value in a small box.

View on GitHub

GitHub stars1on the repository
Pine versionv6current
Lines of code81
Settings13inputs
LicenceMPL-2.0
Last update1 year ago23 Jan 2025

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

81 lines of Pine Script v6 from tick.us-status-box.pine, published under MPL-2.0. Keep the author's credit and licence lines when you reuse it.

tick.us-status-box.pine
// @version=6
// @description Displays the TICK.US value in an overlayed status box with an indicator to highlight key level ranges.
// @author BrayFlex on Github/Discord

indicator("(Flex) TICK.US Status Box", overlay=true)

// Input for box position (default: top-right)
boxPosition = input.string("Top Right", title="Box Position", options=["Top Left", "Top Right", "Bottom Left", "Bottom Right"])

// Input for customizable levels
veryLowLevel = input.int(-1000, title="Very Low Level (must be negative)", tooltip="Sets the bottom range for Normal")
highLevel = input.int(400, title="High Level (must be positive)", tooltip="Sets the top range for Normal")
veryHighLevel = input.int(500, title="Very High Level (must be > High Level)", tooltip="Sets the top range for High")

// Validate levels
if veryLowLevel > 0
    runtime.error("Very Low Level must be negative.")
if highLevel <= 0
    runtime.error("High Level must be positive.")
if veryHighLevel <= highLevel
    runtime.error("Very High Level must be greater than High Level.")

// Input for customizable colors (moved to Style tab)
styleColor = input.color(color.silver, title="Style Color", group="Style")

veryLowColor = input.color(color.new(color.lime, 30), title="Very Low Box Color", group="Style")
normalColor = input.color(color.new(color.black, 75), title="Normal Box Color", group="Style")
highColor = input.color(color.new(color.orange, 60), title="High Box Color", group="Style")
veryHighColor = input.color(color.new(color.red, 45), title="Very High Box Color", group="Style")

veryLowTextColor = input.color(color.white, title="Very Low Text Color", group="Style")
normalTextColor = input.color(color.white, title="Normal Text Color", group="Style")
highTextColor = input.color(color.white, title="High Text Color", group="Style")
veryHighTextColor = input.color(color.white, title="Very High Text Color", group="Style")

// Fetch TICK.US data
tickValue = request.security("TICK.US", timeframe.period, close)

// Define status message and box color based on TICK.US value
var string statusMessage = na
var color boxColor = color.black
var color statusTextColor = color.white

if tickValue <= veryLowLevel
    statusMessage := "VERY LOW"
    boxColor := veryLowColor
    statusTextColor := veryLowTextColor
else if tickValue > veryLowLevel and tickValue < highLevel
    statusMessage := "NORMAL"
    boxColor := normalColor
    statusTextColor := normalTextColor
else if tickValue >= highLevel and tickValue < veryHighLevel
    statusMessage := "HIGH"
    boxColor := highColor
    statusTextColor := highTextColor
else if tickValue >= veryHighLevel
    statusMessage := "VERY HIGH"
    boxColor := veryHighColor
    statusTextColor := veryHighTextColor

// Determine table position based on user input
var string tablePosition = na

if boxPosition == "Top Left"
    tablePosition := position.top_left
else if boxPosition == "Top Right"
    tablePosition := position.top_right
else if boxPosition == "Bottom Left"
    tablePosition := position.bottom_left
else if boxPosition == "Bottom Right"
    tablePosition := position.bottom_right

// Create a table for the box
var table tickTable = table.new(position = tablePosition, columns = 1, rows = 2, bgcolor = boxColor, border_width = 0, frame_width = 1, frame_color = styleColor)

// Update table properties
table.cell(tickTable, column = 0, row = 0, text = "TICK.US: " + str.tostring(tickValue), text_color = styleColor, text_size = size.normal, text_halign = text.align_center)
table.cell(tickTable, column = 0, row = 1, text = statusMessage, text_color = statusTextColor, text_size = size.normal, text_halign = text.align_center, width = 7)

// Update table background color dynamically
table.set_bgcolor(tickTable, bgcolor = boxColor)

Overview

The box text reads very low, normal, high or very high depending on three adjustable level inputs, and the box colour changes with each state. The box position, thresholds and all colours can be changed. It is a market breadth readout rather than a signal generator and needs access to the TICK.US data feed.

Details

Published by

BrayFlex on GitHub

Type

Indicator, Pine Script v6

Draws

On the price chart

Category

Screeners & dashboards, Oscillators & momentum

Markets

Stocks, Indices

Timeframes

M15-H1

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
Box PositionstringTop RightboxPosition
Very Low Level (must be negative)int-1000veryLowLevel
High Level (must be positive)int400highLevel
Very High Level (must be > High Level)int500veryHighLevel
Style Colorcolorcolor.silverstyleColor
Very Low Box Colorcolorcolor.new(color.lime, 30)veryLowColor
Normal Box Colorcolorcolor.new(color.black, 75)normalColor
High Box Colorcolorcolor.new(color.orange, 60)highColor
Very High Box Colorcolorcolor.new(color.red, 45)veryHighColor
Very Low Text Colorcolorcolor.whiteveryLowTextColor
Normal Text Colorcolorcolor.whitenormalTextColor
High Text Colorcolorcolor.whitehighTextColor
Show all 13 settings
SettingTypeDefaultVariable
Very High Text Colorcolorcolor.whiteveryHighTextColor
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

This overlay indicator screens a pasted list of up to forty symbols and draws a table on the price chart. It classifies bullish or bearish setups from the percent change between the current candle and the candle 250 bars back, then shows RSI with a simple movi

Indicator v5 Oscillators & momentumVolume
Updated 1 year ago · MPL-2.0 GitHub repository of Momentum Setup - Ankush Bajaj Momentum Investing Setup
330 stars

This multi-symbol indicator evaluates a combined trading condition across up to 40 user-defined symbols. It processes MACD bullish crossovers, RSI thresholds, Bollinger Band boundaries, and DMI/ADX trend filters using security calls. When buy or sell criteria

Indicator v5 Oscillators & momentumVolatility & bands
Updated 2 months ago · None stated GitHub repository of Multi MACD + BB + RSI [Alorse]
218 stars

TradersPost Trading Checklist is an overlay indicator that evaluates a suite of popular technical conditions for long and short trade setups. It checks session-anchored VWAP, fast and slow EMA alignments and crosses, 200 SMA, RSI overbought or oversold conditi

Indicator v6 Screeners & dashboardsTrend
Updated 3 months ago · None stated GitHub repository of TradersPost Trading Checklist

8zz反指標v2

by hansai-art
121 stars

The 8zz Contrarian Indicator plots reverse sentiment trading signals directly on the price chart based on tracked retail post activity. It generates bullish signals during retail panic and bearish signals during market euphoria. The indicator features adjustab

Indicator v6 Moving averagesOscillators & momentum
Updated 3 months ago · None stated GitHub repository of 8zz反指標v2

Chart Background

by be-thomas
65 stars

This indicator colors the chart background using a full-screen single-cell table based on the 20-period Relative Strength Index (RSI). When the RSI is above 50, the table applies a bullish background color, and when below 50, a bearish color. The background up

Indicator v4 Oscillators & momentumScreeners & dashboards
Updated 5 days ago · GPL-3.0 GitHub repository of Chart Background
53 stars

This indicator analyzes historical candle direction and price range over a configurable lookback window to gauge market trend. It categorizes trend direction using candle count, price range sum, or both. Signals are filtered using a Simple Moving Average to en

Indicator v6 TrendOscillators & momentum
Updated 2 months ago · MPL-2.0 GitHub repository of Candle Counter + MA + RSI + Mode

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