fxDreema

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

    Store current minutes/hour values in internal variable

    Questions & Answers
    4
    4
    146
    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.
    • S
      Salmuranda last edited by

      Dears,

      Hope you are having a nice time,

      I tried to save current minute value in a variable, but have no clue how to do it, i found in the value drop down list that you can chose time, but this will save the whole time date/hour/min/sec
      a06d3fcc-4428-416a-af85-a7a0b5d63826-image.png

      is there any option to have only min value, or hour value only and store them in separate variable?

      This for MT5 project

      Thanks in advance

      S 1 Reply Last reply Reply Quote 0
      • l'andorrà
        l'andorrà last edited by

        You will need custom code to get that. No option in fxDreema can do it, I'm afraid.

        (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.

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

          I am not 100% sure what you want. This will save the new time into a global variable and then show you the result. As is, it is shown in seconds after 1970, but you can change it if you like. Run it on a backtest, and you will see how it works. I think this will give you an idea of how to achieve what you need. https://fxdreema.com/shared/29LcQTxQc

          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 @Salmuranda last edited by sktsec

            @Salmuranda
            I guess you are talking about the minute of an hour.

            Try setting a variable, say,
            x = TimeMinute(TimeCurrent())

            Don't know if it would work in backtest. I often used Time[candle_id] instead. Time[candle_id] returns the start time of candle

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

            Online Users

            T
            S
            A
            M
            M
            E
            C
            M
            F
            L
            F
            F
            E
            K

            28
            Online

            146.6k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors