AI студия Владимира Ломтева
УСЛУГИПРОЕКТЫСТАТЬИБАЗА ЗНАНИЙМаркетплейсПолезные сервисы

Оставьте заявку,
чтобы обсудить проект

Напишите ваш вопрос, не забудьте указать телефон. Мы перезвоним и все расскажем.

Контакты

Москва

Работаем по всей России
и миру (онлайн)

+7 (999) 760-24-41

Ежедневно с 9:00 до 21:00

lamooof@gmail.com

По вопросам сотрудничества

TelegramWhatsApp

Есть предложение?

Напишите нам в мессенджеры

© 2025 AI студия Владимира Ломтева

Политика конфиденциальностиСогласие на обработку ПДн|ИНН 623412173261
    Backtest — Скилл для ИИ-агентов | AI Рассвет

    Backtest

    Quick backtest a strategy on a symbol. Creates a complete .py script with data fetch, signals, backtest, stats, and plots.

    Скиллы для разработки#GitHub#marketcalls/vectorbt-backtesting-skills#skills.sh
    Скачивания
    0
    В избранном
    0
    Комментарии
    0
    Просмотры
    2

    Установить скилл

    Добавьте инструмент одной командой или скачайте проверенный архив версии.

    npx skills add marketcalls/vectorbt-backtesting-skills --skill backtest
    Скачать ZIP
    Версия
    1.0.0+05d9e8b12fa4
    Автор
    Владимир Ломтев
    Репозиторий
    marketcalls/vectorbt-backtesting-skills
    GitHub: marketcalls/vectorbt-backtesting-skills

    Как установить

    1. 1Скопируйте команду из блока установки.
    2. 2Запустите её в терминале из каталога проекта.

    Документация

    Create a complete VectorBT backtest script for the user.

    Arguments

    Parse $ARGUMENTS as: strategy symbol exchange interval

    • $0 = strategy name (e.g., ema-crossover, rsi, donchian, supertrend, macd, sda2, momentum)
    • $1 = symbol (e.g., SBIN, RELIANCE, NIFTY). Default: SBIN
    • $2 = exchange (e.g., NSE, NFO). Default: NSE
    • $3 = interval (e.g., D, 1h, 5m). Default: D

    If no arguments, ask the user which strategy they want.

    Instructions

    1. Read the vectorbt-expert skill rules for reference patterns
    2. Create backtesting/{strategy_name}/ directory if it doesn't exist (on-demand)
    3. Create a .py file in backtesting/{strategy_name}/ named {symbol}_{strategy}_backtest.py
    4. Use the matching template from rules/assets/{strategy}/backtest.py as the starting point
    5. The script must:
      • Load .env from the project root using find_dotenv() (walks up from script dir automatically)
      • Fetch data via client.history() from OpenAlgo
      • If user provides a DuckDB path, load data directly via duckdb.connect(path, read_only=True) instead of OpenAlgo API. Auto-detect format: Historify (market_data table, epoch timestamps) vs custom (ohlcv table, date+time). See vectorbt-expert rules/duckdb-data.md.
      • If openalgo.ta is not importable (standalone DuckDB), use inline exrem() fallback.
      • Use OpenAlgo ta for ALL indicators by default (EMA, SMA, RSI, MACD, BBands, ATR, ADX, STDDEV, MOM, and 90+ more) - from openalgo import ta
      • Only use TA-Lib if the user explicitly says "talib"/"TA-Lib" in their request; specialty indicators (Supertrend, Donchian, Ichimoku, HMA, KAMA, ALMA, ZLEMA, VWMA) always come from OpenAlgo ta regardless, since TA-Lib has no equivalent
      • Use ta.exrem() to clean duplicate signals (always .fillna(False) before exrem)
      • Run vbt.Portfolio.from_signals() with min_size=1, size_granularity=1
      • Indian delivery fees: fees=0.00111, fixed_fees=20 for delivery equity
      • Fetch NIFTY benchmark via OpenAlgo (symbol="NIFTY", exchange="NSE_INDEX")
      • Print full pf.stats()
      • Print Strategy vs Benchmark comparison table (Total Return, Sharpe, Sortino, Max DD, Win Rate, Trades, Profit Factor)
      • Explain the backtest report in plain language for normal traders
      • Generate the OpenStatz interactive dashboard tearsheet via ostz.dashboard(...) if openstatz is available - a self-contained offline HTML file, no server needed (always use OpenStatz, never QuantStats; never the legacy ostz.reports.html static report). Set strategy_returns.name (e.g. "EMA 20/50 Crossover - SBIN") and benchmark.name before calling dashboard() - that name, not the title= argument, is what the tearsheet shows as the strategy header/column/legend (see the openstatz-tearsheet rule)
      • Plot equity curve + drawdown using Plotly (template="plotly_dark")
      • Export trades to CSV
    6. Never use icons/emojis in code or logger output
    7. For futures symbols (NIFTY, BANKNIFTY), use lot-size-aware sizing:
      • NIFTY: min_size=65, size_granularity=65 (effective 31 Dec 2025)
      • BANKNIFTY: min_size=30, size_granularity=30
      • Use fees=0.00018, fixed_fees=20 for F&O futures

    Available Strategies

    Strategy Keyword Template
    EMA Crossover ema-crossover assets/ema_crossover/backtest.py
    RSI rsi assets/rsi/backtest.py
    Donchian Channel donchian assets/donchian/backtest.py
    Supertrend supertrend assets/supertrend/backtest.py
    MACD Breakout macd assets/macd/backtest.py
    SDA2 sda2 assets/sda2/backtest.py
    Momentum momentum assets/momentum/backtest.py
    Dual Momentum dual-momentum assets/dual_momentum/backtest.py
    Buy & Hold buy-hold assets/buy_hold/backtest.py
    RSI Accumulation rsi-accumulation assets/rsi_accumulation/backtest.py

    Benchmark Rules

    • Default: NIFTY 50 via OpenAlgo (symbol="NIFTY", exchange="NSE_INDEX")
    • If user specifies a different benchmark, use that instead
    • For yfinance: use ^NSEI for India, ^GSPC (S&P 500) for US markets
    • Always compare: Total Return, Sharpe, Sortino, Max Drawdown

    Example Usage

    /backtest ema-crossover RELIANCE NSE D /backtest rsi SBIN /backtest supertrend NIFTY NFO 5m

    Требования и возможности

    Источник пакета
    https://github.com/marketcalls/vectorbt-backtesting-skills/tree/05d9e8b12fa408f1373c6b79620f8a5473fb874c/.claude/skills/backtest

    Файлы версии

    ПутьРазмерSHA256
    SKILL.md460076332a25da9872fd...

    Частые вопросы

    Как установить Backtest?
    Используйте команду npx skills add marketcalls/vectorbt-backtesting-skills --skill backtest или скачайте ZIP-архив.
    Можно ли скачать Backtest бесплатно?
    Да, опубликованную версию можно скачать из маркетплейса бесплатно.

    Похожие инструменты

    Смотреть все
    React DoctorUse when finishing a feature, fixing a bug, before committing React code, or when the user types `/doctor`, asks to scan, triage, or clean up React diagnostics. Covers lint, accessibility, bundle size, architecture. Includes a regression check and a full local-triage workflow that fetches the canonical playbook.Argent Android Emulator SetupSet up and connect to an Android emulator using argent MCP tools. Use when starting a new session on Android, booting an emulator, getting a device serial, or before any UI interaction task.Fireworks Tech GraphCreate technical diagrams such as software architecture, data flow, flowcharts, sequence diagrams, C4 reviews, cloud deployments, event streams, observability investigations, agent/memory systems, UML, ER, network topology, timelines, and technical concept maps, then export SVG, PNG, focused semantic SVG-to-GIF motion, or offline interactive HTML. Treat direct requests such as "Generate a GIF", "生成 GIF", or "制作 GIF" as motion requests, and use this skill when the user asks to visualize a system or engineering concept. Do not use for photos, raster artwork, or quantitative data charts.
    Комментарии

    Войдите, чтобы оставить комментарий.

    Комментариев пока нет.

    Установить скилл

    Добавьте инструмент одной командой или скачайте проверенный архив версии.

    npx skills add marketcalls/vectorbt-backtesting-skills --skill backtest
    Скачать ZIP
    Версия
    1.0.0+05d9e8b12fa4
    Автор
    Владимир Ломтев
    Репозиторий
    marketcalls/vectorbt-backtesting-skills
    GitHub: marketcalls/vectorbt-backtesting-skills
    Modern Web GuidanceSearch tool for modern web development best practices. MANDATORY: Execute FIRST for all HTML/CSS and clientside JS tasks. Do NOT skip — web APIs evolve rapidly and training weights contain obsolete patterns.