OIl XTrender MT5
Oil XTrender MT5 is a powerful Expert Advisor (EA) designed specifically for trading crude oil instruments such as XTIUSD or WTICOUSD. The EA applies strict signal confirmation using candlestick behavior combined with RSI, EMA, and ADX indicators, along with an adaptive averaging and dynamic take-profit system optimized for volatile and trending market conditions.
Although primarily optimized for crude oil instruments with 2-digit pricing, Oil XTrender MT5 can also be used on other symbols after proper backtesting and parameter adjustment.
The default settings have been carefully optimized based on long historical testing for crude oil markets.
⚠ Important NotesFor accurate backtesting results in MetaTrader 5 Strategy Tester, it is strongly recommended to use complete 1-minute (M1) historical data.
MT5 builds higher timeframe data from M1 history. If M1 data is missing, the tester will generate synthetic 1-minute data, which may reduce backtesting accuracy.
Using complete M1 data ensures realistic simulation and reliable strategy evaluation.
✅ Recommended Settings• Attach the EA to an M30 chart
• The signal logic operates on M1, while M30 is used for trend filtering and market condition validation
• Use default settings for crude oil symbols (for example XTIUSD with 2-digit pricing format such as 70.25)
• Run the EA on low-spread ECN brokers
• A VPS running 24/7 is recommended for stable operation
🔑 Key Features• Optimized for crude oil symbols with 2-digit pricing
• Strict candlestick confirmation logic before opening trades
• Session-based trading with daily volatility filtering
• Dynamic lot sizing based on account equity
• Structured multi-level averaging system
• Tiered floating take profit system based on order sequence
• Built-in drawdown protection (percentage and dollar based)
• Spread filtering to avoid unfavorable market conditions
⚙ External Input Parameters🕒 Trading Sessions
EnableSession1
Session1StartTime
Session1EndTime
EnableSession2
Session2StartTime
Session2EndTime
🔻 Drawdown & Spread Control
EnableCloseAllOnDrawdown
MaxDrawdownPercent
EnableCloseAllOnDrawdownDollar
MaxDrawdownDollar
MaxSpread (in points)
📈 Lot & Position Sizing
UseManualFirstLot
ManualFirstLot
UseAutomaticLot
EquityPerBaseLotSize
BaseLotSize
LotMultiplierAboveOrder3
💰 Take Profit Management
BaseTP_Lot001
TP_ExtraOrder2
TP_ExtraOrder3
TP_ExtraOrder4
TP_IncrementPerOrderAbove4
🔁 Averaging System
MaxAveragingPositions
InitialAveragingDistance
DistanceMultiplier
📊 Daily Volatility Filter
EnableDailyRangeFilter
DailyRangeToOpenPosition
⏱ Timeframe Settings
TimeframeSignal
TimeframeEMAFilter
⚙ Miscellaneous
Slippage
MagicNumber
To preserve the originality of this EA, internal indicator names and core logic are intentionally protected. This prevents unauthorized copying and ensures the exclusivity of the trading strategy.
⚠ Disclaimer• Always test the EA on a demo account before using it on a live account
• Perform backtesting using complete M1 historical data
• Live trading performance may vary depending on broker conditions, spread, execution speed, latency, and market liquidity

