For decades, systematic trading was the exclusive domain of quantitative analysts and programmers. Building a trading strategy meant writing code in Python, R, or C++, then deploying it on infrastructure that cost thousands per month to maintain.
Natural language (NL) strategy builders are changing this equation. Describe your trading idea in plain English, and an AI system converts it into a structured, executable strategy that runs 24/7. No coding. No technical setup. Just your trading insight, automated.
This article explains how these systems work under the hood, what makes them effective, and where the technology is headed.
The Core Idea
Every trading strategy, no matter how complex, can be reduced to a set of conditions and actions. "If X happens, do Y." The innovation of NL strategy builders is using AI to bridge the gap between how humans describe strategies and how machines execute them.
Human description: "Buy Bitcoin when it drops more than 5% in a day and the RSI is oversold."
Machine-readable rules:
- Condition 1: BTC 24h price change < -5% (AND)
- Condition 2: RSI(14) < 30
- Action: Open long position
- Asset: BTC-PERP
- Size: [user-defined]
The AI handles the translation. The user focuses on the idea.
How the Parsing Works
Step 1: Intent Extraction
When you submit a natural language strategy description, an AI model (typically a large language model like Claude or GPT-4) analyzes your text to extract:
- Assets: Which coins/tokens are you trading? (BTC, ETH, SOL)
- Indicators: Which technical or fundamental signals are you referencing? (RSI, EMA, MACD, funding rates, price levels)
- Conditions: What thresholds or events trigger action? (RSI below 30, price above $100K, EMA crossover)
- Logic: How are conditions combined? (all conditions must be true vs. any condition triggers)
- Actions: What should happen when conditions are met? (open long, close position, reduce by 50%)
- Risk parameters: Stop losses, take profits, position sizes, leverage
Step 2: Structured Output
The AI converts your description into a structured format that the execution engine understands. Each rule has:
{
conditions: [
{ indicator: "RSI", period: 14, operator: "less_than", value: 30 },
{ indicator: "PRICE_CHANGE_24H", operator: "less_than", value: -5 }
],
logic: "AND",
action: "OPEN_LONG",
cooldown: 3600 // seconds before rule can trigger again
}
This structured format is deterministic. The same market conditions will always produce the same result, eliminating the ambiguity inherent in natural language.
Step 3: Human Review
Before deployment, the parsed rules are presented back to the user in a clear, visual format. This is a critical step. The user verifies that the AI correctly interpreted their intent. Did "oversold" correctly map to RSI < 30? Is the AND/OR logic correct? Are the parameters reasonable?
This review step catches misinterpretations before real money is at risk.
Supported Condition Types
Modern NL strategy builders support a broad range of conditions. On Otomate, the Strategy Builder handles 32 distinct condition types across several categories:
Technical Indicators
- RSI (Relative Strength Index): Overbought/oversold detection. "Buy when RSI is below 25" or "Sell when RSI crosses above 75."
- EMA (Exponential Moving Average): Trend following. "Buy when the 9-period EMA crosses above the 21-period EMA."
- MA (Moving Average): Similar to EMA but with simple moving average calculation.
- MACD (Moving Average Convergence Divergence): Momentum and trend signals. "Buy when the MACD line crosses above the signal line."
Price-Based
- Absolute price levels: "Buy ETH if it drops below $3,000."
- Percentage changes: "Sell if BTC drops 10% from my entry."
- Support/resistance: "Close position if price breaks below the 200-day moving average."
Funding and Yield
- Funding rate thresholds: "Open a short when BTC funding rate exceeds 0.05% per 8 hours."
- Funding rate direction: "Close position when funding turns negative."
Position and Portfolio
- P&L targets: "Close position when profit reaches 15%."
- Drawdown limits: "Close everything if my portfolio drops 10%."
- Position existence: "Only open a new position if I have no current BTC exposure."
Time-Based
- Time of day: "Only execute trades during Asian trading hours."
- Cooldown periods: "Wait at least 4 hours between trades."
The Execution Engine
Once parsed and approved, the strategy runs on a dedicated execution engine. On Otomate, this is a background worker that evaluates strategies on a regular cycle (every 60 seconds by default).
Evaluation Flow
Each cycle, for each active strategy:
- Check global stop loss. If the account has hit the user-defined maximum drawdown, all positions are closed and the strategy is paused.
- Fetch current indicator values. Real-time RSI, EMA, MACD, funding rates, and prices are calculated from live market data.
- Evaluate each rule. Conditions are checked against current values. For AND logic, all conditions must be true. For OR logic, any condition triggers the action.
- Respect cooldowns. If a rule triggered recently (within its cooldown period), it is skipped to prevent rapid re-triggering.
- Execute action. If a rule triggers, the corresponding order is placed through the trading protocol (Nado on Ink Chain).
- Log execution. Every evaluation and execution is recorded for the user to review.
Position Sizing
The strategy allocates capital from a dedicated subaccount. This isolation ensures:
- The strategy cannot access funds allocated to other strategies or copy trading
- Liquidation in the strategy subaccount does not affect other positions
- P&L tracking is clean and unambiguous
Backtesting: Validate Before You Deploy
One of the most powerful features of structured strategy rules is backtesting. Because the conditions are deterministic, they can be evaluated against historical market data to estimate past performance.
How Backtesting Works
- Historical price candles are fetched (typically hourly data from exchange APIs)
- Technical indicators are calculated for each historical period
- Strategy rules are evaluated chronologically, simulating trades at historical prices
- Performance metrics are calculated from the simulated trade history
Key Metrics
- Total P&L: Net profit or loss over the backtesting period
- Win rate: Percentage of trades that were profitable
- Max drawdown: Largest peak-to-trough decline during the period
- Profit factor: Gross profits divided by gross losses
- Total trades: Number of trades executed
Backtesting Caveats
Backtesting has well-known limitations that every trader should understand:
Overfitting. A strategy tuned to perform perfectly on historical data may fail on future data. If your backtest looks too good, you have probably overfit to past conditions.
Slippage and fees. Backtests often use ideal execution prices. Real trading involves slippage, fees, and partial fills. Account for these in your expectations.
Regime dependence. A strategy that excels in trending markets may fail in ranging markets, and vice versa. Test across different market conditions.
Survivorship bias. Backtesting on assets that exist today excludes assets that failed. Be cautious about generalizing results.
Despite these limitations, backtesting is invaluable for filtering out obviously bad ideas before risking real capital.
Practical Examples
Momentum Strategy
"Buy BTC when the 9-day EMA crosses above the 21-day EMA and RSI is above 50. Close when the 9-day EMA crosses below the 21-day EMA or my profit exceeds 8%."
This creates a trend-following system with a profit target. The dual conditions (EMA crossover + RSI filter) reduce false signals that would occur with either indicator alone.
Mean Reversion Strategy
"Buy ETH when RSI drops below 25. Sell when RSI rises above 65 or my loss exceeds 5%."
This bets on overextended moves reverting to the mean. The stop loss at 5% prevents holding through a genuine trend reversal.
Funding Rate Arbitrage Signal
"Open a short on BTC when the funding rate exceeds 0.03% per 8 hours. Close when funding drops below 0.01%."
This captures elevated funding rates by shorting when longs are paying a premium. Combined with a spot hedge (delta neutral), this becomes a yield strategy.
The Democratization Effect
The significance of NL strategy builders extends beyond convenience. They democratize access to systematic trading in a way that no previous technology has achieved.
A retail trader in Lagos with a $500 account can now deploy the same type of rule-based strategy that a quantitative fund uses. The rules might be simpler, the capital smaller, but the approach, systematic and emotion-free, is the same.
This matters because emotional decision-making is the primary reason most traders lose money. Strategies that remove emotion from execution, even simple ones, consistently outperform discretionary trading for the average participant.
Where NL Strategies Are Heading
The current generation of NL strategy builders handles well-defined technical rules. Future iterations will expand into:
- Multi-asset strategies that trade correlations between assets
- Sentiment integration using on-chain data and social signals as conditions
- Adaptive parameters where the AI adjusts thresholds based on market regime
- Portfolio-level rules that manage allocation across multiple strategies
- Cross-protocol strategies that combine lending, DEX trading, and derivatives
The trajectory is clear: natural language will become the primary programming language for trading strategies, and the AI handling the translation will become increasingly sophisticated.
For traders, the message is simple. If you have a trading idea but lack the coding skills to implement it, the barrier no longer exists. Describe what you want. Let the AI handle the how.