Exciting Update: Version 1.0.6 is now available, introducing Direct Pine Script Mode, Pine Logs Runtime Bridge, Zero-Repaint Linting, Source Maps, Intrabar MFE/MAE Stats, and expanded Pine v5/v6 Transpiler Parity. Read more
Live Interactive Pine Script & JavaScript Simulator (v1.0.6)

Create Trading Indicators with Pine Script & JS

Write TradingView Pine Script (v5/v6) or raw ES2020 JavaScript directly on the chart canvas. Enjoy instant auto-compile, live signature hints, streaming Pine Logs with chart bar jumps, and zero-repaint validation.

Open Documentation Direct Pine Mode & Logs
BacktestX Script Editor Preview

Features Designed for Algorithmic Success

Take complete control over your technical charting and strategy simulations with v1.0.6 tooling.

Direct Pine Script Mode

Auto-detects //@version=, indicator(), and strategy() with live signature hints, indentation folding, .pine file I/O, and Pine line source maps.

Canvas 2D & //@js-raw Hybrid

Full HTML5 Canvas context, polyline.new Bezier splines, color.gradient fills, hover interactivity (is_hovered), and //@js-raw inline JS escape blocks.

Pine Logs & Zero-Repaint Audit

Click log.info rows to jump straight to historical candles, enforce //@strict-no-repaint, and track commissions, slippage, pyramiding & MFE/MAE stats.

Pine Script & Canvas API Guide (v1.0.6)

Write native Pine Script v5/v6 indicators and strategies directly, or invoke low-level Canvas 2D & JavaScript runtime hooks.

Context Data & Pine Logs API
ctx.bars & hl2 / hlc3 / syminfo Series
Access raw OHLCV bars in JS or built-in derived series, calendar helpers, full barstate.*, session.*, and metadata-backed syminfo.* in Pine.
log.info(...) / ctx.log.info(...) v1.0.6
Stream {0}-formatted telemetry (capped at 500 entries) with #bar filtering and one-click chart bar jump highlighting.
Explore Direct Pine & Logs →
Pixel, Hover & Repaint Safety API
is_hovered(idx, price, w, h) Interactive
Translate bars/prices via barToX / priceToY, detect pointer hover bounds, or embed raw Canvas 2D inside //@js-raw blocks.
//@strict-no-repaint Linter
Compile-time zero-repaint audit flagging barmerge.lookahead_on and negative offsets with exact Pine source-mapped gutter diagnostics.
Zero-Repaint & Source Maps →
Plotting & Strategy Analytics API
p1 = plot(..., plot.style_stepline) v1.0.6
Render step, histogram, column, circle, and area series with dynamic per-bar colors, assigned plot/hline handles, and overlay=false panes.
strategy.set_metric / tag_trade Strategy
Inject custom KPI cards, tag trade rows, and automatically record commissions, slippage, pyramiding, and intrabar MFE/MAE stats.
Strategy MFE/MAE Docs →
Drawing, Curves & Gradient API
color.gradient(c1, c2, vertical) v1.0.6
Construct gradient fills alongside color.new, top/bottom fill gradients, and dynamic plot or hline shading.
polyline.new(pts, curved, closed) Vector
Build curved/closed polygons with chart.point.*, interactive box/label tooltip= strings, and enhanced fib.new mutators.
More Drawing APIs →

Take Your Backtesting to the Next Level

Author Pine Script v5/v6 indicators and strategies directly—with Pine Logs, Zero-Repaint audits, MFE/MAE metrics, and Canvas 2D hooks inside BacktestX.

Get Started Free