cTrader 3.7 Problem using multisymbol indicator in visual backtesting

Created at 27 Jan 2020, 14:27
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
SA

sandrotame1900

Joined 27.01.2020

cTrader 3.7 Problem using multisymbol indicator in visual backtesting
27 Jan 2020, 14:27


Hello,

In cTrader 3.6 when using visual backtesting i can use indicator using multi symbol data with no problem.

But with the new version 3.7, it doesnt work anymore, if i am using the visual backtesting, the multisymbol indicator ont it never load data, even when using the new Bars API.

Is this normal ?


@sandrotame1900
Replies

PanagiotisCharalampous
29 Jan 2020, 11:25

Hi sandrotame1900,

Can you please share the indicator with us as well as some steps to reproduce the problem?

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

sandrotame1900
30 Jan 2020, 13:12 ( Updated at: 21 Dec 2023, 09:21 )

RE:

PanagiotisCharalampous said:

Hi sandrotame1900,

Can you please share the indicator with us as well as some steps to reproduce the problem?

Best Regards,

Panagiotis 

Join us on Telegram

 

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

namespace cAlgo
{
    [Indicator(IsOverlay = false, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
    public class SimpleIndicator : Indicator
    {
        [Parameter(DefaultValue = "EURUSD")]
        public string symbName { get; set; }

        [Output("Main")]
        public IndicatorDataSeries Result { get; set; }

        private MarketSeries ms;

        protected override void Initialize()
        {

            ms = MarketData.GetSeries(symbName, TimeFrame);
        }

        public override void Calculate(int index)
        {
            DateTime dt = MarketSeries.OpenTime[index];
            int indexMS = ms.OpenTime.GetIndexByTime(dt);

            Result[index] = ms.Close[indexMS];
        }
    }
}

Here is an example with a simple indicator that just plot the close of other symbol.

If we add this indicator to the chart while we are in visual backtesting, on cTrader 3.6 there is no problem, indicators load and work normally, but on the 3.7 indicators never load.

Screenshot V3.6

Screenshot V3.7


@sandrotame1900

dubmocio
23 Jan 2021, 17:38

Hi,

I have the exact same problem, very annoying. 

I'm using cTrader 3.8.

Please, Might you give us any feedback ?


@dubmocio

ctid2514471
24 Jan 2021, 03:58 ( Updated at: 21 Dec 2023, 09:22 )

Just to add to the chorus, I am trying to do something similar in 3.8, so any updates/information would be great!

In fact, some of the standard Indicators, like SwingIndex, simply don't seem to display in tick T1 view, in my cTrader 3.8 :

Is this normal / to be expected, or is something wrong?


@ctid2514471

PanagiotisCharalampous
25 Jan 2021, 08:58

RE:

dubmocio said:

Hi,

I have the exact same problem, very annoying. 

I'm using cTrader 3.8.

Please, Might you give us any feedback ?

Hi dubmocio,

This is an old issue which I cannot reproduce at the moment. Can you please provide more information about your issue so that we can reproduce?

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
25 Jan 2021, 09:00 ( Updated at: 21 Dec 2023, 09:22 )

RE:

ctid2514471 said:

Just to add to the chorus, I am trying to do something similar in 3.8, so any updates/information would be great!

In fact, some of the standard Indicators, like SwingIndex, simply don't seem to display in tick T1 view, in my cTrader 3.8 :

Is this normal / to be expected, or is something wrong?

Hi ctid2514471,

This seems to be irrelevant to the issue described in this post. Can you please create a new thread?

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

dubmocio
26 Jan 2021, 12:16

RE: RE:

PanagiotisCharalampous said:

dubmocio said:

Hi,

I have the exact same problem, very annoying. 

I'm using cTrader 3.8.

Please, Might you give us any feedback ?

Hi dubmocio,

This is an old issue which I cannot reproduce at the moment. Can you please provide more information about your issue so that we can reproduce?

Best Regards,

Panagiotis 

Join us on Telegram

Hi,

It is quite curious..

I tested in visual bakstesting my own multisymbol indicator during the weekend when the markets were closed. It didn't work.

I repeated the test yesterday. It worked fine.

Same today. It's working fine.

Is there any possibility that a multisymbol indicator visual backtest works only when the markets are open ?

I did the above tests even with the sample indicator posted by sandrotame1900 in this post. Same results...

 

Thanks

 


@dubmocio

dubmocio
27 Jan 2021, 20:23

RE: RE: RE:

dubmocio said:

PanagiotisCharalampous said:

dubmocio said:

Hi,

I have the exact same problem, very annoying. 

I'm using cTrader 3.8.

Please, Might you give us any feedback ?

Hi dubmocio,

This is an old issue which I cannot reproduce at the moment. Can you please provide more information about your issue so that we can reproduce?

Best Regards,

Panagiotis 

Join us on Telegram

Hi,

It is quite curious..

I tested in visual bakstesting my own multisymbol indicator during the weekend when the markets were closed. It didn't work.

I repeated the test yesterday. It worked fine.

Same today. It's working fine.

Is there any possibility that a multisymbol indicator visual backtest works only when the markets are open ?

I did the above tests even with the sample indicator posted by sandrotame1900 in this post. Same results...

 

Thanks

 

Today Ctrader updated itself to version 4.0. Same indicators tested above are not working anymore in visul backtesting... how could it be possible ?!? is it just a coincidence ?

Thanks


@dubmocio

PanagiotisCharalampous
28 Jan 2021, 08:39

Hi dubmocio,

I asked for more information above but you did not provide it. Unfortunately we cannot help you if we do not get more information, like the indicator code and exact steps to reproduce this issue.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

dubmocio
28 Jan 2021, 08:48

RE:

PanagiotisCharalampous said:

Hi dubmocio,

I asked for more information above but you did not provide it. Unfortunately we cannot help you if we do not get more information, like the indicator code and exact steps to reproduce this issue.

Best Regards,

Panagiotis 

Join us on Telegram

In my previous post I specifically wrote : '' I did the above tests even with the sample indicator posted by sandrotame1900 in this post. Same results...'' meaning that both my own indi and the one posted in this very first post are giving me the same result. Just take that code, as I did to test the issue. Yesterday it was not working for me. On the contrary it worked 2 days ago. I also tried to substitute MarketSeries with the new API Bars. Same results. Yesterday it didn't work. 2 days ago it did.

Thanks. 


@dubmocio