fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    Creating a drop down menu?

    General Discussions
    2
    3
    3104
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • I
      Ipod last edited by

      Does anyone know or can someone help me create a drop down menu in the EA settings panel?

      So basically I wish to use several indicators with adjustable settings, but using a drop down menu to select which one is currently active if that makes sense. I'm fairly new to this so any help would be appreciated.

      1 Reply Last reply Reply Quote 0
      • M
        miro1360 last edited by

        in my opinion this can be made only manually in code using enum structure
        https://docs.mql4.com/basis/types/integer/enumeration

        I am not sure if you will do that (maybe exists something easier) ... but this can be way:

        in top of code you place something like this (manually):

        enum USE_INDICATOR
        {
        movingAverage,
        rsi,
        macd,
        adx
        };

        in input parameters (again manually):
        input USE_INDICATOR useIndicator = movingAverage;

        after that you can make case switch (manually):
        switch(useIndicator)
        {
        case 1: { //code and functions for calling rsi }; break;
        case 2: { //code and functions for calling macd }; break;
        case 3: { //code and functions for calling adx }; break;
        default: { //code and functions for calling moving average }; break;
        }
        ........
        ........

        you see how crazy it can be, but you can try ...
        I think, it is better creating few separated EAs with fixed indicators in fxdreema, give for each EA right name to demark and start with optimalization for each EA, results into excel and there you can make own form of sorting and comparison results from optimalization ....

        Between trading and gambling is a very small gap, be careful.

        1 Reply Last reply Reply Quote 0
        • I
          Ipod last edited by

          Okay thanks for the code and advice, I think I will just stick to creating seperate EA's and not complicate things exponentially 😄

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post

          Online Users

          A
          S
          I
          H
          M
          D
          A
          W

          14
          Online

          146.7k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors