Stop and reverse advanced EA
- Experts
- Maksim Domnyshev
- Versione: 1.0
- Attivazioni: 10
Volatility-Driven Entries for Precise Timing
Indicator-Free Entry Logic Rather than relying on lagging technical indicators, SNR Advanced identifies trade opportunities through real-time analysis of price volatility. It evaluates recent 30-minute candles (adjustable via the VolatilityPeriod parameter) and triggers entries only when price movement exceeds a user-defined threshold (VolatilityMultiplier). This approach ensures trades are initiated during high-momentum conditions—bullish for long positions, bearish for short ones—capturing breakouts and emerging trends at their earliest stages. Users can choose between fixed-direction modes (Buy-only or Sell-only) or an auto mode that dynamically selects direction based on the prevailing candle bias. The result is a clean, responsive system grounded in actual market behavior—not delayed signals.
Adaptive Risk Management SNR Advanced features a flexible risk engine designed to align with your account size and evolving market dynamics, helping preserve capital while supporting growth:
- Percentage-Based Lot Sizing: Lot sizes are automatically calculated using your current balance, along with MaxLossPercent and RiskPercent settings. For more predictable exposure, you can switch to fixed lot sizing (UseFixedLot = true)—ideal for conservative or controlled strategies.
- Time-Aware Trade Windows: Define active trading hours (Starttime to Endtime) to avoid periods of low liquidity. Additionally, after a specified time (e.g., ProfitTime = 18:00), the EA shifts to a stricter daily profit target (FinalProfitPercent of balance) to encourage disciplined position closure.
- Tiered Profit Targets: Secure gains progressively by setting an early exit level (EarlyProfitPercent, e.g., 50% of balance) for quick wins, followed by a higher final target (FinalProfitPercent, e.g., 100%) later in the day. This layered approach helps lock in profits while limiting overexposure.
- Controlled Reverse-Cycle Recovery: In the event of adverse price movement, the EA can apply incremental lot increases (LotIncrement) or enhanced multipliers (ReverseMultiplier) starting from a defined cycle (ReverseCycleStart, e.g., cycle 4). However, it avoids uncontrolled loss-chasing: once the enhanced reverse threshold is reached, the system targets a minimal profit (BreakEvenProfit, e.g., $1 above the cycle-start balance) for a safe exit. After hitting this target, the cycle resets automatically. This hybrid recovery method is especially well-suited for volatile instruments like EURUSD or GBPJPY. Additional Functionality Further customization options include:
A toggle to enable or disable Friday trading (TradeOnFriday) Single-symbol mode (SingleSymbolOnly) for focused trading on one instrument Magic number filtering (UseMagicForTakeover) for precise order management The EA also includes built-in slippage control, trailing stops, and on-chart displays showing daily profit, balance, and cycle status—giving you full transparency at a glance.
Two Operational Modes – Designed for Your Workflow
Fully Automatic Mode: Configure your preferred parameters—volatility thresholds, risk levels, and trading hours—and let SNR Advanced manage the entire process. From entry detection to reversal handling and profit-based exits, the system operates independently. Backtested across major currency pairs, it’s ideal for hands-off traders seeking consistent, automated performance.
Manual Trade Assistance Mode: Disable magic number filtering (UseMagicForTakeover = false) to allow the EA to take over any open or pending orders on the symbol—regardless of origin. It then applies its advanced risk tools, including trailing stops, reverse-cycle logic, and tiered profit exits, to protect and optimize your manual trades. This mode is perfect for discretionary traders who identify their own setups but want automated safeguards against drawdowns or reversals.
Special note: ready to send set files for optimal results.
Description of input parameters
Type (default: 2)
Trading mode:
0 = Buy only
1 = Sell only
2 = Auto (determine direction based on the first sufficiently volatile candle)
- MaxLossPercent (default: 100.0)
Maximum allowable risk per trade as percentage of account balance (used in some lot calculations). - RiskPercent (default: 100.0)
Risk percentage used to calculate dynamic lot size (when UseFixedLot = false).
Very important: usually should be ≤ 100 for strategy validation. - LotIncrement (default: 1.5)
Multiplier for increasing lot size after each losing trade (martingale-style).
Recommended ≤ 2.0 for safer testing. - OrderToIncLots (default: 1)
After how many losing trades the lot size should start increasing (usually 1 = increase immediately after first loss). - TakeProfit (default: 100)
Take-profit distance in points (will be adjusted for symbol type if AdjustTPSLToSymbol = true). - StopLoss (default: 500)
Stop-loss distance in points (also adjusted for symbol type when enabled). - Magic (default: 770)
Magic number — used to identify positions and orders belonging to this EA. - Slippage (default: 3)
Maximum allowed slippage in points when sending market orders.
Trading Time Filter
- Start_time (default: "00:00")
Time (HH:MM) when trading is allowed to begin each day. - End_time (default: "23:59")
Time (HH:MM) when trading stops for the day.
Volatility-based Entry Filter (used when Type = 2 or volatility check is active)
- VolatilityPeriod (default: 30)
Period in minutes for analyzing candle size (currently fixed to last closed M30 candle). - VolatilityMultiplier (default: 2.0)
How many times larger than TakeProfit (in points) the candle must be to be considered "volatile enough" for entry.
Daily Profit Protection & Early Exit
- EarlyProfitPercent (default: 30.0)
Profit target in % of current balance — after ProfitTime trading may stop early if reached. - FinalProfitPercent (default: 50.0)
Hard daily profit target in % of balance — EA closes everything when reached. - ProfitTime (default: "18:00")
Time of day after which the EA switches to checking the EarlyProfitPercent target.
Reverse / Martingale Enhancement (after several losses)
- ReverseCycleStart (default: 10)
From which cycle number the stronger multiplier (ReverseMultiplier) starts being used. - ReverseMultiplier (default: 1.5)
Lot size multiplier used in "enhanced reverse" mode (after ReverseCycleStart losses).
Recommended ≤ 2.0. - BreakEvenProfit (default: 1.0)
Target profit in account currency after which the reverse cycle is considered successful and reset (usually small value like $1–$5).
Safety & Compatibility Flags
- TradeOnFriday (default: false)
Allow trading on Fridays (usually disabled for strategy validation). - SingleSymbolOnly (default: true)
When true — EA will not open new trades if any other symbol already has open positions/orders with matching magic. - UseMagicForTakeover (default: true)
When true — EA only manages positions/orders with exactly the same Magic number.
When false — it can manage any position on the current symbol (dangerous in multi-EA environments). - UseFixedLot (default: false)
When true — uses fixed lot size (FixedLotSize) instead of risk-based calculation. - FixedLotSize (default: 0.01)
Lot size to use when UseFixedLot = true. - AdjustTPSLToSymbol (default: true)
Automatically multiply TP/SL distances depending on symbol type:
×10 for metals (XAU, XAG…), JPY pairs
×5 for cryptocurrencies
×1 for normal forex pairs - CheckMarginBeforeTrade (default: true)
Before opening any position or pending order — check if there is enough free margin (with 10% buffer).
Very important safety feature.
Set for major currency pairs:
| Type=2 | ||||||||||
| MaxLossPercent=100 | ||||||||||
| RiskPercent=5 | ||||||||||
| LotIncrement=2.5 | ||||||||||
| OrderToIncLots=1 | ||||||||||
| TakeProfit=250 | ||||||||||
| StopLoss=250 | ||||||||||
| Magic=770 | ||||||||||
| Slippage=3 | ||||||||||
| Start_time=00:00 | ||||||||||
| End_time=00:00 | ||||||||||
| VolatilityPeriod=30 | ||||||||||
| VolatilityMultiplier=1.2 | ||||||||||
| EarlyProfitPercent=5 | ||||||||||
| FinalProfitPercent=1 | ||||||||||
| ProfitTime=18:30 | ||||||||||
| ReverseCycleStart=3 | ||||||||||
| ReverseMultiplier=4 | ||||||||||
| BreakEvenProfit=0.5 | ||||||||||
| TradeOnFriday=false | ||||||||||
| SingleSymbolOnly=true |
