Gamestudio Links
Zorro Links
Newest Posts
Camera always moves upwards?
by clonman. 11/13/25 14:04
brokerCommand PLOT_HLINE parameters
by M_D. 11/13/25 10:42
ZorroGPT
by TipmyPip. 11/10/25 11:04
Training with the R bridge does not work
by frutza. 11/05/25 00:46
Zorro 2.70
by opm. 10/24/25 03:44
Alpaca Plugin v1.4.0
by TipmyPip. 10/20/25 18:04
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
5 registered members (clonman, VoroneTZ, M_D, TipmyPip, AndrewAMD), 10,202 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sheliepaley, Blueguy, blobplayintennis, someone2, NotEBspark
19177 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Get timestamp as a var #487375
03/24/23 17:00
03/24/23 17:00
Joined: Feb 2018
Posts: 70
T
tomaslolo Offline OP
Junior Member
tomaslolo  Offline OP
Junior Member
T

Joined: Feb 2018
Posts: 70
Hello, is it possible to get timestamp as a var value?

I wat to add timestams as a signal, for using it with adviseLong / Short function I´m trying this:

For example, using Deeplearn.c you get these signals:

Quote
change(1),change(2),change(3),change(4),
range(1),range(2),range(3),range(4)


I wat to add timestamp, but with its usual format, I mean, 20190228 11:58:34

I´ve tried this:
Code
   string datetime_str = strdate("+%Y-%m-%d %H:%M:%S", wdate(0));
    var datetime_var = date(datetime_str);


but does not work. Any clue?

Thank you!

Re: Get timestamp as a var [Re: tomaslolo] #487377
03/24/23 17:22
03/24/23 17:22
Joined: Apr 2008
Posts: 594
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 594
Austria
var datetime_var = wdate(0)

Re: Get timestamp as a var [Re: tomaslolo] #487379
03/24/23 18:26
03/24/23 18:26
Joined: Feb 2018
Posts: 70
T
tomaslolo Offline OP
Junior Member
tomaslolo  Offline OP
Junior Member
T

Joined: Feb 2018
Posts: 70
Thank you, but it returns these values:

42401.00000
42401.01042
42401.02083
42401.03125
42401.04167
42401.05208
42401.06250


I would like to return these instead:

20160201 00:00:00

Re: Get timestamp as a var [Re: tomaslolo] #488462
12/08/24 01:50
12/08/24 01:50
Joined: Sep 2022
Posts: 1
M
Mac81 Offline
Guest
Mac81  Offline
Guest
M

Joined: Sep 2022
Posts: 1
Thanks Petra, worked great!
Open Signals .csv file w/ Excel and reformat column to Date/Time Format to correlate and analyze Signals with Price.


Moderated by  Petra 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1