I am using a simple Date[bar].ToString("hh:mm") to export the time of a bar to an ascii file. This gives me the time at close of the bar. How do I modify it such that it exports the time at open of the bar?
Size:
Color:
You wanted to say HH:mm, right?
By design, WL marks bar with the time at the end of bar. To modify the output, before converting to string subtract the time interval from the DateTime returned by Date[bar]. For example, using .AddMinutes(-x).
Size:
Color:
thanks.
Size:
Color: