eyeExamples

Core Builder Pattern

Every strategy follows the same structural pipeline:

Price Data 
    → Indicator(s) 
        → Condition(s) 
            → Logic Gate(s) 
                → Action (Buy / Sell)

Nothing executes unless the full logic chain evaluates to true.

Example 1: SMA Crossover Trend Strategy

Goal Enter when short-term trend overtakes long-term trend. Exit when it reverses.


Nodes Used

  • Price Data

  • SMA

  • Crossover

  • Buy Signal

  • Sell Signal


Step-by-Step (UI Actions)

  1. Add Price Data

    • Select one or more related markets

    • This price stream feeds all downstream nodes

  2. Add Indicators

    • SMA

      • Name: sma_10

      • Period: 10

    • SMA

      • Name: sma_20

      • Period: 20

  3. Add Entry Condition

    • Crossover

      • Type: Cross Above

      • Left input: sma_10

      • Right input: sma_20

  4. Add Entry Action

    • Buy Signal

      • Executes BUY order when crossover fires

  5. Add Exit Condition

    • Crossover

      • Type: Cross Below

      • Left input: sma_10

      • Right input: sma_20

  6. Add Exit Action

    • Sell Signal

      • Executes SELL order on crossover


Variables

  • sma_10: Simple Moving Average, period = 10

  • sma_20: Simple Moving Average, period = 20

  • Cross Above: triggers only at the moment the crossing occurs

  • Cross Below: inverse crossing event


Example 2: RSI Mean Reversion Strategy

Goal Buy when momentum is oversold, exit on normalization.


Nodes Used

  • Price Data

  • RSI

  • Compare

  • Buy Signal

  • Sell Signal


Step-by-Step (UI Actions)

  1. Add Price Data

    • Select a range-bound or choppy market set

  2. Add Indicator

    • RSI

      • Name: rsi_14

      • Period: 14

  3. Add Entry Condition

    • Compare

      • Operator: <

      • Left input: rsi_14

      • Value (if no right input): 30

  4. Add Entry Action

    • Buy Signal

  5. Add Exit Condition

    • Compare

      • Operator: >

      • Left input: rsi_14

      • Value (if no right input): 50

  6. Add Exit Action

    • Sell Signal


Variables

  • rsi_14: Relative Strength Index, period = 14

  • 30: Oversold threshold

  • 50: Neutral exit threshold

  • <, >: numeric comparison operators


Example 3: Momentum + Filter (MACD + RSI Confirmation)

Goal Enter only when momentum turns positive and RSI confirms strength.


Nodes Used

  • Price Data

  • MACD

  • RSI

  • Compare

  • AND

  • Buy Signal

  • Sell Signal


Step-by-Step (UI Actions)

  1. Add Price Data

    • Select multiple markets within the same category

  2. Add Indicators

    • MACD

      • Name: macd_fast

      • Fast: 12

      • Slow: 26

      • Signal: 9

    • RSI

      • Name: rsi_14

      • Period: 14

  3. Add Entry Conditions

    • Compare (Momentum)

      • Operator: >

      • Left input: macd_fast

      • Value: 0

    • Compare (Confirmation)

      • Operator: >

      • Left input: rsi_14

      • Value: 55

  4. Combine with Logic Gate

    • AND

      • Both conditions must be true

  5. Add Entry Action

    • Buy Signal

  6. Exit Logic

    • Compare

      • Operator: <

      • Left input: rsi_14

      • Value: 45

    • Sell Signal


Variables

  • macd_fast: MACD value (Fast EMA − Slow EMA)

  • rsi_14: Relative Strength Index, period = 14

  • 0: Momentum neutrality threshold

  • 55, 45: Confirmation / exit thresholds

  • AND: all upstream conditions must be true


How to Read Backtest Results (What to Check First)

After running a backtest, inspect in this order:

  1. Trade Count

    • Too many → noise / overfitting

    • Too few → regime dependence

  2. Max Drawdown

    • Indicates path-dependency and tail risk

  3. Cumulative PnL Curve

    • Smooth → structural edge

    • Stair-step or cliff-like → event sensitivity

  4. Order History

    • Verify trades trigger where logic says they should

    • Check for clustering or over-reaction

  5. Win Rate vs PnL

    • High win rate + low PnL → execution drag

    • Low win rate + positive PnL → convex payoff

Last updated