Arth Script is the Arth.live language for your own indicators. Write a short formula or a full script, tap Check to find mistakes before anything is drawn, and see it on the candles you are already looking at. It works out numbers from past candles with the same code as the built-in indicators.
A custom indicator with three lines: the 20-candle average and two standard deviations above and below it. Real Arth.live screen on demo data.
01 / Two ways to write
A formula or a script.
Both live in the chart’s Indicators sheet, under My indicators. Start with a formula; move to a script when the idea grows.
01
A short formula: Build my custom indicator
One to three lines, each a single formula with its own label and colour. Quick to write, and it can be saved to My indicators when you are logged in. Best for a line you want to see today, such as the gap between two moving averages.
02
A full script: Write an Arth Script
A multi-line editor with line numbers, for ideas that need more than one formula: named values, settings you can change from the chart, if / else choices and values carried from candle to candle. Best when the idea has steps.
02 / The formula form
Five steps to a line on the chart.
Step 01
Open My indicators
On the chart, open Indicators, then the My indicators tab, then Build my custom indicator.
Step 02
Name it and choose where it draws
Give it a name and pick the price chart (on the candles) or its own pane below the chart.
Step 03
Write one to three lines
Each line is one formula with a label and a colour. Example: 100 * (ema(close, 9) - ema(close, 21)) / close, the gap between a 9 and a 21 moving average as a percent of price.
Step 04
Check
Tap Check. A wrong formula gets a plain-English reason and the place it went wrong, so you can fix it before anything is drawn.
Step 05
Apply
Tap Apply. The chart changes only when the whole indicator is valid. Logged in, Save to My indicators keeps it with your account.
03 / Inside a formula
Small, and safe.
A formula is not a program. It cannot reach the network, your files or the page. It only works out numbers from the candles it is given.
01
8 price inputs
open, high, low, close and volume, and three averages of them: hl2, hlc3 and ohlc4.
02
18 functions
sma, ema, wma, rma, rsi, stdev, highest, lowest and roc, each with a length; and atr, change, abs, sqrt, log, min, max, pow and nz.
03
Maths and logic
Plain maths, comparisons (true is 1, false is 0), and / or / not, and “n candles ago” written as x[n].
04
Honest blanks
A candle without enough history is left blank, never drawn as zero. A division by zero is blank too.
04 / The script editor
When the idea has steps.
In My indicators, Write an Arth Script opens a full editor. A script starts with the line //@arth 2, names itself with indicator(…), and then works through your idea one line at a time.
The editor’s first example. Fast length and Slow length show up as settings on the chart.
The same EMA cross, written in Hindi (हिन्दी chosen under Keywords in). Function names such as ta.ema stay in English. Real Arth.live screen on demo data.
01
Familiar names
Built-in functions use names such as ta.ema, ta.sma, ta.rsi, ta.atr, ta.stdev, ta.highest, ta.crossover and math.round. The short names from the formula form, such as ema and rsi, still work.
02
Settings from the chart
Write input.int, input.float, input.bool or input.source, and each one becomes a field in the indicator’s settings, so you can change a length without touching the script.
03
Steps and choices
Named values, if / else, switch and the short a ? b : c form. A value marked var keeps its number from one candle to the next, for counts and running totals.
04
Lines and levels
plot draws a line; hline draws a fixed level, such as 70 and 30 on an RSI. A script draws lines and levels only.
05
Same maths as the chart
ta.ema(close, 20) gives the same values as the chart’s own EMA 20, because the script uses the same calculation as the built-in indicators.
06
Keywords in your language
Keywords such as if, else, and, or, close and plot can be written in any of 25 languages, including Hindi, Bengali, Tamil and Marathi. Names such as ta.ema stay in English.
One letter missing: Check points to line 8, column 6, and suggests slow, in English and in Hindi. Real Arth.live screen on demo data.
01
Check names the line and column
Tap Check and every mistake comes back with its line, its column, a short reason and a hint, for example a function name with a letter too many. Messages are in English and Hindi.
02
Add to chart
When the script is clean, Add to chart draws it on the chart you have open. The script runs apart from the chart and is stopped if it takes too long, so a heavy script cannot freeze the chart.
03
Start from a working example
The editor offers starter scripts that are known to compile and to give the same values as the chart’s built-in indicators. Pick one and change it.
After Add to chart: the fast and slow EMA lines on the candles, and the script’s name in the chart legend. Real Arth.live screen on demo data.
01
EMA 9 / 21 cross
Two moving averages on the candles, with their lengths as settings.
02
Bollinger Bands
A 20-candle average with lines two standard deviations above and below it.
03
RSI with 70 / 30
RSI in its own pane, with fixed levels at 70 and 30.
04
Count of up bars
A running count of candles that closed above their open, kept with var.
05
Two examples in Hindi
An EMA cross and a trend count, written in Hindi.
06 / Limits
Limits, stated plainly.
Limits of the formula form and the script editor
Formula
Script
Lines or plots
1 to 3 lines
Up to 32 plots
Length
500 characters per formula
50,000 characters per script
Look back (x[n])
500 candles
5,000 candles
Saved
50 in My indicators, with your account
In the QuantPower app, in My scripts
What it draws
Lines
Lines and fixed levels
On Arth.live a script is written, checked and added to the chart. Saving scripts to My scripts, and using them as a condition in rules and backtests, is in the QuantPower app.
07 / With Arth AI
Ask in your words. Write it yourself.
Arth AI sits beside the chart and answers in 25 languages, by text or voice.
The Arth AI panel beside the chart. Real Arth.live screen, 12 Nov 2026.
01
Explain the idea
Describe what you want to see, such as “the gap between the 9 and 21 EMA as a percent of price”. Arth AI explains how it would work and which formula lines to write.
02
You type, check and apply
Arth AI on Arth.live does not draw or save an indicator by itself. You add the lines in My indicators, tap Check, then Apply.
03
Then test it
Build your idea with Arth AI, then log in and backtest it. A backtest shows how rules would have behaved on past candles; it is not a forecast.
Pine Script is TradingView’s language. Arth Script does not run Pine Script, and Arth.live is not linked with TradingView.
02
Easy to read if you know Pine
Function names such as ta.ema and input.int follow a style many traders already know, so an idea moves across with little effort. You write the Arth Script yourself.
Arth Script is Arth.live’s own language for your own indicators, built in India. You write a short formula or a full script, check it, and the chart draws it with the same code as the built-in indicators.
Do I need to know programming?+
No, not for the formula form. If you can say “the 9 EMA minus the 21 EMA”, you can write ema(close, 9) - ema(close, 21). The full script editor is closer to programming, and it starts you with working examples.
Is Arth Script free?+
Yes. Arth.live is free for everyone, and Arth Script is part of the chart.
Can Arth AI write it for me?+
Arth AI explains how your indicator would work and which formula to write, in your own language. You type it into the editor, tap Check and Apply. On Arth.live, Arth AI does not draw or save an indicator by itself. Build your idea with Arth AI, then log in and backtest it.
Where are my indicators saved?+
Formula indicators are saved to My indicators with your account, up to 50, once you log in. The same list shows in the QuantPower app. Logged out, the editor still draws your indicator on the chart; saving asks you to log in.
Can an indicator draw arrows, markers or shading?+
No. Arth Script draws lines today, and the script editor can also draw fixed levels. It does not draw markers, arrows, shading or background colours.
Can I use my own indicator in an alert?+
Yes. A saved formula indicator can be used in an indicator alert when you are logged in. In the QuantPower app it also works in rules, backtests and forward tests.
Does Arth Script run Pine Script?+
No. Pine Script is TradingView’s language. Arth Script is a separate language of our own, and Arth.live is not linked with TradingView. Some function names look alike, so a Pine user reads an Arth script easily.
Does Arth Script place orders or give advice?+
No. An indicator only works out numbers from past candles and draws them. It places no orders and gives no buy or sell advice.
Start
Write it. See it on the chart.
Arth Script is software for charts and research, not a SEBI-registered research analyst or adviser. It gives no buy/sell calls, targets or picks, and places no orders. Trading involves risk.