Article
AI Custom Indicators Without Pine Script (or TradingView)
LuxAlgo Quant and Pineify let AI write custom indicators — but only as Pine Script, which only runs inside TradingView. MyLinedChart's custom formula indicators skip Pine Script entirely: describe it in plain language, get a sandboxed formula, see it render on your own local chart.
A wave of AI tools now write custom trading indicators from a plain-language description — LuxAlgo Quant (launched February 2026) and Pineify both do this. There's a catch: what they write is Pine Script, and Pine Script only runs inside TradingView. MyLinedChart takes a different path. Its custom formula indicators skip Pine Script entirely — your AI agent describes the indicator as a sandboxed math formula, and it renders directly on your own local chart, no TradingView account required.
The New Wave: AI Writes Your Indicators — In Pine Script
LuxAlgo Quant, which launched in February 2026, lets you describe an indicator in plain language and get working code back. Pineify does the same thing. Both are genuinely useful — they lower the barrier to building a custom indicator from days of scripting to a sentence.
The catch is the output format: both tools generate Pine Script, TradingView's proprietary scripting language. Pine Script only executes inside TradingView's own charting engine. If you don't have a TradingView account — or you chart somewhere else, like a desktop app connected directly to your own broker — the code these tools hand you doesn't run anywhere.
That's not a criticism of either tool. They're built for the TradingView ecosystem, and they do that job well. It just means the AI-writes-your-indicator idea, as shipped today, is TradingView-locked.
MyLinedChart's Different Approach: No Pine Script At All
MyLinedChart's custom formula indicators solve the same underlying problem — describe an indicator, get it built — without ever touching Pine Script. You tell an MCP-connected AI agent (Claude Code, Codex, or any MCP client) what you want to see, and it writes a restricted math formula in MyLinedChart's own DSL, proposes it, and — once you confirm — it renders live on your own chart.
There's no code generation step that only makes sense in someone else's ecosystem. The formula runs directly inside MyLinedChart, on your own IBKR-connected desktop chart, with no TradingView account, no Pine Script knowledge, and no copy-pasting code between tools.
This isn't a new MCP tool — MyLinedChart still exposes nine MCP tools. Custom formula indicators are a capability inside the existing propose_chart_changes tool, alongside the rest of the drawing toolkit (trend lines, rays, Fibonacci retracements, rectangles, text notes) and built-in indicator configuration. See /mcp for the full toolkit.
How the Sandbox Keeps It Safe
A custom formula is restricted math, never code. It can only reference your chart's own OHLCV data — open, high, low, close, volume — through a fixed set of window functions (sma, ema, rsi, stdev, highest, lowest, sum, ref) plus basic arithmetic. There's no eval, no scripting language, and no access to anything outside that list.
An unsupported or malformed formula is rejected before it's ever written to your chart, with a specific parse error. The worst case if something is off is a wrong or mislabeled line — never code execution, never a trade, never account access. Custom formula indicators also stay local to your device; they are never uploaded to cloud sync.
MyLinedChart ships six built-in indicators — RSI, MACD, MA, EMA, BOLL, and VOL. Custom formula indicators are additional to those six, invented on demand rather than picked from a fixed library. For the full sandbox-safety walkthrough, see /resources/custom-formula-indicators.
Worked Examples
Your AI handles the translation from plain language to formula. Here's what a few common requests look like once translated:
| What you ask for | Formula your AI writes |
|---|---|
| The gap between a 20-day and 50-day SMA | sma(close,20)-sma(close,50) |
| Price minus its 21-period EMA | close-ema(close,21) |
| A standard 14-period RSI | rsi(close,14) |
| 20-bar volatility of the close | stdev(close,20) |
When You'd Want Pine Script Instead
If you're already deep in the TradingView ecosystem — using community-published Pine scripts, running strategies through TradingView's backtester, or sharing scripts with a TradingView-based community — LuxAlgo Quant or Pineify are the right tools for that context. Pine Script's strength is TradingView's script-sharing and strategy-testing infrastructure.
MyLinedChart's custom formula indicators are for a different situation: traders running a local, IBKR-connected desktop chart who want an AI-invented indicator on that chart specifically, without adopting TradingView or its scripting language at all. Different tools for a different setup, not a strict replacement.
FAQ
Do MyLinedChart's custom formula indicators generate Pine Script?
No. They use MyLinedChart's own restricted math DSL, which runs directly on your MyLinedChart chart. Pine Script only runs inside TradingView; MyLinedChart's formulas never touch it.
Do I need a TradingView account to use a custom formula indicator?
No. Custom formula indicators render on your own local MyLinedChart chart, connected to your own IBKR session. No TradingView account or subscription is involved.
Can a custom formula indicator run arbitrary code?
No. It's restricted math over your chart's own OHLCV data through a fixed set of window functions and arithmetic — no eval, no scripting language, no code execution. An invalid formula is rejected with a parse error before it's ever written.
Is this a new MCP tool?
No. MyLinedChart still exposes nine MCP tools. Custom formula indicators are a capability of the existing propose_chart_changes tool, alongside the drawing toolkit and built-in indicator configuration.
Is my custom formula indicator synced to the cloud?
No. Custom formula indicators stay local to your device. They render on your chart and are visible to your AI agent via the MCP server, but they are never uploaded to cloud sync.
Sample Structured Chart-Data Exports
Review how chart drawings, annotations, OHLC, volume, and execution context become reusable structured data.

