rafael.rpd:
Hello, I'm trying to add Martingale to my EA, from another file that defines lots. But I researched and I couldn't solve a mistake, forgive me because it seems simple, please help ...
Please edit your code so that it is readable. It is a mess with all the broken and empty lines.
Please edit your code so that it is readable. It is a mess with all the broken and empty lines.
Keith Watford:
Please edit your code so that it is readable. It is a mess with all the broken and empty lines.
I'm sorry, edited.
Thank you sir.
- rafael.rpd: I'm sorry, edited.Please edit your (original) post and use the CODE button (Alt-S)! (For large amounts of code, attach it.)
General rules and best pratices of the Forum. - General - MQL5 programming forum
Messages Editor - Martingale, guaranteed to blow your account eventually. If
it's not profitable without, it is definitely not profitable with.
Martingale vs. Non Martingale (Simplified RoR vs Profit and the Illusions) - MQL5 programming forum 2015.02.11Why it won't work: Calculate Loss from Lot Pips - MQL5 programming forum 2017.07.11
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 trying to add Martingale to my EA, from another file that defines lots. But I researched and I couldn't solve a mistake, forgive me because it seems simple, please help ...
EA code:
SetLotSize:
#property strict double SetLotSize() { static double LastAccountBalance; if (LastAccountBalance > AccountBalance()) { if (LotSize== 0.05) LotSize= 0.10; else if (LotSize== 0.10) LotSize= 0.20; else if (LotSize== 0.20) LotSize= 0.40; else if (LotSize== 0.40) LotSize= 0.50; else if (LotSize== 0.50) LotSize= 0.75; else if (LotSize== 0.75) LotSize= 1.00; } if (LastAccountBalance < AccountBalance()) LotSize=0.05; LastAccountBalance= AccountBalance(); return LotSize; }
Compile return 3x 'LotSize' - undeclared identifier