CandleStrike Strategy Builder

Build, test, and refine rule-based trading strategies for NSE F&O and Crypto — candle patterns, indicators, and risk controls. No code required.

17 Indicators Pattern Sequences Trailing Stoploss Options ATM / ITM / OTM AI Strategy Generation

What is the Strategy Builder?

The Strategy Builder is a visual editor where you define exactly when to enter and exit a trade using candle patterns, technical indicators, and logical conditions. Every strategy you build is saved as a reusable configuration that can be backtested against historical data and later deployed for live or paper trading.

A strategy in CandleStrike answers five questions:

  1. What do I trade? — Exchange, instrument type, symbols, and chart timeframe.
  2. When am I interested? — Optional pre-entry patterns that must appear before an entry is considered.
  3. When do I enter? — An entry pattern and entry condition that trigger the trade.
  4. When do I exit? — Exit patterns/conditions, stoploss, trailing stoploss, and target.
  5. How much risk? — Capital, daily loss/profit caps, max trades per day, and trading sessions.

The builder at a glance

The builder page is organized top to bottom. Each section is collapsible.

SectionColorWhat you configure
Trade Direction Buy / Sell Whether the strategy buys or sells the selected instrument.
Instrument Setup Header Strategy name, exchange (NSE / CRYPTO), instrument type (FnO / Equity&Index / FUT), symbols, timeframe. Details →
Indicators Gray Common technical indicators (Moving Average, Bollinger Bands, RSI, MACD…) usable in any condition. Details →
Pre Entry Patterns Yellow Optional setup patterns that must occur in the last N candles before an entry can be evaluated.
Entry Patterns Green The single candle pattern + condition that actually triggers the trade. Details →
Exit Patterns Red Patterns/conditions that close the trade (in addition to SL/target).
Stoploss & Target Per trade Default SL, initial SL (%/pts), trailing stoploss, profit target. Details →
Expiry & Options FnO only Expiry week, strike selection (ATM/ITM/OTM or premium range), CE/PE/Both. Details →
Capital & Max Limits Daily Capital, max loss/day, max profit/day, max trades/day.
Trade Entry & Square Off Timing One or more trading sessions plus a forced square-off time.

How a strategy executes

Understanding the evaluation order helps you design strategies that behave the way you expect:

  1. Session check. Candles outside your configured trade sessions are ignored for entries.
  2. Pre-entry match (optional). If you defined pre-entry patterns, they must all match — in order — within the last Candle Period candles, respecting each pattern's Candle Gap.
  3. Entry match. The entry candle pattern is checked on the latest candle (or the forming candle if Use Running Candle is on), then your entry condition is evaluated. If both pass, the trade is placed.
  4. In-trade management. While the position is open, the engine tracks stoploss (including trailing moves), target, and your exit patterns/conditions on every candle.
  5. Exit. The trade closes on whichever fires first: exit condition, stoploss, target, square-off time, or a daily limit (max loss/profit/trades).
Good to know The Entry section's Candle Period is always 1 — entry is decided on a single candle. Pre-entry and Exit sections can scan multiple candles. See Patterns & Conditions.

Quick start: your first strategy

  1. Open the builder from the dashboard (Create Strategy). A new unique strategy ID is generated automatically.
  2. Pick direction — Buy or Sell.
  3. Set up the instrument — choose exchange, instrument type, one or more symbols, and a timeframe (e.g. 5Min).
  4. Add an indicator (optional) — e.g. a Bollinger Bands indicator named bb with period 20, multiplier 2.
  5. Add one entry pattern — e.g. a Green candle named entry. Exactly one entry candle pattern is required.
  6. Write the entry condition — e.g.
    entry['Low'] < entry['bb_middleband'] && entry['Close'] > entry['bb_middleband']
    (a green candle that dips below the BB midline but closes above it).
  7. Set stoploss and target — e.g. Initial SL 1%, Target 2%.
  8. Set capital and limits — capital amount, max loss/day, max trades/day.
  9. Check sessions — default NSE session is 09:15–15:30 with square-off at 15:15; Crypto defaults to 00:00–23:59.
  10. Save Strategy. You'll be redirected to the strategy view page; from there you can backtest it.

Where to go next

Live-deployed strategies are locked Once a strategy is deployed for live trading, the builder opens it in read-only mode — the name field is locked and Save is disabled. To iterate on a live strategy, use Copy Strategy to create an editable duplicate.