Hedged Lot Volume Generator
- Experts
- 버전: 2.2
- 활성화: 10
Hedged Lot Volume Generator is an automated Expert Advisor for MetaTrader 5.
IMPORTANT RISK NOTICE
This EA is built to generate trading volume, not to profit by itself: every pair of trades costs the spread (and commission, if any). The cost is limited by the budget inputs, but it is a real cost. It needs a hedging account and a broker that allows opposite positions on the same symbol. A wide spread, slippage or a failed close can turn into a loss. Past or simulated results do not guarantee future results. Test on a demo account first and only risk money you can afford to lose.
How it works
- Opens a Buy and a Sell of the same size at the same moment only when the spread is not above its usual level (compared with its own spread history).
- Both legs are held for the minimum time (default 180 seconds), then closed one after the other. The pair is hedged, so the price move cancels out and the cost is mainly the spread.
- The spread cost is limited by a budget: either a share of the profit already made on the account, or a percentage of the starting balance spread over a number of days. When the budget for the day is used the EA stops opening pairs.
- Optional runner mode: if the market is trending when the hold time ends, the winning leg can be kept with a trailing stop while the losing leg is closed.
- A lone leg (one side failed to open or close) is closed immediately.
- The pair size can be fixed or calculated from the cost budget and the free margin (both legs must fit in 40 percent of free margin).
Safety and broker compatibility
- Volume is normalized to the symbol minimum, maximum and step before every order.
- Free margin is checked with OrderCalcMargin before an order is sent.
- Stops level and freeze level are respected when placing or modifying orders and SL/TP; a modification is not sent when the values are unchanged and nothing is modified inside the freeze zone.
- Symbol trade mode, trading session, order limit and filling mode are checked before sending requests.
- No DLL, no web requests, no files are written.
BOTKRIT recovery core and dashboard
This build includes a basket recovery core and a standard BOTKRIT panel. When the open basket of this EA loses more than the set percentage of the balance the EA pauses its own new entries and the core can open balancing (hedge) trades with its own magic number until the basket can be closed at break-even plus a target; the basket is cut at the set loss percentage. Balancing trades can increase exposure. The core works on hedging accounts only and can be switched off with InpRKOn = false. The panel can be collapsed and moved to another corner.
Inputs
- InpTargetLots (default 0): Target lots
- InpFromProfit (default true): From profit
- InpProfitSharePct (default 50.0): Profit share pct
- InpRebatePerLot (default 0): Rebate per lot
- InpRebateAsBudget (default false): Rebate as budget
- InpBudgetPct (default 50.0): Budget pct
- InpDays (default 60): Days
- InpLot (default 0): Lot
- InpCycleCostPct (default 0.2): Cycle cost pct
- InpMaxSpread (default 0): Max spread
- InpHoldSec (default 180): Hold sec
- InpPauseSec (default 2): Pause sec
- InpMagic (default 778800): Magic Number
- InpRelease (default false): Release
- InpRunnerRiskPct (default 0.5): Runner risk pct
- InpReleaseATR (default 0.5): Release atr
- InpTrailATR (default 1.5): Trail atr
- InpRunnerMaxMin (default 240): Runner max min
Recovery core and dashboard inputs:
- InpRKOn (default true): Recovery core on/off: when the basket loss grows, new entries of the EA are paused and balancing trades can be opened until the basket closes
- InpRKStartPct (default 3.0): Start recovery when the basket loss exceeds this percent of the balance at basket start
- InpRKStartATR (default 3.0): or when price runs against the net position by this many ATR (0 = off)
- InpRKCutPct (default 30.0): Close the whole basket at this percent loss of the start balance
- InpRKShockATR (default 10.0): Shock distance to survive (ATR multiples), used for the lot ceiling
- InpRKMinMargin (default 300.0): Do not open a recovery trade if the margin level after opening would be below this percent
- InpRKSpreadMul (default 2.0): Pause recovery trades when the spread is above this multiple of the 60-minute median
- InpRKCorner (default bottom right): Corner of the BOTKRIT panel
- InpRKBar0 (default FULL): Bar-0 label (basket profit, spread and leverage)
Recommended setup
- Any liquid symbol with a tight spread (major forex pairs, gold). Timeframe is not important (the EA works tick by tick). Use a low-spread account and watch the Max spread input.
- Minimum capital: Start with the minimum lot and a balance of at least 1,000 USD.
- Test on a demo account first and keep the lot small.
