Grid Rebalancing Trader
- Experts
- Versione: 3.2
- Attivazioni: 10
Grid Rebalancing Trader is an automated Expert Advisor for MetaTrader 5.
IMPORTANT RISK NOTICE
This EA uses a grid / multi-trade technique and can keep many trades open in the same direction without a stop loss on each trade. A basket can show a large floating loss and a long drawdown before it recovers. Position size and the number of open trades can grow. 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 plus Sell pair and then adds trades in tiers with a lot per tier and a dynamic pip distance chosen by the risk level.
- The profitable side is closed to "rebalance" and the side is refilled; the basket closes when it reaches the target percentage of the balance. New trades stop and positions close when the drawdown is high.
- A simple Buy now / Sell now block with a nearby filter also exists.
- Dashboard with buttons (BUY, SELL, CLOSE ALL) on the top right of the chart.
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
- Risk_Level (default 1): Safe (1)Normal (2)Aggressive (3)
- Nearby (default 50.0): Nearby
- MaxLot (default 5.0): Max lot
- Lot_Push_Buttom (default 0.02): Lot push buttom
- Rebat_Cashback (default 20.0): Rebat cashback
- MagicStart (default 202502): Magic Number, kind of...
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
- Gold and major pairs, any timeframe from M5 to H1.
- Minimum capital: At least 2,000 USD for risk level 1 (safe).
- Test on a demo account first and keep the lot small.
