Replies

sylwester.guzek
20 Nov 2022, 14:39

workaround using standard libraries
            //detect if DST is active
            DateTime dt = Bars.LastBar.OpenTime.Date;
            TimeZoneInfo tzi = TimeZoneInfo.FindSystemTimeZoneById("W. Europe Standard Time");
            bool isDST = tzi.IsDaylightSavingTime(dt);

            int correctionDST;
            if (isDST)
                correctionDST = 2;
            else
                correctionDST = 1;

 


@sylwester.guzek

sylwester.guzek
18 Jan 2019, 18:04

Hi Panagiotis,

Good to know that it is already available to run robot on Renko or Range timeframes. Anyhow I prefer Renko as indicator beacause it is more flexible.

Investigating further more my issue reported above I found that Robot instance at start-up downloads certain amout of historical data depending on selected timeframe. For example for D1 it is ~73 candles, for H1 it is ~125 candles, for M1 it is ~1400 candles. It is accordingly 73 days, 5 days and 1 day. It explains why I can get only few archival bricks when my robot is set to M1 timeframe. 

Is is possible to configure Robot instance to obtain specific amount archival data ? Based on my knowledge of other broker API, it was for example possible to get up to 1 month of data for M1 and 6 months of data for D1 timeframe. 

Thanks

Sylwester


@sylwester.guzek

sylwester.guzek
18 Jan 2019, 10:04

Hi Panagiotis,

I wasn't aware that API for built in Renko is available. I was searching here https://ctrader.com/api/reference/indicators.

Can you advise where to find it?

Thanks

Silvio


@sylwester.guzek

sylwester.guzek
08 Jan 2019, 12:59

RE:

Thank you, It solved my problem


@sylwester.guzek