HomeSample Page

Sample Page Title


Skilled Advisor Handbook — MQL5 MetaTrader 5

HACKER X AI

Superior Hedging EA · Full Dealer Documentation · v2.0

MT5 Native

MQL5 Supply

All Pairs & Gold

Auto Danger Guard

HACKER X AI is a totally automated Skilled Advisor for MetaTrader 5 constructed round a multi-level hedging technique. When the preliminary commerce strikes towards you, the EA routinely opens a counter-trade (a hedge) in the other way with a bigger lot measurement — permitting it to get better losses and shut the basket in internet revenue when situations align.

It enters the market utilizing an EMA crossover + RSI confluence sign, then manages the place with break-even, trailing cease, and full drawdown safety — all whereas displaying reside statistics on an in-chart dashboard.

02

How It Works — Logic Circulation

1

Sign Scan — EMA Cross + RSI Filter

Each tick, the EA checks if the quick EMA (default 21) has crossed the sluggish EMA (default 50). A bullish cross triggers a BUY sign; a bearish cross triggers a SELL. The RSI filter confirms momentum — it blocks buys if RSI is overbought (>70) and blocks sells if oversold (<30).

2

Preliminary Entry — Hedge Stage #0

A commerce is opened on the base lot measurement (default 0.01). The EA at all times verifies there may be sufficient free margin earlier than coming into utilizing  OrderCalcMargin() . A Take Revenue is about. No Cease Loss on the preliminary commerce — the hedge manages danger as a substitute.

3

Place Monitoring

The EA watches the open place each tick. If worth strikes in your favour, Break-Even and Trailing Cease kick in to guard revenue. If worth strikes towards you past the set off distance, a hedge is triggered.

4

Hedge Set off — Counter-Commerce Opened

When the place is shedding and worth has moved  InpTriggerPoints  towards you, a counter-trade is opened in the other way. The hedge lot is the earlier lot × the multiplier (default 1.5×). This repeats as much as 4 ranges. The EA checks margin earlier than every hedge — if margin is inadequate, it halves the lot till it suits.

5

Place Administration — BE + Trailing

All worthwhile positions have trailing stops utilized. Break-even is moved as soon as a place reaches the break-even offset in revenue. SL/TP values at all times respect the dealer’s minimal cease degree ( SYMBOL_TRADE_STOPS_LEVEL ) to keep away from invalid cease errors.

6

Basket Closure — Take Revenue

Every hedge has its personal TP. When TPs are hit, the mixed basket closes in internet revenue. The EA halts for the day if the every day revenue goal is reached. Max drawdown guard closes every part and halts if fairness drops too far.

Instance utilizing default settings (InpLotSize=0.01, InpLotMultiplier=1.5, InpTriggerPoints=50) on a typical pair:

#0 BUY 0.01 #1 SELL 0.02 #2 BUY 0.03 #3 SELL 0.05 TP -50pts -50pts -50pts Entry Worth

StagePathLot DimensionSet offObjective
#0 PreliminaryBUY (sign)0.01EMA cross + RSIUnique commerce, follows the development sign
#1 HedgeSELL (counter)0.02 (×1.5)−50 factors lossFirst counter-trade, covers preliminary loss
#2 HedgeBUY (counter)0.03 (×1.5)−50 factors additionalSecond restoration layer
#3 HedgeSELL (counter)0.05 (×1.5)−50 factors additionalThird restoration layer
#4 Hedge (max)BUY (counter)0.07 (×1.5)−50 factors additionalRemaining restoration — no extra hedges after this
⚠ Lot Development Warning

On devices like XAUUSD (Gold), even a 0.01 lot wants important margin. The EA routinely checks  OrderCalcMargin()  and can scale back the hedge lot if margin is inadequate — it is going to by no means ship a commerce it might probably’t afford.

04

Enter Parameters — Full Reference

ParameterDefaultDescription
Core Settings
InpLotSize0.01Beginning lot for the preliminary commerce. Maintain small on high-margin pairs like XAUUSD.
InpLotMultiplier1.5Every hedge multiplies the earlier lot by this worth. 1.5 is balanced; going above 2.0 will increase restoration pace however blows margin sooner.
InpMaxHedges4Most variety of hedge ranges. After this, no extra hedges are positioned. Really useful: 3–5.
InpTriggerPoints50What number of factors worth should transfer towards a shedding commerce earlier than triggering the following hedge. Greater = wider gaps = decrease hedge frequency.
InpTakeProfit80Take Revenue in factors for the preliminary commerce. Hedges use 50% of this worth.
Pattern Filter
InpMA_Fast21Quick EMA interval. Shorter = extra indicators (extra trades, extra noise). Strive 10–21 for scalping.
InpMA_Slow50Sluggish EMA interval. Bigger = stronger development filter. Strive 50–200 for swing buying and selling.
InpRSI_Period14RSI lookback. 14 is normal. Decrease = extra reactive, increased = smoother.
InpRSI_OB / InpRSI_OS70 / 30Overbought / Oversold thresholds. Tighten to 65/35 for fewer however higher-quality entries.
Danger Administration
InpMaxDrawdown5.0%Most allowed fairness drawdown. If hit, all positions shut and buying and selling halts for the day. Set between 3–10% relying in your danger tolerance.
InpDailyProfitTarget2.0%When every day stability revenue reaches this %, the EA closes all trades and stops for the day. Prevents overtrading after day.
InpUseBreakEventrueStrikes SL to close entry as soon as the commerce is worthwhile by InpBreakEven factors. Really useful: at all times ON.
InpBreakEven20Factors of revenue required earlier than break-even triggers. Should be above dealer’s STOPS_LEVEL.
InpUseTrailingtruePrompts trailing cease on worthwhile positions. Really useful: ON.
InpTrailingStart40Revenue in factors earlier than trailing cease prompts.
InpTrailingStep10How tightly the trailing cease follows worth. Smaller = tighter trailing.





HACKER X AI · v2.0 · MQL5 METATRADER 5 · ALL RIGHTS RESERVED

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles