I am using SampleStreamWriter to write to a file. As a result, I get a txt file that looks like this:
12/21/2022 11:01:00 PM,178.3,178.3,171.6,176.6
12/21/2022 11:02:00 PM,178.6,178.6,175.6,172.4
Then, I'm using SampleStreamReader to get data from this file for further processing.
But I am getting this error:
System.FormatException: String was not recognized as a valid DateTime.
at NinjaTrader.NinjaScript.Indicators.SampleStreamRea der.OnBarUpdate()
So why this happened?

Comment