Replies

manoj.clsd.kumar@gmail.com
17 Oct 2022, 09:51 ( Updated at: 21 Dec 2023, 09:22 )

RE:

Spotware said:

Dear trader,

The M1 data is missing. Please contact the broker.

Best Regards,

cTrader Team


Ahh each timeframe is it's own dataseries of bars, that makes sense!

Thank you for investigating, I will contact the broker.


@manoj.clsd.kumar@gmail.com

manoj.clsd.kumar@gmail.com
14 Oct 2022, 17:16 ( Updated at: 21 Dec 2023, 09:22 )

RE:

Spotware said:

Hi there,

Can you provide a small source code example that reproduces the problem so that we can check?

Best regards,

cTrader Team

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using cAlgo.API;
using cAlgo.API.Collections;
using cAlgo.API.Indicators;
using cAlgo.API.Internals;

namespace cAlgo
{
    [Indicator(AccessRights = AccessRights.None)]
    public class SampleUSDZAR : Indicator
    {
        [Parameter(DefaultValue = "Hello world!")]
        public string Message { get; set; }

        [Output("Main")]
        public IndicatorDataSeries Result { get; set; }

        protected override void Initialize()
        {
            Bars monthBars = MarketData.GetBars(TimeFrame.Monthly);
                          monthBars.ToList().GetRange(monthBars.Count()-5,5).ForEach((el)=>{
                Print($"{el.OpenTime.ToLongDateString()} -- {el.Low}");
              });
                Print("---");

        }

        public override void Calculate(int index)
        {
            // Calculate value at specified index
            // Result[index] = 
        }
    }
}

 

 

 


@manoj.clsd.kumar@gmail.com

manoj.clsd.kumar@gmail.com
14 Oct 2022, 08:19 ( Updated at: 21 Dec 2023, 09:22 )

RE:

Spotware said:

Dear trader,

Did you check the charts? Is the monthly bar missing from the chart as well? If yes, then this is a problem of the data and not of the method.

Best Regards,

cTrader Team

 

The data IS visible in the chart, the candles are visible in the chart.

 

Just getBars(), does not return that bar.

 

Please see if this can be reproduced. The pair is USDZAR.
Broker is ICMarket.


@manoj.clsd.kumar@gmail.com

manoj.clsd.kumar@gmail.com
14 Sep 2022, 05:47

RE:

amusleh said:

Hi,

We are developing a lightweight console version of cTrader automate that you will be able to use on Mac, Windows, and Linux, you can install it on a docker container.

It's not released yet, right now it's in development phase.

Hi,


Is there any update on this?


@manoj.clsd.kumar@gmail.com

manoj.clsd.kumar@gmail.com
12 Apr 2022, 11:55

RE:

Thank you.


@manoj.clsd.kumar@gmail.com

manoj.clsd.kumar@gmail.com
07 Apr 2022, 09:28

Ah I'm not sure what I'm doing wrong, but your example is working for me too!

 

Thnaks.


@manoj.clsd.kumar@gmail.com