Collection · MT5

Seefactor Hedge Collection

by Gymnott1

This MetaTrader 5 repository provides a collection of expert advisors focused on hedging and position recovery strategies.

GitHub stars1
Forks0
Last update5 months ago2 Apr 2026
LicenceNone stated

Overview

The main utility manages trade entries with automated hedge triggers based on stop loss events or specific price distances. It includes sophisticated risk controls such as basket-level take profit and stop loss thresholds, which can be defined in fixed currency amounts or as a percentage of the stake. The software supports dynamic lot sizing to limit risk per trade and features a cooldown timer to prevent rapid re-entry. Users can choose to keep main positions open during hedging or close them to manage net exposure.

Details

Author

Gymnott1 on GitHub

Type

Collection

Platform

MetaTrader 5 (MQL5)

Strategy

Hedging, Multi-strategy

Markets

Any symbol

Timeframes

Any timeframe

Risk Profile

  • Holds opposite positions at once

Input Parameters

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

NameTypeDefaultDescription
InpMainSideTradeSideSideBuy
InpStakeLotsdouble0.10
InpDynamicFromMarketbooltrue
InpEntryPricedouble0.0
InpTakeProfitdouble0.0
InpStopLossdouble0.0
InpMainTpPointsdouble500.0
InpMainSlPointsdouble300.0
InpUseHedgebooltrue
InpHedgeLotsRatiodouble0.5
InpHedgeEntryPricedouble0.0
InpHedgeTakeProfitdouble0.0
Show all 40 inputs
NameTypeDefaultDescription
InpHedgeStopLossdouble0.0
InpHedgeTpPointsdouble300.0
InpHedgeSlPointsdouble250.0
InpRecoveryProfitPctdouble20.0
InpRecoveryDistancePointsdouble300.0
InpAutoBestHedgebooltrue
InpBestHedgeTpPointsdouble300.0
InpShowCommentTextboolfalse
InpSimBalancedouble100.0
InpStakeInUsdboolfalsefalse=use lots, true=derive lots from USD risk at main SL
InpStakeUsddouble10.0USD risk for main SL when InpStakeInUsd=true
InpMaxMainRiskPctStakedouble2.0Block any new entry whose main SL risk exceeds this % of configured stake
InpAutoScaleMainLotsbooltrueAutomatically reduce main lots to fit the max-risk cap instead of blocking entry
InpAutoTradebooltruePlace trades automatically (false = visualization only)
InpMagicNumberint20260319Magic number to identify EA orders
InpAutoHedgeOnSLbooltrueAuto-place hedge when main SL is hit
InpKeepMainOpenOnHedgebooltrueTrue hedge mode: keep main position open and add opposite hedge
InpCloseMainOnHedgeFillboolfalseSafety: close main when hedge fills (disable to let basket manage both)
InpEmergencyMainSLMultiplierdouble3.0Emergency SL = N × virtual SL distance (0=disabled). Protects main even in keep-open mode.
InpCooldownSecondsint30Seconds to wait between trade cycles
InpExitHedgeAtBeTargetbooltrueClose hedge when BE target is reached
InpBeTargetProfitPctdouble5.0BE target net profit as % of main TP money
InpUseBasketSafetybooltrueClose basket on combined PnL thresholds (runs every tick)
InpAutoBasketFromStakebooltrueDerive basket TP/SL from stake instead of fixed placeholder USD values
InpBasketTakeProfitPctdouble1.0Basket TP as % of stake when auto basket mode is enabled
InpBasketStopLossPctdouble5.0Basket SL as % of stake when auto basket mode is enabled
InpBasketTakeProfitUSDdouble2.0Close all positions when basket net >= this (take profit)
InpBasketStopLossUSDdouble20.0Close all positions when basket net <= -this (hard stop)

How to Install It

  1. 1Download the sourceUse "Download source (.zip)" above, or clone Gymnott1/MT5 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

This MetaTrader 5 collection features two primary components: a manual risk management panel and an automated confluence robot. The TyAlgo advisor executes trades using the No Nonsense Forex method, aggregating signals from various technical indicators via global variables. Risk is managed through the TyphooN tool, whi

MT5 Collection Trend followingMulti-strategyMartingale High risk

Compound Effect EA

by forexist
5 stars

This MetaTrader 5 collection provides several automated trading scripts, including a core robot that executes trades based on random entries or basic indicators. It manages positions using percentage-based stop loss and take profit targets rather than fixed pips. The expert advisors include risk controls like equity al

MT5 Collection HedgingMulti-strategy
Updated 5 years ago None stated GitHub repository of Compound Effect EA

Fxcodebase Archive

by gehtsoft-usa
3 stars

This repository is a comprehensive backup of trading resources from the defunct fxcodebase community, containing a diverse collection of expert advisors for MetaTrader 4 and 5. The archive serves as a repository for legacy source code, featuring strategies ranging from RSI crossovers to advanced hedging and martingale

MT4MT5 Collection Multi-strategyMartingaleHedging High risk
Updated 2 months ago GPL-3.0 GitHub repository of Fxcodebase Archive
2 stars

This repository contains a collection of MetaTrader 5 expert advisors designed for various financial instruments including the DAX index, gold, oil, and major currency pairs. The library includes specialized robots like German Sunrise for DAX mean reversion and others for specific events like Friday gold moves or Tuesd

MT5 Collection Mean reversionIndicator crossoverTrend following

Oslib MT5 Collection

by marcoc68
2 stars

Oslib is an extensive repository of Expert Advisors and indicators for MetaTrader 5, encompassing various quantitative trading approaches. The collection includes statistical arbitrage robots that trade spreads between two correlated symbols, machine learning experts utilizing Support Vector Machines (SVM), and high-fr

MT5 Collection ArbitrageAI / machine learningMean reversion High risk
Updated 11 months ago GPL-3.0 GitHub repository of Oslib MT5 Collection
2 stars

This collection for MetaTrader 5 provides several automated Expert Advisors designed for various symbols including forex, gold, and indices. The repository features Mecha Godzilla, a grid trading system using ATR-based spacing and bidirectional orders, alongside specialized bots for Asian session breakouts and H4 trend

MT5 Collection GridBreakoutTrend following High risk

More collections

Need a Broker for MT5?

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

Compare brokers