fxDreema

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

    Lead me How-To create Custom Enumeration

    Questions & Answers
    4
    6
    522
    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.
    • tmd1
      tmd1 last edited by

      I was looking for a guide here (I can't find any), how to create your own, custom enumeration say,

      I have 3 types of methods of buy/sell

      Option 1, Option 2, Option 3

      I wanted to minimize parameters in settings by setting 3 options only.

      DFX

      jstap 1 Reply Last reply Reply Quote 0
      • jstap
        jstap @tmd1 last edited by

        @tmd1 I only know of enumeration in indicators but do not think can be added to an FX EA, you can set up conditions for different types for a sell/buy.

        Learn fxDreema Without the Wait!

        My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

        The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

        Don’t miss out

        Click here➡️ https://mybook.to/fxDreema to get your copy today!

        Enjoy! 😊

        1 Reply Last reply Reply Quote 0
        • dadilula
          dadilula last edited by

          enum order_procedures
          {
          FIX, // option 1
          EQUITY, // option 2
          MARTINGALE // option 3
          };

          input order_procedures InpDrawProcedures = FIX; // Drawing procedures

          jstap 1 Reply Last reply Reply Quote 0
          • jstap
            jstap @dadilula last edited by

            @dadilula Maybe this can be used via custom code but I am unsure how, in FX you can do it like THIS.

            Learn fxDreema Without the Wait!

            My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

            The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

            Don’t miss out

            Click here➡️ https://mybook.to/fxDreema to get your copy today!

            Enjoy! 😊

            F 1 Reply Last reply Reply Quote 0
            • F
              faisalfiaz2002 @jstap last edited by

              @jstap so you think this codition would work properly?
              i have same issue while creating martingle modes. so by doing this we can add string constant and we have to put any value from 3 options it will match from all three conditions and execute one only . ?

              1 Reply Last reply Reply Quote 0
              • jstap
                jstap last edited by

                I thin so, add a shared link or pictures to see exactly what you are doing

                Learn fxDreema Without the Wait!

                My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

                The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

                Don’t miss out

                Click here➡️ https://mybook.to/fxDreema to get your copy today!

                Enjoy! 😊

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

                Online Users

                N
                L
                A
                M
                B
                E
                S
                M

                18
                Online

                146.6k
                Users

                22.4k
                Topics

                122.6k
                Posts

                Powered by NodeBB Forums | Contributors