Price Dynamics
- Experts
- Mounir Benelhadj-djelloul
- Versione: 1.45
- Aggiornato: 23 febbraio 2026
- Attivazioni: 5
🚀 Price Dynamics MT5 - Advanced Volatility Engine & Trend Scalper
Important note: It works best whith XAUUSD, minimum deposit: 50-100 USD with 0.01 Lot on the Asian and European sessions,and especially on days
when there is no major economic news, such as Mondays and Tuesdays.
My preferred scalping settings:
XAUUSD: Leverage 1:500
InpLot: 0.01
InpSensitivity: 8.0
InpSTuner: 30
InpMultTP1: 0.1 (or 0.02)
InpMultTP3: 0.3 (or 0.1)
Timeframe: M15
Day: Monday
Session: Asian
Balance: Minimum 50 USD
Price Dynamics is a high-performance Expert Advisor for MetaTrader 5, specifically engineered to navigate the markets using a sophisticated "Entry-Retest-Expansion" logic. By leveraging the Average True Range (ATR) for dynamic price analysis, the EA avoids the common pitfall of chasing price action and instead enters at optimal exhaustion points.
The system is now fully optimized (Version 1.16) with institutional-grade risk management filters, ensuring stability even on highly volatile assets like XAUUSD (Gold) and Major Forex Pairs.
🛠 Key Features (New v1.16)
-
Automatic Risk-Free Transition (Break-Even): Once the first target (T1) is secured, the EA automatically moves the Stop Loss for the remaining position to the entry price. This locks in profit and ensures a "risk-free" run for the final expansion target.
-
Dual-Phase Execution: Every signal opens a split-position strategy.
-
Position T1: Banks quick profits to stabilize the account.
-
Position T3: Captures major trend expansions for high Reward-to-Risk ratios.
-
-
Zero-Stop-Out Guard: An advanced margin-protection algorithm that dynamically calculates if a trade is safe for your balance. If the volatility (ATR) creates a Stop Loss too wide for your current margin, the EA filters the trade to protect your capital.
-
Smart Volatility Adaptation: Stop Loss and Take Profit levels are never fixed; they breathe with the market volatility, expanding during high movement and tightening during consolidation.
-
Version 1.17 (the Last) - Precision & Control Update
-
One Trade Per Bar Logic: Added a smart filter to prevent immediate re-entry on the same candle. This ensures the EA respects manual closures and avoids "over-trading" during periods of high volatility or price consolidation.
-
Enhanced Manual Control: The EA now detects if a position was closed (by the user, TP, or SL) and will wait for a fresh new signal on the following candle before considering a new entry.
-
Bug Fix: Resolved the "Re-entry Loop" where positions would sometimes reopen instantly after a Take Profit was hit.
-
Performance Optimization: Improved execution speed by refining the candle-timing checks within the OnTick event.
-
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
🚀 How Price Dynamics Works: The Logic Behind the Trades
Price Dynamics is not based on "guesswork" or lagging indicators. It is a Volatility-Adjusted Momentum Breakout system. The EA enters the market when price equilibrium is broken, signaling a new directional move.
The decision-making process is based on three core pillars:
1. Candle Range Theory (The Entry Signal)
The EA treats the previous candle's range as a "frontier."
-
The Logic: If the market breaks above or below the previous candle’s high or low, it confirms that one side (buyers or sellers) has gained temporary control.
-
The Trigger:
-
BUY: Current Price ( Ask ) > Previous Candle's High ( High[1] ).
-
SELL: Current Price ( Bid ) < Previous Candle's Low ( Low[1] ).
-
2. ATR Volatility Engine (The Sensitivity)
This is the "brain" of the EA. Instead of using fixed pips for Stop Loss and Take Profit, it uses the Average True Range (ATR) to measure market energy.
-
Dynamic Adaptation: The EA calculates the average volatility of the last X candles (defined by InpSTuner ).
-
The Multiplier: Through InpSensitivity , the EA expands or tightens its levels.
-
In a calm market, levels are tighter to catch small moves.
-
In a volatile market (during news), levels expand automatically to avoid being stopped out by "market noise."
-
3. Split-Position Execution & Risk Management
To maximize profitability while protecting capital, every signal executes two separate positions:
-
Position T1 (The Scalp): Targeted at a shorter distance to secure immediate profits and stabilize the account.
-
Position T3 (The Runner): Aimed at capturing major trend expansions for a high Reward-to-Risk ratio.
-
Automatic Protection: The moment T1 hits its Take Profit, the EA immediately moves the Stop Loss of T3 to the Entry Price (Break-Even). This ensures that once the first target is met, the remaining trade is "Risk-Free."
Why is this strategy robust?
-
No Lag: It reacts to real-time Price Action rather than delayed indicators.
-
Capital Preservation: Includes a built-in Margin Filter (30% max use) and a Gold-specific Stop-Out guard.
-
One-Trade-Per-Bar: Prevents over-trading by waiting for a fresh candle before seeking a new signal.
Here is the technical breakdown of the mathematical calculation the EA performs for every trade. This is what allows the bot to adapt to any asset (Forex, Gold, Indices).
The Core Formula:
The Step-by-Step Process:
-
Volatility Measurement: The EA calculates the ATR (average candle range) over the selected period ( InpSTuner ). If the ATR is 50 points, it means that, on average, candles move by 50 points.
-
Applying the Coefficient: It multiplies this ATR by your InpSensitivity .
-
Example: 50 points×8.0=400 points SL distance.
-
-
Gold Safety (The Cap): The EA checks that this distance does not exceed 1.5% of the current price. If the calculation results in 2%, it automatically caps the SL at 1.5% to prevent a Stop Out.
-
Target Calculation (TP): Once the SL is set, the Take Profits are calculated proportionally:
-
TP1=Price+(SL_Distance×InpMultTP1)
-
TP3=Price+(SL_Distance×InpMultTP3)
-

