npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

mt5-quant-forex-panel

v1.0.1

Published

MetaTrader 5 外汇量化交易面板 - 10套回测验证策略 + 多信号内核 + 实时行情仪表盘

Readme

@mt5-quant/forex-panel

MetaTrader 5 外汇量化交易面板 — 集成 10 套回测验证的外汇策略、多信号内核(pulse / scalp / fusion)、实时行情仪表盘、策略回测引擎。

10 套外汇策略(全部 10/10 回测通过)

| 策略 | 算法 | 品种 | PF | 赢率 | DD | |------|------|------|-----|------|-----| | 精品14 | pulse | EURUSD | 3.40 | 92% | 3.1% | | 精品15 | pulse | GBPUSD | 4.84 | 92% | 3.2% | | 精品16 | pulse | USDJPY | 8.48 | 92% | 3.0% | | 精品17 | scalp顺势 | EURUSD | 113.79 | 89% | 0.1% | | 精品18 | scalp顺势 | GBPUSD | 123.35 | 88% | 0.2% | | 精品19 | scalp顺势 | USDJPY | 7.69 | 94% | 3.0% | | 精品20 | fusion | EURUSD | 158.27 | 88% | 0.1% | | 精品21 | fusion | GBPUSD | 52.68 | 87% | 1.5% | | 精品22 | fusion | USDJPY | 4.52 | 41% | 4.3% | | 精品23 | pulse多品种 | 三品种 | 4.84 | 92% | 3.1% |

回测窗口 90 天 M15,风控:1% 账户风险/笔、单笔 ±$300/$500 截断、-5% 账户强平。

安装

npm install @mt5-quant/forex-panel

使用

CLI 启动

npx mt5-panel

作为库引入

const panel = require('@mt5-quant/forex-panel');
// 启动服务
panel.start();

纯前端使用

直接浏览器打开 dist/panel.bundle.html 即可查看仪表盘。

项目结构

mt5_panel/
├── server.py               # Python 服务端 (MT5 API + 策略引擎)
├── panel.html              # 仪表盘主页 (含财经快讯跑马条)
├── strategies.html         # 自动交易页面 (10套外汇策略)
├── analysis.html           # 技术分析页
├── backtest.html           # 回测面板
├── news.html               # 财经快讯
├── theme.css               # 主题样式
├── settings.js             # 设置页逻辑
├── autotrade_config.json   # 自动交易配置
├── strategy_enabled.json   # 策略开关状态
├── forex_backtest.py       # 外汇回测引擎
├── premium_backtest.py     # 精品策略回测
├── fx_final_backtest.py    # 最终回测 v4.1
├── fx_final_results.*      # 回测结果
├── fx_final_report.html    # 回测报告
└── docs/                   # 策略设计文档

依赖

  • Python >= 3.11
  • MetaTrader5 (Python 包)
  • Node >= 16 (用于打包产物与 CLI)

策略信号内核

  • pulse — Donchian 通道突破 + ADX 趋势强度 + ATR 波动扩张 + 大周期过滤
  • scalp — 微通道突破 + RSI 动量 + 布林带宽窄区间过滤 + 极短线持有
  • fusion — EMA + RSI + 布林带 + ADX + 新闻多因子共振 + 冲突检测

License

MIT