I am struggling to get Zorro to return the current bar in Unix time. Apparently that can be done via utm() but I have trouble finding the correct var Date to feed.
Can someone help me with that?
Re: Return current bar in Unix time
[Re: gamadeus]
#477146 05/24/1911:0405/24/1911:04
One problem though I have with this is that when I run this in Trademode under FRISTRUN it will not give me the current bar and timestamp but the first Lookback bar.
Is there any way to just get the current timestamp in that format without any bar offset required?
And a related question: is there a flag similar to FIRSTRUN that is triggered on the first bar after the Lookback period?
Re: Return current bar in Unix time
[Re: gamadeus]
#477200 05/30/1914:0405/30/1914:04
yes thanks of course I am aware of that. but I want to know if there is a flag similar to INITRUN for Lookback, because !is(LOOKBACK) is true for every run after the lookback period
Re: Return current bar in Unix time
[Re: gamadeus]
#477204 05/30/1916:0905/30/1916:09
i have managed to get the timestamp of the last tick with utm(wdate(0)). But as far as i can see this only returns the Unix time in seconds, not in milliseconds. Is there any way to receive the Unix time stamp in milliseconds?
Re: Return current bar in Unix time
[Re: gamadeus]
#479381 03/25/2016:5103/25/2016:51