Skip to content
Black Friday: sale starts November 15th.

Change in Slope Solver

Change in Slope solver node

The Change in Slope solver tells whether an indicator’s slope is still strengthening, starting to turn, or reversing, by comparing each bar’s slope with the previous bar’s.

Useful for spotting an oscillator or moving average starting to roll over. For example, as the Stochastics rises toward 100, its slope flattens before it turns down.

Properties tab

Property Inspector tabs, with the Properties tab selected

The essential settings for the node.

Modifiers

Buttons for the most common output modifiers. They change only the selected instance of a node on a Logic Board, so they appear only when a node is selected there, not when a solver is selected in the Solvers panel. That keeps the solver’s original output unchanged everywhere else it’s used, much like changing an SMA’s plot color on one chart leaves it unchanged on your other charts.

Modifiers: the Enabled, Invert and Swap buttons
ButtonWhat it does
EnableTurns the node on or off. When it’s off, the node is left out of the system’s calculations. It still looks connected on the Logic Board, but it’s ignored.
InvertInverts the node’s output. The same calculation as the Inverter function node, without its extra options.
SwapSwaps the outputs: Long becomes Short and Short becomes Long. The same as the Long/Short Modifier function node with Mode: Swap.

Global Properties

These settings apply to every instance of the solver: change one instance and they all change. To change just one, make a copy of the solver. The copy is a separate solver, with a number added to the end of its name.

Behavior

Turns off the Long or the Short output.

Behavior: the Evaluate setting
SettingWhat it does
EvaluateWhich outputs the solver calculates.
Both: Long and Short.
Long only: only Long; the Short output is removed.
Short only: only Short; the Long output is removed.

Input

What the solver evaluates. Choose a data type in the Type menu; the settings below it change to match.

Input with Type set to Indicator Value: Indicator and Displacement settings
TypeWhat it evaluates
Indicator ValueAny installed indicator with a plot or Series<T> output, chosen in the Select Indicator window. The default and most used type. Displacement reads the value from a number of bars back.
PriceA bar price (Open, High, Low, Close, or the Body Top, Median or Bottom), optionally processed over a lookback period.
VolumeThe current bar’s volume.
Swing Point PricesPrices from the latest swing highs and lows.
Linear Regression ChannelThe upper, middle or lower line of a regression channel.
Fixed ValueA single value that never changes. Only useful for solvers with two inputs, such as Comparison.

Every type and its settings in full: Data type selection.

Output

Six situations, each with its own output value. The numbers match the Property Inspector and the diagram.

Output: the six slope situations, numbered 1 to 6
SettingLong output when the slope is…Short output when the slope is…
1) Strong In Directionrising, and rising faster than on the previous barfalling, and falling faster
2) In Direction But Turningrising, but starting to flattenfalling, but starting to flatten
3) In Direction But Greatly Turningrising, but flattening for a second bar or morefalling, but flattening for a second bar or more
4) Opposite Direction But Greatly Turningfalling, but flattening for a second bar or more (the opposite of 3)rising, but flattening for a second bar or more
5) Opposite Direction But Turningfalling, but starting to flatten (the opposite of 2)rising, but starting to flatten
6) Strong In Opposite Directionfalling, and falling faster (the opposite of 1)rising, and rising faster

Options tab

Property Inspector tabs, with the Options tab selected

Secondary settings shared by all nodes.

Weight

Changes the node’s final output value. Only needed when designing a fuzzy logic system, or a fuzzy logic part of a system.

How Weight works

Weight changes only the selected instance of a node on a Logic Board. So the controls appear only when a node is selected there, not when a solver is selected in the Solvers panel: a solver’s original output can’t be changed globally.

ControlWhat it does
Multiply OutputMultiplies the node’s internal Long and Short values (set by the Output Rules on the Properties tab) by this number. The final output still can’t go above 1 (see Slider).
SliderLimits the final output to between 0 and 1. The left handle sets a minimum output, given whether or not the condition is true. The right handle sets the maximum; the output is capped there.
Hedge OperationApplies a formula to the internal value.
None: unchanged.
Very: squares it (value²).
Somewhat: takes the square root (√value).

Example: two out of three

Three solvers check three indicator conditions, but only two need to be true. Connect them to an Additive logic node and set each solver’s maximum (the slider’s right handle) to 0.5. When any two are true, the Additive node adds 0.5 + 0.5 + 0 = 1, which means the two-out-of-three condition is met.

Description

Free text for describing what the node does or what it’s for. The Description is shared by every instance of the node, unlike Weight, which is set per instance.

Help tab

Property Inspector tabs, with the Help tab selected

Shows this page for the selected node, inside BloodHound. Click the node’s image at the top of the page to open it in a bigger window. The built-in web viewer needs NinjaTrader 8.0.26.0 or newer.

Tutorial video

Examples

Example 1: The basics

Measures the strength of the Stochastics D by comparing each bar’s slope with the previous one.

Settings and chart

Settings

  • Add the Change in Slope solver to the Logic Board and connect it to the Result node.
  • Set Indicator to Stochastics.

Result

The output is 1 at the turning point and while the slope keeps strengthening, up or down. As the slope weakens, the output drops (In Direction But Turning, then Greatly Turning) until the slope reverses.

Example 2: A cycle warning

A warning that the HMA may roll over, but only while the Stochastics D is overbought or oversold.

Settings and chart

Change in Slope solver

  • Add the Change in Slope solver to the Logic Board.
  • Set Indicator to HMA 17.
  • Set outputs 1, 2 and 3 to 0, output 4 to 1, and output 5 to 0.5.

Threshold solver (the filter)

  • Add a Threshold solver with Indicator set to Stochastics (default settings).
  • Open its Rules window: Long rule < 25, Short rule > 75.

Combine them

  • Add an AND node, connect both solvers to it, and connect it to the Result node.

Result

A warning that the HMA 17 (white) may roll over appears only while the Stochastics is extremely overbought or oversold.

Still stuck? Contact support