Dynamic Lot Two Sided Grid
- Experts
- Versione: 3.3
- Attivazioni: 10
Dynamic Lot Two-Sided Grid 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
- If no trade is near the price within the nearby distance (extended by the market width) the EA opens both a Buy and a Sell with the same lot and a dynamic take profit and stop loss in pips.
- The basket is closed when the average profit reaches a percentage of the balance.
- Trailing per trade and for the whole group (money trailing), and conditional stop loss moves for the Buy and Sell side.
- Counters for trades, profit, lots and the maximum drawdown are displayed.
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
- Nearby (default 20.0): Nearby
- TP (default 50.0): Tp
- SL (default 0.0): Sl
- Lot (default 0.01): Lot
- Close_All_Percent (default 0.1): Close all percent
- Display_ON_OFF (default true): Display on off
- Max_Trade_Count (default 50.0): Max trade count
- Trailling_Start_percent (default 1.0): Trailling start percent
- Trailling_Step_percent (default 0.1): Trailling step percent
- Trailing_Stop_percent (default 0.5): Trailing stop percent
- More (default 5.0): More
- Trailling_Start_percent_ALL (default 0.2): Trailling start percent all
- Trailling_Step_percent_All (default 0.02): Trailling step percent all
- Trailing_Stop_percent_All (default 0.1): Trailing stop percent all
- keep (default 20.0): Keep
- MagicStart (default 1257): 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
- Major forex pairs on M5 to H1.
- Minimum capital: At least 1,000 USD with the default 0.01 lot.
- Test on a demo account first and keep the lot small.
