Skip to main content
All posts
Blog

NinjaTrader 8 Attach to Indicator: What It Does and Where It Runs Out

NinjaTrader 8 can make a working order follow an indicator plot. The exact steps, the four limits traders hit once they start using it, and what a one click version has to get right.

Wizdough6 min read

Your entry price is usually on the chart already. It's the high of the signal bar, a swing point, the moving average your setup leans on. The trouble is that the level moves. The stop order you placed at it goes stale within a few bars, and you spend the next minute dragging it around while the market decides whether to leave without you.

NinjaTrader 8 will do the dragging for you. The feature is called Attach to Indicator. It ships with the platform, and plenty of traders have never touched it. It also runs out in four specific places, which is why many of the traders who do find it stop using it after a while.

How the built-in feature works

Attach to Indicator is a property of an order, not a mode you switch on, so the order of steps matters:

  1. Apply the indicator to your chart. The order can only follow a plot, so the indicator has to expose one.
  2. Place your order and let it reach a working or accepted state.
  3. Right click the order on the chart and choose Attach To Indicator, then Properties.
  4. Pick the indicator from the dropdown, set an offset in ticks if you want one, and click OK.

From then on the order reprices itself as the plot moves. This works for entry and exit orders you place by hand, and for the stop loss and profit target of an ATM strategy. On a slow moving level that may be all you need.

An indicator plot rising across a chart, with the attached order a set offset in ticks past it. Each time the plot moves, the order reprices itself to stay that offset away. The offset is not saved, so you type it again on every order.

The four places it runs out

The first is timing. The order has to exist before you can attach it, so attaching is a second action on an order that is already working. It does not help at the expensive moment, when you are picking a price and an order type while the tape moves. It only helps afterwards.

The second is the offset. The properties dialog lets you sit the order a tick or two past the level instead of exactly on it, and most people want that. It will not remember the number. There is no default offset setting anywhere, so you retype it on every order. A trader who wants a steady one tick buffer past a signal bar high ends up typing it dozens of times a session, and usually gives up.

The third is order type. Attaching moves the price and nothing else, so the order keeps whatever type you gave it when you placed it. That matters because geometry decides the correct type: a buy above the market is a stop, a buy below it is a limit, and selling reverses both. If the level drifts across the current price, a resting buy limit that started safely below the market ends up above it, where it is immediately marketable. The attachment carries it there without a word.

A buy limit attached to a level starts below the market. The level drifts up across the market price and carries the order with it, so it is still a buy limit but now sits above the market, where it is immediately marketable.

The fourth catches people who built their ATM templates carefully. If you turn on Attach to Indicator for an ATM stop that has a Stop Strategy configured, that Stop Strategy is disabled and the indicator manages the stop from then on. The two do not run together. The auto breakeven and trailing rules you spent an evening on sit dormant while the attachment is active. You get one or the other.

What it takes to do this in one action

There are four jobs, and only the first is obvious. Read the plot value on every tick. Decide stop or limit from where the level sits relative to price. Modify the working order in place instead of cancelling and resubmitting it, because a cancel and resubmit costs queue position on a limit and leaves a window with no order in the market at all. And know when to stop moving it, because a level that keeps running away from price will drag a resting order somewhere you never meant to buy.

An order tool that does this in one click builds on the built in behavior. Here is what it has to offer to cover that list:

  • Indicator: a list of every indicator plot on the chart, so you can pick the one holding your entry price.
  • Offset (ticks): a set number of ticks off the level that stays where you put it, instead of being retyped on every order.
  • BarsAgo: reading the value from a completed bar rather than the forming one. When the source indicator calculates on bar close, the tool has to read the closed bar.
  • Entry type: a choice of StopMarket or StopLimit for when the level is on the far side of price, and Limit or MIT for the near side. The tool picks between the two groups from the geometry, so you do not have to.
  • Reprice toward the market only: the answer to the fourth job. With it on, the working order moves toward the market and never away from it.

Then you press Buy or Sell once and the order goes out already following the level. Quantity comes from the Chart Trader quantity selector. If you have an ATM template selected, the entry starts as an ATM strategy instance, so the bracket attaches at fill exactly as you configured it. A tool that moves only the entry order leaves your stop rules alone, so the fourth limit never comes up.

Three things that catch people on the first attempt

The indicator needs a plot. The built in feature builds its dropdown from the plots each indicator on the chart exposes, and so does any order tool that follows a level. An indicator that paints only with drawing objects (arrows, text, lines) has no plot. It will not appear in the list, however visible its levels are. Quick test: hover over the chart and look at the Data Box. If the indicator's value is in there, it has a plot.

Grey buttons mean no account. The Buy and Sell buttons stay grey until Chart Trader has an account attached. If they never take their color, check the account selector, not the indicator settings.

No ATM template means no bracket. If the Chart Trader ATM strategy selector is left on the blank entry, the entry order still goes out, but as a plain order with no stop and no target. Set the template before you arm anything.

A reasonable way to try it

  1. Sim account, one instrument, playback or a quiet session.
  2. Attach to something whose path you can predict. A 21 EMA is ideal. Watch the order track it without touching the mouse.
  3. If your tool can reprice toward the market only, turn that on and watch what changes when the level pulls away from price.
  4. Only then point it at the indicator you actually trade.

If the level you want to follow is a second entry trigger, WiSE marks those in real time. For the bracket side of the trade, the ATM strategies guide covers templates and what they take over once you are filled.

Futures trading involves substantial risk of loss and is not appropriate for all investors. Order automation removes mechanical steps from execution; it does not create an edge.

Share
Email updates

Get the trading tool updates.

New releases, setup guides, and the occasional NinjaTrader tip. About once a week.

We keep your address in our own database and send from team@news.wizdough.com. Replies go to support@wizdough.com. Read how we handle your data in our Privacy Policy.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Mentioned in this post

WiSE

Price action, trend lines and measured moves. $25/mo · 7-day free trial.

View product