Ali Akbar
Ali Akbar
  • MQL5 Developer & Algorithmic Trading Specialist at Freelance
  • Pakistan
  • 1596
  • Information
no
experience
2
products
0
demo versions
0
jobs
0
signals
0
subscribers
MQL5 Developer & Algorithmic Trading Specialist at 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 Published product

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 Published product

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
Published code Turtle Breakout Indicator Tested on Gold: Profitable in 2025 and 2026 (70)
Turtle-style Donchian breakouts on gold, followed with three exits at once: an ATR trailing stop, the Turtle exit channel and a fixed target. Backtested on XAUUSD H1 and H4 in 2025 and 2026, where all twelve combinations were profitable. Non-repainting, with buffers for an Expert Advisor.
Ali Akbar
Published code Gold Breakout EA for XAUUSD H4 +90 Percent in a 2020 to 2026 Backtest
A Turtle-style breakout EA for gold. It buys when an H4 bar closes above the 20-bar high in an uptrend, with a 2 ATR stop and a 2R target. Backtested on XAUUSD from January 2020 to September 2026: +9,029.72 on 10,000 at 1% risk, profit factor 1.77, max drawdown 11.38%, 6 of 7 years profitable.
Ali Akbar
Published code CME Gap Tracker for Gold and Bitcoin: Open Gaps, Fill Rate and a Fade-Trade Test
Finds the weekend CME gap on gold and on 24/7 Bitcoin charts, keeps every unfilled gap on the chart until price returns to it, and shows how often gaps filled, how fast, how far price ran first, and what fading them would have made. Non-repainting, with buffers for an Expert Advisor.
Ali Akbar
Published code 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
Published code 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.
Ali Akbar
Published code RegimeRouter — trend/range classifier with a per-regime win rate ledger
Classifies the market with ADX, the Hurst exponent and lag-1 autocorrelation, routes each bar to a breakout module or a mean-reversion module, and keeps a separate win rate ledger for each regime with a Wilson 95% lower bound, so you can see which half of it is actually working.
Ali Akbar
Published code CSetupLedger: a per-setup win rate ledger for Expert Advisors
Scores every setup type in your EA on its own record instead of lumping them into one equity curve. Rebuilds itself from the account's deal history on init so a restart cannot wipe the record. Prints a Wilson score lower bound next to the raw win rate so a three trade hot streak stops looking like an edge.
Ali Akbar
Published code ZetaBurst Scalper EA
Tick-driven scalper that only trades genuine statistical outlier price moves, sized and protected to survive real broker execution delay. Backtest results included below.
· 1 2834 1192
Syed Jawad Hussain Naqvi
Syed Jawad Hussain Naqvi 2026.09.10
good work keep it up
Ali Akbar
Published code PulseStrike Scalper - Statistical Burst Detection EA
PulseStrike Scalper - Statistical Burst Detection EA
· 1 2131 743
Ali Akbar
Ali Akbar
# Difference Between Netting and Hedging Account Types — Which Should Beginners Use?

Before you start trading one confusion trips up almost every beginner. It's the account type question. Brokers ask you to pick between "Netting" and "Hedging" during sign-up and most new traders just skip past it. They tell themselves they'll figure it out later. But this choice actually shapes how your positions behave and how you manage risk. Let's break both down in plain terms.

## What Is a Netting Account?

A netting account automatically combines all your positions on the same instrument into one. Say you buy 1 lot of EUR/USD. Then a bit later you sell 0.5 lot on the same pair. The platform won't show these as two separate trades. It merges them into a single net position of 0.5 lot buy.

This account type is mostly offered by US-regulated brokers because NFA rules don't allow hedging.

**Key traits of netting:**
- Only one net position shows per symbol
- Position tracking stays clean and simple
- Closing usually follows the FIFO rule (First In First Out)
- You get a clear picture of your overall exposure at a glance

## What Is a Hedging Account?

A hedging account lets you hold buy and sell positions on the same instrument at the same time without merging them. Each position gets its own ticket number and its own profit or loss.

So on EUR/USD you could keep a 1 lot buy position open and also run a 0.5 lot sell position separately. Both stay active independently until you close them yourself.

This is the standard setup with most international and offshore brokers. Names like Exness IC Markets FBS and HotForex fall in this category since MT4 and MT5 allow hedging by default for non-US clients.

**Key traits of hedging:**
- You can hold opposite positions on one symbol at the same time
- Grid trading martingale EAs and locking strategies depend on this
- Every position tracks its own profit and loss
- More flexibility but also more complexity

## Quick Comparison

| Feature | Netting Account | Hedging Account |
|---|---|---|
| Opposite positions on same symbol | Get merged automatically | Stay separate |
| Complexity | Low and simple | Higher and trickier |
| Common with | US-regulated brokers | International/offshore brokers |
| EA and grid strategies | Usually not supported | Fully supported |
| Ease for beginners | Easy to follow | Can feel confusing at first |

## Which One Should Beginners Use?

Here's the straightforward answer. A netting-style approach works better for beginners even if your broker technically runs on hedging. Here's why.

**Less confusion.** When each symbol shows just one net position you always know exactly where you stand in the market. Beginners who juggle overlapping positions often lose track of their real exposure.

**Better discipline.** Thinking in netting terms trains you to commit to one direction at a time. You trust your analysis instead of hedging against yourself out of doubt.

**Easier risk management.** A clear single position makes stop loss placement and position sizing simple. Calculating combined risk across multiple hedged positions is genuinely hard for someone just starting out.

**Avoids overtrading.** Having hedging available tempts many new traders into opening both sides when they're unsure of direction. That habit drains accounts rather than growing them.

One thing worth noting though. Most Pakistani traders using international brokers like Exness IC Markets or FBS already have hedging enabled by default whether they use it or not. So the real issue isn't switching account types. It's building the right trading discipline.

- If you're a beginner stick to one direction at a time even if your account allows hedging
- Once you build real experience and confidence you can explore hedging strategies like locking or correlation-based hedging
- If you plan to run an EA built on grid or hedging logic that's a different story but it belongs to advanced traders not beginners

## Bottom Line

Netting gives you simplicity. Hedging gives you flexibility. For beginners simplicity wins almost every time. Until you can manage the risk of a single clear position juggling two at once will only multiply your mistakes. Build a solid disciplined single-direction approach first. Hedging and advanced strategies will make a lot more sense once that foundation is in place.
Ali Akbar
Published code SMC Liquidity Sweep Scalper (Order Block EA with Live Win-Rate Tracking)
A liquidity-sweep / order-block scalper with ATR-based sizing and a higher-timeframe trend filter. Every trade is tagged on the chart with the live historical win rate of that setup type — a running scorecard, not just boxes.
· 1 3334 1072
Ali Akbar
Published code RiskPilot Pro — Drag-to-Trade Risk Panel with Break-Even, Trailing and a Daily Loss Guard
Drag your stop loss where you actually want it, hit Buy or Sell, and the lot size is already correct — no calculator, no spreadsheet. Handles break-even, trailing, and shuts trading down for the day if you hit your loss limit.
· 1 1162 275
Ali Akbar
Published code Risk-Based Lot Size Calculator
A simple MQL5 script that calculates the correct lot size for a trade based on your account risk percentage and stop loss distance in pips, so every trade risks a consistent, controlled amount of your balance.
Ali Akbar
Published code Correlation-Aware Lot Size Calculator
Sizes your next trade based on the correlated risk you already have open across other positions — not just the trade in isolation.
Ali Akbar
Published code Prop Firm Rule Checker
Checks your trade history against common prop-firm challenge rules — profit target, max daily loss, max drawdown, consistency rule, and minimum trading days — with a clear PASS/FAIL report.
Ali Akbar
Registered at MQL5.community