SmallChartTrendLine Time1inUtc and Time2inUtc not refreshed on object moved

Created at 30 Sep 2019, 13:17
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
GO

gonzsanc

Joined 25.09.2019

SmallChartTrendLine Time1inUtc and Time2inUtc not refreshed on object moved
30 Sep 2019, 13:17


  • Version: cTrader 3.5
  • Library:  cTrader.CrossDomain.NewChartApi.ChartObjects

Issue:

The SmallChartTrendLine object only refreshes the Time1 and Time2 properties when the trendline is modified (rotated, moved, etc...), but the Time1InUtc and Time2InUtc are not updated after the trendline is created.

As a developer or an analyst, it is much easier to run all systems based in the same time zone, because one can better compare logs, integrate and analyze data indexed in the same manner (UTC instead of Random time, depending on the TZ of the system that you may not even know).

Improvement requested:

Enable functionality so that both properties Time1InUtc and Time2InUtc are updated each time Time1 and Time2 are.

Any indicator or bot using trendlines or horizontal/vertical lines would benefit from this feature. Provided that a huge number of technical strategies are based upon support and resistance, having better-related objects such lines and trendlines would provide great value to the system.

Workaround

The DateTime library in .Net allows creating an extension to do it. However, having it already integrated within cTrader seems quite feasible since it already has the functionality when initializing the trendline objects.

 

Regards.


cTrader Automate
@gonzsanc