Ali Akbar
Ali Akbar
  • MQL5 Developer & Algorithmic Trading Specialist 에 Freelance
  • 파키스탄
  • 5450
  • 정보
no
경험
2
제품
0
데모 버전
0
작업
0
거래 신호
0
구독자
MQL5 Developer & Algorithmic Trading Specialist 에 Freelance
Hi, I'm Ali. 24 years old, trading for around 5 years, and developing MQL5/MQL4 tools. I mainly work on automating manual strategies, fixing broken EA logic, and building clean indicators. I care more about clean architecture and proper risk management than over-complicated code. Always down to talk shop or collaborate on practical trading systems.
Ali Akbar
게재된 기고글 Streaming Percentiles in MQL5: Testing the P-Square Algorithm on Real Tick Data
Streaming Percentiles in MQL5: Testing the P-Square Algorithm on Real Tick Data

An EA can set spread and tick-gap thresholds by percentile without storing every tick. CPSquare implements the P-Square algorithm, and two order-independent classes serve as alternatives: CCountQuantile returns exact percentiles of rounded spreads, and CLogQuantile keeps a chosen relative error within a set range. Unit tests, mutation runs, and a Python consistency check cover the code. On EURUSD and XAUUSD ticks in time order, the P-Square estimates of high percentiles stayed far from the exact values.

Ali Akbar
게재된 기고글 Implementing Golden-File Regression Tests for Expert Advisors in MQL5
Implementing Golden-File Regression Tests for Expert Advisors in MQL5

Golden-file testing compares the trade decisions of a modified Expert Advisor with an accepted run, so an unintended logic change appears as changed decisions. CDecisionRecorder writes each recorded request with run context and a tick hash, and CGfFile refuses truncated or malformed files. CGoldenCompare pairs rows by time and returns a verdict that separates changed decisions from different settings or ticks. Random execution delay made the tested runs differ, so compare runs with the same fixed delay or none.

Ali Akbar
게재된 기고글 Implementing a Zone-Aware Rollover Window Gate in MQL5
Implementing a Zone-Aware Rollover Window Gate in MQL5

CTradeWindows blocks EA entries during the daily rollover spread spike. Each window is a clock time in a zone such as New York, so it follows that zone through DST. CSpreadProfile learns the windows from tick spreads and saves them to a file that an EA can load. Unit tests and Strategy Tester runs on one server show that a window fixed in server time misses the spike in weeks when the US and EU DST dates differ.

Ali Akbar
게재된 기고글 MQL5 Developer Gotchas (Part 2): A Multi-Line Text Block for Chart Labels Beyond the 63-Character Limit
MQL5 Developer Gotchas (Part 2): A Multi-Line Text Block for Chart Labels Beyond the 63-Character Limit

CLabelBlock lets an EA show a long text as labels wrapped by pixel width and detect a truncated label. On the tested builds, native text objects and object names keep only the first 63 UTF-16 code units without an error. CCanvasBlock draws wider lines on one bitmap without that cap but cannot read its text back. Unit tests and screenshot checks cover one system and a few fonts.

Ali Akbar
게재된 기고글 Account-Wide Position Sizing in MQL5: Capping Each New Trade by the Risk Already Open
Account-Wide Position Sizing in MQL5: Capping Each New Trade by the Risk Already Open

When an EA trades several symbols, each new lot size must account for the risk already open. CRiskBudget returns the largest volume that five caps allow: risk per trade, open risk budget, free margin share, SYMBOL_VOLUME_MAX, and SYMBOL_VOLUME_LIMIT, and it names the cap that decided. Unit tests, a tester EA, and a Python consistency check cover these decisions. In the tested runs, the budget did not reduce drawdown.

Ali Akbar
게재된 기고글 Implementing a DST-aware Trading Day Resolver in MQL5
Implementing a DST-aware Trading Day Resolver in MQL5

With CTradingDay, an EA can reset its daily loss limit at the time its rule names, such as the New York close, not at the end of the broker's feed. CServerClockFit finds the server time zone and its DST rule from hourly bars. On the tested server, the New York close falls one hour before server midnight between the US and EU clock changes. Unit tests and tester runs check these clock times for that server only.

Ali Akbar
게재된 기고글 Does the Terminal Run the Model You Trained? ONNX Contract and Golden-File Checks in MQL5
Does the Terminal Run the Model You Trained? ONNX Contract and Golden-File Checks in MQL5

An EA can detect a wrong ONNX model in OnInit, before its first prediction, instead of failing or returning other probabilities in OnTick. COnnxContract checks the model's signature, features, class labels, and SHA-256 hash against a contract file. COnnxParity compares the terminal's probabilities with onnxruntime on a golden file of reference rows, and a Python tool builds both files from your data. The tool also audits the EA's prediction log, because a golden pass covers only its own rows.

Ali Akbar
게재된 기고글 How Far Away Is the Stop-Out? A Stop-Out Threshold Finder and Pre-Trade Guard in MQL5
How Far Away Is the Stop-Out? A Stop-Out Threshold Finder and Pre-Trade Guard in MQL5

CStopOutGuard shows how far a symbol's price can move before the modeled margin level reaches stop-out, and how much closer a planned order would bring that threshold. Positions are valued with OrderCalcProfit() and OrderCalcMargin() at each tested price instead of a fixed tick value, so volume margin tiers are included. Unit tests, test EAs, and a Python consistency check cover the search. The model keeps the spread and swaps at their current values, and CanAdd() does not replace OrderCheck().

Ali Akbar
게재된 기고글 MQL5 Developer Gotchas (Part 1): A Parameter Mapper for Calling Indicators with Input Groups
MQL5 Developer Gotchas (Part 1): A Parameter Mapper for Calling Indicators with Input Groups

Group lines in a custom indicator take parameter slots in iCustom() and IndicatorCreate(), so numbers passed without placeholders silently shift to the wrong inputs. CIndicatorInputs reads the live slot layout, fills the group slots, rejects values the terminal would change, and verifies the handle on a chart, so an EA gets the requested settings or an error. In the Strategy Tester it builds the handle from a saved layout without verification. Unit tests and a tester EA show both modes.

Ali Akbar
게재된 기고글 Do My EA's Losses Come in Clusters? A Wald-Wolfowitz Runs Test for Trade Outcomes in MQL5
Do My EA's Losses Come in Clusters? A Wald-Wolfowitz Runs Test for Trade Outcomes in MQL5

A pause after a losing streak assumes that losses come in clusters. CRunsTest turns the closed trades of an account or a tester run into a sequence of wins and losses and checks it with the Wald-Wolfowitz runs test, streak checks against shuffled orders, and a drift test. No dependence was detected on the tested EAs. A power simulation shows which effects each check could see, and on the shorter test runs a "not detected" result carries little weight.

2
Ali Akbar
게재된 기고글 A Trade Request Preflight Class in MQL5: Checking Volume, Stops, Margin and Sessions Before OrderSend
A Trade Request Preflight Class in MQL5: Checking Volume, Stops, Margin and Sessions Before OrderSend

CTradePreflight checks a trade request before OrderSend(), so an EA finds an off-step volume, a wrong-side stop, missing margin or a closed session instead of getting a server rejection. The class repairs only safe cases, reads the OrderCheck() retcode, and counts every refusal by reason. Unit tests and a random-delay stress EA show that levels placed very close to the price can still fail, and an optional delay buffer stops those rejections at the cost of blocking some valid requests.

1
Ali Akbar
게재된 기고글 Why My MQL5 EA Passed Validation and Still Failed Under Execution Delay
Why My MQL5 EA Passed Validation and Still Failed Under Execution Delay

An EA that passes CodeBase validation can still fail under execution delay and a freeze level. Using a tick scalper, the article reproduces four such failures in the Strategy Tester and shows each fix with its limits. An ablation under a fixed delay measures each change on its own. The burst-based stop distance removes most rejected modifications, while the weekend case behind the session buffer did not recur in those runs.

1
Ali Akbar
게재된 기고글 Per-Setup Trade Ledger in MQL5: Find Out Which of Your EA's Entries Is Losing Money
Per-Setup Trade Ledger in MQL5: Find Out Which of Your EA's Entries Is Losing Money

Most EAs trade more than one setup, yet the Strategy Tester judges them all by a single equity curve. CSetupLedger is a small MQL5 class that stores each trade's setup in its magic number and rebuilds the per-setup record from the account's deal history, so a restart never wipes it. It compares a Wilson interval of each setup's win rate with the breakeven rate implied by that setup's own average win and loss, and gives no verdict before 30 closed trades. Each setup ends up trusted, rejected or still undecided. In two backtests the per-setup totals match the tester exactly. Full source and two working EAs are attached.

2
Ali Akbar 출시돈 제품

Account Guard watches your account and does one job. When a limit is reached it closes every position and every pending order. It keeps closing any new trade until the lock ends. It opens no trades of its own. It works for manual trading and for any EA on the same account. I built it from a set of tested modules. Each module came out of my own MQL5 articles about trading days, drawdown peaks, open risk, and order checks. What it checks - Daily loss limit (percent or money, the stricter one

Ali Akbar 출시돈 제품

Account Guard Daily Limit   is the free version of Account Guard. It watches the whole account and enforces two rules: a daily loss limit and a maximum drawdown. It opens no trades of its own. It works for manual trades and for any EA on the account. The panel shows the state, the day result against the limit, and how much room is left above the drawdown floor. The two rules Daily loss limit   in percent of the initial balance. When it is hit, every position and pending order is

Ali Akbar
게재된 코드 Turtle Breakout Indicator Tested on Gold: Profitable in 2025 and 2026 (70)
금(Gold)을 대상으로 한 터틀(Turtle) 방식의 돈치안(Donchian) 브레이크아웃 전략으로, ATR 트레일링 스톱, 터틀 청산 채널, 고정 목표가 등 세 가지 청산 방식이 동시에 적용됩니다. 2025년과 2026년 XAUUSD 1시간(H1) 및 4시간(H4) 차트에서 백테스트를 진행한 결과, 12가지 조합 모두에서 수익을 냈습니다. 리페인팅이 없으며, Expert Advisor용 버퍼가 포함되어 있습니다.
Ali Akbar
게재된 코드 Gold Breakout EA for XAUUSD H4 +90 Percent in a 2020 to 2026 Backtest
금(Gold)을 대상으로 한 터틀(Turtle) 스타일의 브레이크아웃 EA입니다. 상승 추세에서 H4 봉이 20봉 고점 위로 마감될 때 매수하며, 스톱은 2 ATR, 목표 수익은 2R로 설정됩니다. 2020년 1월부터 2026년 9월까지 XAUUSD를 대상으로 백테스트한 결과: 1% 리스크로 10,000을 투자했을 때 +9,029.72의 수익을 기록했으며, 수익 계수는 1.77, 최대 손실률은 11.38%, 7년 중 6년 동안 수익을 냈습니다.
Ali Akbar
게재된 코드 CME Gap Tracker for Gold and Bitcoin: Open Gaps, Fill Rate and a Fade-Trade Test
금과 24/7 비트코인 차트에서 주말 CME 갭을 찾아내고, 가격이 해당 갭으로 되돌아올 때까지 차트에 모든 미충족 갭을 유지하며, 갭이 얼마나 자주 메워졌는지, 얼마나 빨리 메워졌는지, 가격이 처음에 얼마나 멀리 움직였는지, 그리고 갭을 매도했다면 어떤 수익을 냈을지를 보여줍니다. 리페인팅이 없으며, Expert Advisor용 버퍼가 포함되어 있습니다.
Ali Akbar
게재된 코드 Asian Range Sweep Indicator with a Built-In Win Rate Scorecard
Marks the Asian session range, signals when London or New York sweeps one side of it and reverses, and keeps a scorecard of how every past signal ended in R, spread included. Non-repainting, with buffers ready for an Expert Advisor.
Ali Akbar
게재된 코드 SMC Gold: Liquidity Sweep and Order Block EA for XAUUSD M15
An intraday Smart Money Concepts EA for gold. It waits for price to sweep a recent swing high or low, confirms the reversal with a close through the sweep candle's body, and trades only with the H1 trend. Backtested on XAUUSD M15 over 2025 and 2026 at 1% risk per trade.
12