How to suppress comma in Scanner plot?

Questions about MultiCharts and user contributed studies.
User avatar
MC_Prog
Posts: 330
Joined: 28 Feb 2007
Has thanked: 64 times
Been thanked: 35 times

How to suppress comma in Scanner plot?

Postby MC_Prog » 28 Aug 2009

Hi.

I'm plotting a time in the Scanner, and I would like to suppress the comma.

Image

How can I accomplish that?
Attachments
BarTimeComma.png
(3.27 KiB) Downloaded 332 times

User avatar
Andrew Kirillov
Posts: 1589
Joined: 28 Jul 2005
Has thanked: 2 times
Been thanked: 31 times
Contact:

Postby Andrew Kirillov » 08 Sep 2009

MC_Prog,

You may use

Code: Select all

plot1( formattime("HH:mm", eltimetodatetime(time)) );


construction, it will display time as 11:45

Is this what you would like to see?

Or you need exactly 1145 format?

User avatar
MC_Prog
Posts: 330
Joined: 28 Feb 2007
Has thanked: 64 times
Been thanked: 35 times

Postby MC_Prog » 14 Sep 2009

Code: Select all

plot1( formattime("HH:mm", eltimetodatetime(time)) );
Thanks for this technique! As the results looks like a time, I think that will meet the need in general, though allowing "HHmm" as a format specifier wouldn't hurt.

User avatar
Andrew Kirillov
Posts: 1589
Joined: 28 Jul 2005
Has thanked: 2 times
Been thanked: 31 times
Contact:

Postby Andrew Kirillov » 14 Sep 2009

Okay, try these:

ver1
plot1( formattime("HHmm", eltimetodatetime(time)) );
(string)

ver2
plot1(time);
(number)


Return to “MultiCharts”