Skip to content

Create a NinjaTrader Indicator from an Image with AI

Xen AI for NinjaTrader can use a chart image or screenshot as a visual reference when creating a custom NinjaTrader indicator. This is useful when you have seen an indicator on another chart or trading platform and want to create something similar in NinjaScript, but do not have the original source code.

The Build Indicator and Convert Indicator tasks support image uploads when the selected AI model includes vision capabilities.

Upload an Image to Build a NinjaTrader Indicator

Upload a screenshot showing the indicator you want to create, then describe the important calculations, signals and visual elements in plain English. An image can help Xen understand plot styles, signal markers, colours, chart labels, panel placement, support and resistance zones, market structure and other visual behaviour. The screenshot should support your written request rather than replace it. Explain what the important elements represent and how you expect the NinjaTrader indicator to behave.

Watch: Create a NinjaTrader Indicator from an Image

Watch this 3-minute demonstration showing how Xen AI uses an uploaded image to create a custom NinjaScript indicator.

Tip: Set the video quality to HD (1080p) for the clearest view of the Xen workspace and generated indicator.

Watch the NinjaTrader AI indicator tutorial on YouTube

Choose an AI Model That Supports Images

Image uploads require an AI model with vision support. Xen will indicate when the currently selected model cannot process images. Select a compatible model before uploading your screenshot. AI model capabilities can change over time, so use the information shown inside Xen rather than assuming every available model supports image input.

Prepare the Screenshot

For the best results, crop the screenshot so the indicator and relevant chart area are clearly visible. Make labels readable and remove unnecessary information. Avoid including account numbers, personal information or anything else that is not required to create the indicator. If colours have a specific meaning, describe this in your request. For example, explain whether a green line represents support, a red area represents resistance or a marker identifies a particular trading signal.

From Image to NinjaScript

An image shows what an indicator looks like, but it does not contain the original calculations or programming logic. Xen uses the screenshot together with your written requirements to create a new NinjaScript implementation for NinjaTrader. After the indicator has been generated, review the source code and compare its output with the reference inside NinjaTrader. A visual match does not guarantee that the underlying calculations or signals are equivalent to the original indicator.

Once the first version is working, continue the project in Xen and request additional changes. You can modify calculations, configurable inputs, colours, labels, alerts, chart objects or other indicator behaviour without starting the project again.