I'm doing some conversions of strings into DateTime's and then comparisions to make sure I only trade within specified hours. This seems to be causing OnBarUpdate() method to stop being called. This is highlighted in the 'log' tab... where it says "String was not recognised as a valid DateTime." Strange since the code seems to compile correctly.
The line causing the error is of the following format,
if(Convert.ToDateTime(string)<Time[0])
{
do something
}
Any ideas what's going on...?
Many Thanks
Comment