XAU CIPHER – USER GUIDE
1) INTRODUCTION AND TRADING CONCEPT
XAU Cipher is an Skilled Advisor designed particularly for Gold (XAUUSD), a market identified for sharp volatility, impulsive value habits, and sudden modifications in momentum.
This EA is just not constructed round random entries or remoted alerts. XAU Cipher works as a cycle-based execution engine, the place entry, place administration, and exit are a part of one full construction.
In sensible phrases, it may be described as a managed reversal system with progressive place administration, tailored to the habits of Gold and supported by operational filters that assist keep away from unfavorable buying and selling circumstances.
The system appears for market contexts the place value has proven growth, rejection, and restoration. From there, it manages the complete cycle as an alternative of relying on one single excellent order.
- It doesn’t chase each value transfer
- It doesn’t enter with out context
- It doesn’t depend on one remoted commerce to carry out effectively
- It manages the place basket with a coherent world exit
2) RECOMMENDED USAGE
- Advisable image: XAUUSD
- Sign timeframe: M1
- Advisable visualization timeframe: H1
- Advisable account kind: ECN or Uncooked Unfold
- Essential observe: quick execution and affordable unfold circumstances are particularly essential when buying and selling Gold
About unfold: the EA unfold parameter is just not expressed in normal dealer factors. It’s expressed in an inner system unit, so it shouldn’t be interpreted as conventional pips or factors.
About Magic Quantity: when you run a number of EAs on the identical time, and even the identical EA on completely different charts or symbols, you need to assign a special Magic Quantity to every occasion. This ensures that every EA manages solely its personal positions.
3) INPUT PARAMETERS GUIDE
A. MAIN CONTROLS
Goal revenue per cycle (% steadiness)
Defines the revenue goal that the EA will try to succeed in for your entire buying and selling cycle.
- If you happen to enhance this worth, the EA will goal a bigger cycle revenue earlier than closing. This normally makes the system extra aggressive and will increase market publicity time.
- If you happen to lower this worth, the EA will have a tendency to shut earlier. This normally reduces publicity, but additionally limits the revenue per cycle.
Max allowed loss (% max steadiness)
This is among the most essential parameters within the EA. It defines the most allowed loss based mostly on the very best account steadiness reached, not solely on the preliminary steadiness.
In different phrases, the system retains monitor of the very best steadiness degree achieved, after which calculates the utmost tolerable loss from that reference level. If floating loss reaches that restrict, the EA closes the cycle to cease additional deterioration.
The right way to interpret it:
- If you happen to enhance this worth, the EA will tolerate a bigger loss earlier than closing. This offers extra room for the cycle to get better, however it additionally will increase threat.
- If you happen to lower this worth, the EA will lower losses earlier. This reduces drawdown tolerance, however it might additionally shut cycles quicker throughout opposed market circumstances.
Easy instance:
Suppose your account began at 1000 USD, however later the steadiness grew and the very best steadiness reached was 1500 USD.
If you happen to set Max allowed loss (% max steadiness) = 20, the EA will enable a most loss equal to twenty% of 1500 USD, which is 300 USD.
Which means if open buying and selling exercise causes the account to fall towards the equal of 1200 USD, the EA will perceive that the configured loss restrict has been reached and it’ll shut the cycle.
That’s the reason this parameter is so essential: it adapts to steadiness progress and acts as an actual threat boundary based mostly on the very best steadiness your account has achieved.
Max positions per cycle
Defines the utmost variety of positions that the EA can open inside one cycle.
- If you happen to enhance this worth, the system has extra room to construct restoration, however whole publicity additionally turns into bigger.
- If you happen to lower this worth, publicity turns into decrease, however the system additionally has much less flexibility to handle complicated cycles.
B. POSITION SIZING
Revenue projection distance (inner models)
This parameter helps undertaking the operational distance utilized by the system to calculate lot measurement in keeping with the cycle revenue goal.
- If you happen to enhance this worth, the EA assumes a wider operational distance and this normally produces a smaller lot measurement, making the system extra conservative.
- If you happen to lower this worth, lot measurement tends to turn into bigger, making the system extra aggressive.
C. SIGNAL ENGINE
Buying and selling course
Means that you can outline whether or not the EA will commerce solely purchase positions, solely promote positions, or each instructions.
- BUY ONLY: solely purchase trades
- SELL ONLY: solely promote trades
- BOTH: each instructions
Sign timeframe
Timeframe used to guage sign circumstances.
- A decrease timeframe makes the system extra delicate and reactive.
- A better timeframe normally makes sign studying slower, but additionally extra filtered.
The bottom configuration of XAU Cipher is designed to work on M1.
Vary interval
Interval used to calculate a median reference of market motion.
- If you happen to enhance this worth, the reference turns into smoother and extra secure, however much less reactive.
- If you happen to lower this worth, the reference reacts quicker to latest modifications, however it will probably turn into extra delicate to noise.
Entry growth energy
Measures how robust value growth should be earlier than the EA considers an entry alternative.
- If you happen to enhance this worth, the EA turns into extra selective and waits for stronger strikes. There’ll normally be fewer trades, however extra filtered ones.
- If you happen to lower this worth, the EA will detect growth extra simply and should enter extra usually, however with better noise threat.
Wick rejection energy
Determines how clear value rejection should be by wick construction.
- If you happen to enhance this worth, the EA will demand a stronger rejection sign earlier than contemplating an entry.
- If you happen to lower this worth, it turns into much less strict and can settle for weaker candle buildings.
Restoration energy after growth
Defines how a lot restoration value ought to present after growth to validate the sign extra strongly.
- If you happen to enhance this worth, the system would require stronger affirmation earlier than getting into.
- If you happen to lower this worth, the EA could enter earlier, however with much less affirmation.
Noise tolerance (reverse wick)
Helps filter candles with weak construction or extreme noise on the alternative wick.
- If you happen to enhance this worth, the filter turns into extra permissive.
- If you happen to lower this worth, the filter turns into stricter and rejects extra candles.
Volatility threshold (panic)
Defines from which growth degree the market could also be thought-about excessive or panic-like.
- If you happen to enhance this worth, the system turns into extra tolerant of violent market motion.
- If you happen to lower this worth, the system will classify excessive circumstances sooner.
Restoration energy in panic
Helps consider whether or not, even beneath excessive circumstances, there may be nonetheless sufficient restoration to keep away from blocking restoration entries.
- If you happen to enhance this worth, the EA turns into extra demanding inside excessive market circumstances.
- If you happen to lower this worth, the EA turns into extra permissive.
Minimal legitimate motion
Defines the minimal motion required for a candle or value transfer to be thought-about operationally related.
- If you happen to enhance this worth, the EA will ignore smaller actions and turn into extra selective.
- If you happen to lower this worth, the system will settle for smaller circumstances and turn into extra delicate.
D. RECOVERY CONTROL
Distance to allow restoration (inner models)
Defines the minimal distance value should transfer away from the final entry earlier than permitting a brand new place contained in the cycle.
- If you happen to enhance this worth, entries can be spaced farther aside. This reduces density and is normally extra conservative.
- If you happen to lower this worth, entries can happen nearer to one another. This will increase aggressiveness and publicity.
E. SAFETY FILTERS
Allow information filter
Prompts or deactivates the information filter.
- If enabled, the EA avoids opening trades inside a time window round related information occasions.
- If disabled, the system can commerce with out that extra safety.
Minutes earlier than information
Minutes earlier than a information occasion throughout which the EA will cease opening new trades.
- If you happen to enhance this worth, the pre-news safety window turns into wider and extra conservative.
- If you happen to lower this worth, the EA could proceed buying and selling nearer to the occasion.
Minutes after information
Minutes after a information occasion throughout which the EA will proceed avoiding new trades.
- If you happen to enhance this worth, you give the market extra time to stabilize.
- If you happen to lower this worth, the EA will resume buying and selling sooner.
Max allowed unfold (inner models)
Defines the utmost unfold the EA will settle for with the intention to open new trades. This worth is just not expressed in normal dealer factors, however in an inner system unit.
- If you happen to enhance this worth, the EA turns into extra permissive and might commerce beneath wider unfold circumstances.
- If you happen to lower this worth, the system turns into stricter and can commerce solely when execution circumstances are cleaner.
F. SYSTEM SETTINGS
Magic quantity
Distinctive identifier utilized by the EA to acknowledge and handle its personal positions.
- If you happen to run different robots or a number of charts, you need to change this worth to keep away from interference.
- It doesn’t have an effect on sign logic, however it’s important for proper order administration.
4) OPTIMIZATION PROTOCOL
To optimize XAU Cipher professionally in MetaTrader 5, you may observe this workflow:
- Choose the XAUUSD image
- Use a sufficiently vast interval, ideally between 6 and 12 months
- Use the 1 Minute OHLC mannequin as a result of it affords a great steadiness between pace and testing high quality
- Begin by optimizing essentially the most influential parameters first
- Then validate the outcome on a special interval to cut back overfitting threat
Key parameters beneficial for optimization
Goal revenue per cycle (% steadiness)
Begin: 0.10
Step: 0.10
Cease: 0.80
Max positions per cycle
Begin: 4
Step: 2
Cease: 20
Revenue projection distance (inner models)
Begin: 50
Step: 25
Cease: 300
Entry growth energy
Begin: 1.20
Step: 0.20
Cease: 3.00
Wick rejection energy
Begin: 0.80
Step: 0.20
Cease: 2.00
Restoration energy after growth
Begin: 0.20
Step: 0.10
Cease: 0.80
Distance to allow restoration (inner models)
Begin: 25
Step: 25
Cease: 200
What shouldn’t be optimized too aggressively
Some parameters act extra like structural stabilizers than efficiency accelerators. If you happen to optimize them too aggressively, you could find yourself creating settings which might be too tightly fitted to historic knowledge.
- Volatility threshold (panic)
- Restoration energy in panic
- Noise tolerance (reverse wick)
- Minimal legitimate motion
Skilled choice standards
Don’t choose a configuration solely as a result of it exhibits the very best revenue. Prioritize mixtures that:
- Maintain drawdown at an affordable degree
- Present a extra secure fairness curve
- Generate a ample variety of trades
- Don’t rely upon one or two distinctive segments of the historic interval
5) RISK MANAGEMENT AND EXPECTATIONS
XAU Cipher is a buying and selling instrument, not a revenue assure. Gold can enter extremely directional or extraordinarily risky phases, and in these circumstances even a well-designed logic can undergo tough cycles.
That’s the reason you will need to perceive the next:
- A extra aggressive configuration could generate greater returns, but additionally deeper drawdowns
- A extra conservative configuration could scale back publicity, but additionally scale back progress pace
- Dealer circumstances, unfold, execution high quality, and market context immediately have an effect on outcomes
Good practices
- Begin on demo or with lowered threat
- Use a dealer with good execution on metals
- Don’t run a number of cases with the identical Magic Quantity
- Optimize with self-discipline and validate out of pattern
- Don’t deal with a powerful backtest as a future assure
XAU Cipher was created to supply a extra structured, configurable, and sincere buying and selling method. Its worth is in the best way it organizes entry, restoration, and exit inside an entire cycle, not in pretending that threat can disappear.
6) OFFICIAL LINKS
EA on MQL5 Market: https://www.mql5.com/en/market/product/168697
Official set information and updates channel: https://www.mql5.com/es/channels/02ab1cc3d332dc01
XAU Cipher
Construction. Management. Cycle-based administration.

