Skip to content
Agentmart
Submit a tool

interface

Use the local MetaTrader 5 Python trading CLI at MQL5\Scripts\interface.py.

Skill by kecoma1

IndexedMIT★ 18
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/kecoma1-interface

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Use the local MetaTrader 5 Python trading CLI at MQL5\Scripts\interface.py. Use when Codex needs to explain, run, validate, or troubleshoot command-line trading operations such as opening market or pending orders, setting or editing SL/TP, closing positions, canceling pending orders, listing opened trades or pending orders, reading recent trade history, or checking account and symbol details.

Use cases: writing, finance, agent-building

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/interface

What's inside

Skill name
interface
Description
Use the local MetaTrader 5 Python trading CLI at MQL5\Scripts\interface.py. Use when Codex needs to explain, run, validate, or troubleshoot command-line trading operations such as opening market or pending orders, setting or editing SL/TP, closing positions, canceling pending orders, listing opened trades or pending orders, reading recent trade history, or checking account and symbol details.
License
MIT
Instructions
154 lines in SKILL.md · view on GitHub

Agent Skills spec issues

  • body: contains an absolute path from the author's machine

Files (2)

  • SKILL.md
  • openai.yaml · agents/

SKILL.md (first lines)

# Interface

Use this skill for the local MT5 Python CLI wrapper located at:

`C:\Users\kecom\AppData\Roaming\MetaQuotes\Terminal\D0E8209F77C8CF37AD8BF550E51FF075\MQL5\Scripts\interface.py`

The script is intended to operate MetaTrader 5 through the Python `MetaTrader5` package. Treat it as a live-trading interface: do not submit market, pending, close, edit, or cancel commands unless the user explicitly asked for that action and the target account/symbol/ticket/volume/stops are clear.

## Before Running

1. Work from the script directory unless there is a reason not to:

```powershell
cd C:\Users\kecom\AppData\Roaming\MetaQuotes\Terminal\D0E8209F77C8CF37AD8BF550E51FF075\MQL5\Scripts
```

2. Confirm a real Python executable is available. If `python` resolves to `C:\Users\kecom\AppData\Local\Microsoft\WindowsApps\python.exe`, it may hang or open the Microsoft Store alias instead of running scripts.

3. Confirm the package is installed when execution is required:

```powershell
python -m pip install MetaTrader5
```

4. Confirm MetaTrader 5 is installed, logged in, and allowed to trade. If needed, pass `--terminal`, `--login`, `--password`, and `--server`.

5. For read-only inspection, prefer `--cmd=help`, `--cmd=opened`, `--cmd=orders`, `--cmd=history`, `--cmd=account`, and `--cmd=symbol`.

## Core Commands

Show the built-in help:

```powershell
python interface.py --cmd=help
```

Open a market buy using SL/TP distances in points:

```powershell
python interface.py --cmd=open --type=buy --market=EURUSD --lot=0.10 --sl-points=200 --tp-points=400
```

Open a pending buy limit using absolute SL/TP prices:

```powershell
python interface.py --cmd=open --type=buylimit --market=EURUSD --lot=0.10 --price=1.08000 --SL=1.07500 --TP=1.09000
```

Close one open position by ticket:

```powershell
python interface.py --cmd=close --id=322334
```

Close all positions, optionally filtered by market:

```powershell
python interface.py --cmd=close --all --market=EURUSD
```

Edit SL/TP on an open position or pending order:

```powershell
python interface.py --cmd=edit --id=23232 --TP=1.09250
python interface.py --cmd=edit --id=23232 --sl-points=150 --tp-points=300
```

Cancel a pending order:

```powershell
python interface.py --cmd=cancel --id=998877
```

List current positions:

```powershell
python interface.py --cmd=opened
python interface.py --cmd=opened --market=EURUSD
```

List pending orders:

```powershell
python interface.py --cmd=orders
python interface.py --cmd=orders --market=EURUSD
```

Read recent history. The misspelled alias `hystory` is accepted for compatibility:

```powershell
python interface.py --cmd=history --last=10
python interface.py --cmd=hystory --last=10 --market=EURUSD
```

Check account or symbol details:

```powershell
python interface.py --cmd=account
python interface.py --cmd=symbol --market=EURUSD
```

## Parameter Rules

Use `--SL` and `--TP` for absolute prices only. Example: `--SL=1.07500`, not `--SL=23` unless 23 is truly the broker price.

Use distance parameters when the user describes stops in points or pips:

```powershell
--sl-points=200 --tp-points=400
--sl-pips=20 --tp-pips=40
```

Use `--price` for pending order entry price. Market orders can omit `--price`; the script uses the current ask for buys and bid for sells.

Use `--stoplimit` for `buystoplimit` and `sellstoplimit` orders.

Use `--lot` or `--volume` for trade volume.

Use `--deviation` for allowed slippage in points on market entries and closes.

From kecoma1/MQL5-SKILLS, MIT.

More from kecoma1/MQL5-SKILLS

Signals

Stars
18
Forks
9
Open issues
1
Last commit (this folder)
Apr 16, 2026 (6 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from kecoma1

Cite this page

interface skill. Agent Mart. https://agentmart.dev/skills/kecoma1-interface (last updated 2026-10-24)