Replies

peeppalts
05 Aug 2015, 22:36

Any news?


@peeppalts

peeppalts
05 Aug 2015, 22:35

RE:

This post was removed by moderator because it duplicates another post. /forum/ctrader-support/5049?page=1#7


@peeppalts

peeppalts
15 Jun 2015, 12:25

RE:

Hi!

Thanks for the response! 

So I did it, I hope we can solve it soon.

With regards,

Peep Palts

Spotware said:

Dear Trader,

Could you please press Ctrl+Alt+Shift+T in cTrader?

 It will submit troubleshooting information to our support team.

 


@peeppalts

peeppalts
03 Jun 2015, 11:57

Hey guys!

Any news? The problem is up, how we can fix it?

I reinstalled software, took from brokers site and Spotware, does not matter, issue is same.

Charts does not scroll, even does not paint.

OS: Win 7 SP1 64-bit, latest updates are installed. RAM 8GB, 248 GB free on HDD, .NET 4.5.2, .NET 4.5.1, .NET 4.5.0, .NET 4.0, .NET 3.5, .NET 3.0, .NET 2.0 are installed.

With many thanks,

Peep Palts


@peeppalts

peeppalts
30 Jan 2015, 16:22

RE: RE:

Thank you!

It works.

P.

AlexanderRC said:

3041865 said:

How can I save optimisation results?

Parameters, trade statistics, history?

For individual optimization run:
Parameters: Click on Parameters tab and then click Save Parameters at the right.
Trade Statistics: currently not possible to export.
History: Click on History tab, then right click on history results and then click Export to Excel.

It is not currently possible to save all (or say, top 10) results at once.

Try Spotware demo, there were some enhancements on Balance Chart in the way equity min/max are displayed which I really like.

 


@peeppalts

peeppalts
30 Jan 2015, 13:57

Hi!

How can I save optimisation results?

Parameters, trade statistics, history?

With regards,

Peep Palts


@peeppalts

peeppalts
30 Jan 2015, 13:22

This is class and function what I want to test:

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

namespace cAlgo
{
    public class Tester
    {
        public Tester()
        {
        }
        public bool cross(IndicatorDataSeries EMA1, IndicatorDataSeries EMA2, int index)
        {
            if (EMA1[index] > EMA2[index])
                return true;
            return false;
        }
    }
}

Next is my testclass:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using cAlgo;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using cAlgo.API;
using cAlgo.API.Indicators;
using cAlgo.API.Internals;
using cAlgo.Indicators;

namespace cAlgo.Tests
{
    [TestClass()]
    public class TesterTests
    {
        [TestMethod()]
        public void crossTest()
        {
            Tester tester = new Tester();
            IndicatorDataSeries EMA1;
            IndicatorDataSeries EMA2;
			
            EMA1 = CreateDataSeries();
            EMA2 = CreateDataSeries();
			
            EMA1[0] = 1;
            EMA1[1] = 1;
            EMA1[2] = 1;
            EMA1[3] = 2;
            EMA1[4] = 3;
            EMA1[5] = 3;
            EMA1[6] = 3;

            EMA2[0] = 3;
            EMA2[1] = 3;
            EMA2[2] = 3;
            EMA2[3] = 2;
            EMA2[4] = 1;
            EMA2[5] = 1;
            EMA2[6] = 1;

            bool expected = true;
            int expectedIndex = 4;
            bool actual;
         
            for (int i = 0; i<=6; i++)
            {
               actual = tester.cross(EMA1, EMA2, i);
                if (i == expectedIndex)
                {
                    Assert.AreEqual(expected, actual);
                }
            }
        }
    }
}

Do you have any ideas how to get testing to work?

With thanks,

Peep Palts


@peeppalts

peeppalts
30 Jan 2015, 13:13

I want to create my own DataSeries for testing the function.

Later the function will read real indicator.

With regards,

Peep Palts


@peeppalts

peeppalts
30 Jan 2015, 12:46

Hi!

Can enyone post here example how to use Unit Tests with IndicatorDataSeries.

 cAlgo.API.Internals.CreateDataSeries() is not available in the tester class.

Example of my test class is below

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using cAlgo;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using cAlgo.API;
using cAlgo.API.Indicators;
using cAlgo.API.Internals;
using cAlgo.Indicators;

namespace cAlgo.Tests
{
    [TestClass()]
    public class TesterTests
    {
        [TestMethod()]
        public void EMATest()
        {
            //IndicatorDataSeries EMA1;
            //IndicatorDataSeries EMA2;
            //cAlgo.API.Internals.CreateDataSeries();
            cBot4 cBot = new cBot4();
            Tester tester = new Tester();
            IndicatorDataSeries EMA1;
            EMA1 = CreateDataSeries();

        }
    }
}

With regards,

Peep Palts


@peeppalts