When you post code please use the CODE button (Alt-S) !
Your topic has been moved to the section: Expert Advisors and Automated Trading
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hello,
I'm encountering an issue with my Martingale implementation in my EA. The lot size progression is inconsistent, even though I set the multiplier to 2.0 (or other values). Instead of the expected progression ( 0.1 , 0.2 , 0.4 , 0.8 , 1.6 for 2.0 multiplier), the lot sizes jump unexpectedly (e.g., 0.1 , 0.8 , 1.6 ). This happens even when I ensure the MartingaleMultiplier and Martingale_CurrentLevel are set properly.
Here’s a summary of my current setup:
Inputs:
Expected Behavior: The lot size should progress as:
Observed Behavior:
Lot Size Calculation Code: Here's the core function for calculating lot size:
Has anyone encountered this before? Are there specific areas in my implementation that need adjustment? I’ve checked my Martingale_CurrentLevel handling and MathPow logic but still can’t pinpoint the issue.
Any help or insight would be appreciated!