Skip to content

AmenoScript

The scripting language of Ameno Terminal, compatible with Pine Script v6. It adds reads across many symbols, portfolio weights, and backtests that can't look ahead.

Pine, and more than one chart ​

AmenoScript runs inside Ameno Terminal, a market terminal with charts, a Script Editor and a backtester (where your script runs). A script you wrote for TradingView in Pine Script v6 runs there unchanged, and Pine compatibility lists where our engine reads differently. AmenoScript is that language with its own additions, for work a single chart can't hold: reading the day's top coins by CoinMarketCap's ranking as a list, ranking them on your own measure, and turning the ranks into a portfolio.

ameno
indicator("Breadth of the top 20")
coins = request.universe(20, "stablecoin")   // CoinMarketCap's top 20, no stablecoins
above = request.each(coins, close > ta.sma(close, 50) ? 1.0 : 0.0)
plot(above.avg() * 100, "Share above their 50-day average, %")

Because it uses something only AmenoScript has, this script runs leak-safe: no value it reads comes from a bar that hadn't closed yet.

Where to go ​

SectionWhat it answers
Get startedHow to write a script, add it to a chart and backtest it, and which dialect to write in.
GuideHow a script runs bar by bar, and each part of the language.
AmenoScriptWhat AmenoScript adds to Pine, and the leak-safe rules that come with it.
ReferenceEvery built-in function, variable and constant, with its signature.
ExamplesComplete scripts to copy and adapt.

AmenoScript is compatible with Pine Script v6. Pine Script is a trademark of TradingView, Inc., which has no part in AmenoScript.