Time Date Translation

Questions about MultiCharts and user contributed studies.
arjfca
Posts: 1292
Joined: 23 Nov 2010
Has thanked: 725 times
Been thanked: 223 times

Time Date Translation

Postby arjfca » 21 May 2012

Hello

Time & date translation, I just don't get it. Every time I need it it just don't work. Every time I play with it, it just don't work.

I need to translate a date and time variable in the same format as the returned value of Date and Time of a bar
My function return
41050.46238 with equal to 21-05-2012 11:05:50
I need to translate that value so I can use it in the Text_New function

T

Code: Select all

ext_New_self_s (BarDate, BarTime_s, PriceValue, "Text")
Any help appreciated

Martin

User avatar
TJ
Posts: 7742
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2222 times

Re: Time Date Translation

Postby TJ » 21 May 2012

Hello

Time & date translation, I just don't get it. Every time I need it it just don't work. Every time I play with it, it just don't work.

I need to translate a date and time variable in the same format as the returned value of Date and Time of a bar
My function return
41050.46238 with equal to 21-05-2012 11:05:50
I need to translate that value so I can use it in the Text_New function

T

Code: Select all

ext_New_self_s (BarDate, BarTime_s, PriceValue, "Text")
Any help appreciated

Martin
You have asked this question before. Check one of my replies to your previous posts, you should find an answer there.

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: Time Date Translation

Postby Henry MultiСharts » 21 May 2012

Hello

Time & date translation, I just don't get it. Every time I need it it just don't work. Every time I play with it, it just don't work.

I need to translate a date and time variable in the same format as the returned value of Date and Time of a bar
My function return
41050.46238 with equal to 21-05-2012 11:05:50
I need to translate that value so I can use it in the Text_New function

T

Code: Select all

ext_New_self_s (BarDate, BarTime_s, PriceValue, "Text")
Any help appreciated

Martin
Martin please post the function code that returns this value.

arjfca
Posts: 1292
Joined: 23 Nov 2010
Has thanked: 725 times
Been thanked: 223 times

Re: Time Date Translation

Postby arjfca » 21 May 2012

Good day Henry

Code: Select all

DateTimeLeftBar = getappinfo(aiLeftDispDateTime);
I'm always lost when it come to date & time conversion. Even if I had done it before.
I will put some time tonight to fully understand it one for all.


Martin

bowlesj3
Posts: 2180
Joined: 21 Jul 2007
Has thanked: 227 times
Been thanked: 429 times

Re: Time Date Translation

Postby bowlesj3 » 21 May 2012

I think it may have been myself who asked. See posts 6 and 10 (actually 10 I think).
viewtopic.php?f=1&t=10173

arjfca
Posts: 1292
Joined: 23 Nov 2010
Has thanked: 725 times
Been thanked: 223 times

Re: Time Date Translation

Postby arjfca » 21 May 2012

I think it may have been myself who asked. See posts 6 and 10 (actually 10 I think).
viewtopic.php?f=1&t=10173
Thanks for the link John

I will study it

Martin :)

bowlesj3
Posts: 2180
Joined: 21 Jul 2007
Has thanked: 227 times
Been thanked: 429 times

Re: Time Date Translation

Postby bowlesj3 » 22 May 2012

I think that the date and time calcs in MC EL are far too hard. PCs sell well now because they made it much easier. This is no different. Here is a link to dump all your date and time tricks to make it easy the way it should be. I put the left side and right side of screen tricks in there along with a few other tricks. Eventually the Wiki should point here.

Anything Tricky with dates and times
viewtopic.php?f=16&t=10411&p=50617#p50617


Return to “MultiCharts”