terrylica/cc-skills

python-workspace

Python workspace for MQL5 integration.

Vedi sorgente

Come usare

  1. Copia il comando e controlla il pacchetto prima di installarlo nel tuo ambiente agente.
  2. Controlla strumenti, credenziali e ambienti richiesti nel documento originale.
  3. Descrivi input e risultato desiderato; confronta l’output con le fonti.
npx skills add https://github.com/terrylica/cc-skills --skill python-workspace

Prima di iniziare

  • L’installazione non include abbonamenti, quote API o accesso ai file.
  • Stelle e installazioni indicano attività, non un test indipendente di qualità o sicurezza.
Documento Skill originale

Contenuto dal repository con titoli, esempi, codice, tabelle, link e immagini preservati.

MQL5-Python Translation Workspace Skill

Seamless MQL5 indicator translation to Python with autonomous validation and self-correction.


Self-Evolving Skill: This skill improves through use. If instructions are wrong, parameters drifted, or a workaround was needed — fix this file immediately, don't defer. Only update for real, reproducible issues.

When to Use This Skill

Use this skill when the user wants to:

  • Export market data or indicator values from MetaTrader 5
  • Translate MQL5 indicators to Python implementations
  • Validate Python indicator accuracy against MQL5 reference
  • Understand MQL5-Python workflow capabilities and limitations
  • Troubleshoot common translation issues

Activation Phrases: "MQL5", "MetaTrader", "indicator translation", "Python validation", "export data", "mql5-crossover workspace"


Core Mission

Main Theme: Make MQL5-Python translation as seamless as possible through:

  1. Autonomous workflows (headless export, CLI compilation, automated validation)
  2. Validation-driven iteration (>=0.999 correlation gates all work)
  3. Self-correction (documented failures prevent future mistakes)
  4. Clear boundaries (what works vs what doesn't, with alternatives)

Project Root: ~/Library/Application Support/CrossOver/Bottles/MetaTrader 5/drive_c


Workspace Capabilities Matrix

WHAT THIS WORKSPACE CAN DO

1. Automated Headless Market Data Export (v3.0.0)

Status: PRODUCTION (0.999920 correlation validated)

What It Does:

  • Fetches OHLCV data + built-in indicators (RSI, SMA) from any symbol/timeframe
  • True headless via Wine Python + MetaTrader5 API
  • No GUI initialization required (cold start supported)
  • Execution time: 6-8 seconds for 5000 bars

Command Example:

bash
CX_BOTTLE="MetaTrader 5" \
WINEPREFIX="$HOME/Library/Application Support/CrossOver/Bottles/MetaTrader 5" \
wine "C:\\Program Files\\Python312\\python.exe" \
  "C:\\users\\crossover\\export_aligned.py" \
  --symbol EURUSD --period M1 --bars 5000

Use When: User needs automated market data exports without GUI interaction

Limitations: Cannot access custom indicator buffers (API restriction)

Reference: /docs/guides/WINE_PYTHON_EXECUTION.md


Reference Documentation

For detailed information, see:


Troubleshooting

IssueCauseSolution
Wine Python not foundCrossOver/Wine not installedInstall CrossOver, verify bottle path
MT5 API connection failedMetaTrader not runningLaunch MetaTrader 5 before running export
Correlation below 0.999Indicator mismatchVerify warmup periods, check calculation alignment
Custom indicator not workingAPI restrictionUse CSV export from MT5, not Python API
UnicodeDecodeErrorWindows path encodingUse raw strings for Windows paths in Wine
Symbol not foundWrong symbol formatUse exact MT5 symbol name (e.g., EURUSD not EUR/USD)
Timeout on exportToo many bars requestedReduce bar count, default 5000 is safe
Permission deniedWine prefix incorrectSet WINEPREFIX to correct CrossOver bottle path

Post-Execution Reflection

After this skill completes, check before closing:

  1. Did the command succeed? — If not, fix the instruction or error table that caused the failure.
  2. Did parameters or output change? — If the underlying tool's interface drifted, update Usage examples and Parameters table to match.
  3. Was a workaround needed? — If you had to improvise (different flags, extra steps), update this SKILL.md so the next invocation doesn't need the same workaround.

Only update if the issue is real and reproducible — not speculative.

dallo stesso repository

Altri Skills

Tutti gli Skills
terrylica
Community

academic-pdf-to-gfm

Convert academic PDF papers to GitHub-renderable GFM markdown with math equations. TRIGGERS - PDF, GitHub markdown, math

Installazioni / 1h
1
GitHub Stars
2
Aggiornato
5 nov
terrylica
Community

adr-code-traceability

Add ADR references to code for traceability. TRIGGERS - ADR traceability, code reference, document decision in code.

Installazioni / 1h
1
GitHub Stars
2
Aggiornato
5 nov
terrylica
Community

arxiv-source-first-paper-ingest

Read an arXiv paper faithfully by fetching the authors' own LaTeX source instead of OCR-ing the PDF. Extracts every display equation with its label, environment and enclosing proposition, renders each to MathML, and proves usability by compiling each formula with a real TeX engine. Use when you need a paper's formulas exactly — to replicate a method, implement a loss function or custom objective, verify a quoted number, or check a claim against what the authors actually wrote. TRIGGERS - read th

Installazioni / 1h
1
GitHub Stars
2
Aggiornato
5 nov
terrylica
Community

azure-provision

Bootstrap Azure automation when interactive az login is blocked by a Conditional Access policy (error 530035, "Device state: Unregistered"). Mints a service principal through the Azure Portal session ONCE — using Microsoft Graph over a captured token, not DOM clicking — then provisions resource groups, Cognitive Services / AI Language / Speech resources and their keys entirely via az/REST, writing key AND endpoint together into the SCS vault. Use when az login fails but the portal works, when mo

Installazioni / 1h
1
GitHub Stars
2
Aggiornato
5 nov