Release Notes
Version 1.0.1
Released: July 2026
This minor release introduces highly requested Custom UI hooks for the Strategy Tester. Script authors now have complete programmatic control over the capital and metrics displayed in the bottom terminal panel, allowing for dynamic, strategy-specific performance tracking and tailored trade metadata.
- Custom Strategy UI APIs: Introduced
ctx.strategy.setMetric(label, value, color)to inject custom top-bar metric blocks directly into the Strategy Tester dashboard. - Custom Trade Columns: Introduced
ctx.strategy.tagTrade(id, column, value, color)to append dynamic columns (like Confidence Scores) to individual trades in the Strategy Tester table. - Script-Driven Capital: Introduced
ctx.strategy.initial_capital(amount, currency). Scripts can now dictate their required starting capital, which automatically updates the Strategy Tester UI dropdown and re-calculates all PnL percentages. - Capital UI Defaults: The default fallback initial capital has been reduced from 1,000,000 USD to a more realistic 10,000 USD.
- Opening & Closing Positions: Added comprehensive documentation and robust support for
ctx.strategy.entry,ctx.strategy.close, and the advancedctx.strategy.exitfunction (supporting trailing stops and brackets). - Risk Management Engine: Added math enforcement for
ctx.strategy.risk.max_drawdownandctx.strategy.risk.max_intraday_lossto automatically halt trading based on equity limits. - Real-Time Tracking Variables: Exposed
ctx.strategy.position_size,ctx.strategy.position_avg_price, andctx.strategy.openprofit()for dynamic position sizing calculations directly inside strategy scripts.
Version 1.0.0
Released: Initial Launch
The initial launch of the BacktestX Scripting Engine. This release establishes the core JavaScript sandboxing environment, providing a robust foundation for building high-performance, interactive technical indicators and automated trading strategies directly within the browser.
- Sandboxed Script Engine: Introduction of the core JavaScript indicator overlay engine with full canvas clipping and safety checks.
- Drawing APIs: Native support for drawing lines, boxes, splines, and filling areas between indicators.
- Strategy Engine: Base support for
ctx.strategy.entry,close, andexitwith position sizing and Net Profit calculation logic. - Implicit Execution: Support for Pine Script-like implicit execution loops via
ctx.run()with stateful proxy tracking for previous bar lookbacks.