Feature guide · 5 min read

Demand/Supply Boxes

Tracks the most recent up and down fractals as dotted level lines. When price breaks back through one, it draws a box on the last opposite-colored candle before the break.

Settings toggle
Enable Demand/Supply Boxes
NinjaTrader 8 name
ToredaFractalDS
Ships enabled
No

What it does

The indicator tracks the most recent up fractal (a high with `Periods` lower highs on each side) and down fractal as dotted level lines — teal above, maroon below. When price breaks back through one of those levels, it draws a box:

  • A break up through the top-fractal level draws a demand box spanning the last red candle before the break, and fires `LongSignal`.
  • A break down through the bottom-fractal level draws a supply box spanning the last green candle, and fires `ShortSignal`.

Each level can be broken once. After that it is frozen until a new fractal replaces it, so a level that has already done its job cannot keep firing.

Demand/supply boxes · fractal-confirmed break100102104106Demand boxUp fractalDown fractalLast red candleBreak → LongSignal
A break above the up fractal draws a demand box on the last red candle before it.

How to read it

The box marks the candle that was still going the wrong way immediately before the break — the last of the old direction. That is the area the move originated from, which is why it is worth watching if price comes back to it.

The signal fires on the break bar's close

With the default WickBody break type, the entry bar may already have retraced part of the move by the time the bar closes. Body mode waits for a close through the level instead, which is slower but cleaner.

Inputs

InputDefaultMeaning
Periods5Bars on each side required to confirm a fractal. Higher = fewer, more significant levels. Max 100.
Break TypeWickBodyWickBody breaks on High/Low, so a wick counts. Body breaks on Close only.
Change Box Color On CloseOffWhen on, a demand box that price closes below flips to supply colors and vice versa, so a failed zone shows as the opposite type.
Max Boxes100Oldest boxes are removed beyond this count.
Show Swing MarkersOnDraws a × at each confirmed fractal high and low.
Demand/Supply Background & BorderGreen / RedBox colors. Backgrounds are drawn at 80% transparency.
Swing High/Low ColorYellowMarker colors.
Draw VisualsOnMaster drawing switch.

Adding it to a chart

  1. Right-click the chart → Indicators… → find ToredaFractalDS, click Add, set the inputs, click OK.
  2. Color inputs shown as #RRGGBB are typed as hex text, e.g. `#6FA8DC`. An invalid value falls back to a default and prints a note in the NinjaScript Output window rather than failing the indicator.
  3. Boxes are drawn on the bar the break happens and never move. The level lines run from the fractal bar to the current bar until they are broken.

Notes and limitations

  • A break with no prior opposite-colored candle on record freezes the level but produces no box and no signal.
  • The signal fires on the break bar's close, so with WickBody the entry bar may already have retraced part of the move.

For strategy builders

NinjaTrader 8 only

Every plot is registered transparent, so it changes nothing on a chart until you color it in the indicator dialog. Levels are NaN when there is no value — never 0, which would compare as a real price — and flags are 1/0.

PlotMeaning
LongSignal / ShortSignal1 on the bar a demand / supply box fires, else 0.
FractalTop / FractalBottomThe live fractal break levels — the dotted lines. NaN until the first fractal confirms.
DemandTop / DemandBottomBounds of the most recent demand box. NaN until one exists.
SupplyTop / SupplyBottomBounds of the most recent supply box.

This content is for educational purposes only and is not financial advice. Trading involves substantial risk of loss. See our risk disclosure for details.

Disclaimer

Toreda is a product of Bearcat Solutions, a company registered in the U.S. and its affiliates (collectively, the “Company”). Toreda is a trade journaling, performance analytics, and AI coaching platform designed to help traders log, review, and improve their trading. None of the information provided by the Company or contained herein is intended as investment advice, as any offer or solicitation to buy or sell securities of any kind, or as a recommendation, endorsement, or sponsorship of any security, company, or fund. Nothing contained herein constitutes a solicitation of any kind or an offer to buy or sell futures, options, forex, or any other derivative security. The performance dashboards, trade scores, AI coach insights, and analytics provided through Toreda are for informational and educational purposes only and are not intended to be relied upon for making investment decisions. Any use of the information on the Company's websites and platform is strictly at your own risk, and the Company assumes no responsibility or liability for any use or misuse of such information. Past performance is not indicative of future results, and every investment involves risks, including the possibility of total loss of the amount invested. You should always seek professional advice before making any investment decisions. The Company is not a financial broker, financial advisor, financial manager, or a financial representative, and does not accept client deposits.

Toreda does not offer or provide trading or investment recommendations. The AI Coach feature provides analytical insights based on your own trade history — it does not recommend specific trades, securities, or strategies. Any trading or investment decisions you make are entirely your responsibility and at your own risk. The results of any services provided by Toreda are directly related to each individual's professional skill level, trading discipline, and their capacity to apply the insights provided.

Disclosure on Performance Data

The performance metrics, scores, equity curves, and analytics displayed within Toreda are calculated from trade data imported from your connected broker accounts or manually entered by you. These metrics reflect historical results and have inherent limitations. No claim is made that any trading approach tracked in Toreda will achieve or is likely to achieve future profits or losses comparable to those shown. Actual trading results can differ significantly from historical performance data. Performance analytics benefit from hindsight and cannot account for all market factors, emotional decision-making, or evolving market conditions that affect real-time trading. Many factors — including slippage, commissions, market liquidity, and individual execution — can adversely affect actual trading results beyond what is reflected in the platform's analytics.


NinjaTrader® is a registered trademark of NinjaTrader Group, LLC. No NinjaTrader company has any affiliation with the owner, developer, or provider of the products or services described herein, or any interest, ownership or otherwise, in any such product or service, or endorses, recommends or approves any such product or service.