Hello,
I tried to get the bars number since a specific date with the below code. But the problem is that the outcome of the bars number keeps same if I input e.g.:20150101or 20150510. It seems the calculation only start from the first bar of a certain year no matter what any other date is specified. Coule you help to check what's the matter with it?
Thanks
CODE:
Please log in to see this code.
Size:
Color:
Sorry, that's a mistake in the QuickRef
Use String format = "yyyyMMdd";
Not String format = "yyyymmdd";
Also available: WealthScript function DateTimeToBar (see QuickRef)
Size:
Color:
We'll fix this QuickRef error in a future version.
Size:
Color:
Thanks, it works now.
Size:
Color: