Super Nodes

Super Nodes are reusable sub-strategies that encapsulate complex logic into single, modular components. Learn how to create and use Super Nodes to build maintainable trading strategies without repeating yourself.

Super Nodes Are Private (Except Public Templates)

Important: Super Nodes you create are private to your account and cannot be shared with other users. However, there are a few public Super Nodes created by MangoLabs admins (like "Size 1000" and "PNL calculators") that everyone can use. These public templates are great starting points for common calculations.

What Are Super Nodes?

Super Nodes are templates that package multiple nodes and connections into a single reusable component. Think of them as functions in programming - define once, use many times in YOUR strategies. They make complex logic easier to build, test, and maintain.

Why Use Super Nodes?

Reusability

Build complex logic once, use it in multiple strategies. For example, create a "Trend Filter" Super Node and use it across all your strategies.

Maintainability

Update logic in one place and all strategies using that Super Node are updated automatically. No need to manually edit 10 different strategies.

Simplification

Collapse 20+ nodes into a single Super Node. Makes your canvas cleaner and easier to understand at a glance.

Privacy & Isolation

Your Super Nodes are private to your account. Test and iterate without affecting others. Use public admin templates for common needs.

Types of Super Nodes

Condition Super Nodes

Encapsulate complex conditional logic that returns true/false. Examples: trend filters, volatility checks, volume confirmations.

Example: "Strong Uptrend" Super Node

  • • Price > 50 SMA
  • • 50 SMA > 200 SMA
  • • MACD > Signal
  • • Returns: True if all conditions met

Math Super Nodes

Perform calculations and return numeric values. Examples: custom indicators, position sizing calculations, risk metrics.

Example: "Position Size Calculator" Super Node

  • • Input: Account Balance, Risk %, Stop Loss Distance
  • • Calculation: (Balance × Risk%) / Stop Distance
  • • Returns: Optimal position size in units

Signal Super Nodes

Complete entry or exit logic modules. Examples: full entry systems, multi-indicator confirmations, exit strategies.

Example: "Mean Reversion Entry" Super Node

  • • RSI < 30
  • • Price at lower Bollinger Band
  • • Volume above average
  • • Returns: Entry signal (Buy) when all true

Creating Super Nodes

1

Step-by-Step Creation

  1. Navigate to Super Nodes Manager:
    Click "Super Nodes" in the sidebar (or access from Strategy Builder)
  2. Click "Create New Super Node":
    Opens the Super Node canvas editor
  3. Define Inputs & Outputs:
    • Inputs: Parameters that can be customized each time you use the Super Node (e.g., RSI threshold, SMA period)
    • Outputs: What the Super Node returns (true/false, number, signal)
  4. Build Internal Logic:
    Add nodes and connections just like building a regular strategy. Use input parameters as variables.
  5. Test the Super Node:
    Run validation and test with different input values to ensure it works correctly
  6. Save & Name:
    Give it a descriptive name (e.g., "Trend Filter - 50/200 SMA") and optional description

Example: Building a "Trend Filter" Super Node

Trend Filter Super Node

This Super Node determines if the market is in a strong uptrend. It can be reused in any strategy to filter trades.

Inputs (Parameters):
  • fast_period (default: 50)
  • slow_period (default: 200)
Internal Logic:
1. Create SMA feature with fast_period → SMA_Fast
2. Create SMA feature with slow_period → SMA_Slow
3. Get current Close price
4. Condition A: Close > SMA_Fast
5. Condition B: SMA_Fast > SMA_Slow
6. AND Logic: A AND B
7. Output: True if uptrend, False otherwise
Output:
Boolean (true/false) indicating uptrend status

Usage: Drag this Super Node into any strategy. Set custom periods if needed (e.g., 20/50 for faster trends). Connect output to your entry logic's AND condition to only trade in uptrends.

Using Super Nodes in Strategies

Adding Super Nodes to Strategy Canvas

  1. Open your strategy in the Strategy Builder
  2. In the node palette, find the "Super Nodes" section
  3. Drag your saved Super Node onto the canvas (just like any other node)
  4. Configure input parameters in the node's properties panel
  5. Connect the Super Node's output to other nodes in your strategy
  6. The Super Node executes its internal logic and returns the output

Best Practices

Keep Super Nodes Focused

Each Super Node should do ONE thing well. Don't create a "Master Entry Signal" with 50 conditions. Instead, create multiple smaller Super Nodes ("Trend Filter", "Volume Check", "Momentum Confirmation") and combine them.

Use Descriptive Names

Name Super Nodes clearly: "SMA_Crossover_50_200" is better than "Trend1". Include key parameters in the name so you remember what it does.

Parameterize Key Values

Make thresholds and periods into input parameters rather than hard-coding them. This makes Super Nodes flexible and reusable across different strategies and timeframes.

Document Your Super Nodes

Use the description field to explain what the Super Node does, what inputs it expects, and what output it returns. Future you will thank you.

Version Control

If you update a Super Node, consider creating a new version (e.g., "Trend_Filter_v2") rather than modifying the original. This prevents breaking existing strategies.

Common Super Node Library

Build these Super Nodes to create a versatile toolkit:

Trend Filters

  • • SMA Crossover (50/200)
  • • EMA Alignment (8/21/55)
  • • ADX Strength (> 25)
  • • Price Above/Below MA

Momentum Checks

  • • RSI Overbought/Oversold
  • • MACD Crossover
  • • Stochastic Extreme
  • • Rate of Change

Volatility Measures

  • • Bollinger Band Squeeze
  • • ATR Threshold
  • • Keltner Channel Width
  • • Standard Deviation

Volume Confirmations

  • • Volume Above Average
  • • Volume Spike Detection
  • • On-Balance Volume Trend
  • • Volume-Weighted Price

Risk Management

  • • Position Size Calculator
  • • Stop Loss Distance
  • • Risk/Reward Ratio
  • • Maximum Portfolio Heat

Time Filters

  • • Market Hours Only
  • • Avoid Weekends
  • • Session Detection (Asia/EU/US)
  • • Holiday Filter

Public Super Node Templates

Admin-Created Public Templates

MangoLabs provides a few public Super Nodes created by admins that everyone can use:

Size 1000

Template ID: 1d041cc2-625a-4066-ba96-37eb0ec3ad03

Returns a constant position size of 1000 units. Useful for fixed-size backtesting.

PNL long

Template ID: 18d9bc56-b40a-4482-95a9-09a37c1f9a5d

Calculates profit/loss percentage for long positions based on entry_price and current close.

PNL 2

Template ID: 0c1f2666-7e7d-4e38-b4a2-34e4c50f8bad

Alternative PNL calculation with different rounding/precision handling.

Important Limitations

What Super Nodes CANNOT Do

  • NO Nesting: You cannot use Super Nodes inside other Super Nodes. Super Nodes can only contain basic nodes (Input, Output, Math, Static Value, Condition, Logic).
  • NO Data Source Access: Super Nodes cannot contain dataSourceNode. They work with data passed through their input ports.
  • NO Action Nodes: Super Nodes cannot execute trades directly. They only process data and return results for use in your strategy.
  • NO Sharing: Your custom Super Nodes are private and cannot be shared with other users.

What's Next?