fxDreema

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

    DateTime Variables compare

    Questions & Answers
    2
    3
    1178
    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.
    • M
      mpantogi last edited by mpantogi

      Hello,

      I have a indicator which give me some objects on the chart.I want to check the Time parameter from the object with my datetime variable.
      See the pics to understand.Is that right?The conditions will give me the right results?Should i do something else?Please help.1_1507385392363_Untitled2.jpg 0_1507386087341_Untitled.jpg

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

        I don't understand what is the value in MyTime, because initially it is set to 0 as we can see, but I assume that somewhere you put a Time value in it, because the type is "datetime".

        "Time mode" is normally a selector, it is not a Time value. If you have integer value in MyTime that represents the Time (something like 1507478881), then I can suggest to put it into Value->Numeric. Those options in Value->Time are mostly to get a new Time value, not to use already existing one.

        I'm not sure about this == over there. Only use this if you are sure that the left and the right values can be exactly the same, not just similar.

        M 1 Reply Last reply Reply Quote 0
        • M
          mpantogi @fxDreema last edited by

          @fxDreema

          Here is what i want to do :
          The condition before Buy Now i want to save in a variable the current time ,it should be something like this the value 2017.09.18 20:30
          Then the condition before the close trade to check if that Variable is lower the Time Value in object on chart ,which i get from a costum indicator.
          You can see the first picture which i have uploaded ,to see the parameters of the object on chart.

          That i was trying to do ,what should i change to make it right?

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

          Online Users

          S
          O
          K
          M
          M
          C

          15
          Online

          146.7k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors