A Beginner’s Guide to
Building Trading Strategies with Algo Studio
This guide explains how strategies are built using a simple, modular block-based approach. Understanding these blocks — and how they connect — is the key to creating reliable, testable, and automated trading strategies.
Building Strategies - Part 1
Building Strategies - Part 2
The Block-Building Philosophy
Strategies are built visually using connected blocks, rather than writing code. Each block represents a single responsibility within a strategy, and strategies are created by linking these blocks together in a logical flow.
This approach mirrors how professional traders think:
- Analyze the market
- Decide if conditions are met
- Take action.
By separating these steps into different block types, this ensures strategies are:
- Transparent – You can see exactly why a trade occurs
- Easy to debug – Issues are isolated to specific blocks
- Safe to automate – No hidden or accidental trade execution
The Core Block Types
Every strategy is built using four distinct categories of blocks. Each category has a clear role, and blocks must be connected in this order.
1. Data Blocks
Raw Market Inputs. Data blocks provide direct price data from the market. They are the most basic building blocks and often serve as the starting point for strategies.
Unlike indicator blocks, data blocks do not perform calculations. They simply expose real-time or historical price values that can be used directly in logic blocks or as inputs to indicators.
- The current traded price
- Candle-based price values
- High-level price comparisons
- Simple price-based strategies
- Breakout and reversal logic
- Comparing price to indicators
Tip: Data blocks can connect directly to logic blocks or feed into indicator blocks for further analysis.
2. Indicator Blocks
For Market Analysis. Indicator blocks are responsible for reading and interpreting market data. They do not make decisions or place trades — they simply calculate values that describe what the market is doing.
These values (Price movement, Volume, Volatility, Trend direction) are then passed downstream to logic blocks for evaluation.
- Identifying trends (e.g. moving averages)
- Measuring momentum (e.g. RSI, MACD)
- Detecting volatility changes
- Tracking volume behavior
Note: Indicator blocks never execute trades directly. They must always connect to logic blocks to be meaningful.
3. Logic Blocks
Decision-Making and Rules. Logic blocks define when something is true or false. They act as the decision layer of your strategy, evaluating indicator values and determining whether conditions are met.
Think of logic blocks as questions your strategy asks the market. They take inputs, compare values, and output a true/false result.
- “Price crosses above a moving average”
- “RSI is higher than 70”
- “Volume increases by a specific amount”
Note: Logic blocks act as gatekeepers. If logic conditions are not met, actions will never trigger.
4. Action Blocks
Executing Trades and Managing Positions. Action blocks define what the strategy actually does once all logic conditions are satisfied. This is where decisions turn into real market activity.
Action blocks can open/close positions, adjust risk settings, and manage orders. Smart actions are designed to handle more advanced execution logic automatically.
Warning
Action blocks are executed in real time during live trading. Always test strategies thoroughly before deploying them live.
Pattern Blocks
Pattern blocks allow strategies to identify well-known price patterns that repeat across markets and timeframes. These patterns represent common trader behavior and market psychology, such as reversals, continuations, and exhaustion moves.
Important: Pattern blocks never place trades directly. They are signals, not decisions. They must connect to logic blocks before triggering any action.
Candlestick Patterns
Short-Term Price Action Signals. Candlestick pattern blocks identify specific candle formations that often indicate short-term reversals or continuation moves. These patterns are especially useful for timing entries and exits.
Using Pattern Blocks Effectively
Pattern blocks are most powerful when used with confirmation, such as:
- Trend indicators (moving averages)
- Momentum indicators (RSI, MACD)
- Volume analysis
- Key support and resistance levels
This layered approach helps reduce false signals and improves strategy reliability.
Why Pattern Blocks Matter
Pattern blocks allow traders to:
- Encode proven trading concepts visually
- Remove subjective pattern interpretation
- Automate pattern recognition consistently
- Combine price action with indicators and logic
By integrating pattern blocks into the block framework, traders can turn classic technical analysis into clear, rule-based, automated strategies.
How Blocks Work Together
A complete strategy always follows this flow. This structure ensures that analysis is separated from decisions, and decisions are separated from execution.
Example: An indicator calculates a moving average → A logic block checks if price crosses above it → An action block opens a long position.
Why This Matters for New Traders
Visual Logic
Learn strategy logic visually
Safety
Avoid accidental trade execution
Confidence
Build confidence before automating
Scalability
Scale from simple ideas to complex systems
By mastering how each block type works — and how they connect — traders gain full control over how and why their strategies behave.