fxDreema

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

    enumaration custom indicator setting (compilation problem)

    Questions & Answers
    2
    10
    490
    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.
    • O
      oskars last edited by

      Hi i want add custom indacator with enuamation. when i compile ea it shows me such errors
      example4.png

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

        Are these type names in your indicator inputs when you load to your terminal?

        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
        • O
          oskars last edited by oskars

          @jstap yesScreenshot_3.png

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

            Ok, but what is in the value? I only see "RSI" which you don't have in your enumerations...

            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
            • O
              oskars last edited by oskars

              here is the fragment of code i have

              input int               inpRsiPeriod           = 21;                    // Rsi period
              enum enRsiTypes
                    {
                       rsi_cut,                                                       // Cuttler's RSI
                       rsi_emp,                                                       // Trend emphasized RSI
                       rsi_ehl,                                                       // Ehlers' smoothed RSI
                       rsi_har,                                                       // Harris' RSI
                       rsi_lag,                                                       // RSI Laguerre
                       rsi_rap,                                                       // Rapid RSI
                       rsi_rsi,                                                       // RSI 
                       rsi_rsx,                                                       // RSX
                       rsi_rsx2,                                                      // RSX 2
                       rsi_slo,                                                       // Slow RSI
                       rsi_dse,                                                       // Rsi Wilder's DsEma
                       rsi_ere,                                                       // Rsi Wilder's efficiency ratio DsEma
                       rsi_ssm,                                                       // Super smoother RSI 
                       rsi_usie,                                                      // Ultimate RSI Ema
                        rsi_usir                                                      // Ultimate RSI Rma
                    };
              
              1 Reply Last reply Reply Quote 0
              • jstap
                jstap last edited by

                Is that from the indicator MQL code? Take a picture of the indicator inputs showing the RSI method values

                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
                • O
                  oskars last edited by oskars

                  yes it is and below is this code

                  input enRsiTypes      inpRsiMethod             = rsi_rsx2;
                  
                  1 Reply Last reply Reply Quote 0
                  • jstap
                    jstap last edited by

                    What you have done seems to be correct, if you have all these values in the input dropdown I think this would work.

                    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
                    • O
                      oskars last edited by

                      im confused, can by there any problems yet which couse these errors?

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

                        Not that I know of, a coder to look at how it's coded may be able to help. You can add the indicator here but as far as I know, if the used function is in the code it should work.

                        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

                        D
                        E
                        N
                        N
                        F
                        M
                        A
                        L
                        O

                        31
                        Online

                        146.7k
                        Users

                        22.4k
                        Topics

                        122.6k
                        Posts

                        Powered by NodeBB Forums | Contributors