In MQL5, the keyword "extern" has a different meaning to the older MQL4 code. You should use the keyword "input" instead, both for MQL5 and MQL4+ code.
EDIT: Your code seems to have been converted from MQL4 originally but it has several incorrect implementations for MQL5.
EDIT2: I also see now that the code was created by a code generator and not a human. Code generators in general, produce horrible code. Don't use them. Learn to code or hire someone qualified to do it for you.
- www.mql5.com
Chatgpt, EA builder, EA Builder Pro, EATree, Etasoft forex generator, Forex Strategy Builder, ForexEAdvisor, ForexRobotAcademy.com, forexsb, FX EA Builder, fxDreema, Forex Generator, FxPro, Molanis, Octa-FX Meta Editor, Online Forex Expert Advisor Generator, Strategy Builder FX, Strategy Quant, Visual Trader Studio, MQL5 Wizard, etc., are all the same. You will get something quick, but then you will spend a much longer time trying to get it right, than if you learned the language up front, and then just wrote it.
-
Since you haven't learned MQL4/5, therefor there is no common language for us to communicate.
If we tell you what you need, you can't code it.
If we give you the code, you don't know how to integrate it into yours.
We are willing to HELP you when you post your attempt (using Code button) and state the nature of your problem, but we are not going to debug your seven thousand lines of code. You are essentially going to be on your own. EA builder makes bad code: - Counting up while closing multiple orders.
- Bars is unreliable (Max bars in chart), volume is unreliable (miss ticks.) Always use time.
- Not adjusting for 4/5 digit brokers, TP/SL and slippage.
- Not adjusting for ECN brokers. pre-Build 500)
- Not checking return codes.
EATree uses objects on chart to save values — not persistent storage (files or GV+Flush.) No recovery (crash/power failure.) FX EA Builder makes bad code: - Not checking return codes.
- Loosing open tickets on terminal restart. No recovery (crash/power failure.)
- Not adjusting stops for the spread.
- Using OrdersTotal directly.
FOREXEADVISOR STRATEGY BUILDER makes bad code: - Non-updateing global variables.
- Compilation errors.
- Not checking return codes.
ForexEAdvisor makes bad code: - Not checking return codes.
- Not reporting errors.
Chatgpt, EA builder, EA Builder Pro, EATree, Etasoft forex generator, Forex Strategy Builder, ForexEAdvisor, ForexRobotAcademy.com, forexsb, FX EA Builder, fxDreema, Forex Generator, FxPro, Molanis, Octa-FX Meta Editor, Online Forex Expert Advisor Generator, Strategy Builder FX, Strategy Quant, Visual Trader Studio, MQL5 Wizard, etc., are all the same. You will get something quick, but then you will spend a much longer time trying to get it right, than if you learned the language up front, and then just wrote it.
-
Since you haven't learned MQL4/5, therefor there is no common language for us to communicate.
If we tell you what you need, you can't code it.
If we give you the code, you don't know how to integrate it into yours.
We are willing to HELP you when you post your attempt (using Code button) and state the nature of your problem, but we are not going to debug your seven thousand lines of code. You are essentially going to be on your own. EA builder makes bad code: - Counting up while closing multiple orders.
- Bars is unreliable (Max bars in chart), volume is unreliable (miss ticks.) Always use time.
- Not adjusting for 4/5 digit brokers, TP/SL and slippage.
- Not adjusting for ECN brokers. pre-Build 500)
- Not checking return codes.
EATree uses objects on chart to save values — not persistent storage (files or GV+Flush.) No recovery (crash/power failure.) FX EA Builder makes bad code: - Not checking return codes.
- Loosing open tickets on terminal restart. No recovery (crash/power failure.)
- Not adjusting stops for the spread.
- Using OrdersTotal directly.
FOREXEADVISOR STRATEGY BUILDER makes bad code: - Non-updateing global variables.
- Compilation errors.
- Not checking return codes.
ForexEAdvisor makes bad code: - Not checking return codes.
- Not reporting errors.
You're correct
To show inputs it’s enough to change words “extern” into ‘inputs” But the rest of functions might still not work properly.
Try to learn to code or translate the functions from mq4 by yourself – as was recommended. But you can also try to find someone (Freelancer) who would do this for you professionally.
Chatgpt, EA builder, EA Builder Pro, EATree, Etasoft forex generator, Forex Strategy Builder, ForexEAdvisor, ForexRobotAcademy.com, forexsb, FX EA Builder, fxDreema, Forex Generator, FxPro, Molanis, Octa-FX Meta Editor, Online Forex Expert Advisor Generator, Strategy Builder FX, Strategy Quant, Visual Trader Studio, MQL5 Wizard, etc., are all the same. You will get something quick, but then you will spend a much longer time trying to get it right, than if you learned the language up front, and then just wrote it.
I agree. For a beginner, it's better to find a tool that doesn't generate any code.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
This EA showing no error in compiping, however I'm not able to see any variable/parameters showing as input in backtesting.
Not sure what's wrong in it.
Attaching code.