If-Then Node

(Programmer class node)



The IF THEN node acts like a switch.  The switch is controlled by the IF connector.  When a signal comes in, what ever is connected to the THEN connector passes through to the Output.  When there is no signal, what ever is connected to the ELSE connector passes through to the Output.  Either the THEN or ELSE always passes through to the Output.  The Long output and Short output each have their own switch inside the IF THEN and are evaluated separately.

Illistrated Examples
When a Long signal comes in to the IF , the Long data from the THEN passes through to the OUTPUT.  But, the Short data from the ELSE passes through to the OUTPUT, because there is no Short signal to the IF.

When a Short signal comes in to the IF , the Short data from the THEN passes through to the OUTPUT.  But, the Long data from the ELSE passes through to the OUTPUT, because there is no Long signal to the IF.

When a Long & Short signal comes in to the IF , the Long & Short data from the THEN passes through to the OUTPUT.  Nothing from the ELSE passes through to the OUTPUT.


BloodHound   v2



This section is specific to BloodHound v2 Property Inspector's elements.  The node functions exactly the same in BloodHound v1 and v2.

Properties tab

Properties tab



This tab contains the essential settings for all nodes.

Output Modifiers

Modifiers



Properties

Properties

These setting only apply to the selected Programmer node.  Programmer nodes are single instances, unlike Solvers that can have multiple instances of themselves.

Options


Options tab

Options tab

Options tab



This tab contains extra secondary settings common to all nodes.

Weight

Weight



Description

Description

This text area provides a place to write a full description of what the node is doing, used for, or what ever you want.
Note:   The Description is global to all instances of the node.  It is not applied individually to each instance as the Weight controls are.



Help tab

Help tab



This tab displays the documentation page (from this web site) of the selected node.
Please note:  NinjaTrader v8.0.26.0 or newer is required for the built in web viewer to work, and thus the documentation to be displayed.




Video Tutorial

This video is a technical explanation of how the internal mechanics of the If-Then node works.
This video shows BloodHound v1, however the settings and usage are the same.

Click the YouTube logo or the Full Screen    icon
to expand the size.


This video demonstrate how to set up the logic to use the If Then node so that system A (connected to the IF and THEN inputs) can override system B (connected to the ELSE input).   e.g. When system A has a long or short output, it will always show system A on the chart.  But, when system A is neutral (zero outputs), that is when system B will show on the chart.  In this example system A identifies an overbought/oversold condition, and system B identifies a trending condition.


BloodHound   v1



This section is specific to BloodHound v1.  Scroll up for BloodHound v2.

If-Then Node



The IF THEN node acts like a switch.  The switch is controlled by the IF connector.  When a signal comes in, what ever is connected to the THEN connector passes through to the Output.  When there is no signal, what ever is connected to the ELSE connector passes through to the Output.  Either the THEN or ELSE always passes through to the Output.  The Long output and Short output each have their own switch inside the IF THEN and are evaluated separately.

Illistrated Examples
When a Long signal comes in to the IF , the Long data from the THEN passes through to the OUTPUT.  But, the Short data from the ELSE passes through to the OUTPUT, because there is no Short signal to the IF.

When a Short signal comes in to the IF , the Short data from the THEN passes through to the OUTPUT.  But, the Long data from the ELSE passes through to the OUTPUT, because there is no Long signal to the IF.

When a Long & Short signal comes in to the IF , the Long & Short data from the THEN passes through to the OUTPUT.  Nothing from the ELSE passes through to the OUTPUT.

Parameters

Options



Video Tutorial

This video is a technical explanation of how the internal mechanics of the If-Then node works.

This video demonstrate how to set up the logic to use the If Then node so that system A (connected to the IF and THEN inputs) can override system B (connected to the ELSE input).   e.g. When system A has a long or short output, it will always show system A on the chart.  But, when system A is neutral (zero outputs), that is when system B will show on the chart.  In this example system A identifies an overbought/oversold condition, and system B identifies a trending condition.

If-Then Node



The IF THEN node acts like a switch.  The switch is controlled by the IF connector.  When a signal comes in, what ever is connected to the THEN connector passes through to the Output.  When there is no signal, what ever is connected to the ELSE connector passes through to the Output.  Either the THEN or ELSE always passes through to the Output.  The Long output and Short output each have their own switch inside the IF THEN and are evaluated separately.

Illistrated Examples
When a Long signal comes in to the IF , the Long data from the THEN passes through to the OUTPUT.  But, the Short data from the ELSE passes through to the OUTPUT, because there is no Short signal to the IF.

When a Short signal comes in to the IF , the Short data from the THEN passes through to the OUTPUT.  But, the Long data from the ELSE passes through to the OUTPUT, because there is no Long signal to the IF.

When a Long & Short signal comes in to the IF , the Long & Short data from the THEN passes through to the OUTPUT.  Nothing from the ELSE passes through to the OUTPUT.

Parameters

Options



Video Tutorial

This video is a technical explanation of how the internal mechanics of the If-Then node works.

This video demonstrate how to set up the logic to use the If Then node so that system A (connected to the IF and THEN inputs) can override system B (connected to the ELSE input).   e.g. When system A has a long or short output, it will always show system A on the chart.  But, when system A is neutral (zero outputs), that is when system B will show on the chart.  In this example system A identifies an overbought/oversold condition, and system B identifies a trending condition.