Replies

PhoenixCapital
21 Aug 2023, 12:00

Yea, I am having issues with the backtest as well on the new version. Too many changes and no enough testing. How do I go back to the previous version on ctrader?


@PhoenixCapital

PhoenixCapital
19 Aug 2023, 13:46 ( Updated at: 21 Dec 2023, 09:23 )

It works on live trading, but not on backtest. Backtesting is the issue. 

 

This is the image for live trading with the test count at 1 million.

 


@PhoenixCapital

PhoenixCapital
19 Aug 2023, 13:42

I am having a similar issue as well. The backtest just stops during a for loop after 50,000 entry. The new update is very buggy. I dont have an answer yet, but i will let you know when I do.


@PhoenixCapital

PhoenixCapital
19 Aug 2023, 13:07 ( Updated at: 21 Dec 2023, 09:23 )

Here is a simple code for testing. 

 

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

namespace cAlgo.Robots
{
    [Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.FullAccess)]
    public class NewcBot : Robot
    {
        public int testCount = 60000;

        protected override void OnStart()
        {
            
            for (int i = 0; i < testCount; i++)
            {
                Print(i);
            }
            
        }

        protected override void OnTick()
        {
            // Handle price updates here
        }

        protected override void OnStop()
        {
            // Handle cBot stop here
        }
    }
}

Here is the image. It just stops at 50,000 entries on the log.

 


@PhoenixCapital

PhoenixCapital
17 Mar 2021, 05:37 ( Updated at: 21 Dec 2023, 09:22 )

RE:

PanagiotisCharalampous said:

Hi quantumtrading,

We do not have an ETA at the moment.

Best Regards,

Panagiotis 

Join us on Telegram

Hi Panagiotis,

I am having a similar issues as well.

Also with the ROI which is based on equity figures, not balance/gains figures which is misleading.

 

Strategy is https://ct.icmarkets.com/copy/account/1189401-icmarkets


@PhoenixCapital

PhoenixCapital
10 Aug 2020, 11:50 ( Updated at: 21 Dec 2023, 09:22 )

RE:

PanagiotisCharalampous said:

Hi findseun08,

There is no difference in coding for renko charts. It is the same as for time based charts. What examples are you looking for?

Best Regards,

Panagiotis 

Join us on Telegram

 

Hi Panagiotis,

Thank you for your quick response.

What I mean is that I want to be able to code with the Renko like I can on a minute chart (i.e. Bar, Minute10, Min3 etc), but there is no method or reference for using renko to code (i.e. Renko Method)

 

Do you know when this will be available?

Thanks,.

 

Seun


@PhoenixCapital

PhoenixCapital
09 Aug 2020, 20:32

RE:

PanagiotisCharalampous said:

Hi ghcaplan,

Thanks for posting in our forum. No this is still not possible.

Best Regards,

Panagiotis

Hi Panagiotis,

 

Can Renko be used in the code?

 

If so how? It doesnt seem that there is a method to utilize the Renko that is on the chart.

 

Thanks.


@PhoenixCapital

PhoenixCapital
01 May 2020, 21:21

RE:

tinker.this said:

Can someone help me with a code snippet that will:

Find position with biggest loss and close it

 

Thanks

Its:

var position = Positions.OrderByDescending(i => (i.NetProfit)).Where(i => i.Label == "Label").LastOrDefault();

 


@PhoenixCapital