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.

Function Nodes


Function nodes are powerful logic nodes that can provide you with unparalleled flexibility in designing your system. Function nodes, unlike Confidence Solvers, take inputs and can manipulate them before outputting a value. Function nodes also have the ability to “look back” in time and generate output based on confidence values from previous bars, along with extending confidence values in to the future.

Function nodes read confidence values from other sources such as other logic nodes (including other function nodes) and confidence solvers. This in effect allows you to chain together an infinite number of nodes.

Using Function Nodes

Function nodes are available in the logic tab and can be added to any BloodHound template. To add a function node, select or create a new logic tab, then click the function node menu or right click the logic node workspace. A list of available function nodes will appear, allowing you to select one from the list.

Function Node Types

Inverts (1-x) or swaps (long and short) the input signal.

Uses
Produce an opposite effect from an existing signal. For example, you can design a system based on what you don’t want to see then use the Inverter node to reverse it.

Manipulate Long and Short signals against each other.

Examine past signals or offset them by a number of bars.

Uses
Determine if a signal has fired (or not fired) within the last 10 bars. Displace signals by 3 bars, effectively bringing a signal that happened 3 bars ago to the current bar.

Block signals from passing through to the output under a given condition.

Uses
Remove duplicate and/or redundant signals to prevent unwanted entries.

Count the number of signals within a specified number of past bars.

Uses
Determine if a condition has held true for the past 3 bars. For example: determine if the last 3 bars been up/down bars.

Take a signal and extend it for a specifies number of bars.

Uses
Allow a cross over (which produces only a single signal) to remain valid for 5 bars going forward.

Toggle a true or false state.

Uses
Create a system that requires states.


Common Function Node Settings:


Name

The name allows you to specify a friendly identification or purpose of a function node. This name will be used to help you identify the node in the logic template against other nodes.

Enabled

Function nodes can be enabled or disable. When disabled, the function node will generally act as a pass through for its input and will not affect the input in any node that it is connected to. BloodHound will behave as if the node does not exist. You can use the disable feature if you need to remove nodes from the output to analyze how BloodHound is producing an unexpected result.

Common Function Node Controls:


Reset

Some Function nodes can be “reset” or turned off.  The reset options are inside the Reset section of the parameters. These nodes include:

  • Signal Blocker
  • Signal Counter
  • Signal Extender
  • Toggle

The Reset options are used to turn off the expected functionality of the Function node.  The signals going into the Function node, via the Input connector, can be used to reset the Function node, and also signals to the Reset connector can reset(turn off) the Function node.

For example, if you are using the Signal Counter, and it is counting how many signals are in the last 10 bars, if a reset signal fires on the 5th bar back it will restart the count on that bar, giving you a result equivalent to counting only 5 bars back.

Similarly, if you are using a Signal Extender, and a reset signal occurs while a signal is being extended, the signal will stop being extended.

When a reset occurs for the Signal Blocker, it will stop blocking signals and allow the next signal through.

Parameter Description
Input Signal A Signal to the Input connector will reset the Function node.
Input No Signal A bar without a Signal to the Input will reset the Function node.
Reset Signal A Signal to the Reset connector will reset the Function node.
Reset No Signal A bar without a Signal to the Reset will reset the Function node.
Input Opposite Signal A Signal, from the Short confidence, into the Input, will reset the Long confidence only.
A Signal, from the Long confidence, into the Input, will reset the Short confidence only
Input Opposite No Signal A bar with no Signal from the Short confidence, into the Input, will reset the Long confidence only.
A bar with no Signal, from the Long confidence, into the Input, will reset the Short confidence only.
Reset Opposite Signal A Signal, from the Short confidence, into the Reset, will reset the Long confidence only.
A Signal, from the Long confidence, into the Reset, will reset the Short confidence only.
Reset Opposite No Signal A bar with no Signal, from the Short confidence, into the Reset, will reset the Long confidence only.
A bar with no Signal, from the Long confidence, into the Reset, will reset the Short confidence only.