Scanner dealing with date. Bug?  [SOLVED]

Questions about MultiCharts and user contributed studies.
User avatar
arnie
Posts: 1594
Joined: 11 Feb 2009
Location: Portugal
Has thanked: 481 times
Been thanked: 514 times

Scanner dealing with date. Bug?

Postby arnie » 23 Dec 2016

I did a pretty simple thing, plot in the Scanner the expiration date of the contract using the keyword ExpirationDate.
It plotted the standard MC date format 1170322 (March 22, 2017).
When I went to the settings and changed the format to date, strangely, MC gives an error.
Apparently, the scanner don't recognize its own date format?
I was hoping that MC would change the date to 22-03-2017 or some similar date configuration.

Is this a bug?
Attachments
date_error.png
(18.03 KiB) Downloaded 419 times

User avatar
JoshM
Posts: 2195
Joined: 20 May 2011
Location: The Netherlands
Has thanked: 1544 times
Been thanked: 1565 times
Contact:

Re: Scanner dealing with date. Bug?  [SOLVED]

Postby JoshM » 26 Dec 2016

It plotted the standard MC date format 1170322 (March 22, 2017).
When I went to the settings and changed the format to date, strangely, MC gives an error.
Apparently, the scanner don't recognize its own date format?
I was hoping that MC would change the date to 22-03-2017 or some similar date configuration.
I get the same "Error" message when plotting a bar's date (`Date`) with the "Date" format, with MultiCharts64 Version 9.0 Release (Build 10014).

Anyways, you can always print the date as a formatted text (with the Watchlist setting set to "Text" instead of "Date"):

Code: Select all

Plot1(FormatDate("dd-MM-yyyy", DateToJulian(ExpirationDate)));
Which gives something like:
Attachments
2016-12-26_11-03-09.png
(5.12 KiB) Downloaded 403 times


Return to “MultiCharts”