GMT Timestamp to Server / Chart Time *** SOLVED ***
-
I'm currently working on the next Version of the Tutorial EA. At this time I'm integrating the icefx Newsinfo indicator (off-topic: "that bloody bitch!!!"). I'm quiet done at the moment, but want to draw a rectangle on the chart when there is a news time ahead. That works also quiet well so far, but all the nes times are in GMT. When I simply calculate my news before and news after thresholds, I have 2 time values to draw the rectangle.

However, the chart is in server time (not local time) and the my timestamps are all in gmt time.
Is there a smart way to convert my gmt timestamps into servertime? The case that during that period a change between summer and winter time may happen I neglect at this point.Btw. that's how the new version looks right now.

-
@trader-philipps Found it by myself. Like that:

-
An impressive work.

-
@trader-philipps Are the values "TimeCurrent()" and "TimeGMT()" inherent to all scripts? I am trying to also code a news filter and I want to use chart data from a news indicator. When selecting a text object on the objects list, I can click the object and see the Name on one tab, and the Parameters tab to see Time. The time is in format like this "2020.02.19 06:30". Is that format a string something else?
Thanks for your help
-
@nmbruno Nevermind, I believe I figured this out. I need to use Epoch time in seconds...