Strategy Builder

Design trading strategies without missing the execution details.

A guided builder for equity, futures, options, multi-leg options, and MCX strategies. Define instruments, entries, exits, risk, broker rules, and deployment settings before generating your Python package.

workspace/multi_leg_straddle.json
Build Steps
Market
Instruments
Broker config
Entry Rules
Exit Rules
Risk Controls
Package Export

Define Entry Conditions

Multi-leg Options
NIFTY 50
Condition Group 1
Time
>=
09:20:00
AND
NIFTY.VIX
<
22.0
StrategySchema.json
{
  "strategy_id": "strdl_nifty_920",
  "category": "multi_leg_options",
  "universe": {
    "segment": "F&O",
    "underlying": "NIFTY"
  },
  "entry_rules": [
    {
      "type": "time_based",
      "operator": ">=",
      "value": "09:20:00"
    },
    {
      "type": "data_point",
      "symbol": "INDIAVIX",
      "operator": "<",
      "value": 22.0
    }
  ],
  "exit_rules": null, // Pending
  "risk_limits": null  // Pending
}
Schema completeness: 82%
Risk rules pending Broker checklist required
Live mode locked

Most strategy failures are not idea failures. They are missing-detail failures.

Entries are only one part of a deployable strategy. Stockey forces the execution, risk, broker, data, and deployment details into the design process.

Instrument selection

Define the exact universe. Handles roll-overs, expiries, and corporate actions.

Entry logic

Time-based, indicator-based, or multi-condition triggers with precise execution types.

Exit logic

Target, trailing stop-loss, time-based exits, and dynamic condition reversals.

Risk controls

Max loss per day, max trades, drawdown limits, and position sizing rules.

Broker constraints

API rate limits, margin requirements, and order types supported by your broker.

Package output

A structured, deployable Python package ready for paper trading or live execution.

One builder for multiple Indian market strategy types.

Equity Cash

Symbol: RELIANCE-EQ
Type: MIS / CNC

Futures

Contract: NIFTY FUT (Current)
Rollover: Auto

Options

Type: CE / PE
Strike: ATM + 100

Multi-leg Options

Sell CESell PE

MCX Futures

Commodity: CRUDEOIL
Session: Evening

Pine Script Import

Webhook: Active
Payload: JSON mapped

Multi-leg options need a leg-aware builder.

LegSideTypeStrikeExpiryLotsEntrySLExit
Leg 1SellCEATMCurrent Weekly1Market25%Market
Leg 2SellPEATMCurrent Weekly1Market25%Market
Hedge 1BuyCEATM + 500Current Weekly1Market-Market
Hedge 2BuyPEATM - 500Current Weekly1Market-Market

Strategy-level risk

Combined premium SL
Max loss MTM
Max profit MTM
Trailing SL

From idea to deployable package.

Idea

Trading logic

Rules

Builder config

StrategySchema

JSON definition

Package

Python export

Paper Test

Validation

Deployment Checklist

Live readiness

Every strategy leaves as a structured Python package.

strategy_package/
config.json
requirements.txt
src/
__init__.py
execution.py
risk_manager.py
strategy.py
run.py

Package safeguards

  • DRY_RUN=true by default
  • Configured for selected broker API
  • Hardcoded risk limits from builder
  • Standardized logging included

AI helps clarify the strategy. Templates protect the execution path.

Clarify rules

Normalize to StrategySchema

Generate reviewed package files

AI does not recommend securities, guarantee returns, or bypass live-trading safeguards.

Live trading stays locked until the strategy is complete.

Risk rules complete Broker checklist reviewed Paper trading verified
Read risk disclosure

Build the strategy before you build the bot.

Use the guided builder to define the rules, constraints, risks, and deployment path before exporting code.