DateTime Variables compare
-
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.

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