Replies

PanagiotisCharalampous
14 Mar 2019, 10:47

Hi iulianalinchiru,

You need to cast the object to a ChartTrendLine. See below

var trendline = (chartObject as ChartTrendLine);

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
14 Mar 2019, 10:45

Hi terryww2

1) If you send a market order and it is partially filled, you will get Canceled (39=4) status since the non filled part of the order is cancelled. If you place a limit order that is partially filled you will get a partially filled (39=1) status and in Tag 151 you will receive the remaining volume to be filled.

2) The most common case for 39=8 is insufficient funds.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
14 Mar 2019, 09:59

Hi guys,

The issue has been fixed in v3.5. Can you please check if you can reproduce?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
14 Mar 2019, 09:47

Hi fxwisdom1@gmail.com,

Both numbers are important. The Proxy latency is the latency between your computer and our proxy in New York and Server latency is the  between your computer and our server in London.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
14 Mar 2019, 09:47

Hi iulianalinchiru,

Trend line coordinates are kept in Time1, Time2 and Y1, Y2 properties. See here.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
14 Mar 2019, 09:28

Hi Ivan,

At the moment you cannot change candlestick colors using the API.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
13 Mar 2019, 16:56

Thanks dmn,

We managed to reproduce it and we will fix it.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
13 Mar 2019, 14:05

Hi erikvb,

I did not backtest it. I just fixed the build errors and made sure that it doesn't throw exceptions.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
13 Mar 2019, 12:27

Hi hmozahem,

Thanks, we will have a look.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
13 Mar 2019, 12:26

Hi Dagfx,

Try to restart the application. If you still get the message, please press the Details button and send us the details of the problem.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
13 Mar 2019, 09:19

Hi Noppanon,

You can try Chart.ObjectUpdated event.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
13 Mar 2019, 09:13

Hi pozhy,

No, you can refresh the chart whenever want. In your case you can refresh the chart every hour using the TimerTick event.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
13 Mar 2019, 09:09

Hi hmozahem,

We cannot reproduce such a behavior. Did you try restarting your cTrader? Do you still experience the same issue after restarting? If yes, can you please send us a full screenshot of cTrader so that we can see all the information in the application? After that, please send us some troubleshooting information as well. To do so, please press Ctrl+Alt+Shift+T, paste a link to this discussion in the text box and press Submit.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
13 Mar 2019, 09:01

Hi a.fernandez.martinez,

Server.Time is a DateTiime. If you subtract two DateTime variables, you can find the TimeSpan between them.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
13 Mar 2019, 08:57

Hi Xavier,

You are using Reflection to get the default value of the property. Reflection cannot give you the current value in memory, just the value compiled in the assembly. 

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
12 Mar 2019, 17:38

Hi Nasser,

Can you please provide a small code example demonstrating that this function does not work properly? Maybe you are not using it correctly.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
12 Mar 2019, 17:21

Hi dmn,

We checked this but we cannot reproduce such behavior. Can you please let us know your screens resolution and scale of display?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
12 Mar 2019, 16:30

Hi a.fernandez.martinez,

Tick based timeframes are not supported yet for TimeFrame enum and for backtesting. However you can use them in live trading through a parameter. See below

using System;
using System.Linq;
using cAlgo.API;
using cAlgo.API.Indicators;
using cAlgo.API.Internals;
using cAlgo.Indicators;

namespace cAlgo.Robots
{
    [Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
    public class NewcBot : Robot
    {
        [Parameter(DefaultValue = 0.0)]
        public TimeFrame Parameter { get; set; }

        protected override void OnStart()
        {
           
        }

        protected override void OnTick()
        {
            var series = MarketData.GetSeries(Parameter);
            Print(series.OpenTime.LastValue);
        }

        protected override void OnStop()
        {
            // Put your deinitialization logic here
        }
    }
}

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
12 Mar 2019, 16:01

Hi Patrick,

We never actually reported that this was fixed. We are still working on this. In the meanwhile, please avoid using dotted lines.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
12 Mar 2019, 15:56

Hi 

You can use the following function to get data from other timeframes.

   var series = MarketData.GetSeries(TimeFrame);

Best Regards,

Panagiotis


@PanagiotisCharalampous