Risk Disclosure

Futures, foreign currency and options trading contains substantial risk and is not for every investor. An investor could potentially lose all or more than the initial investment. Risk capital is money that can be lost without jeopardizing ones financial security or lifestyle. Only risk capital should be used for trading and only those with sufficient risk capital should consider trading. Past performance is not necessarily indicative of future results. View full risk disclosure.

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.