I am trying to write an indicator that will set the Session Start and End Times based upon the instrument. I want this to modify the Session Break line shown on the chart, as well as udate the information in the Chart Properties dialog box.
I've tried using something like
ChartData.SessionBegin = DateTime.Parse("18:00")
but keep getting an error CS0120 - object reference required for nonstatic field. And I'm not sure what obeject I should be using to set this property.
Any help and/or suggestions are appreciated.
Thanks,
Jeff