PineChart Documentation

PineChart is an MQL5 Expert Advisor that runs Pine Script indicators and strategies directly inside MetaTrader 5. No manual conversion to MQL5 required.

PineChart currently implements 511 out of 768 Pine Script v5/v6 API functions (~66%), with new functions added every week.


Section Description
Getting Started Install PineChart and run your first Pine Script indicator in MT5
Architecture How the Pine Script engine works under the hood
API Coverage Full function-by-function implementation status
Known Quirks Limitations and behaviors to be aware of

What PineChart Does

  • Runs Pine Script natively in MT5 — paste your .txt source file, type the filename, done
  • Full interpreter pipeline — lexer, parser, and per-bar execution engine built entirely in MQL5
  • Modern charting UI — TradingView-style candlesticks, crosshair, gradient themes, multi-pane layout
  • Strategy execution — Pine Script strategy.* functions map to MQL5’s CTrade for live and backtest trading
  • Multi-indicator support — run N indicators simultaneously with isolated execution state
  • Multi-timeframe datarequest.security() for cross-symbol and higher-timeframe access

Supported Pine Script Features

  • All control flow: if/else, for, while, switch, ternary ? :
  • Variable persistence: var, varip
  • User-defined functions with default/named arguments
  • User-defined types (UDTs) with fields, methods, and chained access
  • 69 technical analysis functions (SMA, EMA, RSI, MACD, Bollinger Bands, SuperTrend, and more)
  • 47 array functions, 16 string functions, and all 14 input types
  • Drawing objects: line, label, box, hline with handle-based pool
  • Tables with 9 screen positions and auto-sized cells
  • Plot styles: line, histogram, columns, circles, cross with per-bar dynamic colors

© 2026 PineChart. All rights reserved.

This site uses Just the Docs, a documentation theme for Jekyll.