The terminal must stay connected to the broker. A weak or frequently disconnecting connection can delay orders, license checks, and trade management.
IdeaVanta Trading Lab
VantaBox
A simple MetaTrader 5 user guide: installation, license setup, tested pair settings, and a clear explanation of every option.
Before installation
What VantaBox needs to run
VantaBox is an MT5 Expert Advisor. It can only manage trades while MetaTrader 5 is open, connected, and allowed to trade.
The computer must remain powered on while the EA is expected to work. If MT5 is closed, the EA cannot open, manage, or close trades.
For more reliable operation, use a VPS close to your broker server. This is especially useful if your home internet, laptop, or power supply is not stable.
Installation
First setup
Copy the EA into MetaTrader 5
- Open MT5.
- Select File -> Open Data Folder.
- Open
MQL5 -> Experts. - Place
VantaBoxEA_v1_3.ex5in this folder. - Restart MT5 or click Refresh in the Navigator window.
Allow the license check
The EA needs this permission to check your trading account. Without it, a new session cannot start.
https://ideavanta.com
- Open Tools -> Options, or press
Ctrl+O. - Open the Expert Advisors tab.
- Enable Allow WebRequest for listed URL.
- Add this exact address:
https://ideavanta.com. - Click OK.
https://. Do not add spaces or extra characters.Enable automated trading
- Enable Algo Trading on the top MT5 toolbar.
- Drag VantaBox EA from Navigator onto the required pair chart.
- In the Common tab, allow algorithmic trading.
- Check the settings and click OK.
auto trading disabled by client, and the EA will not place orders.Add the EA before the box starts
Attach VantaBox EA before RangeStart. For example, if the box starts at 03:00, the EA must already be on the chart before 03:00 broker server time.
License
How to check the license
Successful check
After the EA is added to a chart, it checks the trading account number. A successful check shows:
A matching message also appears in the Experts tab. This means the account is allowed and the EA can start a new trading session.
TESTER MODE / network check unavailable and allows historical testing without a server log entry. On a normal chart, the license check is required.Choose an instrument
Tested pairs and recommended settings
VantaBox EA has been tested on USDJPY, GBPUSD, and XAUUSD. Each instrument needs its own box time window. Use an M1 chart. All times below use the broker server time.
US Dollar / Japanese Yen
Two USDJPY versions have been tested. Choose one complete version and do not mix their settings.
British Pound / US Dollar
Gold / US Dollar
More pairs and time windows will be published later. Proper testing needs a large amount of historical data and takes time, so new settings are added only after they have been checked.
A suggested 1% risk does not guarantee profit or prevent drawdown. Before live trading, test the settings in Strategy Tester and on a demo account with your broker.
EA settings
Every setting in simple words
Each field is explained briefly: what it does, why it is needed, and what value is normally used.
RISK - risk and Stop Loss
Controls the position size and possible loss.
RiskModePercent uses a percentage of the balance. Fixed money amount uses a fixed cash amount. Fixed lot always uses the same lot size. For a clear cash risk, use Fixed money amount.
RiskValueThe meaning depends on RiskMode: 20 means $20, 2.0 means 2%, and 0.10 means a 0.10 lot.
StoplossModeOpposite side of the box places the stop on the other side of the box. Percentage uses only part of the box height.
StoplossPercentageUsed only when StoplossMode = Percentage. 100% means the full box. 50% means half of the box.
TIME - trading times
All times use the broker server clock, not your computer clock.
RangeStartHourFrom this time, the EA begins collecting the highest and lowest price.
RangeStartMinuteUsed together with RangeStartHour. Values 3 and 5 mean a 03:05 start.
RangeEndHourAfter this time, the EA checks the box and prepares the orders.
RangeEndMinuteUsed together with RangeEndHour.
DeleteOrdersHourIf Buy Stop and Sell Stop have not opened a trade, the EA removes them at this time.
DeleteOrdersMinuteUsed together with DeleteOrdersHour.
ClosePositionHourThis prevents the trade from staying open after the selected time.
ClosePositionMinuteUsed together with ClosePositionHour.
RANGE SIZE - box size filter
Skips boxes that are too small or too large.
MinimumRangeIf the box is smaller, the EA skips that day. A value of 0 disables the minimum limit.
MaximumRangeIf the box is larger, the EA does not trade because the range is considered too wide.
BREAKEVEN - protect an open trade
Moves Stop Loss after price moves into profit.
UseBreakeventrue lets the EA move Stop Loss. false keeps the original Stop Loss.
BreakevenTrigger1.0 means price has moved into profit by the same distance as the original risk. This is +1R.
BreakevenBuffer0 places the stop at the entry price. 0.1 locks about +0.1R and may cover part of the trading costs.
DYNAMIC RISK - automatic risk changes
An optional mode that changes risk and Stop Loss based on box size.
UseDynamicRiskWhen true, the four settings below are used. If you always want the same risk, leave it false.
SmallBoxThresholdIf the box is not larger than this value, risk is multiplied by SmallBoxRiskMultiplier.
SmallBoxRiskMultiplier1.5 changes a $20 risk into $30. Use this carefully.
BigBoxThresholdWhen the box reaches this size, BigBoxStoplossPercent is used.
BigBoxStoplossPercent50 places the stop at half of the box instead of the full opposite side.
PROP FIRM - extra controls
Options for prop firm rules and small execution adjustments.
EntryDelayMinutes0 means immediately. 5 means wait five minutes after the box ends.
StoplossOffsetMaxPipsMoves the stop farther away from the box by the selected number of pips.
ClosingTimeOffsetA positive number closes later. A negative number closes earlier than ClosePosition.
CloseAtEquityThis is the total account equity, not the profit amount. 0 disables this option.
DAY - trading days
Choose which weekdays the EA is allowed to trade.
TradeMondaytrue means trade. false means skip the day.
TradeTuesdaytrue means trade. false means skip the day.
TradeWednesdaytrue means trade. false means skip the day.
TradeThursdaytrue means trade. false means skip the day.
TradeFridaytrue means trade. false means skip the day.
OTHER - general settings
Order identification, limits, and chart information.
MagicNumberDifferent strategies on the same account should use different numbers. The same Magic Number on different accounts is not a problem.
BoundaryToleranceHelps open a position if price is already very close to, or slightly past, the box edge when orders are placed.
MaxLotSizeProtects against a very large position caused by bad symbol data or a very tight Stop Loss.
NotesYou can enter the setup name, pair, or account. It does not change the trading logic.
ShowDashboardDisplays the box, license status, and current EA status.
ACCESS - license settings
These values are already configured. Normal users should not change them.
LicenseCheckEnabledIt must stay true for live or demo account use.
LicenseServerUrlThe EA sends the account number here to check access.
LicenseAgentIdIt tells the server that VantaBox EA is being checked.
LicenseCheckIntervalMinutes60 means one check every hour.
LicenseAllowNetworkGraceIf the license was recently approved, a short network problem will not immediately stop a new session.
LicenseNetworkGraceHoursThis works only after a previous successful license check.
LicensePopupAlertsHelps you quickly see OK, DENY, or a connection error.
LicenseFileLogEnabledUseful when troubleshooting a user problem.
LicenseLogFileNameThere is no need to change it. The file is created in the terminal Files folder.
VISUAL - box appearance
Changes only the chart display, not the trading strategy.
ShowBoxVisualfalse hides the rectangles, but the trading logic continues to work.
KeepPreviousBoxesUseful for reviewing previous trading days.
FillBoxVisualfalse shows only the box border.
FormingBoxColorShows the current range before RangeEnd.
PassedBoxColorThe EA is allowed to trade this box.
SkippedBoxColorShows that the range failed the MinimumRange or MaximumRange filter.
BoxBorderWidthThis changes only the appearance.
Risk examples
RiskValue = 20RiskValue = 2.0RiskValue = 0.10The real cash risk may be slightly different because of the broker's minimum lot, lot step, commission, and rounding.
How it works
What the EA does
- Builds the boxCollects the highest and lowest price between RangeStart and RangeEnd.
- Checks the box sizeSkips a range that is too small or too large.
- Places two ordersBuy Stop above the box and Sell Stop below it.
- Keeps one directionAfter one position opens, the opposite pending order is removed.
- Ends the daily sessionRemoves pending orders and closes the position at the selected times.
Important rules
What you should remember
If this symbol already had a position, order, or trade today, a new entry is blocked regardless of Magic Number.
After a settings change, the current box is removed and the EA waits for the next trading day.
Different spreads may cause Buy Stop or Sell Stop to open at slightly different times.
If the license ends during an active daily session, the EA continues managing the position until the session is finished.
Troubleshooting
Common messages and solutions
auto trading disabled by client
Enable Algo Trading and allow algorithmic trading in the EA properties.
LICENSE ERROR / webrequest
Add https://ideavanta.com under Tools -> Options -> Expert Advisors -> Allow WebRequest.
LICENSE DENY
The trading account is not registered, the license was revoked, or it has expired. Contact the administrator.
Entry blocked: symbol already has today's activity
This symbol already had a trade or order today. The EA will continue on the next trading day.
Attached after today's range start
The EA was added after the box started. Leave it on the chart and wait for the next trading day.
TESTER MODE
This is normal in Strategy Tester. MT5 blocks the online license request there, but historical testing still works.
Setup checklist