StratBase.aiStratBase.ai
DashboardCreate BacktestMy BacktestsCatalogBlogNewsToolsHelp

Products

  • Researcher Dashboard
  • Create Backtest
  • My Backtests
  • Catalog
  • Blog
  • News

Alerts

  • Calendar
  • OI Screener
  • Funding Rate
  • REKT
  • Pump/Dump

Company

  • About Us
  • Pricing
  • Affiliate
  • AI Widget
  • Contact

Legal

  • Privacy
  • Terms
  • Refund Policy

Support

  • Help Center
  • Reviews
StratBase.aiStratBase.ai

Think it. Test it.

StratBase.ai does not provide financial advice or trading recommendations. AI only formalizes user ideas into testable strategy configurations for research purposes. Past backtesting performance does not guarantee future results. All trading decisions and associated risks are the sole responsibility of the user. This platform is not a broker and does not facilitate real trading.

© 2026 StratBase.ai · AI-powered strategy research and backtesting platform

support@stratbase.ai
Help Center/Backtest Configuration/Entry Conditions — Logic Builder

Entry Conditions — Logic Builder

📋Backtest Configuration
📌

Entry Conditions — Logic Builder

Entry conditions define when your strategy opens a position. The Logic Builder lets you combine multiple indicators with AND/OR logic to create precise entry signals.

📌

Adding a Condition

  1. Click Add Condition in the Entry section
  2. Choose the indicator from 245+ available
  3. Set indicator parameters (period, source, etc.)
  4. Select a comparison operator (>, <, cross_over, etc.)
  5. Choose the comparison target — a fixed value, another indicator, or a price field

Example: RSI Oversold

| Field | Value | |-------|-------| | Indicator | RSI | | Period | 14 | | Operator | Less than | | Value | 30 |

This condition triggers when RSI(14) drops below 30.

📌

AND Logic (Default)

By default, ALL conditions must be true simultaneously for an entry signal. This is AND logic.

Example: RSI < 30 AND Price > EMA(200)

  • Both conditions must be true on the same candle
  • More conditions = fewer but more precise signals
📌

OR Groups

Create alternative entry signals using OR groups:

  1. Click Add OR Group
  2. Add conditions inside the new group
  3. The strategy enters when any one group is fully satisfied

Example:

  • Group A: RSI < 30 AND MACD cross_over Signal
  • Group B: Stochastic %K < 20 AND ADX > 25

The strategy enters if ALL conditions in Group A are true OR ALL conditions in Group B are true.

📌

NOT Operator

Invert any condition with the NOT toggle:

  • NOT (RSI > 70) = Enter when RSI is NOT above 70
  • Useful for exclusion filters
📌

Long and Short Conditions

For Both direction strategies:

  • Long Entry — conditions for opening long positions
  • Short Entry — conditions for opening short positions

Each direction has its own set of conditions with independent AND/OR logic.

📌

Indicator Sources

When adding a condition, the indicator value can be compared to:

  • Fixed value — a number (e.g., RSI < 30)
  • Another indicator — e.g., SMA(50) > SMA(200)
  • Price fields — Open, High, Low, Close
  • Other indicator outputs — e.g., MACD Line vs Signal Line
📌

Condition Limits

There is no hard limit on the number of conditions, but:

  • More conditions = fewer signals = fewer trades
  • Very complex strategies may overfit to historical data
  • Start simple and add conditions incrementally

Tip: Start with 1-2 entry conditions. Run the backtest, analyze results, then add more conditions to filter out bad trades. Over-optimizing with too many conditions often leads to curve-fitting.

❓

FAQ

Q: What's the difference between AND and OR? A: AND requires ALL conditions to be true simultaneously. OR means any ONE group being fully satisfied triggers the entry.

Q: Can I mix AND and OR? A: Yes. Within each OR group, conditions are connected by AND. Between groups, the logic is OR. This gives you full flexibility.

Q: How many conditions should I use? A: Typically 2-4 conditions work well. More than 6-7 conditions often leads to overfitting.

🔗

Related Articles

  • Condition Operators
  • Multi-Timeframe Conditions
  • Exit Conditions Overview
  • How to Describe Your Strategy to AI