fxDreema

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

    MA CROSSOVER TIME

    Questions & Answers
    4
    18
    681
    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.
    • A
      aster4u last edited by aster4u

      Please how can i store the time in a variable(eg 16:30) whenever current candle cross MA 100....that is to store the time in this format(eg 16:30) soon as the candle crossed the MA so that i can use the variable in another block.......

      i used market properties to get the current time(eg 1714559400.0) whenever the cross happens but i wasnt getting this format(eg 16:30)

      This is what i did.....but the time format is not what i want
      https://fxdreema.com/shared/CtUxeIxdb

      HELP PLEASE.....

      l'andorrà S 2 Replies Last reply Reply Quote 0
      • l'andorrà
        l'andorrà @aster4u last edited by

        @aster4u You need to use a string type variable:

        01.png

        (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

        (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

        (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

        A 1 Reply Last reply Reply Quote 0
        • A
          aster4u @l'andorrà last edited by aster4u

          @l-andorrà

          Hi,thanks for your reply.......So i have followed your instruction but am getting random numbers when candle cross MA😕
          Dont really know why.....Please check for me( https://fxdreema.com/shared/hXsl2H91d ), you can share a link....

          Screenshot from 2024-10-21 11-48-58.png
          Screenshot from 2024-10-21 11-53-05.png

          1 Reply Last reply Reply Quote 0
          • S
            sktsec @aster4u last edited by

            @aster4u
            Try using datetime as the data type of the variable. Then print it out in comment block.

            A 1 Reply Last reply Reply Quote 0
            • A
              aster4u @sktsec last edited by

              @sktsec
              Hi,thanks for your reply.......So i made the change and am getting a readable result.....
              Screenshot from 2024-10-21 14-16-23.png

              Please i only want hour and minutes(eg 17:40) so i can use the variable for Start hour/End hour like the image bellow
              Screenshot from 2024-10-21 14-24-06.png

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

                I think you may need extra work using the function TimeToString() to extract what you need

                A 1 Reply Last reply Reply Quote 0
                • A
                  aster4u @sktsec last edited by

                  @sktsec
                  Please how do i do that ?
                  Am very new to fxdreema and have no knowledge in programming ......started using fxdreema some months ago,
                  You can do it and share the project so i take a look or copy the blocks🙏

                  S 1 Reply Last reply Reply Quote 0
                  • S
                    sktsec @aster4u last edited by

                    @aster4u
                    Try the blocks for modifying or setting up formulas for variables

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

                      This format 1714559400.0 is seconds after 1970, convert it to string using this line of code: TimeToString(value,TIME_MINUTES)

                      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! 😊

                      A 1 Reply Last reply Reply Quote 1
                      • A
                        aster4u @jstap last edited by

                        @jstap
                        Thanks for the reply...
                        Please how do i set that up ?

                        1 Reply Last reply Reply Quote 0
                        • A
                          aster4u @sktsec last edited by

                          @sktsec

                          Please how do i set that up ?

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

                            So you can see how it works, in a comment block, add that line into text code input, replace value with your value, or 1714559400 just for seeing the result. Once you get this working you can use this in many blocks

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

                              @jstap
                              Please can you share a link

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

                                Try this:
                                image.png

                                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! 😊

                                A 2 Replies Last reply Reply Quote 0
                                • A
                                  aster4u @jstap last edited by aster4u

                                  @jstap
                                  Thanks again. Seeing the correct time format now....
                                  Please how do i put this(result) in a variable as the time is updating based on market price and MA crossover ?
                                  Screenshot from 2024-10-21 20-07-17.png

                                  Screenshot from 2024-10-21 20-13-50.png

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

                                    @jstap
                                    whilst waiting for help, I tried this but the time doesnt update whenever there is a crossover

                                    https://fxdreema.com/shared/hzUsLj3Xd

                                    A 1 Reply Last reply Reply Quote 0
                                    • A
                                      aster4u @aster4u last edited by

                                      @jstap @l-andorrà @sktsec
                                      Solved it by playing around.....Screenshot from 2024-10-22 00-17-28.png

                                      thanks guys👍 👍

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

                                        @aster4u 👍

                                        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
                                        U

                                        6
                                        Online

                                        146.8k
                                        Users

                                        22.4k
                                        Topics

                                        122.6k
                                        Posts

                                        Powered by NodeBB Forums | Contributors