Portfolio

Supertrend execution bot on gold

The indicator buffer is read only at candle close, signal freshness is checked, the stop comes from the latest swing, and it moves to break-even at a fixed profit.

MT4 Personal trader Reza Amini Independent trader

Project specifications

Project specifications

Market
XAUUSD
TF
M30
Platform
MT4
Client type
Personal trader
Delivery window
5 weeks
Stack
MQL4, the client's indicator code, gold M5 data
Strategy
Supertrend execution + dynamic stop
Modules
Signal-freshness check
Testing
Historical arrows reconciled with trades

Who this was for

Reza Amini

Role
Independent trader
City
Tehran
Project reference
TBT-1406-21
Trade flow

The client's idea

Reza Amini works XAUUSD on M30; the opening brief was: Take my Supertrend indicator and enter at the exact moment it marks the arrow.

Initial challenge

The indicator draws its arrow at candle close; manual execution always arrived a candle late and the stop was often forgotten.

Solution

The indicator buffer is read only at candle close, signal freshness is checked, the stop comes from the latest swing, and it moves to break-even at a fixed profit.

Why this design

Reading the buffer only at close removes intra-candle noise. It matches how XAUUSD is actually traded and can be tested against the data already available.

Safeguards and risk control

The expert never reads future bars, and it stops opening positions when the connection drops.

Our next-step proposal

The next step is a chart dashboard showing the live signal and the filters that rejected a trade.

Portfolio

Measured results

These are the figures the test produced — not a promise about future performance.

  • 412 Trades reviewed
  • 0.6 pip Average execution slippage
  • 12.1 % Max drawdown in test
  • 14 Configurable inputs

Portfolio

How the delivery ran

Every project moves through these five phases, with the window for each agreed in the specification.

  1. Discovery and problem framing

    Completed

    Reading the client's indicator signal and pinning down exactly when it fires on XAUUSD.

    Day 1–2

  2. Written specification

    Completed

    Defining sizing from stop distance and the conditions under which no trade is taken.

    Day 3–8

  3. Implementation

    Completed

    Wiring the signal to the execution layer without touching the indicator's own formula.

    Day 9–21

  4. Testing and validation

    Completed

    Comparing the trades taken against the indicator's historical signals on XAUUSD.

    Day 22–29

  5. Handover and support

    Completed

    Handing over the indicator and the expert together, with an install guide.

    Day 30–33