Backtest not working after saturday update

Created at 13 Sep 2022, 16:32
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!
SP

Sparkymark123

Joined 23.03.2022

Backtest not working after saturday update
13 Sep 2022, 16:32


My platform updated on Saturday and now there is no equity or balance shown upon backtesting, just an empty box.

 

 

It is also taking a ridiculous amount of time to perform a backtest.

 

After around an hour or two I am still only into the third day of a backtest.

 

Is anybody else having this problem?

 

I have tried on both desktop and netbook and exactly the same thing is happening

I use a broker variant of the platform and so need to know if it is something on their side or ctrader update.


@Sparkymark123
Replies

PanagiotisCharalampous
14 Sep 2022, 09:08

Hi dionysian.apostle,

Can you please let us know your broker, the version of cTrader you are using as well as share some screenshots?

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous

Sparkymark123
14 Sep 2022, 12:16

backtest issues

I have been updated to version 4.3.13

I have just been on a teams meeting and people on there have the same issue with 4.3.12

We have found the issue to be happening on the normal Ctrader platform on a demo account with no broker involved.


@Sparkymark123

PanagiotisCharalampous
14 Sep 2022, 12:19

Hi dionysian.apostle,

Can you provide a screenshot or a video of what are you looking at?

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous

Sparkymark123
14 Sep 2022, 12:21 ( Updated at: 21 Dec 2023, 09:22 )


@Sparkymark123

PanagiotisCharalampous
14 Sep 2022, 12:26

Hi dionysian.apostle,

Can you try gining full access to your cBot?

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous

Sparkymark123
14 Sep 2022, 13:25

here is a simple cbot that shows no equity or balance in the backtest

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

namespace cAlgo.Robots
{
    [Robot(AccessRights = AccessRights.None)]

    public class Marks : Robot
    {



        [Parameter("Quantity (Lots)", Group = "Volume", DefaultValue = 0.01, MinValue = 0.01, Step = 0.01)]
        public double Quantity { get; set; }

        [Parameter("Source")]
        public DataSeries Source { get; set; }



        [Parameter("MA slow", DefaultValue = 200)]
        public int MAslow { get; set; }


        [Parameter("MA medium", DefaultValue = 30)]
        public int MAmedium { get; set; }

        [Parameter("MA fast", DefaultValue = 10)]
        public int MAfast { get; set; }

        [Parameter("Take Profit", DefaultValue = 50, MinValue = 1)]
        public int TP { get; set; }

        [Parameter("Stop Loss", DefaultValue = 500, MinValue = 1)]
        public int SL { get; set; }
        

       
        private MovingAverage i_MA_slow;
        private MovingAverage i_MA_fast;
        private MovingAverage i_MA_medium;


        private double volumeInUnits;

        protected override void OnStart()
        {
          
            volumeInUnits = Symbol.QuantityToVolumeInUnits(Quantity);
            

            i_MA_slow = Indicators.MovingAverage(Bars.ClosePrices, MAslow, MovingAverageType.Exponential);
            i_MA_fast = Indicators.MovingAverage(Bars.ClosePrices, MAfast, MovingAverageType.Exponential);
            i_MA_medium = Indicators.MovingAverage(Bars.ClosePrices, MAmedium, MovingAverageType.Exponential);
        }



        protected override void OnBar()
        {

            if (i_MA_fast.Result.Last(200) > i_MA_medium.Result.Last(200))
            {
                ExecuteMarketOrder(TradeType.Sell, SymbolName, volumeInUnits, "SCALP", SL, TP);

            }
}


        }


            }
        
    




















 


@Sparkymark123

Sparkymark123
18 Sep 2022, 09:35

1 tick problem

I have now discovered this problem lies only when the backtest is done on one tick timescale.

Anything above 2 ticks works fine.


@Sparkymark123

PanagiotisCharalampous
19 Sep 2022, 12:45

Hi dionysian.apostle,

When I say gining full access, I mean here

namespace cAlgo.Robots
{
    [Robot(AccessRights = AccessRights.FullAccess)]

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous