How to set up the Inputs (MetaTrader 5, XAUUSD)

Before you start
Use a hedging account and test on a demo account first.
Point values below assume a 2-digit gold price (1 point = 0.01). With a 3-digit broker, multiply all point settings by 10.
Attach the EA
In MT5, click File > Open Data Folder, then open MQL5 > Experts.
Copy Gold_Storm_PRO.mq5 into that folder.
Open the file in MetaEditor and press F7 to compile.
Back in MT5, refresh the Navigator and drag the EA onto an XAUUSD chart.
On the Common tab, tick "Allow Algo Trading". Also turn on the Algo Trading button in the toolbar.
Open the Inputs tab, adjust the settings and click OK.
Use a .set file (optional)
Open the Inputs tab and click Load.
Choose a .set file that matches your capital, account type and risk level.
Check the values, then click OK. Do not switch files while the EA has open trades or pending orders.
Input reference

Money Management
Input | Default | What it does |
Lot calculation | Risk % | "Risk % of balance per trade" sizes the lot from your balance and Stop Loss. "Fixed lot" always uses the Fixed lot value. |
Fixed lot | 0.01 | Lot size in Fixed lot mode. |
Risk per trade, % of balance | 5.0 | Loss if one trade hits its Stop Loss. The default is high; 0.5–1% is more cautious. If the result is below the broker minimum lot, the minimum lot is used, so real risk can be higher. |
Trade Session (GMT)
Input | Default | What it does |
Session start hour, GMT | 8 | New orders are placed from this hour. |
Session end hour, GMT | 15 | No new orders from this hour on. |
Tester: server GMT offset, hours | 2 | Broker server time zone. Used in the Strategy Tester only. |
Tester: +1 hour in EU summer time | On | Adds one hour to the offset in summer. Tester only. |
Orders
Input | Default | What it does |
New orders on every bar of | M5 | A new Buy Stop and Sell Stop pair is placed on each bar of this timeframe. |
Pending order lifetime, minutes | 15 | Unfilled orders are removed after this time. 0 = no limit. |
Max spread, times the average | 1.8 | If the spread exceeds the average of the last 100 ticks by this factor, pending orders are deleted and the EA pauses. 1 or less = off. |
Pause after a spread jump, minutes | 30 | Length of that pause. |
Stop Loss
Input | Default | What it does |
Stop Loss type | Percent | Percent of the price, fixed points, or no Stop Loss. |
Stop Loss, points | 400 | Used only when the type is Points. |
Stop Loss, % of the price | 1.0 | Used only when the type is Percent of the price. |
Take Profit
Input | Default | What it does |
Take Profit, points | 500 | 500 points = 5.00 in gold price. 0 = none. |
Trailing Stop
Input | Default | What it does |
Trailing Stop | On | Moves the Stop Loss to follow a winning trade. |
Trailing distance, points | 60 | Gap between the current price and the trailing Stop Loss. |
Trailing step, points | 10 | Minimum improvement before the Stop Loss is moved again. |
Trailing start (profit), points | 40 | Profit to lock in at the first move. Trailing begins at start + distance (100 points by default). |
Impulse Close
Input | Default | What it does |
Close on the correction after an impulse | On | Not active in this version. Changing it has no effect. |
Friday Control (GMT)
Input | Default | What it does |
Delete pending orders on Friday | On | Deletes pending orders and stops new ones for the rest of the week. |
Friday delete hour, GMT | 13 | Hour when this starts. |
Close positions on Friday | On | Closes open positions on Friday. |
Friday close hour, GMT | 16 | Hour when positions are closed. |
Trading Days
Input | Default | What it does |
Monday to Friday | On | Turn a day Off to stop new orders on that day. |
Pauses and News
Input | Default | What it does |
No new orders in the first week of January | On | Pauses new orders from 1 to 7 January. |
News filter | On | Uses the MT5 economic calendar. Live trading only, not in the Tester. |
Pause before the news, minutes | 120 | Pending orders are deleted and no new ones placed. Open positions stay open. |
Pause after the news, minutes | 5 | How long the pause lasts after the news. |
News impact | Keywords | Filter by keywords, High impact only, or Medium and High. |
News currencies | USD | Separate with ; for example USD;EUR. Empty = any. |
News keywords | PCE;CPI;Nonfarm | Event names to match in Keywords mode. |
Prop Drawdown
Input | Default | What it does |
Prop drawdown stop | Off | When On, closes trades and deletes orders if a limit below is reached. |
Daily drawdown, % | 4.5 | Measured from the balance at the start of the day. Stops until the next day. |
Max drawdown, % | 9.5 | Measured from the balance when the EA started. Restarting or reloading the EA can reset this protection, so monitor your account. |
Other Settings
Input | Default | What it does |
Max slippage, points | 0 | Allowed price deviation sent with trade requests. |
Magic number | 888 | Identifies this EA's trades. Use a different number for each chart. |
Order comment | Gold Storm PRO | Text attached to each order. |
Risk warning
Trading gold on margin is high risk. You can lose part or all of your capital. Several trades can be open at once, so total risk can be much higher than the risk per trade. Past or backtest results do not guarantee future profit.
