About algo-options
algo-options is a skill for generating OpenAlgo options execution strategies from short-straddle or iron-condor templates. It guides parameter collection and customization, while excluding backtesting and requiring expiry dates to be updated manually.
Key features
- 01Short-straddle and iron-condor templates
- 02Configure underlying and expiry date
- 03Set lots, schedule, and risk parameters
- 04Per-leg stop loss for short straddles
- 05Explicitly disables options backtesting
Use cases
- 01Create a scheduled NIFTY short straddle
- 02Configure BANKNIFTY iron-condor wings
- 03Prepare an options strategy for OpenAlgo upload
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ marketcalls/ openalgo-execution-skills --skill algo-optionsAfter installing, type/algo-optionsin Claude Code to confirm it loaded.
Details
From the project READMECreate an options execution strategy.
Arguments
Parse $ARGUMENTS as: template underlying expiry-date
$0= template (short-straddle,iron-condor)$1= underlying (e.g. NIFTY, BANKNIFTY). Default: NIFTY$2= expiry date in DDMMMYY format (e.g.30DEC25). REQUIRED - no auto-roll. Ask if not given.
If no arguments, ask the user which template.
Instructions
- Read
algo-expert/rules/options-execution.md,unified-strategy-pattern.md, andself-hosted-strategies.md. - Confirm with the user that backtest mode is disabled for options strategies (the file will exit with a clear message if
--mode backtestis passed). They use OpenAlgo's UI analyzer toggle for sandbox testing instead. - Ask the user:
- Lots: how many lots (default 1)
- OTM offsets (iron-condor only): OTM_NEAR for short body (default 4), OTM_FAR for long wings (default 8)
- Entry time (IST, e.g.
09:20) - Exit time (IST, e.g.
15:15) - SL multiplier (short_straddle, e.g.
1.30for 30% premium SL)
- Read the matching template at
algo-expert/rules/assets/<template>/strategy.py. - Create
strategies/<template>_<underlying>/and copy + customize. - Set:
UNDERLYING,UNDERLYING_EXCH,EXPIRY_DATELOTS,LOT_SIZE(NIFTY=65, BANKNIFTY=30, FINNIFTY=60 per Apr 2026 SEBI - seelot-sizes.md)ENTRY_TIME,EXIT_TIMEasdtime(H, M)SL_MULTIPLIERfor short straddleOTM_NEAR,OTM_FARfor iron condor
- Tell the user:
- To upload to
/python: requiresapschedulerandpytzpackages installed (covered by setup) - Always re-confirm
EXPIRY_DATEbefore each cycle - the file does NOT auto-roll - Set
MODE=livein upload form parameters; OpenAlgo UI's analyzer toggle decides sandbox vs real - Strategy holds NRML overnight if not flat at EXIT_TIME - cancelallorder + closeposition is called automatically
- To upload to
Templates
| Template | Description |
|---|---|
short-straddle | Sell ATM CE + ATM PE at scheduled time, per-leg broker SL at SL_MULTIPLIER * premium, flat at EXIT_TIME |
iron-condor | OTM_NEAR short CE/PE + OTM_FAR long CE/PE wings, monitor and flat at EXIT_TIME |
Backtest mode is off
The generated file checks for --mode backtest and exits:
Options backtesting is not supported in this skill pack.
Options pricing depends on volatility surfaces, time decay, and OI dynamics
that intraday OHLCV backtests don't capture well.
Use --mode live (with OpenAlgo's UI analyzer toggle for sandbox).
If the user wants to dry-run, they should:
- Flip OpenAlgo's analyzer toggle ON (in
/analyzerUI) - Run with
--mode live- orders go to the sandbox, not the broker
Avoid
- Do not use icons/emojis
- Do not auto-roll expiry date (
EXPIRY_DATE = "30DEC25"is hardcoded; user must update weekly) - Do not implement options backtesting - explicitly out of scope
- Do not skip the SL placement - per-leg SL is critical for short premium strategies
Comments
Markdown supported