if (draw is DrawingTools.Rectangle)
{
DrawingTools.Rectangle RectangleTemp = draw as DrawingTools.Rectangle;
RectangleTag = draw.Tag;
RectangleStartPrice = RectangleTemp.StartAnchor.Price;
RectangleEndPrice = RectangleTemp.EndAnchor.Price;
RectangleStartTime = RectangleTemp.StartAnchor.Time;
RectangleEndTime = RectangleTemp.EndAnchor.Time;
s.WriteLine("@NQ#BOX" + ";" + RectangleStartTime + ";" + RectangleStartPrice + ";" + RectangleEndTime + ";" + RectangleEndPrice + ";" + ChartPeriod); // Append a new line to the file
}
i see this sample
DateTime AsiaSessionTime = DateTime.Parse("17:00", System.Globalization.CultureInfo.InvariantCulture) ;
DateTime EuropeSessionTime = DateTime.Parse("02:00", System.Globalization.CultureInfo.InvariantCulture) ;
how can i use it in the code for example
RectangleEndTime = DateTime.Parse((RectangleTemp.EndAnchor.Time), System.Globalization.CultureInfo.InvariantCulture) ;

Comment