Blocks Overview

Learn about the three block types in Backtrex: indicator blocks, logic blocks, and action blocks, and how to connect them.

Block Types

Every strategy in Backtrex is built from three types of blocks that you connect together on the visual canvas.

Indicator Blocks

Indicator blocks compute technical values from price data. They are the foundation of your strategy logic.

Classic Indicators:

  • Moving Average (SMA, EMA, WMA) with configurable period
  • RSI (Relative Strength Index)
  • MACD (Moving Average Convergence/Divergence)
  • Bollinger Bands (upper, middle, lower bands)
  • Stochastic Oscillator (%K, %D lines)
  • ATR (Average True Range)
  • ADX (Average Directional Index)
  • Volume indicators

Smart Money Concepts (SMC/ICT):

  • Swing Points (swing highs and swing lows)
  • BOS (Break of Structure) and CHoCH (Change of Character)
  • Market Structure Trend
  • Order Blocks (bullish and bearish)
  • Fair Value Gaps (FVG)
  • Supply and Demand Zones
  • Equal Highs/Lows (liquidity pools)
  • Liquidity Sweep and Grab
  • Kill Zones (trading session hours)

Price Blocks:

  • Candle block (Open, High, Low, Close)
  • Previous Period High/Low

Each indicator block has configurable parameters (period, source, multiplier) and one or more outputs that you connect to logic blocks.

Logic Blocks

Logic blocks define the conditions that trigger entry or exit signals. They compare values from indicator blocks.

Comparison modes:

  • Crosses Above / Crosses Below
  • Is Greater Than / Is Less Than
  • Is Between (range check)
  • Equals

Advanced modes:

  • Range quantifiers (value within X% of target)
  • Percentage modifier (compare percentage changes)
  • Divergence detection (price vs. indicator divergence)

Action Blocks

Action blocks define what happens when your conditions are met:

  • Entry Long: Open a buy position
  • Entry Short: Open a sell position
  • Exit: Close the current position
  • Stop-Loss: Set a protective exit level
  • Take-Profit: Set a profit target level

Connecting Blocks

Blocks connect through input and output handles:

  1. Output handles (right side of a block): Emit computed values
  2. Input handles (left side of a block): Receive values from other blocks

To create a connection, click an output handle and drag to an input handle. The canvas validates connections, only compatible types can be linked.

Connection Rules

  • Indicator outputs connect to logic block inputs
  • Logic block outputs connect to action block inputs
  • You cannot connect two indicators directly (a logic block must sit between them)
  • Each input accepts one connection; outputs can connect to multiple inputs

Multi-Timeframe Support

Each indicator block can have its own timeframe setting. This lets you build strategies like:

  • Entry on H1 timeframe with trend confirmation on D1
  • RSI on M15 with Moving Average on H4

The backtest engine automatically handles timeframe alignment and data aggregation.

Block Configuration

Click any block to open the configuration panel on the right. Here you can:

  • Adjust parameters (period, source, multiplier)
  • Rename the block for clarity
  • View connection details
  • Delete or duplicate the block