TradeReign
Back to HomeEducation HubCompatibilityAboutDisclosures
NinjaTrader Web

NinjaTrader Web Custom Indicator Not Showing?

Use a fresh native chart and a display-only indicator to check where the setup stops working. The same test helps distinguish a chart or account issue from a calculation problem in a more complex indicator.

Quick Answer

Open Chart (NinjaTrader) and search for the indicator in Add indicators. For your own JavaScript file, check that it was saved in the Code editor. If the indicator appears in the picker but draws no line, check whether it was added, whether it is visible, and whether it returns a number for a completed bar.

Start 7-Day TrialAdd a private test indicatorVerify the line against a barDiagnose the symptomCheck saved chart settings

Add a private JavaScript indicator to Chart (NinjaTrader)

In your NinjaTrader Web workspace, add Chart (NinjaTrader) and Code editor. Open a liquid dated contract on a plain one-minute chart. In Code editor choose File → New. Name the file tradeReignInputCheck.js, paste the sample, and use File → Save. NinjaTrader documents that you can use your own saved file without publishing it.

On Chart (NinjaTrader), open Add indicators and search for tradeReignInputCheck, the name exported by the module. Select it to add it. For a community indicator, install it through the Community Indicators panel first, then add it from the chart's picker.

This sample adds three points to whichever price input the indicator receives. It draws a reference line for a display check. For code from another platform, first identify the file type. NinjaTrader Desktop NinjaScript uses C#, TradingView Supercharts uses Pine Script, and NinjaTrader Web’s Code editor uses JavaScript.

class TradeReignInputCheck {
  map(bar) {
    const input = bar.value();
    return input + 3;
  }
}

module.exports = {
  name: "tradeReignInputCheck",
  calculator: TradeReignInputCheck,
};

Verify one finished bar before testing the rest

Use Close as the input if your indicator settings expose the choice. Read one completed bar with the same timestamp in the chart and plot. The sample adds three price points to the input. On MES, three points is 12 ticks. In the synthetic example below, a close of 6,002.25 gives 6,005.25, even though the following bar has a different close.

For your own chart, use the actual bar value rather than the fictional price. If the line is offscreen, check the price scale and allow indicators in the auto-fit range. If the two values differ by something other than three points, check the input selection, timestamp, and whether the bar is still forming.

Check the input and plotted value on the same bar

Synthetic MES 1-minute candles. Times are bar closes in ET.

The amber line is the close plus 3 points. At marker 1, the 09:42 ET bar closes at 6,002.25 and the example plot reads 6,005.25.

Tell a missing indicator from a blank plot

If the example also fails on a new native chart, record the chart type, dated contract, interval, file and exported name. Include any error text shown in the editor or chart and say whether the indicator ever appeared in the picker. That gives support a reproducible starting point.

Troubleshooting by what the native chart shows
What you seeWhat to check
Missing from Add indicatorsCheck the widget title, signed-in user, saved file, and exported name. For a community indicator, confirm it was installed.
Listed but no lineCheck the applied indicator list, visibility, scale and available bars. Try the sample on the same chart before changing your code.
Sample plots but your indicator is blankTest the inputs and required lookback on a completed bar. An indicator that needs 20 bars can have fewer than 20 valid values at the start.
Present in one chart onlyCheck which widget you opened and whether the indicator was added to that tab. Load a native chart template with the saved indicator configuration if you want to recreate it.

Check what a NinjaTrader Web chart template restores

Use two Chart (NinjaTrader) widgets with the same dated MES contract. On the first, choose a five-minute candlestick chart and add an EMA with length 21. Save it as a named template from Template → Save as. Open the second chart at one minute, then apply the saved template from its Template menu.

The expected result is a 21-period EMA on the destination’s one-minute candles. Check the study’s settings for 21 before comparing its values with the source chart. Change the destination to five minutes and match its session and input if you want the two indicators to read the same series.

The template stores indicator settings and native Data Box placement. Set chart style, interval, crosshair and drawing tools separately. In NinjaTrader Web’s embedded Chart (TradingView), look for Presets. To recall the set of widgets you configured, use the workspace controls.

If you meant to replace an older named template, give the new save a distinct name. NinjaTrader says Save as creates a new template or preset. Reload that new name on the destination and recheck the EMA setting.

Sources

Official References

Platform details on this page were checked against these official resources.

NinjaTrader Web workspace settingsFind the controls for organizing and recalling sets of widgets.CME Micro E-mini contract specificationsMES ticks in quarter-point increments.NinjaTrader Web custom and community indicatorsOfficial Code editor steps, private usage, chart selection and community installation.NinjaTrader Web JavaScript SDK exampleThe CommonJS indicator definition and numeric input to the calculator.NinjaTrader Web indicator controlsCompare the indicator libraries and supported chart controls.NinjaTrader Web chart templatesSave and apply indicator configurations on native charts.
Related Guides

Keep Building the Rule System

Check TradingView Supercharts invite-only access

Find the exact script in TradingView and distinguish access from display settings.

Compare Web JavaScript, NinjaScript and Pine Script

Identify which chart can load each kind of indicator.

Check indicators on the NinjaTrader Web SuperDOM

Review chart linking and ladder settings when the chart has a value.

FAQ

Common Questions

Why does my NinjaTrader Web template leave the chart on the old interval?

Templates and presets carry indicators and their settings. Set the interval on the destination chart and verify it alongside the restored indicator inputs.

Do I have to publish a NinjaTrader Web custom indicator?

No. Save the file in Code editor and add it to your own Chart (NinjaTrader). The community publishing flow is optional.

Can I use the same indicator on the embedded TradingView chart?

NinjaTrader Web's embedded Chart (TradingView) offers TradingView's built-in indicators. Use Chart (NinjaTrader) for Web Code editor indicators or TradingView Supercharts for Pine Script.

Risk Disclosure

Futures trading contains substantial risk and is not suitable for every investor. TradeReign is a trading-discipline and rule-enforcement application. It does not provide trading advice, trade signals, investment recommendations, or performance guarantees.

TradeReign is not a broker-dealer, futures commission merchant, or investment advisor.

Futures trading contains substantial risk and is not for every investor. An investor could potentially lose all or more than the initial investment. Only risk capital - money that can be lost without jeopardizing financial security or lifestyle - should be used for trading. Past performance is not necessarily indicative of future results.