Replies

PanagiotisCharalampous
16 May 2018, 09:17

Dear Trader,

Unfortunately this is not possible. Currently it is not possible to choose where to install cTrader and cAlgo.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
15 May 2018, 17:16

Hi nicdanzac,

Try to copy the code into a new cBot and build it.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
15 May 2018, 16:26

Hi Simon,

Without a cBot that we can use to reproduce the problem, it is very difficult to determine the cause of the problem.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
15 May 2018, 16:13

Hi simon,

Can you share your cBot code with us so that we can try it as well?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
15 May 2018, 15:09

Hi ceakuk,

This is currently not available.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
15 May 2018, 12:15

Hi thoy1,

Try

PendingOrders.Count(x => x.TradeType == TradeType.Buy)

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
15 May 2018, 09:11

Hi lec0456,

This feature has not been included in the first release of cTrader 3.0. It is going to be restored in one of the next updates.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
15 May 2018, 09:09

Hi pogostick,

Most probably the reason is that CheckMarketTrend() changes value when called every time from the OnTick method.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
14 May 2018, 10:00

Hi Sasha,

MarketSeries.Open.Last(0) and MarketSeries.Close.Last(0) show the values of the current bar. When on OnBar() both values will be identical since the bar has just opened. If you want the previous bar's value, use MarketSeries.Open.Last(1) and MarketSeries.Close.Last(1).

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
14 May 2018, 09:54

Hi hurtubey,

Thanks for posting in our forum. Is it possible to take a shot video demonstrating this behavior so that I can send it to the product team?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
14 May 2018, 09:47

Hi thriscio,

The roll out stage is in progress. We have already deployed cTrader 3.0 to some brokers. It should arrive soon to your broker as well.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
14 May 2018, 09:44

Hi jelle2500,

See below

if(AllowBuy1 || AllowBuy2)
{
// Execute Buy Order
}
if(AllowSell1 || AllowSell2)
{
// Execute Sell Order
}

Let me know if this is what you are looking for.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
14 May 2018, 09:41

Hi Astroke,

Thanks for posting in our forum. If your broker does not exist and you still have linked accounts to your cTID, send an email to feedback@spotware.com to assist you further.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
14 May 2018, 09:35

Hi pogostick,

Thanks for posting in our forum. You can consider something like the following

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
    {
        bool _marketTrend;

        protected override void OnStart()
        {

        }

        protected override void OnTick()
        {
            if (_marketTrend)
            {
                if (Positions.Count < 1)
                {
                    ManageOpenSellPositions();
                }
            }
            else
            {
                if (Positions.Count < 1)
                {
                    ManageOpenBuyPositions();
                }
            }
        }
        protected override void OnBar()
        {
            _marketTrend = CheckMarketTrend();
        }

        private bool CheckMarketTrend()
        {

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

Let me know if the above helps,

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
14 May 2018, 09:22

Hi jelle2500,

You can use a condition like below

            if (Positions.Count(x => x.TradeType == TradeType.Buy) == 0)
            {
                // Execute Buy Trade
            }

?Let me know if this helps you

 

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
11 May 2018, 14:13

Hi shelby.pereira,

There is no cAlgo 2.01 available from Spotware. However you can download it from brokers that still have not rolled out cTrader 3.0.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
11 May 2018, 14:10

Hi FMogyi,

Try to download cTrader from this link and let me know if it works.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
11 May 2018, 10:30

Hi beneditobvn,

In the second message you sent, you separate the price decimals with comma. Please use dot. 

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
11 May 2018, 10:26

Hi Xavier,

See below my comments for your points

1. Support for more input parameter types is in our nearest plans. Including custom enums, DateTime, Symbol, color picker for new Color type and more value types from .Net.

2. Buttons and other controls are currently in progress. You will get this in the near future.

3. The next version of cTrader will have visual backtesting. Chart objects, like lines and shapes, will be drawn on the chart during visual backtesting and at the end of silent backtesting all objects will stay on the chart.

4. Same day data for backtesting and optimization are planned as well.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
11 May 2018, 10:17

Hi Eklon,

Thanks for your message. Indeed we avoid committing on dates, it is a policy to compromise on time rather than on quality. However, we understand your impatience to get new features more often, therefore we are currently restructuring our processes for a faster release cycle for our client side applications. Rest assured that you will be receiving updates more often in the future.

Now regarding what is coming soon, our immediate plans include a symbol centric design of cTrader, more chart types (renko, range etc), new features in cTrader Automate like visual backtesting and Charts API, a revamped cTrader Copy application and many more. We will post detailed announcements about these new features soon.

Best Regards,

Panagiotis


@PanagiotisCharalampous