Function TimeTillOpen works incorrectly

Created at 09 Dec 2019, 11:32
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!
HE

helex93

Joined 30.08.2018

Function TimeTillOpen works incorrectly
09 Dec 2019, 11:32


Hello, function "Symbol.MarketHours.TimeTillOpen()" works incorrectly with "FLEStandardTime" timezone, or am i wrong somewhere?

 

Run the code on Sunday to check:

 

using System;
using cAlgo.API;
using cAlgo.API.Internals;

namespace cAlgo.Robots
{
    [Robot(TimeZone = TimeZones.FLEStandardTime, AccessRights = AccessRights.None)]
    public class NewcBot : Robot
    {

        protected override void OnStart()
        {
            Print(Symbol.MarketHours.TimeTillOpen());
        }

        protected override void OnTick()
        {
        }
        protected override void OnStop()
        {
        }
    }
}

 


@helex93