1Copy the scriptPress Copy script above, or the copy button on the code below.
2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
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.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Box Position
string
Top Right
boxPosition
Very Low Level (must be negative)
int
-1000
veryLowLevel
High Level (must be positive)
int
400
highLevel
Very High Level (must be > High Level)
int
500
veryHighLevel
Style Color
color
color.silver
styleColor
Very Low Box Color
color
color.new(color.lime, 30)
veryLowColor
Normal Box Color
color
color.new(color.black, 75)
normalColor
High Box Color
color
color.new(color.orange, 60)
highColor
Very High Box Color
color
color.new(color.red, 45)
veryHighColor
Very Low Text Color
color
color.white
veryLowTextColor
Normal Text Color
color
color.white
normalTextColor
High Text Color
color
color.white
highTextColor
Show all 13 settings
Setting
Type
Default
Variable
Very High Text Color
color
color.white
veryHighTextColor
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.
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
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
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
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
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
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