OilVector X is a Buy Stop EA for oil. Each trading day, after the new-day time, it places one Buy Stop order at the previous day's high. This guide explains every setting in the Inputs tab, in the same order as the EA, so you can adjust it with confidence.
Note: the stop loss (420 pips), take profit (150 pips) and break-even rule (move the stop loss to open + 2 pips once price is 10 pips in profit) are built into the EA. They cannot be changed in the Inputs tab.

General
EA_Comment_Base — Text used as the beginning of every order comment. The final comment is this text plus the strategy name, for example "OilVectorX Oil A". It only helps you recognise the orders in your history. Default: OilVectorX.
Magic — The magic number is the ID the EA uses to find its own orders and positions. The EA only manages, closes and counts trades with this number. If you run the EA on more than one chart or account profile, use a different Magic on each so they never interfere with one another. Default: 107000.

Dashboard
ShowDashboard — Shows or hides the information panel on the chart. The panel displays balance, equity, floating profit, closed profit, number of trades, win rate, profit factor, closed drawdown, open and pending orders, and a small equity curve. Default: true.
DashboardInTester — By default the panel is hidden in the Strategy Tester to keep backtests fast. Set this to true if you want to see it during a visual backtest. It is never drawn during optimization. Default: false.
Portfolio Lot Sizing
PortfolioLotMode — Chooses how the lot size is calculated. 0 means a fixed lot, taken from PortfolioFixedLot. 1 means the lot is calculated from a percentage of your account balance, using PortfolioRiskPct and the stop loss distance. Default: 0.
PortfolioFixedLot — The lot size used when PortfolioLotMode is 0. Default: 0.01. Make sure you check how many barrels one lot equals at your broker, because the money lost on a stop loss depends on it.
PortfolioRiskPct — The percentage of your balance you are willing to lose if the stop loss is hit, used when PortfolioLotMode is 1. Default: 1.0. If the calculated lot is smaller than your broker's minimum lot, the EA rounds up to the minimum, so the real risk can be higher on small accounts.
Prop Firm Settings
These settings add account protection. They were designed for prop firm challenges, but they also work as a safety net on a normal account.
PropFirmMode — Turns the protection on or off. When it is off, all other Prop settings are ignored. Default: false.
PropResetState — The EA remembers its starting balance, the day's starting balance and any halt status, even after a restart. Set this to true to clear that saved data when the EA loads, then set it back to false. Use it after a halt or when you start with a new balance. Default: false.
PropMaxDailyLossPct — The maximum loss allowed in one day, as a percentage of the balance at the start of that day. If equity falls this far, the EA closes all its trades, deletes its pending orders and does not trade again until the next day. Set 0 to disable. Default: 4.0.
PropMaxTotalLossPct — The maximum total loss allowed, as a percentage of the starting balance saved by the EA. If equity falls this far, the EA closes everything and stops permanently until you reset it with PropResetState. Set 0 to disable. Default: 8.0.
PropMaxDailyProfitPct — A daily profit lock. If the day's gain reaches this percentage, the EA closes its trades and pauses until the next day. Set 0 to disable. Default: 0.0.
PropRandomizeEntry — Moves the entry price by a small random amount, and shifts the stop loss and take profit by the same amount. This stops several accounts from placing exactly identical orders. Default: false.
PropRandomizeSL — Adds a small random change to the stop loss only. Default: false.
PropRandomizeTP — Adds a small random change to the take profit only. Default: false.
PropRandEntryPips — The largest random shift, in pips, applied to the entry when PropRandomizeEntry is on. The shift can be up or down. Default: 2.0.
PropRandSLPips — The largest random change, in pips, applied to the stop loss when PropRandomizeSL is on. Default: 3.0.
PropRandTPPips — The largest random change, in pips, applied to the take profit when PropRandomizeTP is on. Default: 3.0.
The three randomize options only work when PropFirmMode is true.
Shared Timing
All times use your broker's server time, the same clock shown in the Market Watch window.
BrokerUTCOffset — The broker's time difference from UTC in hours. In this version the EA does not use this value, so changing it has no effect. Default: 2.
EOD_CancelTime — The end-of-day time, written as HH:MM. On Fridays and on the last day of each month, after this time the EA closes all its open positions and deletes its pending orders. Default: 21:00.
NewDay_OrderTime — The time after which the EA places the day's Buy Stop order, written as HH:MM. The order is based on the previous day's high (on Monday, Friday's high). Default: 00:15.
TradeFridayNormally — When false, the EA does not place a new order on Friday. When true, it trades on Friday like any other day, and the position is closed at the end-of-day time. Default: false.
Important Notes
A new order can be placed each day, so older positions may still be open. Up to four positions can be open together between Monday and Thursday, and your real risk can be several times the risk of a single trade.
Always test any change on a demo account first. Past or backtest results do not guarantee future profit, and trading oil on margin carries a high level of risk.
