fxDreema

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

    special time frames

    Questions & Answers
    3
    14
    528
    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.
    • D
      Dr.Amiin last edited by

      Hello, I want to use "ENUM_TIMEFRAMES" but I don't want it to show all the time frames, only some special time frames (For saving time in optimizing) Like this screenshot
      2c4b3471-311c-4037-83de-104cdea0ffaa-image.png

      D 5 Replies Last reply Reply Quote 0
      • jstap
        jstap last edited by

        In mt4 you can only use them, on mt5 you have more to choose.

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

          Actually, now I look again this is a pre-set enum list.

          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
          • D
            Dr.Amiin @Dr.Amiin last edited by Dr.Amiin

            @amiinkiaei yes it is pre-set enum list but i can't use it in time frame section (in blocks) in mt5

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

              That is already fixed in your indicator? You can create one for your EA but it will only use the three already set.

              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
              • D
                Dr.Amiin @Dr.Amiin last edited by

                @amiinkiaei I did not understand what you mean but the photo above is related to this project
                https://fxdreema.com/shared/cbeiMdUxd

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

                  Use this ENUM_TIMEFRAMES instead of enum, call it whatever you want, and use this PERIOD_CURRENT in value
                  This will give you the full list in a drop down

                  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
                  • D
                    Dr.Amiin @Dr.Amiin last edited by

                    @amiinkiaei i know but when i use ENUM_TIMEFRAMES it show all of time frames in mt5 but i don't want this i want only some special time frames

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

                      Not sure how you would set up a enum to do 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! 😊

                      1 Reply Last reply Reply Quote 0
                      • D
                        Dr.Amiin @Dr.Amiin last edited by

                        @amiinkiaei Who can do this?
                        i really need this

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

                          You can try this: https://fxdreema.com/shared/lsmeC5aJb I do not know if it will work but it compiles, let me know what happens.

                          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 1
                          • D
                            Dr.Amiin @Dr.Amiin last edited by

                            @amiinkiaei thanks
                            why you changed this PERIOD_M1 to this M1_PERIOD

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

                              Just to keep the text used a little different, encase using the same as standard causes a conflict.

                              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
                              • S
                                sktsec @Dr.Amiin last edited by

                                @amiinkiaei
                                Check
                                https://docs.mql4.com/constants/chartconstants/enum_timeframes

                                Actually, it is the number represented by the string that matters

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

                                Online Users

                                N
                                M
                                M
                                I
                                L
                                A
                                M

                                22
                                Online

                                146.8k
                                Users

                                22.4k
                                Topics

                                122.6k
                                Posts

                                Powered by NodeBB Forums | Contributors