fxDreema

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

    Timeframe as input

    Questions & Answers
    7
    12
    5867
    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.
    • B
      BlueMoon last edited by

      Is it possible? I tried this but it seems to be not working.

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

        For the Constant that is the timeframe, the data type should be ENUM_TIMEFRAMES instead of double. And the default value should be something like PERIOD_H1.

        https://www.mql5.com/en/docs/constants/chartconstants/enum_timeframes

        F 1 Reply Last reply Reply Quote 1
        • B
          BlueMoon last edited by

          @fxdreema said in Timeframe as input:

          PERIOD_H1

          That worked like a charm! Thank you so much

          1 Reply Last reply Reply Quote 1
          • D
            Daniel95 last edited by

            Does it also work for MT4? I do not get Error messages but it's not working. Could you help me?

            TIA Daniel

            0_1538927591345_Timeframe.PNG

            D 1 Reply Last reply Reply Quote 0
            • D
              Daniel95 @Daniel95 last edited by

              @daniel95 Sovled the problem by name the timeframe not "timeframe"...

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

                Oh yes, there was some problem when you have a constant/variable named like "Timeframe", because there is a parameter with the same name already (that Timeframe below Symbol). It's some weird problem that I have to somehow fix, but I'm also scared to touch this part of fxDreema, because I can easily broke something else 🙂

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

                  0_1608667510165_Scsdssdhot_2.png
                  please help, I encountered the same problem

                  1 Reply Last reply Reply Quote 1
                  • O
                    orgtopus last edited by

                    ENUM_TIMEFRAMES
                    image.png

                    1 Reply Last reply Reply Quote 0
                    • F
                      fxgump @fxDreema last edited by

                      @fxDreema said in Timeframe as input:

                      NUM_TIMEFRAMES

                      And for a variable that is a timeframe, what should the data type be?

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

                        it's enum, add how mql5 says: https://docs.mql4.com/constants/chartconstants/enum_timeframes

                        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 2
                        • F
                          fxgump last edited by

                          Thank you jstap!

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

                            @fxgump 👍

                            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

                            M
                            E
                            K
                            M
                            T
                            A
                            P
                            V
                            R
                            M
                            G

                            20
                            Online

                            146.6k
                            Users

                            22.4k
                            Topics

                            122.6k
                            Posts

                            Powered by NodeBB Forums | Contributors