Replies

PanagiotisCharalampous
06 Mar 2018, 11:11

Hi mariuszpawel33,

I don't think there is anything to confirm since it is not clear to us what you are doing. cAlgo is just a .Net application that can be used for executing your cBots (.Net libraries) and cAlgo.API is a .Net library that can be used by your cBots. So there is nothing specific to email protocols and performance should not deviate much from any general .Net application executing the same code. As far as your issue is concerned, POP3 is a simpler protocol than IMAP therefore I would expect it to be faster. Are you reading emails using a cBot? Then, maybe your performance issue is a cBot specific issue. If you share more information, like the cBot code, then maybe we can provide more specific guidance.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
06 Mar 2018, 10:42

Hi leohermoso,

Thanks for reporting this bug. I have forwarded it to the product team to be fixed.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
06 Mar 2018, 10:41

Hi solomonsny@gmail.com,

Thanks for posting in our forum. What you are asking for needs some substantial development effort. If you need professional help with your cBot, you can contact a cAlgo Consultant.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
06 Mar 2018, 10:24

Hi cidmeku01,

Thanks for posting in our forum. I have tried to reproduce the issue but I couldn't. Could you please send me a cBot that can demonstrate this so that I can investigate further?

Regarding the post you mentioned, it is about an issue in optimization, not backtesting.

Best Regards,

Panagiotis 


@PanagiotisCharalampous

PanagiotisCharalampous
06 Mar 2018, 09:56

Hi oneplusoc,

If you want to convert a custom indicator from MQL4 to cAlgo you can try this tool. If this doesn't help you, you might contact a Consultant to convert it for you.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
06 Mar 2018, 09:51

Hi eklon.sousa@gmail.com,

Thanks for reporting this. Can you please tell us the tick chart you are using?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
05 Mar 2018, 12:52

Hi Alexander,

Sorry, I missed the second question. Currently there is no event to handle a bar change for a timeframe that is not set on the current graph. You will need to find a programmatic workaround for this. See below an example that could guide your implementation

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; }
        private DateTime _lastValue;
        protected override void OnStart()
        {
            _lastValue = MarketData.GetSeries(TimeFrame.Daily).OpenTime.LastValue;
        }

        protected override void OnBar()
        {
            var timeFrame = MarketData.GetSeries(TimeFrame.Daily);
            if (_lastValue != timeFrame.OpenTime.LastValue)
            {
                Print("Last value changed");
                _lastValue = timeFrame.OpenTime.LastValue;
            }
        }

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

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
05 Mar 2018, 11:09

Hi tmc.

We are currently working on improving performance of the beta version.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
05 Mar 2018, 11:06

Hi swingfish,

Please check this post. It might be helpful for you.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
05 Mar 2018, 10:58

Hi Alexander,

The way you implemented this in your last example should work. 

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
05 Mar 2018, 10:56

Hi douglascvas,

You can use  Server.Time.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
05 Mar 2018, 10:50

Hi Anton,

Thanks for posting in our forum. Can you please try downloading the application from https://roboforex.ctrader.com/xTrader.application

Let me know if this works for you.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
05 Mar 2018, 10:47

Hi burakbirer,

Thanks for your feedback. All the features you request will be a part of cTrader Copy, the successor of cMirror, which will be released soon. You can read more in the cTrader Copy section of our website.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
05 Mar 2018, 10:40

Hi Alexander,

I cannot advise if it is functioning right since I don't know what it is supposed to do :) If you describe what you are trying to achieve I might be able to tell if you have coded this right.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
05 Mar 2018, 10:36

Hi amsman,

If the account is a Spotware cTrader demo account then you can open it. If you login with your cTID to the new Spotware cTrader Beta, you should be able to see all your previous accounts listed.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
05 Mar 2018, 10:32

Hi itmfar,

The reason your cBot stops is because it is crashing on OnBar(). Check your log. You need to initialize the IndicatorDataSeries. My question is why do you need to transfer the values to new data series and don't just use the ihk data series directly?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
02 Mar 2018, 17:50

Hi PapaGohan,

We are aware of this request but I will be frank with you, I don't see this coming in the short term. There are requests with bigger demand that are currently our priority like visual backtesting, chart objects and many more. After we deliver them we can start considering this.

We will keep you informed about plans to incorporate this in the future.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
02 Mar 2018, 17:34

Hi marwaha1@gmail.com,

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 double Parameter { get; set; }
        private int _barCount;
        private bool _startCounting;
        protected override void OnStart()
        {
            Positions.Opened += OnPositionsOpened;
        }

        void OnPositionsOpened(PositionOpenedEventArgs obj)
        {
            _startCounting = true;
        }

        protected override void OnBar()
        {
            if (_startCounting)
                _barCount++;
        }

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

Let me know if this helps,

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
02 Mar 2018, 12:56

Hi marwaha1@gmail.com,

You can use DateTime.Now to set the current values. But then the condition will be always true.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
02 Mar 2018, 12:48

Hi henry.tsui.1222,

Currently there is no such feature. However I would like to ask you to post some screenshots of the issue so that I can understand the problem better.

Best Regards,

Panagiotis


@PanagiotisCharalampous