No variable/parameters showing as input in backtesting

 

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.

Files:
 
harry.jh: 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.

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.

Documentation on MQL5: Language Basics / Variables / Input Variables
Documentation on MQL5: Language Basics / Variables / Input Variables
  • www.mql5.com
Input Variables - Variables - Language Basics - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
 

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.

  1. 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.

  2. EA builder makes bad code:
    1. Counting up while closing multiple orders.
    2. Bars is unreliable (Max bars in chart), volume is unreliable (miss ticks.) Always use time.
    3. Not adjusting for 4/5 digit brokers, TP/SL and slippage.
    4. Not adjusting for ECN brokers. pre-Build 500)
    5. 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:
    1. Not checking return codes.
    2. Loosing open tickets on terminal restart. No recovery (crash/power failure.)
    3. Not adjusting stops for the spread.
    4. Using OrdersTotal directly.
    FOREXEADVISOR STRATEGY BUILDER makes bad code:
    1. Non-updateing global variables.
    2. Compilation errors.
    3. Not checking return codes.
    ForexEAdvisor makes bad code:
    1. Not checking return codes.
    2. Not reporting errors.
 
William Roeder #:

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.

  1. 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.

  2. EA builder makes bad code:
    1. Counting up while closing multiple orders.
    2. Bars is unreliable (Max bars in chart), volume is unreliable (miss ticks.) Always use time.
    3. Not adjusting for 4/5 digit brokers, TP/SL and slippage.
    4. Not adjusting for ECN brokers. pre-Build 500)
    5. 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:
    1. Not checking return codes.
    2. Loosing open tickets on terminal restart. No recovery (crash/power failure.)
    3. Not adjusting stops for the spread.
    4. Using OrdersTotal directly.
    FOREXEADVISOR STRATEGY BUILDER makes bad code:
    1. Non-updateing global variables.
    2. Compilation errors.
    3. Not checking return codes.
    ForexEAdvisor makes bad code:
    1. Not checking return codes.
    2. Not reporting errors.

You're correct

 
I agree – code generators are terrible and are not working well with translation to mq5 either. The code can compile without any errors but there’s failed logic within it and hence lack of results.

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.
 
William Roeder #:

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.

 
Ivan Titov #: I agree. For a beginner, it's better to find a tool that doesn't generate any code.

The “better tool” is the one between your ears; learn to code.

 
William Roeder #:

learn to code.

There is no need. I've already coded a better tool.