Start your 30-day free trial — use code MONARCH at checkoutBetter measurements. Better tools.Cancel anytime.
Start your 30-day free trial — use code MONARCH at checkoutBetter measurements. Better tools.Cancel anytime.

Market Inteligence Systems User Manuels & Setup

Please read user manual for our products before utalizing them

Setup
Market Structure Sys
Market Institutional Risk Sys
Market State Engine
Market Pairs Engine
Market Regime SJM

‍

Installing Your Market Intellignece System in NinjaTrader 8

Getting started only takes a few minutes. Follow the steps below to install and begin using your Market Monarch indicator.

Installation Steps

Step 1 — Download Your Indicator

After completing your purchase, download the indicator .zip file to your computer. Save it somewhere easy to find, such as your Downloads folder.

Do not extract or unzip the file — NinjaTrader imports the ZIP file directly.

Step 2 — Open NinjaTrader 8

Launch NinjaTrader 8 and wait for the Control Center to finish loading.

Step 3 — Import the Indicator

  1. From the Control Center, click Tools → Import → NinjaScript Add-On...
  2. Browse to the downloaded .zip file, select it, and click Open .
  3. If prompted, click Yes to begin the installation.

NinjaTrader may take a few moments to compile the indicator — this is completely normal.

Step 4 — Open a Chart

  1. From the Control Center, select New → Chart .
  2. Choose the instrument you'd like to trade.
  3. Select your preferred timeframe.
  4. Click OK to open the chart.

Step 5 — Apply the Indicator

  1. Right-click anywhere on your chart and select Indicators...
  2. Locate your Market Monarch indicator in the list, or use the search bar to find it quickly.
  3. Select the indicator, then click Add (or double-click it).
  4. Adjust any settings if desired.
  5. Click Apply , followed by OK .

Your indicator is now active and ready to use.

Adjusting Indicator Settings

You can modify your indicator's settings at any time:

  1. Right-click the chart and select Indicators...
  2. Choose your Market Monarch indicator.
  3. Make any desired changes.
  4. Click Apply , then OK to save them.

Updating Your Indicator

When a new version becomes available:

  1. Close any charts using the indicator.
  2. Navigate to Tools → Import → NinjaScript Add-On...
  3. Import the new .zip file.
  4. Confirm the update if prompted.
  5. Reopen your charts if necessary.

Troubleshooting

The indicator doesn't appear in the indicator list. Make sure the import completed successfully, restart NinjaTrader if necessary, and verify that you imported the original .zip file rather than an extracted folder.

An import error appears. Ensure you're running the latest version of NinjaTrader 8 and that you're importing the correct version of the indicator.

The indicator is installed but nothing appears on the chart. Confirm that the indicator has been added to the chart, check that you're using a supported instrument and timeframe, and verify that any display settings or plot colors haven't been disabled.

‍

‍

Market Structure System — User Guide

Type: NinjaTrader 8 Indicator (custom NinjaScript) What it does: Combines three independent analytical engines into one indicator, each with its own on-chart dashboard:

  1. MMSE — Market Structure Engine: How strong and trustworthy is the current trend/breakout?
  2. MEE — Exhaustion Engine: Is the current move getting stretched and due for a pause?
  3. MPE — Pressure Engine: Which side — buyers or sellers — currently has control?

All three auto-scale their lookback and smoothing based on your chart's timeframe, from 1-minute scalping charts up through Daily bars.

1. What Problem This Solves

Most single-purpose indicators tell you one thing — trend strength, or volume, or momentum — in isolation. Market Structure System puts three complementary reads side-by-side on the same chart: whether the trend is structurally sound, whether it's gotten overextended, and who's actually in control right now. Because all three auto-scale to whatever timeframe you're on, you don't need separate versions of the indicator for a 1-minute scalping chart versus a Daily swing chart.

3. The Three Engines (Plain English)

MMSE — Market Structure Engine

Looks at how directional and efficient recent price movement has been (using several complementary "is this a real trend or just noise" measurements) alongside volume and volatility behavior. Produces four component scores plus one overall composite score, each on a 0–100 scale:

  • Market Structure — overall trend character (trending vs. choppy vs. mean-reverting)
  • Trend Probability — how likely the current direction is to persist, including a read on whether pullbacks are likely to keep getting bought (or sold)
  • Breakout Quality — how structurally sound a breakout looks, and how likely it is to follow through
  • Participation — how much volume/volatility support is behind the current move
  • Composite — a single blended score summarizing all of the above, with a bonus applied when several underlying structural readings agree strongly with each other

MEE — Exhaustion Engine

Runs completely independently from MMSE, using its own inputs. It asks: has this move gone far enough, fast enough, and long enough that it's due for a pause? It combines:

  • Momentum Stretch — how far and how fast price has moved from its recent average
  • Participation Climax — whether volume/volatility is behaving in a "blow-off" climactic way
  • Distance From Value — how far price has strayed from session VWAP and a shorter-term anchored VWAP reference
  • Move Maturity — how long the current directional move has been running, and whether pullbacks within it are getting shallower (a classic early warning sign)

These four combine into an overall Exhaustion score.

MPE — Pressure Engine

Also fully independent, this asks: right now, are buyers or sellers more in control? It looks at where price is closing within its range, short-term momentum, range expansion, volume, and new-high/new-low behavior, separately for the buy side and the sell side. This produces:

  • Buy Pressure and Sell Pressure scores
  • Dominance — the difference between the two, from -100 (heavy seller control) to +100 (heavy buyer control)
  • Pressure Quality — whether the current pressure reading looks structurally backed or just noisy

4. Auto Timeframe Scaling

The indicator detects your chart's bar period and automatically adjusts its internal lookback and smoothing windows into one of five tiers, so you don't need to manually retune settings when switching charts:

Scalp

  • Typical Bar Period: 1 minute
  • Behavior: Longest relative lookback, heaviest smoothing — filters tick-level noise

Fast Intraday

  • Typical Bar Period: 2–5 minutes
  • Behavior: Shorter lookback than Scalp, moderate smoothing

Intraday

  • Typical Bar Period: 10–15 minutes
  • Behavior: Medium lookback, moderate smoothing

Swing

  • Typical Bar Period: 30–60 minutes
  • Behavior: Standard lookback, light smoothing (the original baseline tuning)

Position

  • Typical Bar Period: 2hr, 4hr, Daily+
  • Behavior: Compressed lookback, minimal smoothing

The current tier is shown at the top of the MMSE dashboard (e.g. [ SWING MODE ] ).

The Exhaustion and Pressure engines use their own small, fixed rolling window independent of this tiering system, so they remain responsive on any chart without waiting on MMSE's timeframe detection.

5. On-Chart Elements

MMSE Dashboard (top-left, toggle: Show Dashboard Overlay)

Shows the timeframe mode, then four bordered blocks — Market Structure, Trend Probability, Breakout Quality, and Participation — each with a 0–100 score, a plain-language classification (e.g. "STRONG TREND," "DEVELOPING," "MEAN REVERTING"), and for some, a short behavioral note (e.g. "Pullbacks likely bought"). A final line shows the overall Market State (e.g. "TREND ACCELERATION," "RANGE BOUND").

Chart Background Coloring (toggle: Show Background Coloring)

Tints the chart background using the same color scale as the dashboard, based on the Composite score — green tones for strong structure, red tones for weak/mean-reverting conditions.

Exhaustion/Pressure Dashboard (bottom-left, toggle: Show Exhaustion/Pressure Dashboard)

A second panel combining both MEE and MPE: - Exhaustion section: overall Exhaustion score/classification, plus the four component readings (Momentum Stretch, Participation Climax, Distance From Value, Move Maturity) and a plain-language exhaustion state (e.g. "ELEVATED STALL RISK," "FRESH MOVE"). - Pressure section: a visual "tug-of-war" bar showing Buy vs. Sell pressure side by side, the Dominance score with a plain-language Flow State (e.g. "ACCUMULATION," "SELLER CONTROL," "BALANCED"), and Pressure Quality.

Exhaustion Wave (toggle: Show Exhaustion Wave)

A smooth, gradient-filled curve drawn below price that rises and falls with the Exhaustion score. It uses a deliberately cool blue → cyan → near-white color scale (rather than the warm red/orange/green used elsewhere) so it's never visually confused with the MMSE structure background or dashboard colors at a glance.

6. Settings Reference

Parameters

ATR Period (30-min baseline)

  • Description: ATR period used as the baseline for the "Swing" (30–60 min) tier; automatically re-scaled for other timeframes
  • Default: 14

RVOL Period (30-min baseline)

  • Description: Volume baseline period used as the baseline for the "Swing" tier; automatically re-scaled for other timeframes
  • Default: 20

Display

Show Background Coloring

  • Description: Tints the chart background based on the Composite score
  • Default: On

Show Dashboard Overlay

  • Description: Shows the MMSE dashboard panel (top-left)
  • Default: On

Exhaustion & Pressure

Show Exhaustion/Pressure Dashboard

  • Description: Shows the combined MEE + MPE dashboard panel (bottom-left)
  • Default: On

Show Exhaustion Wave

  • Description: Draws the cool-toned gradient wave curve reflecting the current Exhaustion score
  • Default: On

Anchored VWAP Bars

  • Description: Number of bars back used for the Exhaustion Engine's shorter-term anchored VWAP reference
  • Default: 60

7. How to Read the Dashboards

  • Green shades (score 81–100 / 61–80) = strong, healthy readings — strong trend, strong pressure, fresh move.
  • Gold (41–60) = developing/transitional/moderate readings.
  • Orange/Red (0–40) = weak structure, choppy/mean-reverting conditions, or (on the Exhaustion side) elevated stall risk.
  • MMSE "Market State" line = a one-line summary combining all four MMSE pillars (e.g. "TREND ACCELERATION" vs. "RANGE BOUND").
  • Exhaustion score climbing into the 60s/80s = the current move is getting stretched; historically a higher-risk time to be initiating fresh positions in the direction of the move.
  • Dominance moving strongly positive or negative = one side (buyers or sellers) is clearly winning control right now; "BALANCED" means neither side has a clear edge.
  • Pressure Quality = a sanity check on the Dominance reading — a high Dominance reading with low Pressure Quality suggests the imbalance may be noisier/less structurally reliable than it looks.

Remember: MMSE, MEE, and MPE are independent of each other. A strong MMSE trend reading does not guarantee low Exhaustion, and a high Exhaustion reading does not override or change what MMSE or MPE are showing — each panel should be read on its own terms, then combined by you into an overall picture.

8. Suggested Starting Points

  • New to the indicator: leave all four toggles on to see the full picture, then turn off whichever dashboard/visual you don't personally use.
  • Trend-following approach: lean on the MMSE dashboard's Composite/Market State first; use MPE's Dominance to confirm which side currently has control before entering with the trend.
  • Watching for exhaustion / reversal risk: keep an eye on the Exhaustion score and wave — a strong MMSE trend combined with a climbing Exhaustion score is often read as "still trending, but getting late in the move."
  • Different timeframes: you generally don't need to retune ATR Period or RVOL Period when switching charts — the auto-scaling tiers handle that. Those two settings only need adjusting if you want to shift the baseline tuning itself (they define the Swing-tier baseline that all other tiers scale from).

9. Troubleshooting

Dashboards don't appear at all

  • Likely Cause: Not enough historical bars loaded yet for MMSE's warm-up, or the relevant "Show ..." toggle is off
  • Fix: Load more chart history; confirm the corresponding Display / Exhaustion & Pressure toggle is on.

MMSE dashboard is blank/frozen but Exhaustion/Pressure dashboard works fine

  • Likely Cause: MMSE has a longer warm-up requirement (based on its auto-scaled lookback) than MEE/MPE, which use a small fixed window and start much sooner by design
  • Fix: This is expected — give MMSE more bars to warm up; it will populate once enough history is available.

Timeframe mode label seems wrong

  • Likely Cause: Uncommon bar types (e.g. tick or range bars) fall back to a default assumption for "minutes per bar"
  • Fix: This indicator is designed for time-based bars (minute/second/daily); tick or range bars may not auto-scale as intended.

Exhaustion Wave looks jumpy or oddly positioned

  • Likely Cause: The wave's vertical position is anchored to the session's low and its own recent range, so it should read smoothly within a session — a very early session (little range established yet) can look compressed at first
  • Fix: This should smooth out as more of the session builds; not a sign of a problem.

Composite/State seems to lag behind an obvious visual trend

  • Likely Cause: Multiple layers of EMA smoothing are applied deliberately to keep dashboard numbers from flickering bar-to-bar
  • Fix: This is by design — the dashboard favors stability over instant reaction; expect a short delay versus what your eyes see on the raw candles.

Colors on the Exhaustion Wave look similar to the MMSE background

  • Likely Cause: This shouldn't happen — the two use deliberately distinct color palettes (warm for MMSE, cool blue/cyan/white for Exhaustion) specifically so they're not confused
  • Fix: If this looks off, try removing and re-adding the indicator.

Quick Start Summary

  1. Add the indicator to your chart (named MMSE PRO in the indicator list; nicknamed Market Structure System ).
  2. Leave all four display toggles on initially to see the full picture: MMSE dashboard, background coloring, Exhaustion/Pressure dashboard, and Exhaustion Wave.
  3. Use the MMSE dashboard (top-left) to gauge overall trend structure and quality.
  4. Use the Exhaustion/Pressure dashboard (bottom-left) to gauge whether the move looks stretched (Exhaustion) and who's currently in control (Pressure/Dominance).
  5. Remember the three engines are independent — combine their readings yourself rather than expecting one to override another.
  6. No manual retuning is generally needed when switching timeframes; the indicator auto-scales its internal windows for you.

‍

‍

Market Institutional Risk System — User Guide

Type: NinjaTrader 8 Indicator (custom NinjaScript) What it does: Runs six independent risk/market-condition engines every bar (Volatility, Market Efficiency, Choppiness, Trend Conviction, Volume Risk, Statistical Risk), then combines them through a Master engine into two separate headline scores — a Risk score and an Opportunity score — plus an overall risk category, a market classification, and a suggested position size. Results are shown in an on-chart dashboard and a color-coded "heat ribbon" along the bottom of the price panel, and can optionally be exported to CSV for deeper review in Excel.

Important — please read: This is explicitly a Phase 1 / provisional build. Several planned engines (Market Structure, Velocity, Liquidity/Execution, News) are not yet built, and the Master engine's internal weightings are hand-assigned starting points that have not yet been calibrated against real forward outcomes. The indicator discloses this honestly through a built-in confidence penalty — the Confidence reading you see is deliberately reduced to reflect the current incompleteness. Treat this as a decision-support tool to combine with your own judgment, not a finished, validated system.

1. What Problem This Solves

Instead of checking five or six separate indicators (a volatility read, a trend-strength read, a volume read, etc.) and mentally combining them yourself, this indicator runs all of them together every bar and combines them into one clear picture: how risky are current conditions, how much genuine opportunity is present. Critically, Risk and Opportunity are tracked as two separate axes — a market can be both high-risk and high-opportunity at the same time, and the indicator won't hide that by collapsing everything into a single number.

3. The Six Component Engines (Plain English)

Volatility Risk

  • What It Measures: Blends several different volatility measurements (ATR, standard deviation of returns, and a few other statistical volatility estimators), each ranked against its own recent history, into one 0–100 risk read. Regimes: Low / Medium / High / Extreme.

Market Efficiency

  • What It Measures: Uses measures of return persistence and pattern complexity to judge whether price is moving in a genuinely directional, trending way, behaving more randomly, or acting chaotically/erratically. Regimes: Trending / Random / Mean-Reverting / Chaotic.

Choppiness

  • What It Measures: Measures how much price is oscillating back and forth rather than moving cleanly, combining a choppiness-style range measure, trend strength, and how often direction flips. Regimes: Smooth Trend / Healthy Trend / Neutral / Choppy / Highly Choppy.

Trend Conviction

  • What It Measures: Judges how strong and structurally sound the current trend is — including a simple check for whether the trend appears to be decelerating (an early exhaustion warning). Regimes: Weak / Developing / Healthy / Strong / Exhausted.

Volume Risk

  • What It Measures: Looks at relative volume, volume steadiness, and how much price range is being produced per unit of volume, to judge whether participation looks healthy, thin, institutional-like, retail-like, or exhausted/climactic. Regimes: Healthy / Thin Market / Institutional / Retail / Exhaustion.

Statistical Risk

  • What It Measures: Combines drawdown, skew, "fat-tailedness" (kurtosis), volatility clustering, and how unusual the most recent return is, into a broader statistical risk read. Regimes: Low / Moderate / High / Extreme.

Each engine also reports its own Confidence — how much history/data it had available when producing its score.

4. The Master Engine — Risk & Opportunity Axes

The Master engine takes all six component results and produces:

  • Risk Score (0–100): built from three grouped factor families — a combined Volatility/Statistical family, a Trend/Structure family (based on Choppiness, plus an escalation when Trend Conviction shows "Exhausted" or Efficiency shows "Chaotic"), and a Participation family (based on Volume Risk, dampened when participation looks healthy/institutional, and floored high when it shows exhaustion).
  • Opportunity Score (0–100): built independently from Trend Conviction, Market Efficiency, "smoothness" (the inverse of Choppiness), and a participation-quality read — deliberately not derived from the Risk score, so the two can genuinely disagree.
  • Overall Risk Category: Very Safe / Low Risk / Moderate Risk / High Risk / Extreme Risk, based on the Risk score.
  • Quadrant: combines Risk and Opportunity into one of four quadrants — High Opportunity/Low Risk, High Opportunity/High Risk, Low Opportunity/High Risk, or Low Opportunity/Low Risk.
  • Market Classification: a proxy directional read (Bullish / Bearish / Sideways / Compression / Expansion / Transition), built from a price-slope regression combined with the Volatility and Trend Conviction regimes. This is explicitly a placeholder for a proper swing-structure-based classification that isn't built yet.
  • Confidence: the average confidence of the six component engines, reduced by an explicit incompleteness penalty reflecting the engines and factor families not yet built.

5. On-Chart Elements

Dashboard (toggle: Show Dashboard)

A HUD strip across the top of the chart showing the Master engine's headline outputs: Risk (with a colored gauge bar), Opportunity (with a colored gauge bar), Quadrant, market State/Classification, Suggested Size, and Confidence.

Component Engine Row (toggle: Show Component Engines)

An optional second row beneath the main dashboard, breaking out each of the six component engines with its abbreviation, score, current regime, and a small magnitude bar.

Master Ribbon (toggle: Show Master Ribbon)

A two-lane color "heat tape" running along the bottom of the price panel, one cell per bar: the upper lane shows Opportunity (green intensity — brighter green means higher opportunity), and the lower lane shows Risk (a green → amber → red ramp). This lets you see how Risk/Opportunity have evolved underneath the price action, not just their current values.

NinjaScript Output / CSV Export

Every bar's full results (all six engines plus the Master engine) are printed to the NinjaScript Output window, and — if enabled — exported to a CSV file for detailed review in Excel, rebuilt fresh from full history on every chart load.

6. Settings Reference

Parameters

Volatility Short Period

  • Description: Lookback for the Volatility Risk engine
  • Default: 14

Efficiency Period

  • Description: Lookback for the Market Efficiency engine
  • Default: 50

Choppiness Period

  • Description: Lookback for the Choppiness engine
  • Default: 20

Trend Conviction Period

  • Description: Lookback for the Trend Conviction engine
  • Default: 30

Volume Risk Period

  • Description: Lookback for the Volume Risk engine
  • Default: 20

Statistical Risk Period

  • Description: Lookback for the Statistical Risk engine
  • Default: 50

Master Engine

Dashboard

Show Dashboard

  • Description: Toggles the main HUD strip
  • Default: On

Show Component Engines

  • Description: Toggles the second row breaking out all six engines
  • Default: On

Dashboard Height (px)

  • Description: Total height of the dashboard strip
  • Default: 120

Show Master Ribbon

  • Description: Toggles the Risk/Opportunity heat tape along the bottom of the price panel
  • Default: On

Ribbon Lane Height (px)

  • Description: Height of each of the two ribbon lanes
  • Default: 16

‍

7. How to Read the Dashboard

  • Risk gauge (green → red): green/low = calmer, safer conditions; red/high = elevated risk from volatility, choppiness, exhaustion, or thin/exhausted participation.
  • Opportunity gauge (green intensity): brighter green = cleaner, more tradeable directional conditions with supportive participation; dim = little edge currently present.
  • Quadrant: the fastest way to get the combined picture at a glance — "High Opportunity / Low Risk" is the most favorable reading; "Low Opportunity / High Risk" the least.
  • State/Classification: a directional label (Bullish/Bearish) or a condition label (Compression, Expansion, Sideways, Transition) — remember this is a proxy read, not confirmed swing structure.
  • Size: a starting-point suggestion only, scaled by both Risk Category and Opportunity — always apply your own risk management on top of this.
  • Confidence: reflects both how much history the component engines have, and an explicit penalty for the engines/factor-families not yet built. A lower Confidence reading doesn't mean something is broken — it's the indicator being upfront about its current scope.
  • Master Ribbon colors underneath price: lets you visually correlate past Risk/Opportunity conditions with what price actually did afterward — useful for building your own intuition about how this indicator behaves on your instrument before relying on it.

8. Suggested Starting Points

  • New to the indicator: watch the dashboard and ribbon alongside your normal chart reading for a while before using the Suggested Size for anything — get a feel for how Risk/Opportunity line up with what you already know about the instrument.
  • Use the CSV export if you want to study how the Master engine's readings would have lined up with actual subsequent price behavior — this is explicitly what the export was built to support, since the internal weightings are not yet calibrated against real outcomes.
  • Don't rely solely on Market Classification for directional bias yet — treat it as one input among several, given it's a proxy pending a proper structure engine.
  • Sizing: treat the Suggested Size as a ceiling-and-scaling starting framework, not a recommendation — combine it with your own account risk rules.

9. Troubleshooting

Dashboard/ribbon don't appear

  • Likely Cause: Not enough bars loaded yet (a warm-up period is required for the more data-hungry engines), or the relevant "Show ..." toggle is off
  • Fix: Load more chart history; confirm Show Dashboard / Show Master Ribbon are on.

Dashboard renders blank or seems to silently fail

  • Likely Cause: Render-thread errors are logged once to the NinjaScript Output window rather than crashing silently
  • Fix: Check Control Center → New → NinjaScript Output for a "MMIRE dashboard render error" message.

CSV file doesn't appear

  • Likely Cause: Enable CSV Export is off, or the export folder couldn't be created
  • Fix: Confirm the toggle is on; check the NinjaScript Output window for the printed export path or any folder/file error message.

CSV file seems to reset unexpectedly

  • Likely Cause: This is by design — the file is deleted and rebuilt fresh from full history every time the indicator loads/reloads
  • Fix: Copy or rename the CSV elsewhere if you want to preserve a specific export before reloading the indicator.

Confidence reading seems low even in calm, clear conditions

  • Likely Cause: The Master engine applies an explicit penalty reflecting its currently partial engine set (several planned engines aren't built yet)
  • Fix: This is expected and intentional — it is not a sign of a data problem.

Market Classification doesn't match your own read of the trend

  • Likely Cause: Classification is a slope/regime-based proxy, not confirmed swing structure
  • Fix: Treat it as supporting context rather than a standalone trend signal until a dedicated structure engine is available.

Dashboard looks cramped or cut off

  • Likely Cause: Dashboard Height (px) may be too small for two-row mode
  • Fix: Increase Dashboard Height (px) , or turn off Show Component Engines to use the single-row layout.

Quick Start Summary

  1. Add the indicator to your chart (named MMIRE in the indicator list; nicknamed Market Institutional Risk System ).
  2. Leave the dashboard, component row, and ribbon on to see the full picture at first.
  3. Read the Risk and Opportunity gauges together via the Quadrant label for the fastest combined read.
  4. Use the Master Ribbon to see how Risk/Opportunity have evolved underneath recent price action.
  5. Treat Suggested Size as a starting framework, not a recommendation, and always apply your own risk rules on top.
  6. Remember this is a provisional, partially-built system — the Confidence reading and the notes above are there to keep that front and center, not hidden.

‍

What MarketStateEngine does

MarketStateEngine forecasts how much the market is about to move, and shades your chart by the state it is currently in. It answers one question continuously: how big is the next hour likely to be, compared with normal?

It is a measurement tool. It does not generate entries, exits or trade signals, and it places no orders.

Two numbers drive everything it publishes:

  • Expected move per bar — a volatility forecast in points, used to normalize anything you compare across different market conditions.
  • Expected move over the forecast window — the total distance price is likely to cover over the next hour, in points. This is the number to scale stops, targets and position size against.

The forecast is a volatility model fitted to twenty years of index futures data. It combines recent realized volatility over several lookbacks, separates upward from downward movement, adjusts for the time of day, and includes a liquidity term that measures how far price travels per unit of volume traded. The model and its fitted values are internal to the product.

Requirements

  • NinjaTrader 8.
  • A 5-minute chart. The model is fitted to 5-minute bars. Other intervals will still display, but the forecast loses accuracy.
  • Nasdaq (NQ) or S&P 500 (ES) futures. This build ships with a fitted calibration for each. Set the Market calibration setting to match the instrument on the chart. It will run on other instruments, but the forecast is only validated on NQ and ES.
  • A full Globex session template, not a day-session-only template.
  • At least two weeks of 5-minute history loaded on the chart. The longer lookbacks need a few thousand bars before the state shading appears.

The indicator forces its own calculation mode to on-bar-close. Every value it produces uses only information available at the close of the current bar or earlier, so what you see on historical bars is what you would have seen live.

Installing

  1. In NinjaTrader, choose Tools > Import > NinjaScript Add-On and select the file you were sent.
  2. Open a 5-minute NQ chart.
  3. Right-click the chart, choose Indicators, select MarketStateEngine and click Add.
  4. Click OK. The chart background will begin shading once enough history has loaded.

Reading the chart

MarketStateEngine attaches to the price panel and adds no panel of its own. Its only visible output is a colored wash across the chart background. The wash encodes two things at once — how volatile the market is and how directional it is — as a grid of nine colors.

The color family tells you volatility

  • Blues and greens — volatility is low relative to this market's own recent history.
  • Greys, tans and golds — volatility is in its middle range.
  • Reds — volatility is high.

The shade within a family tells you how directional it is

Within each volatility family the color shifts as price moves from choppy to strongly trending. At low volatility it runs blue (quiet) to teal to green (trending); in the middle range, gray (quiet) to tan to gold (trending); at high volatility, deep red (quiet) to bright red (strongly trending). So a pale blue background is a quiet, directionless market, and a vivid red one is a fast, strongly trending market.

Volatility and direction are each ranked against this market's own recent history rather than against fixed point values, so the shading stays meaningful across quiet months and busy ones.

This nine-color grid is what sets MarketStateEngine's background apart from MarketRegimeSJM's. The Regime tool paints just three states on a simple cool-to-warm scale; this one carries both volatility and direction together in a three-by-three grid.

No background at all

The wash is suppressed until the indicator has enough history to rank the current reading honestly. If your chart has no background, load more data.

Settings

The model is fixed and calibrated. The available controls are:

  • Market calibration — which fitted calibration to load, NQ or ES. Set it to match the instrument on the chart. If it does not match, the indicator prints a note in the NinjaScript Output window at load and the forecast will be less accurate.
  • Show regime background — turns the wash on or off. Turn it off if you are running another indicator that shades the background, so the two do not stack.
  • Regime opacity — how strong the wash is, from 0 to 1. Lower it if the shading competes with your candles.

How to use it

Sizing stops and targets

The expected-move figure tells you the distance price is likely to cover over roughly the next hour. Scale your stop and target to it rather than using a fixed number of points. A stop that is comfortable on a quiet afternoon is far too tight an hour after a release, and a target that fills easily in a fast market never gets reached in a slow one.

Sizing positions

If you want constant risk in dollars rather than constant size in contracts, divide your risk budget by the expected move. Size then falls automatically as volatility rises.

Reading the environment before you act

The background is a fast visual check on whether the conditions your method needs are present. Breakout methods generally want the deeper, more directional shades. Mean-reversion methods generally want the pale, churning ones. The indicator does not judge this for you; it tells you which environment you are in.

Using the values in your own scripts

For NinjaScript developers, the indicator publishes its measurements as public series, including the per-bar expected move, the expected move over the forecast window, a smoothed price level and its rate of change, a state code, and the current high-volume price. Reference it as MarketStateEngine(showRegimeBackground, regimeOpacity).

What it does not do

  • It does not predict direction. The forecast is about size of movement, not which way. A deep red background says a large move is likely, not that it will be up.
  • It is not a trade signal. There are no entries, exits or alerts.
  • The shading can change from bar to bar. It reflects a continuous ranking, so readings near a boundary will step back and forth between neighboring shades. If you need a state label that holds still for hours at a time, use MarketRegimeSJM, which is built for exactly that.
  • It is calibrated for NQ and ES on 5-minute bars, chosen with the Market calibration setting. On other instruments and intervals, treat the forecast as indicative only.
  • Micro contracts need their own calibration. MNQ trades different volume, which shifts the liquidity term in the model.

One safeguard is worth knowing about. If the market goes completely still — a limit lock, a halt, or a dead data feed — a volatility model of this kind can be driven toward a forecast of zero at the exact moment the largest moves are coming. The indicator detects a motionless window and falls back to a longer-run average instead. This affected a fraction of a percent of bars in 2020 and none since.

Troubleshooting

No background shading

Almost always insufficient history. Load at least two weeks of 5-minute bars. Also confirm Show regime background is enabled and Regime opacity is not set to 0.

Two backgrounds fighting each other

You are running MarketStateEngine and MarketRegimeSJM together. Turn the background off on whichever one you are not using for state.

The shading looks wrong after a contract roll

Give it a session. The liquidity term depends on traded volume, which steps at every quarterly roll, and the lookbacks need a little time to refill.

The forecast looks wrong for this market

Check that Market calibration matches the instrument — NQ for Nasdaq, ES for S&P 500. A mismatch prints a note in the NinjaScript Output window when the indicator loads.

Values look different from a colleague's chart

Compare the Market calibration setting, session templates and the amount of history loaded. A day-session-only template produces a different forecast from a full Globex template.

Important notice

MarketStateEngine is an analytical tool. It measures market conditions and makes no trading recommendations. Nothing it displays is advice to buy or sell.

The model was fitted to historical data. Market behavior changes, and a model that described the past well may describe the future less well. Trading futures carries substantial risk of loss and is not suitable for every investor. You are responsible for your own trading decisions.

‍

‍

What MarketPairsEngine does

MarketPairsEngine watches two markets at once and tells you how they are behaving relative to each other. It answers four questions continuously:

  • Are they holding a steady relationship, or is one pulling away?
  • How tightly are they moving together right now, and is that normal for this pair?
  • Which one is leading since the last session close, after allowing for how much each normally moves?
  • How stretched is the gap between them, in standard deviations and in dollars?

It is a read-out, not a signal generator. It places no orders and simulates no trades. Please read What it does not do before you use it — there is one specific misreading of this tool that we want you to avoid.

Requirements

  • NinjaTrader 8.
  • A 5-minute chart. The thresholds were calibrated on 5-minute bars.
  • Data subscriptions for both markets.
  • A full Globex session template.
  • At least 15 to 20 sessions of history loaded, so the size relationship settles and the correlation has a history to be compared against.

Calculation is on bar close. Bars are paired by timestamp, and a bar with no partner is skipped rather than matched to a stale price.

Setting it up

  1. Choose Tools > Import > NinjaScript Add-On and select the file you were sent.
  2. Open a 5-minute chart of the first market — the one you want described. For an NQ-versus-ES view, chart NQ.
  3. Right-click the chart, choose Indicators and add MarketPairsEngine.
  4. Set Second market to the other instrument, written exactly as NinjaTrader names it, including the contract month — for example ES 03-27.
  5. Click OK. The indicator appears as its own panel below price.

Important: the contract month in Second market does not update itself. After each quarterly roll you must edit it to the new front month, or the indicator will sit on an expired contract. This is the single most common setup problem.

Which pairs are worth watching

Markets that are genuinely related spend far more time in the linked state than unrelated markets do. In our testing across twenty years, the strongest were the Treasury pair (30-year against 10-year) and the equity index combinations — Dow against S&P, Russell against S&P, Nasdaq against S&P, and Nasdaq against Dow. Not every plausible-sounding pair works: sterling against the euro showed no more linkage than two unrelated markets. The dashboard tells you which case you are in, so you can check any pair yourself.

Reading the panel

The plot is the stretch: how far the gap between the two markets sits from its own recent average, measured in standard deviations.

  • Zero line — the gap is at its recent average.
  • Dashed lines at plus and minus two — beyond these, the gap is unusually wide.
  • Blue line — the pair is currently in the linked state.
  • Orange line — the pair is drifting apart.

A positive reading means the charted market is rich relative to the second one; negative means it is cheap.

Reading the dashboard

The panel in the top-right corner has five sections.

1. Regime

Reads LINKED or DRIFTING, with how long the current state has held.

  • LINKED — the gap between the two markets has stayed within a steady range over the recent window.
  • DRIFTING — one market has been pulling away from the other, with no steady range.

The section also shows the statistical test result behind the label, the thresholds in use, and what share of the loaded chart has been linked. For reference it shows the figure for unrelated markets, so you can judge whether your pair is actually related or just occasionally appearing so by chance. The label uses two different thresholds — a stricter one to become linked and a looser one to stop being linked — so it does not flicker on and off at a boundary.

2. Moving together?

The correlation of their bar-to-bar moves over the recent window, described in plain terms from lockstep through loosely and split to independent. Underneath, the typical correlation for this pair and whether the current reading is normal, unusually high or unusually low. A correlation that is unusually low for a normally tight pair is the interesting case.

3. Who is leading?

Each market's percentage move since the last session close, then which one is ahead after adjusting for how much each normally moves. That adjustment matters: Nasdaq routinely moves more than the S&P, so comparing raw percentages would show it leading almost every day. The figure in brackets is the charted market's move net of what its usual relationship to the second market would explain.

4. How stretched?

Which market is rich or cheap and by how many standard deviations, flagged STRETCHED past the threshold. Below it:

  • What one standard deviation is worth in dollars per contract of the charted market, so the reading is in money rather than statistics.
  • The typical pull-back time — how long half of a gap has historically taken to close. If no pull-back can be measured, it says so.

5. Size

How many contracts of the second market move like one contract of the charted market, with the nearest whole-lot equivalent. Use this when you want two positions to carry comparable exposure.

Status messages

  • WARMING UP — counts matched bars against what it needs. Load more history.
  • WAITING FOR DATA — the second market is not delivering bars. Check the name and your data subscription.
  • NOT RUNNING — the second market is unset, or is the same as the charted market.
  • bars skipped — bars with no matching partner bar. A small number is normal, particularly around session edges. A large number means a data or session-template mismatch.

Settings

  • Second market — the instrument to compare against, exactly as NinjaTrader names it, including contract month.
  • Show dashboard — turns the text panel on or off.

Everything else is fixed and calibrated.

How to use it

Confirming or questioning a move

If you are trading one index and the pair reads LINKED with high correlation, the other index is effectively corroborating what you see. When correlation drops unusually low for a normally tight pair, the two are telling different stories, and a move in one is less likely to be the broad market moving.

Picking which of two to trade

The leader section ranks relative strength honestly, with the size difference between the markets already allowed for. If you can trade either instrument, this tells you which is doing the work.

Sizing comparable positions

Use the size section to translate exposure between the two markets, including when hedging one with the other.

Knowing when the relationship has broken

A shift from LINKED to DRIFTING means the two markets have stopped tracking each other. If your reasoning assumed they move together, that assumption has just stopped holding.

Using the values in your own scripts

For NinjaScript developers, the indicator publishes the stretch, the size relationship, the test result, the pull-back half-life, the regime, the correlation and the adjusted relative strength as public series, plus a simple linked flag and the whole-lot ratio. Reference it as MarketPairsEngine(secondInstrument, showDashboard).

What it does not do

This section matters more than usual, because there is an obvious way to misread this tool and we would rather you hear it from us.

  • A stretched gap is not a signal that it will close, and LINKED does not make it one. We tested this specifically. When the gap passed two standard deviations, it came back inside one standard deviation within the next couple of hours roughly sixty to sixty-five percent of the time — and that was true in both regimes, and about equally true for markets with no relationship at all. The reason is mechanical: the average the stretch is measured against keeps moving, so it catches up to price whether or not anything real is pulling the two markets together. LINKED describes how the pair has behaved over the recent window. It is not a forecast that the gap will close.
  • It is not a trade signal, and the product deliberately contains no trade logic. An earlier version of this tool did track simulated trades on exactly the rule most people would try — fade the stretch while the pair is linked. Across six pairs and twenty years it lost money after realistic costs, on every pair and in almost every year. We removed it rather than ship it. That result is why this is a read-out.
  • It does not predict direction for either market individually.
  • It cannot tell you why a relationship broke down. It reports that it has.
  • Thin or unrelated pairs produce weak readings. Check the linked-share figure on the dashboard against the unrelated-markets reference before trusting a pair you have not tested.

Troubleshooting

Nothing appears, or WAITING FOR DATA

Check the Second market spelling against how NinjaTrader names the instrument, confirm the contract month has not expired, and confirm you have data for it.

It worked last quarter and now sits idle

The contract month has rolled. Edit Second market to the new front month.

A large number of skipped bars

The two markets are not producing bars at the same timestamps. Use the same session template for both and confirm both have history loaded over the same period.

Stuck on WARMING UP

Load more history — 15 to 20 sessions of 5-minute bars. The message shows what it still needs.

The size relationship looks unstable early on

It settles as history accumulates. Judge it only after the warm-up has completed.

Important notice

MarketPairsEngine is an analytical tool. It describes the relationship between two markets and makes no trading recommendations. Nothing it displays is advice to buy or sell.

Its thresholds were calibrated on historical data. Market relationships change, and a pair that tracked closely in the past may not continue to. Trading futures carries substantial risk of loss and is not suitable for every investor. You are responsible for your own trading decisions.

‍

‍

‍

What MarketRegimeSJM does

MarketRegimeSJM sorts the market into one of three states and holds that label still. On a 5-minute chart a state typically lasts around twelve hours, so it tells you what kind of market you are in today rather than flickering every few bars.

The three states run from quiet to active:

  • State 0 — quiet. Low volatility, thin participation, price travels little per unit of volume.
  • State 1 — normal. The middle of this market's usual range.
  • State 2 — active. High volatility and heavier, faster movement.

It is a measurement tool. It labels conditions and makes no trading decisions.

Why the label holds still

Most regime tools flicker because they pick whichever state best fits the current bar, and the current bar is noisy. This one is a jump model: changing state carries an explicit cost, so the market has to be convincingly different before the label moves. Staying put is free; switching has to be earned. That single idea is what separates it from a classifier that changes its mind every few minutes.

Each bar is classified using only information available at that moment. The labels you see on historical bars are the labels you would have seen live — no hindsight is involved.

Requirements

  • NinjaTrader 8.
  • A 5-minute chart. The states were fitted to 5-minute bars.
  • Nasdaq (NQ) or S&P 500 (ES) futures. This build ships with a fitted set of states for each. Set the Market calibration setting to match the instrument on the chart. It runs on anything, but the state definitions belong to the instruments it was fitted to.
  • A full Globex session template.
  • At least a few sessions of 5-minute history. The dashboard counts down its warm-up for you.

Calculation is on bar close. Returns are not carried across a session boundary, so the overnight gap is never treated as a 5-minute move.

Installing

  1. Choose Tools > Import > NinjaScript Add-On and select the file you were sent.
  2. Open a 5-minute NQ chart.
  3. Right-click the chart, choose Indicators, select MarketRegimeSJM and click Add.

Reading the display

The indicator shades the chart background by state — cool for quiet, warm for active — and prints a dashboard in the top-left corner.

The dashboard, line by line

  • state — which of the three states you are in now.
  • held for — how many bars the current state has lasted. A long count means a settled market.
  • confidence — how clearly this state beats the runner-up. A large number means the classification is unambiguous. When it falls close to zero the display adds near a switch, meaning conditions are on the boundary and the label may be about to change.
  • distance — how far current conditions sit from the center of the assigned state. Small is typical. A persistently large value means today does not closely resemble any of the three states.
  • switches — how many state changes have occurred across the loaded chart. Useful for sanity-checking persistence.
  • z rv — current volatility, expressed in standard deviations from its calibrated average. Positive is busier than normal.
  • z fluid — current price movement per unit of volume, on the same scale. Positive means price is traveling further on the same volume, which is a thin market.
  • off-dist — the share of bars where conditions fell far outside the calibrated range. This is a health check on the calibration itself. If it climbs above a few percent the display appends REFIT, which means the product needs an updated calibration. Contact us if you see it.
  • calib — which calibration is loaded, NQ or ES. If it does not match the instrument on the chart it reads WRONG INSTRUMENT, and the state labels are unreliable until you fix the Market calibration setting.

While it warms up

The dashboard shows WARMING UP and a bar count until it has enough history. No state is reported and no background is drawn during this period.

Settings

The state definitions are fixed and calibrated. The available controls are:

  • Market calibration — which fitted set of states to load, NQ or ES. Set it to match the instrument on the chart. A mismatch is flagged on the dashboard as WRONG INSTRUMENT and printed in the NinjaScript Output window at load.
  • Show background — turns the state wash on or off.
  • Opacity — strength of the wash, from 0 to 1.
  • Show dashboard — turns the text panel on or off.

If you run this alongside MarketStateEngine, turn the background off on one of them so you do not get two washes stacked on the same chart.

How to use it

Choosing what to run today

The state is a context filter. Methods that need movement — breakouts, trend continuation, momentum — have the conditions they depend on in the active state and lack them in the quiet one. Mean-reversion and range methods are the other way round. Checking the state before you start is the intended use.

Scaling expectations

State 0 and state 2 are genuinely different markets. The same setup will produce a smaller move and take longer to resolve in the quiet state. Scale targets and patience accordingly.

Watching for a turn

When confidence drops and the display reads near a switch, conditions are changing. That is worth noticing before it shows up in your results.

Using the values in your own scripts

For NinjaScript developers, the indicator publishes the state number, the confidence margin and the two underlying condition measures as public series. The state is reported as -1 while warming up. Reference it as MarketRegimeSJM(showBackground, opacity, showDashboard).

What it does not do

  • It does not predict direction. The states describe how the market is moving, not which way it will go.
  • It is not a volatility forecast, and it should not be used as one. We tested this directly: conditioning a volatility forecast on these states performed worse than forecasting volatility continuously, on both of the markets we tested and across every setting we tried. The reason is simple — a good volatility model already tracks volatility continuously, so bucketing it into three groups throws resolution away. Use MarketStateEngine for forecasting and this for labeling.
  • It is not a trade signal. There are no entries, exits or alerts.
  • A state change is not an event to trade. It is a description of conditions that have already shifted.
  • Calibration ages. The underlying measures depend partly on traded volume, which drifts as contracts roll and participation changes. The off-dist line exists so that drift is visible to you rather than silent. Expect a refreshed calibration roughly once a year.

Troubleshooting

Stuck on WARMING UP

Load more 5-minute history. The dashboard shows how many bars it has against how many it needs.

The state never changes

That can be correct — states are designed to last around half a day, so a short chart may contain only one. Check the switches count over a longer span of loaded data.

off-dist is rising and shows REFIT

Conditions have moved outside the calibrated range. The state labels become unreliable. Contact us for an updated build.

Two chart backgrounds at once

Turn off Show background here or on MarketStateEngine.

The dashboard shows WRONG INSTRUMENT

The Market calibration setting does not match the chart. Set it to NQ for Nasdaq or ES for S&P 500. Until it matches, the state labels are unreliable.

State looks different from a colleague's chart

Compare the Market calibration setting, session templates and loaded history. A day-session-only template produces different measurements from a full Globex template.

Important notice

MarketRegimeSJM is an analytical tool. It labels market state and makes no trading recommendations. Nothing it displays is advice to buy or sell.

The state definitions were fitted to historical data. Market behavior changes, and a calibration that described the past well may describe the future less well. Trading futures carries substantial risk of loss and is not suitable for every investor. You are responsible for your own trading decisions.

‍

‍