Watch how to download trading robots for free
Find us on Telegram!
Join our fan page
Join our fan page
You liked the script? Try it in the MetaTrader 5 terminal
- Published by:
- Muharrem Rogova
- Views:
- 86
- Published:
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
- Automatic retry logic with configurable max attempts and delay
- Requote handling with separate retry path from rejections
- Slippage calculation in pips with violation detection
- Auto-normalization of SL/TP against broker stop level
- Auto-detection of fill policy (FOK / IOC / RETURN)
- Full execution statistics (success rate, avg slippage, avg exec time, volume)
- Market orders (Buy / Sell) and pending orders (Limit / Stop, Buy / Sell)
- Position management (close, partial close, modify SL/TP, close-all-by-magic)
- Human-readable result codes with 10 execution states
DEMO EA INCLUDED:
Attach to any chart:
— Dashboard with BUY, SELL, CLOSE ALL action buttons
— Live execution statistics with color-coded metrics
— Success rate gauge (green >=95%, amber >=80%, red below)
— Total attempts, successful, rejections, requotes, timeouts, slippage violations
— Avg and max slippage in pips, avg execution time in ms, total volume executed
— RESET button to clear stats mid-session
USAGE:
#include "ASQ_OrderExecutor.mqh"
CASQOrderExecutor exec;
exec.Initialize(_Symbol, 20260417);
exec.SetMaxRetries(3);
exec.SetMaxSlippage(30);
exec.SetVerboseLogging(true);
ENUM_ASQ_EXEC_RESULT result = exec.Buy(0.10, sl, tp, "Strategy A");
if(result == ASQ_EXEC_SUCCESS)
Print("Executed at ", exec.GetStats().avgSlippagePips, " pips slip");
exec.CloseAllByMagic();
Place both files in the same folder — compiles instantly, no subfolder setup needed.
This is the open-source execution engine behind Quant Athena Gold v2 on the MQL5 Market. Same retry logic, same slippage control — the Market version adds the CORTEX AI adaptive execution layer.
FILES:
- ASQ_OrderExecutor.mqh — Library (960 lines)
- ASQ_OrderExecutor_Demo.mq5 — Demo EA (334 lines)
MetaTrader 5, all brokers, all instruments, all timeframes.
Free and open-source. 1,294 lines of production MQL5.
Advanced Trade History Exporter: MAE, MFE and Time-Based Excursions (Points)
Utility script that exports your MetaTrader 5 trading history to a CSV file. It automatically calculates Maximum Favorable Excursion (MFE), Maximum Adverse Excursion (MAE), and Forward Returns (Time-Based Excursions) in whole points for deep quantitative analysis in Excel. It will allow you to understand whether you close your trades too early and can help optimize overall trading execution.
Frontend EA : UI cleanup + quick-trading layer for MT5
A chart-cleanup + quick-trading layer for MT5
Accelerator Oscillator (AC)
The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.
MACD Signals
Indicator edition for new platform.

