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.
Read from seefactor_bot.mq5. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
InpMainSide
TradeSide
SideBuy
InpStakeLots
double
0.10
InpDynamicFromMarket
bool
true
InpEntryPrice
double
0.0
InpTakeProfit
double
0.0
InpStopLoss
double
0.0
InpMainTpPoints
double
500.0
InpMainSlPoints
double
300.0
InpUseHedge
bool
true
InpHedgeLotsRatio
double
0.5
InpHedgeEntryPrice
double
0.0
InpHedgeTakeProfit
double
0.0
Show all 40 inputs
Name
Type
Default
Description
InpHedgeStopLoss
double
0.0
InpHedgeTpPoints
double
300.0
InpHedgeSlPoints
double
250.0
InpRecoveryProfitPct
double
20.0
InpRecoveryDistancePoints
double
300.0
InpAutoBestHedge
bool
true
InpBestHedgeTpPoints
double
300.0
InpShowCommentText
bool
false
InpSimBalance
double
100.0
InpStakeInUsd
bool
false
false=use lots, true=derive lots from USD risk at main SL
InpStakeUsd
double
10.0
USD risk for main SL when InpStakeInUsd=true
InpMaxMainRiskPctStake
double
2.0
Block any new entry whose main SL risk exceeds this % of configured stake
InpAutoScaleMainLots
bool
true
Automatically reduce main lots to fit the max-risk cap instead of blocking entry
InpAutoTrade
bool
true
Place trades automatically (false = visualization only)
InpMagicNumber
int
20260319
Magic number to identify EA orders
InpAutoHedgeOnSL
bool
true
Auto-place hedge when main SL is hit
InpKeepMainOpenOnHedge
bool
true
True hedge mode: keep main position open and add opposite hedge
InpCloseMainOnHedgeFill
bool
false
Safety: close main when hedge fills (disable to let basket manage both)
InpEmergencyMainSLMultiplier
double
3.0
Emergency SL = N × virtual SL distance (0=disabled). Protects main even in keep-open mode.
InpCooldownSeconds
int
30
Seconds to wait between trade cycles
InpExitHedgeAtBeTarget
bool
true
Close hedge when BE target is reached
InpBeTargetProfitPct
double
5.0
BE target net profit as % of main TP money
InpUseBasketSafety
bool
true
Close basket on combined PnL thresholds (runs every tick)
InpAutoBasketFromStake
bool
true
Derive basket TP/SL from stake instead of fixed placeholder USD values
InpBasketTakeProfitPct
double
1.0
Basket TP as % of stake when auto basket mode is enabled
InpBasketStopLossPct
double
5.0
Basket SL as % of stake when auto basket mode is enabled
InpBasketTakeProfitUSD
double
2.0
Close all positions when basket net >= this (take profit)
InpBasketStopLossUSD
double
20.0
Close all positions when basket net <= -this (hard stop)
How to Install It
1Download the sourceUse "Download source (.zip)" above, or clone Gymnott1/MT5 from GitHub, and unzip it.
2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL5/Experts.
3Copy the filesCopy the .mq5 file into Experts.
4Compile in MetaEditorOpen the file in MetaEditor and press Compile. Fix any missing includes the compiler reports.
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.
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
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
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
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
MT5CollectionMean reversionIndicator crossoverTrend following
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
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