← 返回
数据分析 Key 中文

Monte Carlo Crypto Core

Monte Carlo Crypto Trading Core. Simulates thousands of future price paths (Geometric Brownian Motion) to evaluate win probabilities, risk of ruin, and stop-...
蒙特卡洛加密交易核心。基于几何布朗运动模拟数千条未来价格路径,评估胜率、破产风险和止损…
totoxu
数据分析 clawhub v1.3.0 1 版本 99832.8 Key: 需要
★ 0
Stars
📥 597
下载
💾 9
安装
1
版本
#latest

概述

Monte Carlo Crypto Core

This skill enables you to run sophisticated Monte Carlo simulations for trading strategies.

It helps answer questions like: "If I buy BTC at $70,000 with 5% daily volatility and put a stop loss at $65,000, what is the probability I get stopped out within 30 days?"

Setup

  1. Install requests: pip install requests
  2. Set the SKILLPAY_API_KEY environment variable with the skill owner's SkillPay API key.

Billing (0.001 USDT per call via SkillPay)

This is a paid skill. Every simulation call requires the --user USER_ID parameter. If a call fails with a payment_url, you must show this link to the user.


Tool: Run Monte Carlo Simulation

Command:

python scripts/montecarlo.py --user USER_ID --price 70000 --vol 0.04 --drift 0.001 --days 30 --paths 5000 --stop-loss 65000 --position long

Required Parameters:

  • --user: The user's ID for billing.
  • --price: The current price of the asset.
  • --vol: The estimated daily volatility as a decimal (e.g., 0.04 for 4%). You can derive this from historical data standard deviation.

Optional Parameters:

  • --drift: The expected daily return. Default is 0.0. Positive drift favours longs, negative favours shorts.
  • --days: Number of days to simulate into the future. Default: 30.
  • --paths: Number of simulation paths to run. Higher is more accurate but slower. Max is 20000, Default 10000.
  • --position: long or short. Default is long.
  • --stop-loss: The exact price level where the position gets liquidated or closed for a loss.
  • --take-profit: The exact price level where the position closes in profit.

Output:

Returns a JSON object containing expected prices, 5th/95th percentile worst/best case scenarios, and risk_metrics including the exact probability of hitting the stop loss (hit_stop_loss_pct) and overall win probability.

Use these probabilities to justify your trading advice to the user. Do not recommend trades with a win_probability_pct lower than 50% unless the user explicitly accepts high risk.

版本历史

共 1 个版本

  • v1.3.0 当前
    2026-03-30 13:02 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

Excel / XLSX

ivangdavila
创建、检查和编辑 Microsoft Excel 工作簿及 XLSX 文件,支持可靠的公式、日期、类型、格式、重算及模板保留功能。
★ 368 📥 140,463
data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 198 📥 65,120
data-analysis

A股量化 AkShare

mbpz
A股量化数据分析工具,基于AkShare库获取A股行情、财务数据、板块信息等。用于回答关于A股股票查询、行情数据、财务分析、选股等问题。
★ 165 📥 60,016