fxDreema

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

    UNIX TO CANDLE ID

    Questions & Answers
    3
    16
    639
    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.
    • OD
      OD last edited by

      How can you change time stored in a variable as unix to candle id

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

        iBarShift(NULL,PERIOD_CURRENT,"time value",false);

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

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

          @jstap I tried it but it still doesnt convert
          https://fxdreema.com/shared/ONk6nsQhb

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

            Try replace D"your time" with StrToTime("your time")

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

              Exactly I only used " " to show the section to replace with your time, ultimately that code is expecting seconds after 1970

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

              OD 1 Reply Last reply Reply Quote 1
              • OD
                OD @jstap last edited by

                @jstap Do you mean it cant be possible or...?

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

                  @sktsec okay i'll try that

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

                    No what I mean is: iBarShift(NULL,PERIOD_CURRENT,StrToTime(2024.03.11 08:58),false); Put that in a comment using text code input and look at what's returned, make sure the date time used is on the current screen

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

                    OD 3 Replies Last reply Reply Quote 0
                    • OD
                      OD @jstap last edited by

                      @jstap I've tried it but still it doesn't work.https://fxdreema.com/shared/RADijXQ1d.

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

                        @jstap Plus I want to convert the time when it is already stored in a variable as a UNIX value to candle ID

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

                          Remove ID= and put a value into UNIX

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

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

                            @jstap The UNIX variable shouldn't change but its time value is to be converted to a candle id in this case to a variable called ID where it should be 5 if succesfull.

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

                              You are doing nothing with it so it's 0

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

                                @jstap https://fxdreema.com/shared/OUqf0WcKd
                                For this example show how I can get the candle ID of UNIX time variable...kindly show in the example

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

                                  There is 2 examples in this, 1 to put in a variable, and 1 to draw line
                                  https://fxdreema.com/shared/w1fd6JFnc

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

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

                                    @jstap This works thanks a lot

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

                                    Online Users

                                    J
                                    B
                                    M
                                    B

                                    10
                                    Online

                                    146.7k
                                    Users

                                    22.4k
                                    Topics

                                    122.6k
                                    Posts

                                    Powered by NodeBB Forums | Contributors