Custom Indicators with FXR Script

FX Replay Help CenterUpdated November 21, 2026

Convert Pine Script indicators to FXR Script in the Code Editor, or build your own custom indicators with FXR Script.

Indicators written in Pine Script can't run in FX Replay as they are, but the Code Editor on the New Chart can convert them to FXR Script for you. You can also build your own custom indicators with FXR Script and the built-in Code Editor.

Convert a Pine Script indicator

FX Replay uses its own language. Scripts written in Pine Script or in FXR Script V1 need converting to FXR Script V2, the version the New Chart uses. The Code Editor does this for you.

  1. Open the Code Editor and create a new script (see below).
  2. Paste your Pine Script code. A Pine Script detected message appears.
  3. Click Convert to FXR Script. You'll see Building your indicator while it converts. It runs in the background, so you can keep using your chart. Long scripts can take a few minutes.
  4. When Ready appears, the converted script is in the editor. If something couldn't be converted, a box lists each item and explains why. You can fix those parts with the FXR Scripting GPT, or ask in #fxr-script on Discord.
  5. Click Run to apply it to your chart.

You can run one conversion at a time.


Open the Code Editor

The Code Editor button in the top-right toolbar of the chart.

Click the Code Editor button (</>) in the top-right toolbar of your chart. The editor opens on the right side of the screen.


Create and run your own indicator

Create a new script (1) or browse indicators (2).

  1. On the welcome screen, click New to start a new script. To browse existing scripts, including ones shared by other traders, click Indicators.
  2. Give your indicator a name and save it. A starter template opens, ready to edit.
  3. Write or paste your FXR Script code.
  4. Click Run to apply the indicator to your chart. If a confirmation window appears, click Proceed anyway.

The Scripting reference in the bottom-right corner of the editor lists the functions you can use.


Publish your indicator

Publishing saves your indicator and lets you choose who can use it.

  1. Click Publish in the top-right corner of the editor. If you have unsaved changes, click Save & Publish.
  2. Choose who can see it (see the table below).
  3. Enter a name. You can't change the name after publishing.
  4. Add tags and a short description of what your indicator does.
  5. Click Publish script.
Option Who can use it Source code
Public Listed in FXR Community Scripts. Anyone can add it to their chart. Anyone can read it
Chart only Listed in FXR Community Scripts. Anyone can add it to their chart. Hidden
Private Only you Only you

To use a community script, open it and click Add to chart.

Before you publish publicly: only publish code you wrote or have permission to share, and don't use scripts to advertise or sell anything. Scripts you share can be shown to and used by other traders, and FX Replay may remove scripts that break the rules. You'll find the full rules under Our rules and Terms of use on any community script page, and in the FXR Script guidelines.


Get help with FXR Script

The ⋮ menu in the top-right corner of the editor gives you:

  • Editor settings to change how the editor looks and behaves.
  • FXR logs (developer mode) to see errors and messages from your script while you test it.
  • Help, with links to the Documentation, the Guidelines, Discord, and forms to send a Feature request or report a bug (Bug intake).

Useful resources:

For more hands-on help, join our Discord community and post in LEARN & PRACTICE → #fxr-script. Members of our team and experienced FXR Script users regularly help with implementation questions there.


Frequently Asked Questions

Yes, on the New Chart. Paste it into the Code Editor and click Convert to FXR Script. Anything that can't be converted is listed so you can fix it yourself.

Custom indicators are included on the Intermediate and Pro plans. See Plans & Pricing Compared.

Yes. A script can be up to about 100 KB (around 100,000 characters), which is roughly 2,000–3,000 lines of code.

Check FXR logs in the ⋮ menu to see what went wrong, then look at the documentation. If you're still stuck, post in #fxr-script on Discord.

Yes. When you publish, choose Chart only. Other traders can add it to their chart, but your source code stays hidden.

No. The name can't be changed after publishing, so choose it carefully.

Keep exploring this topic.

Refine your process