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

Long/Short Modifier Node

Long/Short Modifier node

The Long/Short Modifier node combines or rearranges the Long and Short values: swapping them, copying one onto the other, or calculating one value from both.

The exception: Long and Short interact here

Everywhere else in BloodHound, the Long output and the Short output are calculated independently, and one side never affects the other. This node is the exception: depending on its Mode, the Long output can come from the Short input, or both outputs can come from a calculation that uses both inputs.

The animation shows BloodHound v1; the node works the same in v2.

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.

Properties

This node’s settings apply to this node only. Unlike a solver, which can be used in several places with shared Global Properties, each of these nodes is a single, independent node.

Options

Options: Mode, Enable Long Side and Enable Short Side

Mode decides how the outputs are made. “Mirrored” means the same value goes to both the Long output and the Short output.

ModeLong outputShort output
Swapthe Short inputthe Long input
Mirror Longthe Long inputthe Long input (the Short input is ignored)
Mirror Shortthe Short input (the Long input is ignored)the Short input
Average(Long + Short) ÷ 2the same value (mirrored)
Maximumthe larger of Long and Shortthe same value (mirrored)
Minimumthe smaller of Long and Shortthe same value (mirrored)
ProductLong × Shortthe same value (mirrored)
AdditionLong + Short, up to a maximum of 1the same value (mirrored)
Differencea difference, set by Difference Mode: the absolute value of Long – Short, of Short – Long, or (Absolute) the larger of the twothe same value (mirrored)
Nonethe Long input, unchangedthe Short input, unchanged
SettingWhat it does
Enable Long SideOn: the Long output is passed on. Off: it is still calculated internally, but the Long output is 0.
Enable Short SideOn: the Short output is passed on. Off: it is still calculated internally, but the Short output is 0.

The Swap button among the Modifiers does the same as Mode: Swap, on any node.

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.

Training videos

Both show BloodHound v1, but the node and the ideas are the same.

From the weekly workshop, October 12, 2015. This node is covered from 39:23.

From the weekly workshop, February 1, 2013. This node is covered from 1:02:55.

Still stuck? Contact support