Add Bussiness Days Methods

Created at 26 Sep 2021, 23:56
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!
QG

qgriin

Joined 26.09.2021

Add Bussiness Days Methods
26 Sep 2021, 23:56


I need to draw a line from DateStart to DateStart.AddDays(5)( I mean I didnt know EndDate but can calculate it Incrementally like Start+5). Everything works well until there is a weekend between these points, then the line turns out to be cut.

There are many suggestions on how to calculate for weekends here https://stackoverflow.com/questions/1044688/addbusinessdays-and-getbusinessdays. But I would like to have built-in functionality.


@qgriin
Replies

PanagiotisCharalampous
27 Sep 2021, 08:10

Hi qgriin,

Why not using the method provided in StackOverflow? You should not expect such a feature anytime soon in cTrader Automate API.

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous