Skip to main content

Constants Audit — TV vs PineTS String Values

Generated 2026-03-01 via diag/types_audit.pine on BTCUSDC Weekly

Mismatched (28)

shape (12) — TV uses shape_ prefix + underscored words

ConstantTV ValuePineTS Value
shape.arrowdownshape_arrow_downarrowdown
shape.arrowupshape_arrow_uparrowup
shape.circleshape_circlecircle
shape.crossshape_crosscross
shape.diamondshape_diamonddiamond
shape.flagshape_flagflag
shape.labeldownshape_label_downlabeldown
shape.labelupshape_label_uplabelup
shape.squareshape_squaresquare
shape.triangledownshape_triangle_downtriangledown
shape.triangleupshape_triangle_uptriangleup
shape.xcrossshape_xcrossxcross

location (5) — TV uses PascalCase

ConstantTV ValuePineTS Value
location.abovebarAboveBarabovebar
location.belowbarBelowBarbelowbar
location.absoluteAbsoluteabsolute
location.bottomBottombottom
location.topToptop

xloc (2) — TV uses abbreviations

ConstantTV ValuePineTS Value
xloc.bar_indexbibar_index
xloc.bar_timebtbar_time

yloc (3) — TV uses abbreviations

ConstantTV ValuePineTS Value
yloc.priceprprice
yloc.abovebarababovebar
yloc.belowbarblbelowbar

font (2) — TV drops family_ prefix

ConstantTV ValuePineTS Value
font.family_defaultdefaultfamily_default
font.family_monospacemonospacefamily_monospace

text (5) — TV drops align_/wrap_ prefix

ConstantTV ValuePineTS Value
text.align_leftleftalign_left
text.align_centercenteralign_center
text.align_rightrightalign_right
text.wrap_autoautowrap_auto
text.wrap_nonenonewrap_none

Correct (11)

size (6) — match as-is

ConstantTV ValuePineTS Value
size.autoautoauto
size.tinytinytiny
size.smallsmallsmall
size.normalnormalnormal
size.largelargelarge
size.hugehugehuge

format (5) — match as-is

ConstantTV ValuePineTS Value
format.inheritinheritinherit
format.mintickmintickmintick
format.percentpercentpercent
format.pricepriceprice
format.volumevolumevolume

Not tested (opaque / numeric types)

NamespaceReason
displayOpaque plot_simple_display type — str.tostring() not supported
orderNumeric sort_order type — TV test errors
barmergeOpaque barmerge_gaps/barmerge_lookahead types — TV test errors
currencyAlready passing all tests
dayofweekAlready passing all tests