Appearance
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.
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.
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.
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.
| Section | What it answers |
|---|---|
| Get started | How to write a script, add it to a chart and backtest it, and which dialect to write in. |
| Guide | How a script runs bar by bar, and each part of the language. |
| AmenoScript | What AmenoScript adds to Pine, and the leak-safe rules that come with it. |
| Reference | Every built-in function, variable and constant, with its signature. |
| Examples | Complete scripts to copy and adapt. |