All-In-One Breakout EA – Settings Defined and Setfiles
Essential Hyperlinks
Obtain Demo Trial and Purchase
About Breakout Technique
Setfiles
Obtain the setfiles pack from right here for model 2.000 and above:
Earlier than backtesting along with your dealer account, you will need to change the daylight saving timezone in Part 14 of the EA settings.
Optimisation
Obtain the optimisation .ini pack from right here:
Settings
1. Cash Administration
These settings management how the EA manages place sizing and danger.
Cash Administration Sort (MMType)
Mounted Lot Dimension (MMByFixed)
Makes use of a hard and fast lot measurement for all trades.
Instance: MMFixed = 0.20 → each commerce makes use of 0.20 heaps.
Fairness Ratio (MMByEquityRatio)
Calculates lot measurement primarily based on a ratio of fairness (0.01 lot per $100 fairness).
Instance: MMEquityRatio = 100 , Fairness = $1,000 → (1000 / 100) × 0.01 = 0.10 heaps.
Stability Ratio (MMByBalanceRatio)
Calculates lot measurement primarily based on account stability (0.01 lot per $100 stability).
Instance: MMBalanceRatio = 200 , Stability = $5,000 → (5000 / 200) × 0.01 = 0.25 heaps.
Threat Share (MMByRiskPC)
Calculates lot measurement primarily based on the proportion of fairness risked per commerce.
Instance: MMRiskPC = 2 , Fairness = $10,000, SL = 50 factors → danger = $200 = 2%, lot measurement = 4.00 heaps.
Mounted Greenback Loss (MMByFixedDollar)
Dangers a hard and fast greenback quantity per commerce. Very best for controlling most loss.
Instance: MMFixedDollar = 125 , Account = $25,000 → every commerce dangers 0.5%.
2. Field Time
This part defines the time window used to type the breakout vary. The EA measures the excessive/low (or shut/shut) inside this window and units breakout ranges accordingly.
Field Timeframe (TimeframeRange)
Specifies which timeframe is used to construct the field.
Instance: PERIOD_M5 → field primarily based on 5-minute candles.
Field Sort (BoxType)
- Excessive/Low (HighLow): makes use of highest excessive & lowest low.
- Assist/Resistance (HighLowClosed): makes use of highest shut & lowest shut.
Field Anchor (BoxAnchor)
Defines how the EA interprets your time vary:
- RangeStart: field begins on the given time, ends after the length.
- RangeEnd: field ends on the given time, begins by subtracting the length.
Field Begin / Finish Time
- RangeStartHour, RangeStartMinute, RangeStartSecond → defines begin time.
- RangeEndHour, RangeEndMinute, RangeEndSecond → defines finish time or length, relying on anchor.
Examples:
Begin = 02:00, Period = 5h30m → Field = 02:00–07:30
Finish = 07:30, Period = 4h00m → Field = 03:30–07:30
Randomised Field Time
- Allow Randomisation (RandomRange): randomises begin and finish occasions.
- Random Vary Delta (RangeSecondDelta): most ±seconds shift.
Instance: RangeSecondDelta = 180 → as much as ±3-minute variation.
2.1 Field Methodology
Defines volatility-based calculation for field metrics.
- ATR Timeframe (ATRTF): timeframe used to calculate ATR.
- ATR Interval (ATRPeriod): variety of candles (e.g., 14).
- ADR Interval (ADRPeriod): variety of days for common each day vary.
Instance: ADRPeriod = 20 → common of final 20 each day ranges.
2.2 Field Offset
Offsets are utilized to field boundaries to regulate entry ranges.
Field Offset Sort (OffsetType)
- OffsetOff: no adjustment.
- Mounted Level: provides/subtracts fastened factors.
Instance: +20 → entry 20 pts above; –13 → 13 pts under. - Mounted Share: share of field measurement.
Instance: 10% of 100 pts field → ±10 pts. - ATR: share of ATR worth.
- ADR: share of ADR.
- Value: share of present value.
Random Offset Sort (RandomOffset)
- Off: none.
- By Level: random shift by fastened factors.
- By Share: random shift by % of field measurement.
Instance: RandomOffsetPC = 10 → ±10 pts randomisation.
2.3 Field Vary Filter
Restricts buying and selling to bins inside a desired volatility vary.
Vary Filter Sort (RangeType)
- Off: no filter.
- Mounted Level: minimal & most in factors.
- ATR: vary as % of ATR.
- ADR: vary as % of ADR.
- Value: vary as % of present value.
Instance:
MinRangePoint = 40 , MaxRangePoint = 100 → commerce solely when field = 40–100 pts.
3. Cancel Orders
Defines when untriggered pending orders might be cancelled.
Cancel Period
CancelOrdersHour, CancelOrdersMinute, CancelOrdersSecond
Time added to field finish earlier than pending orders are cancelled.
Randomisation
- Allow (RandomCancelOrder): true/false.
- Variation (CancelOrderSecondDelta): ±seconds adjustment.
Instance:
Field ends 07:30 → Cancel + 6 h = 13:30
CancelOrderSecondDelta = 180 → cancel between 13:27–13:33.
4. Shut Positions
Defines when open positions are force-closed after the cancel interval.
Shut Sort (CloseType)
- CloseByTime: power shut at actual time.
- CloseByTP: shut solely on Take Revenue.
- CloseByTP_Time: shut by TP or time, whichever comes first.
Period
ClosePositionsHour, ClosePositionsMinute, ClosePositionsSecond
Period after cancel time.
Randomisation
- Allow (RandomClosePosition): true/false.
- Variation (ClosePositionSecondDelta): ±seconds variation.
Instance:
Cancel = 13:30 → Shut + 2 h = 15:30 ± 3 min → 15:27–15:33.
5. Cease Loss
Defines how cease loss is calculated.
Cease Loss Sort (SLType)
- Field Issue: a number of of field measurement.
- Mounted Level: actual factors.
- ATR-Based mostly: % of ATR.
- ADR-Based mostly: % of ADR.
- Value Issue: % of present value.
- Off: no cease loss (extremely dangerous).
Random Cease Loss (RandomSL)
- Off: none.
- By Level: ±factors round base SL.
- By Share: ±% round base SL.
Instance: base 100 pts, ±10% → SL = 90–110 pts.
6. Take Revenue
Defines how take revenue is calculated.
Take Revenue Sort (TPType)
- Cease-Loss Issue: a number of of SL (risk-reward ratio).
- Mounted Level: actual distance.
- ATR-Based mostly: % of ATR.
- ADR-Based mostly: % of ADR.
- Value Issue: % of value.
- Off: no take revenue.
Random Take Revenue (RandomTP)
- Off: none.
- By Level: ±factors randomisation.
- By Share: ±% randomisation.
Instance: base 100 pts, ±10% → TP = 90–110 pts.
7. Trailing Cease
Adjusts cease loss dynamically as value strikes favourably.
Trailing Cease Change
Permits/disables trailing cease.
Trailing Cease Sort (TSType)
- By Cease-Loss %: % of preliminary SL.
- Mounted Level: fastened factors.
- ATR/ADR-Based mostly: % of ATR/ADR.
- Value %: % of value.
Path Activation
- Path % (Path): portion of distance used to set off path.
- Above Break-Even Change (Trail_Above_Switch): allow trailing solely past BE.
- Above Issue (Trail_Above): how far past BE earlier than path prompts.
Random Trailing Cease (RandomTS)
- Off: none.
- By Level / %: random variation to trailing cease.
8. Trades
Controls common commerce conduct.
Cancel Reverse Orders (COO_Switch)
When enabled, reverse pending orders are cancelled as soon as one aspect is triggered.
Commerce Route (BorS)
- Purchase and Promote: each instructions.
- Purchase Solely / Promote Solely: limit to at least one aspect.
- Off: disable buying and selling.
Most Trades
- Max Lengthy Trades: most each day purchase orders.
- Max Quick Trades: most each day promote orders.
- Max Whole Trades: whole each day restrict.
Minimal Time Between Trades (NextOpenTradeAfterSeconds)
Defines the cooldown time (in seconds) after a place is closed earlier than a brand new one may be opened.
Prevents speedy re-entries and helps handle buying and selling frequency.
Examples:
0 = no wait.
600 = 10 minutes.
3600 = 1 hour.
9. Day to Commerce
Select which weekdays the EA might commerce.
Every enter ( TradeMonday , TradeTuesday , …) = true/false.
Instance: TradeMonday = true, TradeFriday = false → trades Monday to Thursday solely.
10. Confluence
Provides pattern and volatility confirmations.
3 Shifting Averages Filter
- Allow (CMASwitch)
- Timeframe (MAATF)
- Methodology (MAMethod)
- Quick/Medium/Sluggish Intervals (CMA1Period, CMA2Period, CMA3Period)
Entry provided that MAs align in the identical route (e.g., 21 > 50 > 200 for uptrend).
ADI Filter
- Allow (CADISwitch)
- Timeframe / Interval (CADITF / CADIPeriod)
- ADX Threshold (CADIMainLevel)
- DI Ranges & Distinction (CADILevel / CADIDiff)
Ensures DI+ vs DI− and ADX affirm directional power (DI+ for uptrend and DI− for downtrend).
ADR Filter
- Allow (CADRSwitch)
- Timeframe (CADRTF)
- Interval (CADRPeriod)
- Min/Max ADR Ranges (CADRLevelMin / CADRLevelMax)
Trades solely when each day volatility is inside an outlined vary.
Bollinger Bands Filter
- Allow (CBBSwitch)
- Timeframe (CBBRTF)
- Interval / Deviation / Min Max Width (CBBPeriod / CBBDev / CBBLevelMin / CBBLevelMax)
Permits trades solely when Bollinger band width is inside a wholesome volatility vary.
11. Common Settings
Magic Quantity (MagicNumber)
Distinctive identifier for the EA’s trades. In the event you chart extra the 1 image in a MT5 terminal, be sure to change the magic quantity to one thing distinctive.
EA Remark (EaOrderComment)
Customized textual content tag added to every order. Chances are you’ll wish to change this.
Chart Remark (ChartComment)
Present/cover dynamic on-chart standing.
Debug Messages (DebugSwitch)
Allow or disable detailed log messages.
12. Visible Settings
Controls how the EA attracts bins, labels, and statistics.
- RangeColor: foremost field shade.
- StopColor / CancelColor: colours for cease/cancel traces.
- DayOpenColor: shade for each day open line.
- UpperBoxColor / LowerBoxColor: colours for field edges.
- ShowInfo: toggle on-chart information.
- TextSize / TextColor / BoxColor: font measurement, shade, and information field background.
13. Commerce Classes Indicator
Shows the beginning of key market periods on the chart.
- Allow (TradeSessionsIndicatorSwitch)
- Tokyo Begin (JP_Start_Hour)
- London Begin (LD_Start_Hour)
- New York Begin (NY_Start_Hour)
- Spacing: vertical distance between session labels.
Thick line = session begin, skinny line = session finish.
Typical dealer server (GMT+2 / 3):
Tokyo = 2 London = 10 New York = 15
Modify these in case your dealer server makes use of a special timezone.
14. Backtest & Optimisation
Quick Backtest Mode (FastBacktest)
Select optimisation shortcut:
- T-Sort: skips redundant ticks for pace.
- S-Sort: simplified candle-based logic.
- Off: full tick simulation.
Take a look at Interval (TInt)
Defines spacing between take a look at steps for T-Sort mode.
Dealer Time Offsets
For proper backtest, these 2 parameters should be modified in case your dealer server is totally different from GMT+2. Defines your dealer’s server-to-GMT offset:
- WinterOffset: regular season offset.
- SummerOffset: daylight-saving offset.
Examples:
ICMarkets: Winter = 2.0, Summer time = 3.0
Exness: Winter = 0, Summer time = 1
This ensures your field and session occasions stay correct when moved throughout brokers or seasons.
Trailing Step Validation
- MinTrailingStepCheck: allow or disable optimisation security test.
- MinTrailingStep: minimal logical step measurement in factors.
Prevents unrealistic trailing configurations (e.g., trailing smaller than unfold).
Advisable: allow test and set MinTrailingStep ≈ 1.5 – 3× typical unfold.
In case you have query concerning this EA, you may contact me at:
https://www.mql5.com/en/customers/rodeong

























