Skip to content

Building Indicators

Select Build Indicator to create a new TradingView indicator. Describe both the calculation and its presentation. State whether it should overlay the price chart or use a separate pane, and explain the plots, markers, colours, fills, levels and alerts that matter.

Standard names such as RSI, EMA or ATR have recognised baseline definitions. A custom calculation needs its formula, source series, lookback, smoothing and the conditions that change each output. If values come from another symbol or timeframe, say how gaps and unconfirmed bars should be handled.

Use Prompt Builder to remove guesswork

Xen gives you the choice to use Prompt Builder or continue with your original request. If important details are missing and you continue without it, Xen must make assumptions about the calculation and display, just as most other AI tools would. Use Prompt Builder and Build Plans to clarify formulas, inputs, plots, colours, alerts and timeframe behaviour before the indicator is created.

Build a TradingView indicator with AI

Upload an Indicator Image

You can upload an image of an indicator and ask Xen to create a Pine Script version. Supported models accept a PNG, JPEG or WebP chart image up to 3 MB. The image can communicate plot style, marker placement, panel position and approximate visual behaviour, but it cannot reveal the exact formula. Accompany it with written instructions explaining what the visual elements represent and how values should be calculated. See Create a TradingView Indicator from an Image for model and upload guidance.

Review the result

Xen returns one complete Pine Script v6 indicator. Copy or download it, replace the full script in Pine Editor and save it. Review compiler warnings as well as errors, particularly warnings about history-dependent functions called only inside conditional expressions.

Apply the indicator to more than one symbol and timeframe. Compare values, signals and alerts across historical and real-time bars, and inspect any higher-timeframe or lookahead behaviour for repainting. Continue in the same project for focused changes, or use Existing Indicator when starting from a complete Pine file outside the current project.