Ref #4 # General - [x] Compiler CLI - [x] Python bindings (WASM) - [x] JavaScript/TypeScript bindings - [x] WASM - [x] Node-API - [x] qPACE lib version asserts - [x] incremental functions bindings - [x] vectorized functions bindings # API compatibility ## Globals - [x] `bar_index` - [x] `last_bar_index` - [x] `open_time` - [x] `close_time` - [x] `open` - [x] `high` - [x] `low` - [x] `close` - [x] `volume` ## Casts - [x] `na()` - [x] `nz()` - [x] `bool()` - [x] `float()` - [x] `int()` ## Bar State - [ ] `barstate.isfirst` - [ ] `barstate.islast` - [ ] `barstate.isconfirmed` - [ ] `barstate.isnew` - [ ] `barstate.isrealtime` ## Indicator - [ ] `indicator()` ## Strategy - [ ] `strategy()` - [ ] `strategy.entry()` - [ ] `strategy.close_all()` - [ ] `strategy.cash` - [ ] `strategy.commission_cash_per_contract` - [ ] `strategy.commission_cash_per_order` - [ ] `strategy.commission_percent` - [ ] `strategy.direction_all` - [ ] `strategy.direction_long` - [ ] `strategy.direction_short` - [ ] `strategy.fixed` - [ ] `strategy.long` - [ ] `strategy.short` - [ ] `strategy.oca_cancel` - [ ] `strategy.oca_none` - [ ] `strategy.oca_reduce` - [ ] `strategy.percent_of_equity` ## Alerts - [ ] `alertcondition()` ## Input - [ ] `input()` - [ ] `input.int()` - [ ] `input.float()` - [ ] `input.bool()` - [ ] `input.string()` - [ ] `input.source()` - [ ] `input.color()` ## Math - [ ] `math.min()` - [ ] `math.max()` - [ ] `math.abs()` - [ ] `math.sqrt()` - [ ] `math.floor()` - [ ] `math.ceil()` - [ ] `math.round()` - [ ] `math.exp()` - [ ] `math.sum()` - [ ] `math.log()` - [ ] `math.log10()` - [ ] `math.pow()` - [ ] `math.avg()` ## Color - [x] `color.rgb()` - [x] `color.rgba()` - [x] `color.r()` - [x] `color.g()` - [x] `color.b()` - [x] `color.t()` - [ ] `color.new()` - [ ] `color.from_gradient()` - [x] `color.aqua` - [x] `color.black` - [x] `color.blue` - [x] `color.fuschia` - [x] `color.gray` - [x] `color.green` - [x] `color.lime` - [x] `color.maroon` - [x] `color.navy` - [x] `color.olive` - [x] `color.orange` - [x] `color.purple` - [x] `color.red` - [x] `color.silver` - [x] `color.teal` - [x] `color.white` - [x] `color.yellow` ## Format - [ ] `format.inherit` - [ ] `format.mintick` - [ ] `format.percent` - [ ] `format.price` - [ ] `format.volume` ## Display - [ ] `display.all` - [ ] `display.none` - [ ] `display.pane` - [ ] `display.price_scale` - [ ] `display.status_line` ## Plot - [ ] `plot()` - [ ] `plotshape()` - [ ] `fill()` - [ ] `hline()` - [ ] `plot.style_area` - [ ] `plot.style_areabr` - [ ] `plot.style_circles` - [ ] `plot.style_columns` - [ ] `plot.style_cross` - [ ] `plot.style_histogram` - [ ] `plot.style_line` - [ ] `plot.style_linebr` - [ ] `plot.style_stepline` - [ ] `plot.style_stepline_diamond` - [ ] `plot.style_steplinebr` ## Location - [ ] `location.abovebar` - [ ] `location.absolute` - [ ] `location.belowbar` - [ ] `location.bottom` - [ ] `location.top` ## Size - [ ] `size.auto` - [ ] `size.huge` - [ ] `size.large` - [ ] `size.normal` - [ ] `size.small` - [ ] `size.tiny` ## Scale - [ ] `scale.left` - [ ] `scale.none` - [ ] `scale.right` ## Position - [ ] `position.top_left` - [ ] `position.top_middle` - [ ] `position.top_right` - [ ] `position.middle_left` - [ ] `position.middle_center` - [ ] `position.middle_right` - [ ] `position.bottom_left` - [ ] `position.bottom_center` - [ ] `position.bottom_right` ## Shape - [ ] `shape.arrowdown` - [ ] `shape.arrowup` - [ ] `shape.circle` - [ ] `shape.cross` - [ ] `shape.diamond` - [ ] `shape.labeldown` - [ ] `shape.labelup` - [ ] `shape.triangledown` - [ ] `shape.triangleup` - [ ] `shape.xcross` ## Text Align - [ ] `text_align.bottom` - [ ] `text_align.center` - [ ] `text_align.left` - [ ] `text_align.right` - [ ] `text_align.top` ## Text Wrap - [ ] `text_wrap.auto` - [ ] `text_wrap.none` ## Chart - [ ] `chart.bg_color` - [ ] `chart.fg_color` - [ ] `chart.is_heikinashi` - [ ] `chart.is_kagi` - [ ] `chart.is_linebreak` - [ ] `chart.is_pnf` - [ ] `chart.is_range` - [ ] `chart.is_renko`
Ref #4
General
API compatibility
Globals
bar_indexlast_bar_indexopen_timeclose_timeopenhighlowclosevolumeCasts
na()nz()bool()float()int()Bar State
barstate.isfirstbarstate.islastbarstate.isconfirmedbarstate.isnewbarstate.isrealtimeIndicator
indicator()Strategy
strategy()strategy.entry()strategy.close_all()strategy.cashstrategy.commission_cash_per_contractstrategy.commission_cash_per_orderstrategy.commission_percentstrategy.direction_allstrategy.direction_longstrategy.direction_shortstrategy.fixedstrategy.longstrategy.shortstrategy.oca_cancelstrategy.oca_nonestrategy.oca_reducestrategy.percent_of_equityAlerts
alertcondition()Input
input()input.int()input.float()input.bool()input.string()input.source()input.color()Math
math.min()math.max()math.abs()math.sqrt()math.floor()math.ceil()math.round()math.exp()math.sum()math.log()math.log10()math.pow()math.avg()Color
color.rgb()color.rgba()color.r()color.g()color.b()color.t()color.new()color.from_gradient()color.aquacolor.blackcolor.bluecolor.fuschiacolor.graycolor.greencolor.limecolor.marooncolor.navycolor.olivecolor.orangecolor.purplecolor.redcolor.silvercolor.tealcolor.whitecolor.yellowFormat
format.inheritformat.mintickformat.percentformat.priceformat.volumeDisplay
display.alldisplay.nonedisplay.panedisplay.price_scaledisplay.status_linePlot
plot()plotshape()fill()hline()plot.style_areaplot.style_areabrplot.style_circlesplot.style_columnsplot.style_crossplot.style_histogramplot.style_lineplot.style_linebrplot.style_steplineplot.style_stepline_diamondplot.style_steplinebrLocation
location.abovebarlocation.absolutelocation.belowbarlocation.bottomlocation.topSize
size.autosize.hugesize.largesize.normalsize.smallsize.tinyScale
scale.leftscale.nonescale.rightPosition
position.top_leftposition.top_middleposition.top_rightposition.middle_leftposition.middle_centerposition.middle_rightposition.bottom_leftposition.bottom_centerposition.bottom_rightShape
shape.arrowdownshape.arrowupshape.circleshape.crossshape.diamondshape.labeldownshape.labelupshape.triangledownshape.triangleupshape.xcrossText Align
text_align.bottomtext_align.centertext_align.lefttext_align.righttext_align.topText Wrap
text_wrap.autotext_wrap.noneChart
chart.bg_colorchart.fg_colorchart.is_heikinashichart.is_kagichart.is_linebreakchart.is_pnfchart.is_rangechart.is_renko