Command Index
๐ Command Index (Full Reference)¶
All available commands in CSharpMT5 CLI, grouped by category. Use with:
dotnet run -- <command> [options]
โ๏ธ Profiles & Setup¶
-
profiles
-
profilesโ Working with profiles listโ Show profile names fromprofiles.jsonshowโ Show profile parameters (respectsMT5_PASSWORD)
๐งพ Account & Diagnostics¶
- info โ Show account summary
- health โ Quick connectivity & account diagnostics
- quote โ Get a snapshot quote (Bid/Ask/Time)
- stream โ Subscribe to trading events/ticks (auto-reconnect)
๐น Market Orders¶
- buy โ Market buy
- sell โ Market sell
๐ SL/TP, Breakeven & Trailing¶
-
modify
-
modifyโ Modify StopLoss / TakeProfit by ticket -
position
-
position.modifyโ Modify SL/TP for a position by ticket position.modify.pointsโ Set SL/TP by distance in points from entry/market- breakeven โ Move SL to entry ยฑ offset (breakeven)
-
trail
-
trail.startโ Start local trailing stop trail.stopโ Stop local trailing stop
๐ Closing / Reversing¶
-
close
-
closeโ Close by ticket (volume normalized) close.percentโ Close % of a position by ticketclose.halfโ Close half (alias of close.percent --pct 50)close.partialโ Partially close exact volume- close-all โ Close ALL open positions (optionally by symbol)
- close-symbol โ Close ALL positions for a symbol
- closeby โ Close a position by the opposite position (emulated)
-
reverse
-
reverseโ Reverse net position by symbol (--mode net|flat) reverse.ticketโ Reverse a specific position by ticket
๐ Pending Orders¶
- place โ Place a pending order (limit/stop/stop-limit)
-
pending
-
pendingโ Pending utilities pending.modifyโ Modify pending (price/SL/TP/expiry)pending.moveโ Move pending by ยฑN pointspending listโ List pending tickets-
cancel
-
cancelโ Cancel pending by ticket cancel.allโ Cancel all pendings (optional filters)
๐๏ธ Tickets / Orders / Positions¶
-
ticket
-
ticketโ Work with a specific ticket ticket showโ Show info (open or recent history)- orders โ List open orders & positions tickets
- positions โ List active positions
๐ Symbols¶
-
symbol
-
symbolโ Symbol utilities symbol ensureโ Ensure symbol is visible in terminalsymbol limitsโ Show min/step/max volumesymbol showโ Short card: Quote + Limits
๐ History & Tools¶
-
history
-
historyโ Orders/deals history (last N days) history.exportโ Export history to CSV/JSON-
lot
-
lot.calcโ Calculate position volume by risk % and SL distance (points) - panic โ Close ALL positions and cancel ALL pendings (optionally filtered)