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?
Scanner dealing with date. Bug? [SOLVED]
- 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]
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).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.
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)));
- Attachments
-
- 2016-12-26_11-03-09.png
- (5.12 KiB) Downloaded 403 times