Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Pine Script in Kingfisher

How to create, edit, run, configure, and troubleshoot Pine Script Beta indicators on a Kingfisher chart.

Kingfisher’s chart editor includes a Pine Script Beta engine for supported indicator scripts. It evaluates a version-5-style script against the chart’s candle data and renders its plots as overlays or in a separate pane; it does not promise full TradingView compatibility.

Open the Pine editor

  1. Add or open the Chart widget in a workspace.

  2. Open Indic. in the chart header, then open the indicator library. Select Create to make a blank indicator, or open an indicator you can edit.

  3. In the indicator editor, choose PINE SCRIPT BETA. This selector is separate from the AGGR script engine.

  4. Write or paste the script in Script. Use Options and the settings panel to configure supported script inputs and display settings.

  5. The attached indicator evaluates on chart bars and its supported plots render on the chart. Use the save control when you want to persist the indicator.

The first time Pine Script is enabled in a browser profile, the app may show a terms and disclaimer panel. Read the full text in the app before choosing Accept. This guide does not replace those terms.

Pine Script Beta editor with numbered callouts for the script area, engine selector, and options panel.

1 — edit code in Script; 2 — choose Pine Script Beta rather than AGGR; 3 — review input and display settings.

Example: a moving-average overlay

This version-5-style example plots a 14-bar simple moving average over the price chart. The example was validated and run against sample candle data in the Kingfisher Pine WebAssembly engine.

Use overlay=true for a price-chart plot. The plot is calculated from the chart’s selected instrument, timeframe, and loaded bars.

Example: a separate RSI pane

Set overlay=false to render the oscillator in its own pane. This tested example also shows editable input.int settings and guide lines.

Inputs, overlays, and settings

  • Declare supported inputs with input.int, input.float, input.bool, input.string, or input.source. The editor scans these declarations and exposes supported settings in the indicator’s Options view.

  • Use overlay=true for chart-level plots or overlay=false for a separate indicator pane. Each plot uses the engine’s returned overlay setting.

  • The separate settings panel includes input options and general series controls such as scale and format. Available controls depend on the script’s plots and declarations.

  • The script runs over the chart’s loaded historical bars and receives updates as the forming candle changes. A value on the active candle can change before that candle closes.

  • Use the save control to persist an indicator when you want to keep it. Use presets for reusable supported settings or script selections where available.

Compatibility and beta limits

  • The interface labels the engine Pine Script Beta. The built-in starter and shipped Pine indicator examples use //@version=5; this guide uses version-5-style syntax.

  • The engine is an independent implementation. Passing a script through validation does not prove exact parity with TradingView or guarantee that every official Pine function, built-in, import, alert, or strategy feature is supported. Validate imported scripts individually and simplify unsupported constructs.

  • Version-6 compatibility is not documented as complete. Use the version-5-style examples above and treat any version-6 script as unverified until the app validates and renders it correctly.

  • This chart integration renders indicators; it does not run broker orders or provide a strategy backtest. Do not interpret an indicator plot as a trade instruction.

  • The AGGR editor uses a different script language and engine. The KF-TradingView pane embeds another chart experience; its controls and runtime are separate.

Troubleshooting

Symptom
What to check

The script does not compile

Read the editor error, check parentheses and argument names, and reduce the script to a small version-5-style example.

The indicator is blank

Confirm the script is attached and visible, check the selected instrument and timeframe, and allow enough bars for the lookback to warm up.

The line appears in the wrong pane

Check the overlay argument in indicator(); use true for the price chart or false for a separate pane.

An input is not editable

Confirm the script uses a supported input declaration and inspect the indicator’s Options tab.

Values differ from another charting platform

Compare instrument, candle source, timeframe, loaded history, and indicator initialization. The independent beta engine does not claim exact parity.

Trademark and disclaimer

Pine Script® and TradingView® are registered trademarks of TradingView, Inc. The Kingfisher is independent and is not affiliated with, endorsed by, or sponsored by TradingView. Read the full in-app scripting terms and disclaimer before use; those governing terms remain controlling.