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.

Build a TradingView indicator with AI

Using a visual reference

Supported models can accept a PNG, JPEG or WebP chart image up to 3 MB. An image can communicate plot style, marker placement, panel position and approximate visual behaviour. It cannot reveal an exact formula, so accompany it with written instructions that explain what the visual elements represent and how values should be calculated.

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.