VARIABLES / DATA
data
bar_indexReturns current bar index, where 0 is equal to first loaded historical bar
timeReturns unix timestamp (timeseries)
timeframeReturns current timeframe in minutes (e.g. 1min = 1, 1h = 60, 12h = 720, D = 1440, ...)
openOpen
highHigh
lowLow
closeClose
ohlc4(Open + High + Low + Close)/4
hlc3(High + Low + Close)/3
hl2(High + Low)/2
vbuyVolume buy
vsellVolume sell
oi_openOpen Interest Open
oi_highOpen Interest High
oi_lowOpen Interest Low
oi_closeOpen Interest Close
oi_ohlc4Open Interest (Open + High + Low + Close)/4
oi_hlc3Open Interest (High + Low + Close)/3
oi_hl2Open Interest (High + Low)/2
liq_askAsk Liquidations
liq_bidBid Liquidations
fundingFunding (Current)
funding_predictedFunding (Predicted)
mark_priceMark Price
dayofweek
dayofweek.sundayValue for Sunday, used with dayofweek(time) function
dayofweek.mondayValue for Monday, used with dayofweek(time) function
dayofweek.tuesdayValue for Tuesday, used with dayofweek(time) function
dayofweek.wednesdayValue for Wednesday, used with dayofweek(time) function
dayofweek.thursdayValue for Thursday, used with dayofweek(time) function
dayofweek.fridayValue for Friday, used with dayofweek(time) function
dayofweek.saturdayValue for Saturday, used with dayofweek(time) function
barstate
barstate.isfirstReturns true if current index is first loaded bar
barstate.islastReturns true if current index is latest bar
barstate.ishistoryReturns true if current index is not latest bar
barstate.isnewReturns true if current index is being calculated
barstate.isrealtimeReturns true if current index is being updated with new data
color
color.blackColor for #000000
color.whiteColor for #FFFFFF
color.redColor for #FF0000
color.orangeColor for #FFA500
color.limeColor for #00FF00
color.blueColor for #0000FF
color.yellowColor for #FFFF00
color.cyanColor for #00FFFF
color.magentaColor for #FF00FF
color.silverColor for #C0C0C0
color.grayColor for #808080
color.maroonColor for #800000
color.oliveColor for #808000
color.greenColor for #008000
color.purpleColor for #800080
color.tealColor for #008080
shape
shape.adjustShape
shape.airShape
shape.alertShape
shape.arrow_comboShape
shape.attachShape
shape.attentionShape
shape.batteryShape
shape.bellShape
shape.blockShape
shape.bookmarkShape
shape.bookmarksShape
shape.bullseyeShape
shape.cameraShape
shape.cancel_circledShape
shape.cancel_squaredShape
shape.cancelShape
shape.cdShape
shape.chart_areaShape
shape.chart_barShape
shape.chart_pieShape
shape.checkShape
shape.circle_emptyShape
shape.circle_thinShape
shape.circleShape
shape.clockShape
shape.cloud_thunderShape
shape.cloudShape
shape.cogShape
shape.databaseShape
shape.dot_circledShape
shape.down_boldShape
shape.down_circledShape
shape.down_dirShape
shape.down_open_bigShape
shape.down_openShape
shape.down_thinShape
shape.downShape
shape.dropletShape
shape.eraseShape
shape.eyeShape
shape.fast_backwardShape
shape.fast_forwardShape
shape.featherShape
shape.flagShape
shape.flashShape
shape.gaugeShape
shape.heart_emptyShape
shape.heartShape
shape.help_circledShape
shape.helpShape
shape.info_circledShape
shape.infoShape
shape.keyShape
shape.lampShape
shape.left_boldShape
shape.left_circledShape
shape.left_dirShape
shape.left_open_bigShape
shape.left_openShape
shape.left_thinShape
shape.leftShape
shape.light_downShape
shape.light_upShape
shape.linkShape
shape.locationShape
shape.lock_openShape
shape.lockShape
shape.magnetShape
shape.minus_circledShape
shape.minus_squaredShape
shape.minusShape
shape.moonShape
shape.musicShape
shape.note_beamedShape
shape.noteShape
shape.pauseShape
shape.playShape
shape.plus_circledShape
shape.plus_squaredShape
shape.plusShape
shape.progress_0Shape
shape.progress_1Shape
shape.progress_2Shape
shape.progress_3Shape
shape.quoteShape
shape.recordShape
shape.right_boldShape
shape.right_circledShape
shape.right_dirShape
shape.right_open_bigShape
shape.right_openShape
shape.right_thinShape
shape.rightShape
shape.rocketShape
shape.rssShape
shape.searchShape
shape.signalShape
shape.star_emptyShape
shape.starShape
shape.stopShape
shape.tagShape
shape.targetShape
shape.thermometerShape
shape.thumbs_downShape
shape.thumbs_upShape
shape.to_endShape
shape.to_startShape
shape.traffic_coneShape
shape.trophyShape
shape.up_boldShape
shape.up_circledShape
shape.up_dirShape
shape.up_open_bigShape
shape.up_openShape
shape.up_thinShape
shape.upShape
shape.waterShape