This website requires JavaScript.
Explore
Documentation
AlgoBook
Freelance
Forum
Help
Help
Register
Sign in
darashikoh
/
mql5
Watch
1
Star
0
Fork
You've already forked mql5
0
Code
Issues
Pull requests
Projects
Releases
Packages
Wiki
Activity
Actions
ERMT_v6.6
mql5
/
Experts
/
Advisors
/
Modules
/
RiskManager.mqh
755 lines
54 KiB
MQL5
Raw
Permalink
Normal View
History
Unescape
Escape
Summary of Changes to Fix Zero Stop Distance Error The error "Invalid stop distance: 0.0" was occurring because the entry signals were being generated with invalid (zero) stop distances. This happened when the market volatility (ATR) value was 0 or not properly calculated. Key Changes Made (Version 6.5.1): Added GetValidATR() Helper Method in EntrySystem.mqh: This method ensures we always have a valid ATR value Includes multiple fallback mechanisms: Direct ATR calculation if market data is invalid 0.1% of current price as a fallback Minimum 20 pips for forex pairs Updated All Entry Strategy Methods to use GetValidATR(): CheckMACrossover() CheckMAPullback() CheckMomentum() CheckContrarian() CheckBreakout() CheckMeanReversion() CheckMultiStrategy() Enhanced Signal Validation in CheckSignal(): Added explicit check for stop_loss_distance > 0 Signal is rejected if stop distance is invalid Better error logging to identify which strategy produced invalid signals Improv
2025-07-30 13:32:29 +01:00
<EFBFBD>
<EFBFBD>