Replies

PanagiotisCharalampous
12 Feb 2019, 09:35

Hi tasr1r1,

Can you provide us with more information? Do you run any custom indicators/cBots when this happens? How many charts do you have open? Any objects on the charts? The more information you can provide about the setup, the easier will be for us to reproduce and investigate.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
12 Feb 2019, 09:28

Hi pozhy,

As the message says, you are using operations that are not supported in optimization. Do you draw objects on charts?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
12 Feb 2019, 09:24

Hi MZen,

You are probably confusing Open API with  cTrader Automate (formely known as cAlgo) API. These two are separate products. Open API is allows traders to develop applications without the need of a host GUI application.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
11 Feb 2019, 17:36

Hi TakeProfit,

You can use Linq to achieve this. See below

var AllPositions = Positions.Where(x => x.Label == "Long" || x.Label == "Short");

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
11 Feb 2019, 16:48

Hi ruylopez,

Thanks for posting in our forum. Does this happen all the time? Can you try deteing the file, restart cTrader and try again?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
11 Feb 2019, 10:45

Hi Alex,

If you mean that the indicator line should change color based on direction, then this is not possible at the moment.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
11 Feb 2019, 10:41

Hi pozhy,

Can you elaborate a bit what do you mean when you say start hour? Do you want the indicator to start drawing on that hour?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
11 Feb 2019, 10:35

Hi Ogacha,

Thanks for posting in our forum. There is no such feature at the moment for built in indicators. You can do this for custom indicators only.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
11 Feb 2019, 10:33

Hi wisegprs,

Y axis is the price. So It is not really clear to me what do you need. 

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
11 Feb 2019, 10:22

Hi erisoftdevelop,

Thanks for posting in our forum. Regarding your questions

1) As soon as a new Bar comes to the chart.

2) You can use  MarketSeries.TickVolume. See below an example 

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 double Parameter { get; set; }

        protected override void OnStart()
        {
            // Put your initialization logic here
        }

        protected override void OnBar()
        {
            Print(MarketSeries.TickVolume.Last(1));
        }

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

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
08 Feb 2019, 17:10

Hi terryww2,

The expected behavior is that when a connection is dropped, you need to resubscribe to the market data. When you say "We observe this behavior only with this particular broker, with others the behavior is as expected.", do you mean that you do not need to resubscribe to market data when connections to other brokers are dropped or that connections are not dropped for other brokers? Also, please let me know which proxy do you use to connect to your Roboforex account.

Best Regards,

Panagiotis

 

 


@PanagiotisCharalampous

PanagiotisCharalampous
08 Feb 2019, 09:37

Hi deepcooler,

Thank you for contacting Spotware and for reporting this issue. Is it possible to provide us with some more information e.g. a short video demonstrating this problem?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
08 Feb 2019, 09:35

Hi ctid863631,

A cTrader Automate robot can only trade with the cTrader's broker. It cannot be connected to an external source.

Best Regards,

Panagiotis.


@PanagiotisCharalampous

PanagiotisCharalampous
07 Feb 2019, 16:57

Hi shrumr.

Our team will need some more assistance to reproduce this problem. Can you still reproduce it on your cTrader Web? If yes, can we arrange a TeamViewer session with our QA team?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
07 Feb 2019, 11:49

Hi Alex,

For demo accounts you need to use demo.ctraderapi.com

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
07 Feb 2019, 11:41

Hi Alex,

Probably you are using the wrong host. Can you tell me version of the API, the host you are using and if it is a demo or live account?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
06 Feb 2019, 09:33

Hi zedodia,

30% of your commissions are retained by Spotware. You can read more here.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
06 Feb 2019, 09:29

Hi Ryan,

From a first look IsPositionOpenByType seems to be doing the opposite of what it is intended to do. It returns true when no positions are open.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
06 Feb 2019, 09:25

Hi wisegprs,

I am not sure what the question is. The code seems fine to me.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
05 Feb 2019, 17:40

Hi aricesar,

Thank you for posting in our forum. You can use the OnBar() function. See below an example

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
    {
        protected override void OnStart()
        {
            // Put your initialization logic here
        }

        protected override void OnBar()
        {
            ExecuteMarketOrder(TradeType.Buy, Symbol, 1000);
        }

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

Best Regards,

Panagiotis


@PanagiotisCharalampous