Pine Script compatibility
Deepwick Script runs a subset of Pine Script. This page lists the 275 function and variable names the engine knows today, generated from the same reference the engine is tested against. For signatures and behaviour, see the Deepwick Script reference.
Paste from TradingView
In the chart's script editor, Paste from TradingView checks a pasted script against this list before it runs. Each call the engine doesn't know is reported with its line and column (1-based) and a suggestion. Unsupported calls stop a script, so you can import it as is, or with Run without unsupported lines, which disables those lines and every line that depends on them. If an order (strategy.entry, strategy.exit, strategy.close…) would be disabled, the import refuses and says which call is the cause. request.security() is flagged as a warning: it compiles but returns na.
Not supported yet
A function the engine does not know stops the script with "Unknown function" and the line and column.
request.security(): Compiles but returns na: data from other symbols or timeframes is not available inside scripts yet.label.new(), table.new(): Not available yet. Lines and boxes are.import, matrix.*, array.new<type>(): Libraries, matrices, and typed array constructors are not implemented yet.strategy.risk.*, trailing stops: Risk rules and trailing stops in strategy.exit() are not supported.
Supported, by namespace
built-ins (48)
alertcondition avg bar_index barcolor bgcolor bool close color dayofmonth dayofweek fill fixnan float high hl2 hlc3 hlcc4 hline hour indicator input int last_bar_index low max min minute month na nz ohlc4 open plot plotarrow plotbar plotcandle plotchar plotshape second strategy string study sum time time_close volume weekofyear year
array.* (24)
array.avg array.first array.get array.insert array.last array.max array.min array.new_bool array.new_box array.new_color array.new_float array.new_int array.new_label array.new_line array.new_string array.new_table array.pop array.push array.set array.shift array.size array.stdev array.sum array.unshift
barstate.* (6)
barstate.isconfirmed barstate.isfirst barstate.ishistory barstate.islast barstate.isnew barstate.isrealtime
box.* (12)
box.delete box.new box.set_bgcolor box.set_border_color box.set_bottom box.set_extend box.set_left box.set_right box.set_top box.style_dashed box.style_dotted box.style_solid
color.* (19)
color.aqua color.black color.blue color.fuchsia color.gray color.green color.lime color.maroon color.navy color.new color.olive color.orange color.purple color.red color.rgb color.silver color.teal color.white color.yellow
extend.* (4)
extend.both extend.left extend.none extend.right
hline.* (3)
hline.style_dashed hline.style_dotted hline.style_solid
input.* (6)
input.bool input.color input.float input.int input.source input.string
line.* (14)
line.delete line.new line.set_color line.set_style line.set_width line.set_x1 line.set_x2 line.set_xy1 line.set_xy2 line.set_y1 line.set_y2 line.style_dashed line.style_dotted line.style_solid
location.* (5)
location.abovebar location.absolute location.belowbar location.bottom location.top
map.* (8)
map.contains map.get map.keys map.new map.put map.remove map.size map.values
math.* (16)
math.abs math.avg math.ceil math.e math.exp math.floor math.log math.log10 math.max math.min math.pi math.pow math.round math.sign math.sqrt math.sum
plot.* (8)
plot.style_area plot.style_circles plot.style_columns plot.style_cross plot.style_histogram plot.style_line plot.style_linebr plot.style_stepline
shape.* (12)
shape.arrowdown shape.arrowup shape.circle shape.cross shape.diamond shape.flag shape.labeldown shape.labelup shape.square shape.triangledown shape.triangleup shape.xcross
size.* (6)
size.auto size.huge size.large size.normal size.small size.tiny
str.* (4)
str.contains str.format str.length str.tostring
strategy.* (27)
strategy.cancel strategy.cancel_all strategy.cash strategy.close strategy.close_all strategy.closedtrades strategy.commission.cash_per_contract strategy.commission.cash_per_order strategy.commission.percent strategy.entry strategy.equity strategy.exit strategy.fixed strategy.grossloss strategy.grossprofit strategy.initial_capital strategy.long strategy.losstrades strategy.netprofit strategy.openprofit strategy.opentrades strategy.order strategy.percent_of_equity strategy.position_avg_price strategy.position_size strategy.short strategy.wintrades
syminfo.* (4)
syminfo.mintick syminfo.pointvalue syminfo.ticker syminfo.tickerid
ta.* (43)
ta.atr ta.barssince ta.bb ta.bbw ta.cci ta.change ta.cross ta.crossover ta.crossunder ta.cum ta.dev ta.dmi ta.ema ta.falling ta.highest ta.highestbars ta.hma ta.kc ta.linreg ta.lowest ta.lowestbars ta.macd ta.median ta.mfi ta.mom ta.pivothigh ta.pivotlow ta.rising ta.rma ta.roc ta.rsi ta.sar ta.sma ta.stdev ta.stoch ta.supertrend ta.tr ta.valuewhen ta.variance ta.vwap ta.vwma ta.wma ta.wpr
timeframe.* (6)
timeframe.isdaily timeframe.isintraday timeframe.ismonthly timeframe.isweekly timeframe.multiplier timeframe.period
Deepwick is not affiliated with TradingView. Pine Script is a trademark of TradingView, Inc.