Trading robot · MT5

Gold 0800 SGT Support Resistance

by XingHan98

This MetaTrader 5 expert advisor identifies daily support and resistance levels for gold based on price action at 08:00 SGT.

GitHub stars1
Forks1
Last update7 weeks ago2 Aug 2026
LicenceNone stated

Overview

Gold 0800 SGT Support Resistance calculates entry points using specific candle patterns and includes ATR-based take-profit targets. The system manages risk through fixed lot sizes or equity percentage, utilizing stop losses and configurable reward-to-risk ratios. It offers three operational modes: placing pending limit orders at calculated levels, fading breakouts of take-profit lines, and executing trades from external Telegram signals via a file-based bridge. The tool includes an optional manual confirmation feature for each trade to ensure user oversight before execution.

Details

Author

XingHan98 on GitHub

Type

Trading robot

Platform

MetaTrader 5 (MQL5)

Strategy

Mean reversion, Breakout

Markets

Gold

Timeframes

M15-H1

Risk profile

No grid, martingale or hedging logic was found in its code or README. That says nothing about how it performs: backtest it first.

Input parameters

Read from GoldSupportResistance_telegram.mq5. Defaults are the author's; change them in the EA's Inputs tab.

NameTypeDefaultDescription
InpManualOffsetHoursint9999Server->UTC offset in hours (9999 = auto-detect)
InpLookbackBarsint300Max 15-min bars to walk back when searching
InpResColorcolorclrTomatoResistance line color
InpSupColorcolorclrDodgerBlueSupport line color
InpSigBuyColorcolorclrMediumPurpleSignal BUY entry + TP lines
InpSigSellColorcolorclrDarkOrangeSignal SELL entry + TP lines
InpLineWidthint2Line width
InpSignalFilestringgold_signal.txtSignal file name in Common\Files
InpEnableLayers12boolfalseMaster: Layer 1 pending orders + Layer 2 day-TP retest
InpEnableRetestbooltrueLayer 2: fade retests of the day's TP levels
InpEnableSignalsbooltrueLayer 3: fade the Telegram signal's TP lines
InpAskConfirmationboolfalseLayers 1+2: Yes/No popup before each order
Show all 25 inputs
NameTypeDefaultDescription
InpSignalAskConfirmbooltrueLayer 3: Yes/No popup before each fade order
InpDrawSignalLinesbooltrueDraw the signal's entry/TP lines on the chart
InpDrawWeekendsboolfalseDraw levels on Sat/Sun (gold normally closed)
InpLotsdouble0.1Fixed lot size (used when risk % = 0)
InpRiskPercentdouble0.0Risk % of equity per trade (0 = fixed lots)
InpSLBufferPointsint150Layer 1: SL buffer beyond the level, points
InpTPModeENUM_TP_MODETP_OPPOSITE_LEVELLayer 1: take-profit mode
InpRiskRewarddouble2.0Layers 1+2: reward:risk ratio
InpOrderExpiryHoursint24Layer 1: pending-order expiry, hours after 08:00 SGT
InpRetestBufferPctdouble0.05Layers 2+3: breakout buffer, % of the level price
InpRetestWindowBarsint4Layers 2+3: retest window, M15 bars (0 = no limit)
InpSigFadeUSDdouble10.0Layer 3: fade SL & TP distance from entry, USD
InpMagiclong260800Magic number

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone XingHan98/gold-0800-sgt-sr from GitHub, and unzip it.
  2. 2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL5/Experts.
  3. 3Copy the filesCopy the .mq5 file into Experts.
  4. 4Compile in MetaEditorOpen the file in MetaEditor and press Compile. Fix any missing includes the compiler reports.
  5. 5Test before you tradeRun it in the Strategy Tester, then attach it to a demo chart and allow algorithmic trading.
Third-party code. ForexR did not write, test or endorse this EA, and the summary above was generated automatically from its README and code. ForexR lists only repositories with readable source code and never hosts files. Read the code, backtest it and use a demo account first; automated trading can lose money quickly.

Similar expert advisors

High Frequency Scalper

by Pusparaj99op
5 stars

This MetaTrader 5 expert advisor is designed for scalping gold on the M1 timeframe. It features a versatile strategy engine capable of toggling between breakout and mean-reversion modes based on market conditions. The system manages trades using ATR-based trailing stops, break-even adjustments, and time-based exits. Ri

MT5 Trading robot ScalpingBreakoutMean reversion

Nolo Trading Bot

by festomanolo
4 stars

This expert advisor for MetaTrader 5 is a multi-strategy system that utilizes market regime detection to switch between trend following, range trading, and breakout modes. It incorporates a wide array of technical indicators, including Moving Averages, RSI, MACD, Ichimoku, and SuperTrend. The bot manages risk through v

MT5 Trading robot Trend followingMean reversionBreakout High risk
Updated 6 months ago MIT GitHub repository of Nolo Trading Bot
4 stars

Gold SnR Momentum Scalper Pro is an automated scalping robot for MetaTrader 5, specifically optimized for XAUUSD on the M1 timeframe. It identifies entry points by combining support and resistance zones with RSI and moving average momentum. The system incorporates tick-level analysis to measure buying and selling press

MT5 Trading robot ScalpingBreakoutMean reversion
Updated 3 months ago Custom licence GitHub repository of Gold SnR Momentum Scalper Pro
3 stars

This automated expert advisor for MetaTrader 5 implements a mean-reversion strategy based on Asian session price ranges. It identifies the high and low levels during specific Asian trading hours and monitors for a price breakout. Instead of trading the breakout momentum, it enters a position when price returns inside t

MT5 Trading robot Mean reversionBreakout
Updated 1 year ago None stated GitHub repository of Asian Range Breakout

Xauusd God MT5

by techly39
3 stars

This MetaTrader 5 expert advisor is designed specifically for trading gold (XAUUSD). The system utilizes a modular architecture to detect market regimes, identify ranges, and execute trades based on liquidity sweeps and breakouts. It incorporates several filters, including spread and volume checks, alongside a drawdown

MT5 Trading robot BreakoutSMC / ICT / price actionMean reversion
Updated 10 months ago None stated GitHub repository of Xauusd God MT5

EA SMC Engine

by Pauloeduspbr
3 stars

This automated trading robot for MetaTrader 5 implements Smart Money Concepts (SMC) and ICT principles using a hybrid architecture. Trading logic and signal detection are processed within a native C++ DLL, while the MQL5 bridge handles trade execution and data feeding. The system identifies market structure shifts, inc

MT5 Trading robot SMC / ICT / price actionBreakoutTrend following
Updated 5 months ago MIT GitHub repository of EA SMC Engine

More trading robots

Need a broker for MT5?

Compare regulated brokers that support MetaTrader, with spreads, minimum deposits and leverage side by side.

Compare brokers