
algo-strategy
Generate a single-file dual-mode trading strategy. Asks for indicator library and execution type. The same file runs --mode backtest (VectorBT) and --mode live (OpenAlgo). Upload-ready for OpenAlgo /python self-hosted.
- Installs
- 45
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/marketcalls/openalgo-execution-skills --skill algo-strategy- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads algo-strategy automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
Create a complete dual-mode strategy file from a template.
Arguments
Parse $ARGUMENTS as: template symbol exchange interval
$0= template (e.g.ema-crossover,rsi,supertrend,donchian,macd,opening-range,atr-breakout,bb-squeeze,ml-logistic,ml-xgb,pairs-trading,regime-trend,event-driven)$1= symbol (e.g. SBIN, RELIANCE, NIFTY). Default: template's catalog default$2= exchange (e.g. NSE, NSE_INDEX, NFO). Default: template's catalog default$3= interval (e.g. 1m, 5m, 15m, D). Default: template's default
If no arguments, ask the user which template they want. See algo-expert/rules/strategy-catalog.md.
Required prompts before generation
After parsing arguments, ASK the user (do not assume defaults silently):
-
Indicator library:
(1) openalgo [default] (2) talib- Default openalgo. talib's user must confirm explicitly.
- Specialty indicators (Supertrend, Donchian, Ichimoku, HMA, KAMA) always use openalgo regardless.
-
Execution type - default depends on template (see strategy-catalog.md):
(1) end-of-candle (eoc)- signal at bar close, MARKET on next bar (default for most)(2) real-time limit (limit)- tick-driven LIMIT placement (default for atr-breakout)(3) stop-trigger (stop)- broker-side SL/SL-M (default for opening-range)
Tell the user the recommended default for their template and let them override.
Instructions
- Read
algo-expert/rules/unified-strategy-pattern.md,mode-toggle.md, andexecution-types.md. - Read the matching template at
algo-expert/rules/assets/<template>/strategy.pyas the starting point. - Create
strategies/<template>_<symbol>/directory if not present. - Copy the template into
strategies/<template>_<symbol>/strategy.pyand:- Replace
SYMBOL,EXCHANGE,INTERVALconstants with user values - Set
INDICATOR_LIBto user's choice ("openalgo"or"talib") - Set
EXECUTION_TYPEto user's choice ("eoc","limit","stop") - Update
STRATEGY_NAMEto<template>_<symbol>(default; can be overridden by env) - Adjust
PRODUCTto match the asset class (NSE equity → MIS or CNC; NFO → NRML) - Adjust
QUANTITYto a reasonable starting value (1 for equity, lot size for futures)
- Replace
- For ML templates (
ml-logistic,ml-xgb), also copytrain.pyand remind the user to run it BEFORE running the strategy:python strategies/ml_logistic_RELIANCE/train.py - The file must be host-compatible per
self-hosted-strategies.md:- Reads HOST_SERVER first, then OPENALGO_HOST fallback
- Reads OPENALGO_STRATEGY_EXCHANGE for exchange
- SIGTERM/SIGINT handlers installed
- stdout-only logging
- dispatcher reads env
MODEif no--modeCLI arg
- Print:
- File location
- Next steps:
- Backtest:
python strategies/<name>/strategy.py --mode backtest - Live:
python strategies/<name>/strategy.py --mode live - Upload to /python:
/algo-host <name>to validate and generate upload guide
- Backtest:
Available templates
| Template | Default symbol | Default exchange | Default interval | Default execution |
|---|---|---|---|---|
ema-crossover | SBIN | NSE | 5m | eoc |
rsi | RELIANCE | NSE | 15m | eoc |
supertrend | NIFTY | NSE_INDEX | 5m | eoc |
donchian | NIFTY | NSE_INDEX | D | eoc |
macd | INFY | NSE | D | eoc |
opening-range | SBIN | NSE | 5m | stop |
atr-breakout | RELIANCE | NSE | 5m | limit |
bb-squeeze | TCS | NSE | 15m | eoc |
ml-logistic | RELIANCE | NSE | 15m | eoc |
ml-xgb | RELIANCE | NSE | 15m | eoc |
pairs-trading | SBIN/PNB | NSE | D | eoc (two-leg) |
regime-trend | RELIANCE | NSE | D | eoc (ADX+VIX+volume gates) |
event-driven | RELIANCE | NSE | D | scheduled-time |
For options templates (short-straddle, iron-condor), use /algo-options instead.
Costs
The file's COSTS = cost_lookup(PRODUCT, EXCHANGE) auto-resolves:
- MIS + NSE → 0.0225% + Rs 20 + 5 bps slippage
- CNC + NSE → 0.111% + Rs 20 + 3 bps slippage
- NRML + NFO → 0.018% + Rs 20 + 2 bps slippage (futures)
- NRML + NFO with options → 0.098% + Rs 20 + 10 bps slippage
If the user wants different broker rates, point them to algo-expert/rules/transaction-costs.md to override the constants.
Risk defaults
The template comes with reasonable RISK values (see strategy-catalog.md). Tell the user these are starting points, not optimal - tune via backtest before live.
Avoid
- Do not use icons/emojis in code, logger output, or skill text
- Do not generate files in arbitrary paths - always under
strategies/<name>/ - Do not auto-flip
MODE=livewithout the user explicitly running it
FAQ
What does the algo-strategy skill do?
Generate a single-file dual-mode trading strategy. Asks for indicator library and execution type. The same file runs --mode backtest (VectorBT) and --mode live (OpenAlgo). Upload-ready for OpenAlgo /python self-hosted.
How do I install algo-strategy?
Run npx skills add https://github.com/marketcalls/openalgo-execution-skills --skill algo-strategy in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/algo-strategy/ (personal) or .claude/skills/algo-strategy/ (project).
Which AI agents can use algo-strategy?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is algo-strategy safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains algo-strategy?
It is published by marketcalls in marketcalls/openalgo-execution-skills. It has 45 recorded installs.
More from marketcalls/openalgo-execution-skills
algo-options
marketcalls/openalgo-execution-skills
Generate options-only execution strategies (short straddle, iron condor). Backtest mode is intentionally disabled. Live mode uses optionsmultiorder + per-leg SL.
algo-risk-test
marketcalls/openalgo-execution-skills
Verify a strategy's SL / TP / trailing stop / portfolio caps fire correctly. Uses OpenAlgo sandbox + synthetic price moves. Run this before going live.
algo-expert
marketcalls/openalgo-execution-skills
OpenAlgo execution expert. Auto-loaded knowledge base for building algorithmic trading strategies that toggle between VectorBT backtest and OpenAlgo live execution. Triggers when user mentions OpenAlgo trading strategies, dual-mode strategies, /python self-hosted strategies, options execution (short straddle, iron condor), portfolio risk caps, or live execution with stop loss / target / trailing stop / risk management.
algo-host
marketcalls/openalgo-execution-skills
Open the skill to read its SKILL.md instructions.
algo-setup
marketcalls/openalgo-execution-skills
Set up the Python environment for OpenAlgo execution skills - venv, openalgo[indicators], vectorbt, talib, scikit-learn, xgboost. Scaffolds strategies/ folder and .env.
algo-portfolio
marketcalls/openalgo-execution-skills
Run multiple strategies under one supervisor with portfolio-level risk caps (portfolio SL/TP, daily PnL limits, max concurrent positions). YAML-driven.
Popular business & finance skills
sales-enablement
coreyhaines31/marketingskills
When the user wants to create sales collateral, pitch decks, one-pagers, objection handling docs, or demo scripts. Also use when the user mentions 'sales deck,' 'pitch deck,' 'one-pager,' 'leave-behind,' 'objection handling,' 'deal-specific ROI analysis,' 'demo script,' 'talk track,' 'sales playbook,' 'proposal template,' 'buyer persona card,' 'battle card,' 'battlecard,' 'competitive one-pager,' 'win-loss analysis,' 'why are we losing deals,' 'loss reasons,' 'how do I respond to this objection,' 'prospect just said,' 'help my sales team,' 'sales materials,' or 'what should I give my sales reps,' 'cold call script,' or 'voicemail script.' Use this for any document or asset that helps a sales team close deals. For public competitor comparison pages, see competitors. For running buyer interviews or churn research, see customer-research. For marketing website copy, see copywriting. For cold outreach emails, see cold-email. For the offer being sold (bonuses, guarantees, pricing structure),
revops
coreyhaines31/marketingskills
When the user wants help with revenue operations, lead lifecycle management, or marketing-to-sales handoff processes. Also use when the user mentions 'RevOps,' 'revenue operations,' 'lead scoring,' 'outbound pipeline stages,' 'lead routing,' 'MQL,' 'SQL,' 'pipeline stages,' 'deal desk,' 'CRM automation,' 'marketing-to-sales handoff,' 'data hygiene,' 'leads aren't getting to sales,' 'pipeline management,' 'lead qualification,' or 'when should marketing hand off to sales.' Use this for anything involving the systems and processes that connect marketing to revenue. For cold outreach emails, see cold-email. For email drip campaigns, see emails. For pricing decisions, see pricing.
sales-funnel-blueprint
autonnel/autonnel-skills
Turn an offer into a concrete multi-step sales funnel spec - page-by-page structure, price ladder, copy outline and the metrics each step must hit. Use when asked to build a sales funnel, marketing funnel, landing page flow, lead magnet funnel, webinar funnel, tripwire or VSL funnel, when planning a product launch page flow, or when someone asks "what pages do I need" for selling something online.
pricing
coreyhaines31/marketingskills
When the user wants help with pricing decisions, packaging, or monetization strategy. Also use when the user mentions 'pricing,' 'pricing tiers,' 'freemium,' 'free trial,' 'packaging,' 'price increase,' 'value metric,' 'Van Westendorp,' 'willingness to pay,' 'monetization,' 'how much should I charge,' 'my pricing is wrong,' 'pricing page,' 'annual vs monthly,' 'per seat pricing,' 'should I offer a free plan,' 'pricing page teardown,' 'pricing page audit,' 'is my pricing page AI-readable,' or 'can AI read my pricing.' Use this whenever someone is figuring out what to charge, how to structure their plans, or wants to audit a pricing page (for humans and for the AI agents that shortlist tools). For in-app upgrade screens, see paywalls. For offer construction (bonuses, guarantees, value framing, naming) on services/courses/coaching/high-ticket B2B, see offers.
cross-border-ecommerce
nexscope-ai/ecommerce-skills
Cross-border e-commerce expansion advisor. Scores target markets on 8 weighted dimensions (market size, ecommerce penetration, competition, regulatory complexity, logistics infrastructure, payment ecosystem, cultural distance, IP protection), compares 5 fulfillment models with cost and transit data, provides country-by-country tax/duty compliance guides (EU VAT/IOSS, UK VAT, US sales tax, CA GST, AU GST, JP consumption tax), maps local payment preferences by market, and builds a phased expansion roadmap. No API key required.
pricing-strategy
coreyhaines31/marketingskills
When the user wants help with pricing decisions, packaging, or monetization strategy. Also use when the user mentions 'pricing,' 'pricing tiers,' 'freemium,' 'free trial,' 'packaging,' 'price increase,' 'value metric,' 'Van Westendorp,' 'willingness to pay,' 'monetization,' 'how much should I charge,' 'my pricing is wrong,' 'pricing page,' 'annual vs monthly,' 'per seat pricing,' or 'should I offer a free plan.' Use this whenever someone is figuring out what to charge or how to structure their plans. For in-app upgrade screens, see paywall-upgrade-cro.