NEXA Obv Divergence Break
- Experts
-
Park Seongcheon
Hello,
My name is Park Sung Chan, a developer specializing in MetaTrader 5 algorithmic trading systems.
I design and research long-term, reliable automated trading models based on the structural characteristics and statistical patterns of financial markets. - Version: 1.0
- Activations: 5
Product Overview
NEXA OBV Divergence Break is an Expert Advisor for MetaTrader 5.
The EA uses OBV divergence, channel breakout, and MACD confirmation to evaluate trading signals. The default signal timeframe is M15. The system checks the difference between price movement and OBV flow, then confirms the signal with a channel breakout and MACD direction.
After entry, the EA manages positions with ATR-based stop loss, RR-based take profit, Break Even, and Trailing Stop functions.
Strategy Overview
The system is designed to detect situations where OBV flow changes before price movement.
A Buy setup is based on a structure where price makes a lower low while OBV makes a higher low. After that, the EA checks whether price breaks above the channel high and whether MACD confirms the upward direction.
A Sell setup is based on a structure where price makes a higher high while OBV makes a lower high. After that, the EA checks whether price breaks below the channel low and whether MACD confirms the downward direction.
Before sending an order, the EA checks spread, ATR conditions, trading time, existing positions, daily trade limits, and consecutive loss protection.
Main Features
OBV divergence signal logic
Channel breakout confirmation
MACD direction confirmation
Higher timeframe EMA trend score
ATR-based stop loss calculation
RR-based take profit calculation
Break Even function
Trailing Stop function
Spread filter
Trading time filter
Daily trade limit
Daily loss limit
Cooldown after consecutive losses
Fixed lot and risk-based lot calculation options
Risk Management
The stop loss is calculated using ATR.
The take profit is calculated using the RR setting. The EA may apply different target ratios depending on the signal grade.
When a position reaches a specified profit range, the Break Even function may move the stop loss closer to the entry price. After Break Even is applied, the Trailing Stop function may adjust the stop loss according to market movement.
The EA includes the following protective conditions.
Maximum spread limit
Minimum ATR condition
Maximum stop loss distance limit
One position per symbol and magic number
Duplicate entry prevention on the same signal bar
Daily maximum trade limit
Daily loss limit
Cooldown after consecutive losses
Trading time filter
Recommended Use
This EA is designed for M15 chart operation by default.
Users should check the symbol specifications, broker spread, server time, and trading conditions before using the EA. It is recommended to test the settings in the Strategy Tester and on a demo account before live use.
For symbols such as GOLD, trading conditions may vary depending on the broker. Users should check spread, minimum lot, Stop Level, Tick Value, and other symbol specifications.
Input Parameters
General Settings
InpSymbol
Specifies the trading symbol. If left empty, the EA uses the current chart symbol.
InpSignalTF
Sets the timeframe used for signal calculation. The default value is M15.
InpAllowBuy
Enables or disables Buy trades.
InpAllowSell
Enables or disables Sell trades.
InpMagicNumber
A unique number used by the EA to identify its own orders and positions.
InpDeviationPoints
Maximum allowed price deviation for market orders.
Entry Logic
InpOBVDivLookback
Number of past bars used to detect OBV divergence.
InpChannelPeriod
Period used to calculate the channel high and channel low.
InpMACDFast
Fast EMA period for MACD.
InpMACDSlow
Slow EMA period for MACD.
InpMACDSignal
Signal period for MACD.
Trend / Regime
InpUseHTFTrendScore
Enables or disables higher timeframe trend scoring.
InpTrendTF
Timeframe used for higher timeframe trend confirmation.
InpTrendEMAPeriod
EMA period used for higher timeframe trend confirmation.
Risk / Lot
InpUseFixedLots
If true, the EA uses a fixed lot size. If false, the EA calculates lot size based on risk percentage.
InpFixedLots
Fixed lot size.
InpRiskPercent
Account risk percentage used when risk-based lot calculation is enabled.
InpMaxLots
Maximum lot size allowed for the EA.
SL / TP
InpATRPeriod
ATR calculation period.
InpSL_ATR_Mult
ATR multiplier used to calculate stop loss distance.
InpBaseRR
Base RR value used to calculate take profit distance.
InpMinSLPoints
Minimum stop loss distance in points.
InpMaxSLPoints
Maximum stop loss distance in points. If set to 0, this limit is disabled.
InpMinATRPoints
Minimum ATR condition required to allow entries.
InpMaxATRPoints
Maximum ATR condition. If set to 0, this limit is disabled.
Safety Filters
InpMaxSpreadPoints
Maximum allowed spread in points.
InpMaxDailyTrades
Maximum number of entries allowed per day.
InpDailyLossLimitPct
Daily closed loss limit as a percentage of account balance.
InpMaxConsecutiveLoss
Maximum number of consecutive losses before cooldown is applied.
InpLossCooldownBars
Number of bars to wait after the consecutive loss limit is reached.
Trading Time Filter
InpUseTimeFilter
Enables or disables the trading time filter.
InpTradeStartHour
Trading start hour based on server time.
InpTradeEndHour
Trading end hour based on server time.
InpAllowMonday
Enables or disables trading on Monday.
InpAllowTuesday
Enables or disables trading on Tuesday.
InpAllowWednesday
Enables or disables trading on Wednesday.
InpAllowThursday
Enables or disables trading on Thursday.
InpAllowFriday
Enables or disables trading on Friday.
BE / Trailing
InpUseBreakEven
Enables or disables the Break Even function.
InpBETriggerR
Profit range in R required to activate Break Even.
InpBEBufferPoints
Additional points added beyond the entry price when Break Even is applied.
InpUseTrailingStop
Enables or disables the Trailing Stop function.
InpTrailingATRMult
ATR multiplier used to calculate the Trailing Stop distance.
InpTrailingMinPoints
Minimum Trailing Stop distance in points.
InpMinModifyPoints
Minimum stop loss improvement required before modifying the stop loss.
InpModifyThrottleSec
Minimum waiting time between stop loss modification requests.
Important Notes
This EA is an automated trading tool and does not guarantee any specific result.
Trading results may vary depending on market conditions, broker environment, spread, execution quality, symbol specifications, and user settings.
Users should test the EA in the Strategy Tester and on a demo account before using it on a live account.
All trading decisions and risk management remain the responsibility of the user.
