Watch how to download trading robots for free
Find us on Facebook!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Experts

ASQ Command Desk - expert for MetaTrader 5

Emmanuel Nana Nana
Published by:
Muharrem Rogova
Views:
176
Rating:
(1)
Published:
Updated:
MQL5 Freelance Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

Attach the EA to any live or demo chart, enable Algo Trading, and use the panel buttons or keyboard hotkeys to trade. CommandDesk is not an automated strategy — it will show zero trades in Strategy Tester.

How it works


═══ FEATURES ═══

▸ One-Click Execution
Press LONG or SHORT on the panel. Lot size is calculated instantly from your risk settings, SL and TP levels are placed automatically, and the position is registered for staged exit tracking.

▸ Keyboard Hotkeys
Trade without touching the mouse. B = Buy, S = Sell, X = Flatten all positions, R = Reverse direction, E = Lock breakeven, P = Purge pending orders. Hotkeys can be disabled in settings.

▸ Staged Multi-TP Exits
Set up to three exit stages with custom close percentages (default: 40% at Stage 1, 30% at Stage 2, remainder at Stage 3). Stage state is encoded in the order comment and survives EA restarts.

▸ Adaptive Trailing Stop
Three trailing algorithms: fixed-point distance, ATR-scaled distance (configurable period and multiplier), or previous-bar swing high/low. Broker stops level and freeze level are respected automatically.

▸ Auto Breakeven
When profit reaches your configured threshold (in points), the SL is moved to entry price plus a safety offset. The "Lock B/E" button applies breakeven instantly to all in-profit positions.

▸ Drawdown Guard
Set a maximum drawdown percentage from your session equity peak. CommandDesk monitors equity on every tick. When the limit is breached, all positions and pending orders are auto-flattened. New orders are blocked until equity recovers. Disabled by default — enable it in inputs.

▸ Reverse Position
One click or press R to close your current net direction and immediately open the opposite side. Net direction is calculated from all open positions.

▸ Live R:R Display

Risk-to-reward ratio is calculated from your SL distance and furthest TP stage, updated every tick. Color-coded: green for 2:1 or better, yellow for 1:1+, red below 1:1.

Architecture


▸ Daily Trade Counter
Tracks how many market orders you have fired today. Resets automatically at midnight server time.

▸ Intelligent Position Sizing
Three modes: fixed lot, percentage of balance at risk, or flat dollar amount at risk. Volume is recalculated on every tick based on the current SL distance and account balance.

▸ Full Pending Order Suite
Buy Limit, Sell Limit, Buy Stop, and Sell Stop with automatic SL/TP placement. All distances are validated against the broker's minimum stops level.

▸ Live Dashboard

Real-time spread (color-coded by width), position count by direction, directional lot exposure, floating P&L with swap and commission, staged exit tracker, trailing configuration, drawdown guard status, and daily trade counter — all rendered on a dark-themed overlay panel.

═══ IMPORTANT ═══


⚠ This is a manual trading panel. It requires you to click buttons or press hotkeys to open trades. It does NOT generate signals or auto-trade. Strategy Tester will show 0 trades — this is expected.

⚠ Hotkeys are active when the chart window has focus. If you type in other MT5 windows, hotkeys will not fire. Disable hotkeys in the input settings if you prefer mouse-only operation.

Dashboard

═══USAGE ═══


1. Download and place ASQ_CommandDesk_v1.00.mq5 in your MQL5/Experts folder
2. Compile in MetaEditor (no external dependencies)
3. Attach to any chart on a live or demo account
4. Enable Algo Trading in the MT5 toolbar
5. Configure risk settings, trailing mode, and drawdown guard in the Inputs tab
6. Click LONG/SHORT or press B/S to execute

═══ FILES ═══

ASQ_CommandDesk_v1.00.mq5 — Main EA source (1,200 lines)

═══ COMPATIBILITY ═══

MetaTrader 5 Build 4000+
Any symbol, any timeframe
Hedging and Netting account types

ASQ Candle Scanner ASQ Candle Scanner

On-chart candle analysis indicator with structure tags, sentiment, and trend arrows for MetaTrader 5.

Institutional Fractal Dimension Index (Regime Detector) Institutional Fractal Dimension Index (Regime Detector)

An advanced quantitative filter based on Chaos Theory and fractal geometry, it calculates the intrinsic dimensionality of the price curve to instantly classify market regimes into trending or mean-reverting states.

KSQ CommandCenter Remote Google Sheets Trade Manager KSQ CommandCenter Remote Google Sheets Trade Manager

KSQ Command Centre is a production-ready, two-way bridge between MetaTrader 5 and Google Sheets. It was originally designed to help fund managers and quantitative traders remotely monitor and manage large, funded accounts (e.g., Darwinex Zero, Prop Firms, PAM, MAM) directly from a mobile browser, without needing to log in to a VPS. This Expert Advisor not only exports data—it actively listens for commands typed into your Google Sheet and executes them in MT5 in near real-time.

ATR Based Stop Loss Manager ATR Based Stop Loss Manager

A comprehensive stop-loss and trade management module offering multiple stop-loss methods (Fixed Pips, ATR-based, Swing High/Low, and Percentage) and trailing stop options (Fixed, ATR, Step, and Breakeven). It includes automatic broker stop-level adjustment, risk-reward–based take profit calculation, and visual stop-loss lines on the chart. The code follows a clean, structured architecture with a dedicated `CStopLossManager` class, standardized enums and structures, and fully documented English comments for clarity and maintainability.