Im doing something wrong here and getting incorrect output.
At one point of my EA im saving a datetime to a string variable as something like this:
pointA = 1303867800
Now at some later point i need to convert that back to a datetime so that i can use it to create a rectangle object on the chart so im using :
pointA = StrToTime(pointA)
After doing this the variable becomes:
pointA = 1303948800
Which as you can see is different from the original above - im probably doing something silly wrong if anyone can help getting my original DateTime variable to a string and then BACK to DateTime, much appreciated.
thx
At one point of my EA im saving a datetime to a string variable as something like this:
pointA = 1303867800
Now at some later point i need to convert that back to a datetime so that i can use it to create a rectangle object on the chart so im using :
pointA = StrToTime(pointA)
After doing this the variable becomes:
pointA = 1303948800
Which as you can see is different from the original above - im probably doing something silly wrong if anyone can help getting my original DateTime variable to a string and then BACK to DateTime, much appreciated.
thx