agentleFS
kecoma1kecoma1/MQL5-SKILLS/skills/orquestate/SKILL.md

orquestate

Skill17 starsChanged 7 months agoMITView on GitHub

Orquestar cuentas MetaTrader 5 del workspace actual usando MQL5\Scripts\interface.py, archivos accounts/account_id/info.md, accounts/account_id/bots.ini y notificaciones Telegram. Use when Codex is asked to orchestrate accounts, coordinate account-specific bots, prepare or inspect bots.ini for an MT5 account, or notify the configured Telegram chat/channel about account orchestration status.

  • Reads credentials

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    No crear bots.ini con conjeturas sobre bots, simbolos, timeframes, lotaje, riesgo o parametros.

    line 97
  2. Very specific:

    No modificar bots.ini existente salvo que el usuario lo pida o confirme cambios concretos.

    line 98
  3. Distinctive:

    No enviar credenciales por Telegram ni mostrarlas en la respuesta.

    line 101

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Orquestate

Flujo

Orquesta siempre desde la cuenta MT5 actualmente conectada. Trata cualquier orden o cambio de trading como una operacion live: no abras, cierres ni edites operaciones salvo que el usuario lo pida explicitamente.

  1. Consultar la cuenta actual con la skill interface:
cd C:\Users\<user-id>\AppData\Roaming\MetaQuotes\Terminal\<terminal-id>\MQL5\Scripts
python interface.py --cmd=account --json
  1. Extraer el id/login de la cuenta del JSON. Si el JSON no incluye una clave obvia, usar el login que muestre la salida de --cmd=account.
  2. Leer accounts/<account_id>/info.md desde la raiz del terminal. Si no existe, pedir al usuario los datos minimos antes de crear o modificar configuracion: proposito de la cuenta, riesgo permitido, restricciones, mercados, sesiones y cualquier regla operativa.
  3. Comprobar accounts/<account_id>/bots.ini.
  4. Si bots.ini no existe, preguntar que bots quiere tener funcionando y que parametros necesita cada uno. No inventes bots, simbolos, timeframes, lotajes ni parametros de riesgo. Crear el archivo solo cuando el usuario haya dado la configuracion suficiente.
  5. Si bots.ini ya existe, asumir que hay una configuracion de bots definida. No reescribirla salvo peticion expresa. Revisar su contenido y enviar un resumen por Telegram.
  6. Enviar la notificacion con scripts/send_telegram.py. La configuracion privada vive en accounts/<account_id>/telegram.env.

Archivos De Cuenta

Usar esta estructura por cuenta:

accounts/
  <account_id>/
    info.md
    bots.ini
    telegram.env

info.md contiene informacion humana de la cuenta: riesgo, objetivo, limites, mercados, broker, restricciones y notas operativas.

bots.ini contiene la configuracion que se usara para iniciar MT5 con los bots de esa cuenta. Si no hay formato previo en el workspace, crear un INI legible y estable:

[account]
id=123456
risk_profile=segun accounts/123456/info.md

[bot:mean-reversion-eurusd]
enabled=true
expert=MQL5\Experts\mean-reversion.ex5
symbol=EURUSD
timeframe=M15
risk=0.50
set_file=MQL5\Profiles\Tester\mean-reversion-eurusd.set
notes=Configuracion confirmada por el usuario

telegram.env debe estar ignorado por Git y contener:

TELEGRAM_API_KEY=123456:token
TELEGRAM_CHAT=-1001234567890
TELEGRAM_CHANNEL=@canal_opcional

TELEGRAM_API_KEY y TELEGRAM_CHAT son obligatorios para notificar. TELEGRAM_CHANNEL es opcional; si falta o esta vacio, ignorarlo. No imprimir tokens completos en respuestas.

Telegram

Enviar mensajes con el script incluido en esta skill:

python C:\Users\<user-id>\AppData\Roaming\MetaQuotes\Terminal\<terminal-id>\MQL5\skills\orquestate\scripts\send_telegram.py --account-id 123456 --message "Orquestacion revisada para la cuenta 123456"

El script usa una peticion HTTP GET a https://api.telegram.org/bot<TOKEN>/sendMessage, igual que los EAs Telegram del workspace. Envia siempre a TELEGRAM_CHAT y, si TELEGRAM_CHANNEL existe, tambien a ese destino.

Para mensajes largos o con saltos de linea, usar --message-file:

python C:\Users\<user-id>\AppData\Roaming\MetaQuotes\Terminal\<terminal-id>\MQL5\skills\orquestate\scripts\send_telegram.py --account-id 123456 --message-file .\accounts\123456\last-orchestration-message.txt

Usar --dry-run para validar el env y los destinos sin enviar:

python C:\Users\<user-id>\AppData\Roaming\MetaQuotes\Terminal\<terminal-id>\MQL5\skills\orquestate\scripts\send_telegram.py --account-id 123456 --message "Prueba" --dry-run

Reglas

  • Preguntar al usuario que bots quiere tener funcionando si falta accounts/<account_id>/bots.ini.
  • No crear bots.ini con conjeturas sobre bots, simbolos, timeframes, lotaje, riesgo o parametros.
  • No modificar bots.ini existente salvo que el usuario lo pida o confirme cambios concretos.
  • Leer info.md antes de proponer configuracion para respetar el riesgo y las reglas de la cuenta.
  • Verificar que .gitignore contiene accounts/*/telegram.env antes de pedir o crear credenciales.
  • No enviar credenciales por Telegram ni mostrarlas en la respuesta.
  • Si Telegram falla, reportar codigo HTTP y respuesta resumida sin revelar el token.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.