Topics
23 Oct 2023, 22:43
 372
 2
19 Oct 2023, 13:04
 457
 5
01 Oct 2023, 22:33
 576
 1
13 Oct 2022, 10:20
 724
 2
24 Dec 2020, 04:37
 0
 910
 1
24 Dec 2020, 04:35
 0
 886
 1
24 Dec 2020, 04:34
 0
 897
 1
24 Dec 2020, 04:33
 1
 1350
 5
Replies

acrigney
08 Oct 2022, 05:40

RE: RE: RE: RE:

Guys I rebuilt with Ctrader but still can't debug. Could someone post a youtube of how to debug with the latest version of cTrader?

Shares4us said:

I checked and alterred the rights to FullAccess. That worked partially.
The debugger wil now Launch but ....

When build in vs2022 the created binary is still not used. (See the version problem (See initial Post at  "
The indicator is still version 1.0 instead of the expected 1.1."

So debugging still not possible.

The problem boils down to:

When building by means of VS2022, the .dll is updated but no .algo file is created in the indicators directory

When building by means of cTrader, the .dll is updated and a .algo file is created in the indicators directory

 

Nasty !

 


@acrigney

acrigney
05 Oct 2022, 16:40

RE:

Mate as I said before I have been using Ctrade for 3 years now and had no problems with debugging till now. I am using the latest version which is 4.3.13.9323, can you post a youtube with this version?

Best Regards,

                          Alistair

 

PanagiotisChar said:

Hi Shares4Us,

Make sure your cBots/Indicators have AccessRights set to FullAccess.

Aieden Technologies

Need Help? Join us on Telegram

 

 


@acrigney

acrigney
29 Sep 2022, 14:36

RE:

Thanks mate, I have been developing and debugging ctrader for 3 years now, with no problems, but these latest versions just won't debug and they have the problem that you can not switch bot instances without getting a frozen screen.

(1) from VS2022 break point -> compile -> debug

(2) with System.Diagnostics.Debugger.Launch()  in the onStart method from cBot. 

Click the start button on debugger does not start.

Also attach to ctrader process from a .net 6 or .net 4.8 bot and VS2017 (for my old 4.8 bots( and VS2022 for new .net 6 bots) says that no symbols have been loaded, after the start button is clicked or starting backtesting and the data has been loaded.

 

 

I did all of the steps as outlined below.

PanagiotisCharalampous said:

Hi acrigney,

Please explain exactly what did you do and what does not work for you.

Best Regards,

Panagiotis 

Join us on Telegram and Facebook

 


@acrigney

acrigney
29 Sep 2022, 14:31

RE:

Guys I get this kind of problem all the time, if I start one bot or select one bot instance when I try to switch to another one I get a frozen screen, this has been happing with all of the latest versions such as 4.2 and 4.3.x

PanagiotisCharalampous said:

Hi Thomas,

The screenshot you sent is not related to 

When running for a while the Bollinger Bands are not updated any more, LastValue gives back an old value! Is this a known bug?

We are not able to assess if there is a problem and what it is,  unless we have some source code that reproduces the issue. 

Best Regards,

Panagiotis 

Join us on Telegram and Facebook

 


@acrigney

acrigney
28 Sep 2022, 13:43

Does not work with 4.3.13

I tried all these solutions with 4,3.13 but no luck

amusleh said:

userUser said:

amusleh said:

Hi,

Please follow this guide: Debugging - cTrader Automate API Documentation (spotware.github.io)

Hi Ahmad,

I am not a new with debugger. I use debugger with cTrader 4.1 and VS2019. 

But there is some problem with cTrader 4.2 and VS2022. Symbols are not loading.

 

PS. I tried to start debugging in 2 ways : 

(1) from VS2022 break point -> compile -> debug

(2) with System.Diagnostics.Debugger.Launch()  method from cBot. 

It doesn't work for both ways.

Hi,

In version 4.2 debugging changed, as each cBot/Indicator instance runs on their own separate process.

The link I posted is the guide for debugging on new cTrader 4.2 version with Visual Studio 2022.

If you are seeing the symbol not loading page, just ignore it, switch to your indicator/cBot source code tab and you will be able to continue the execution and it will hit your breakpoints.

 


@acrigney

acrigney
11 Jun 2022, 13:13

RE:

amusleh said:

Hi,

Here you can read more about stop limit orders: Stop-Limit Order Definition: Features & Examples (investopedia.com)

Basically they limit the price that your order can be filled, if price goes outside your set limit (StopLimitRange) then the order will not be filled.

In cTrader you set that limit amount in Pips.

 

Thanks mate but yes I have read that and I know that not many platforms support stop limit orders, but none of the values we use seem to make any difference.

Can you give me an example say on the DOW? Say you have a 5 pip target, what stop limit range would you typically use? I really don't want to have to use limit orders.

Best Regards,

                       Alistair


@acrigney

acrigney
18 Sep 2021, 02:52

RE: I have the same problem the AverageTrueRange can be negative

Looks like this has not been fixed?

Spotware said:

Dear Trader,

Could you please provide us with more information regarding your issue and a code example that causes it?

You can post the code example here or send an email at troubleshooting@spotware.com.

 


@acrigney

acrigney
21 Jul 2021, 09:11

RE: RE:

acrigney said: Thanks mate, maybe its something I have changed then, there were a few recent updates, let me roll back and test again.

Thanks mate I did that just now. This bot was running several instances which is unusual so I will probably send another case.

PanagiotisCharalampous said:

Hi acrigney,

Please send us some troubleshooting information from the instances that are freezing. To do so, press Ctrl+Alt+Shift+T to get the report form, paste the link to this discussion in the text box and press submit.

Best Regards,

Panagiotis 

Join us on Telegram and Facebook

 

 


@acrigney

acrigney
21 Jul 2021, 08:44

RE:

Thanks mate I did that just now. This bot was running several instances which is unusual so I will probably send another case.

PanagiotisCharalampous said:

Hi acrigney,

Please send us some troubleshooting information from the instances that are freezing. To do so, press Ctrl+Alt+Shift+T to get the report form, paste the link to this discussion in the text box and press submit.

Best Regards,

Panagiotis 

Join us on Telegram and Facebook

 


@acrigney

acrigney
13 Jul 2021, 11:12

RE: Calculation using Dynamic Leverage

Guys I would really like to also be able to control my bots tradeswith margin  using the DynamicLeverage property.

I have tried to use the below code to calculate the required margin for each outstanding position and then if this is a sufficient fraction less than the free margin then it should be ok to keep trading. When backtesting the Account.FreeMargin value starts out at your account equity size and it changes as you start trading but I have found that the Account.Margin is not always available. However the calculation below does not give the same value as the Account.Margin.

So can you confirm how I can calculate the margin for each position?

I have tried this code.

public double MarginFor(Position Pos)
        {
            double vol = Pos.VolumeInUnits;
            double margin = 0;

            foreach (var DynamicLeverage in Symbol.DynamicLeverage)
            {
                if (vol >= DynamicLeverage.Volume)
                {
                    double used = Math.Floor(vol / DynamicLeverage.Volume);
                    margin += used / DynamicLeverage.Leverage;
                    vol -= used;
                }
                else if (vol > 0)
                {
                    margin += vol / DynamicLeverage.Leverage;
                    vol = 0;
                }
            }

            return margin * Pos.EntryPrice;
        }

 

Best Regards,

                          Alistair

diiptrade said:

double MarginFor(Position Pos)
{
    double vol = Pos.VolumeInUnits;
    double margin = 0;

    foreach (var DynamicLeverage in Symbol.DynamicLeverage)
    {
        if (vol >= DynamicLeverage.Volume)
        {
            double used = Math.Floor(vol / DynamicLeverage.Volume);
            margin += used / DynamicLeverage.Leverage;
            vol -= used;
        }
        else if (vol > 0)
        {
            margin += vol / DynamicLeverage.Leverage;
            vol = 0;
        }
    }

    return margin * Pos.EntryPrice;
}

 

 


@acrigney

acrigney
31 Mar 2021, 05:35

RE: Login into multiple accounts on the one server

Hi Guys,

                   I think that the Change credentials option needs to be renamed to change settings as you have to logout first to be able to login with other credentials.

Also you should be using the profiles option for multiple accounts.

Just a simple change would make this clearer.

Best Regards,

                             Alistair

PanagiotisCharalampous said:

Hi SmallStep,

A broker's accounts are only accessible through the broker's cTrader. You cannot access a broker's accounts using another broker's cTrader.

Best Regards,

Panagiotis 

Join us on Telegram

 


@acrigney

acrigney
15 Feb 2021, 10:35

RE: Timeline for Python support

Guys you can just upgrade any bot to use .net versions I use .net 4.7.2 but you could use 4.8 if you install the framework.

I have developed a generic ML framework using ML.NET with AutoML. AutoML with Python is so slow its a joke. I have developed generic algos as well and these work in almost all markets and conditions. Although most people build algos that suit specific conditions but dont work very well. But my generic algos work even much better than the ML.

prosteel1 said:

Is there any Timeline estimation for implementing a later version of .Net that would support using Python for Artificial Intelligence cBots?

Previously, Panagiotis and Paul said that 4.0 would implement .Net Core but that got cancelled. 

Current framework is still .Net Framework 4 Client Profile which is extremely old and not compatible with anything current, let alone anything in current use.

Without upgrading to a current .Net Framework I don't see why this version is a major version from 3.8 to 4.0, am I missing something?

 


@acrigney

acrigney
04 Feb 2021, 13:30

RE: backlog for the .net 5 version?

Would you be able to publish your backlog of items?

PanagiotisCharalampous said:

Hi claye.weight,

There is no hard deadline for this. Whenever the new version is considered stable and ready for release to production environments.

Best Regards,

Panagiotis 

Join us on Telegram

 


@acrigney

acrigney
03 Feb 2021, 04:23

RE: Technical Error when placing stop limit orders
 

acrigney said:

I got this technical error for all these markets US30, AUDUSD, bitcoin, eth

Hi Guys,

I am trying to run my bot code that works fine on the minute but not on ticks. I use the TR but that is not available on ticks so I have just disabled that feature.

However I am getting "Technical Error" when placing my stop limit orders. This happens if I use expiry times or no expiry times. I am not sure if expiry times are even available on ticks for StopLimit orders?

Any tips would be really great! It would be nice to have a more descriptive error though?

 

Best Regards,

                      Alistair

 


@acrigney

acrigney
03 Feb 2021, 03:39

Technical Error when placing stop limit orders

Hi Guys,

I am trying to run my bot code that works fine on the minute but not on ticks. I use the TR but that is not available on ticks so I have just disabled that feature.

However I am getting "Technical Error" when placing my stop limit orders. This happens if I use expiry times or no expiry times. I am not sure if expiry times are even available on ticks for StopLimit orders?

Any tips would be really great! It would be nice to have a more descriptive error though?

 

Best Regards,

                      Alistair


@acrigney

acrigney
06 Jan 2021, 13:37

RE: Upgrade to .net 5
 

Also I am not a fan of containerisation except for migrations of legacy products to the cloud. With DDD you can easily use your applications layer (that calls you domain code) in an app service, S2 or Azure Function or Lambda serverless environment  You use app services for statefull application layers and Functions for stateless application layers.

 

Brilliant mate!

May I suggest that you use Domain Driven Design principals so you can plug and play new front/backend technologies easily in the future and quickly evaluate new techs?

Are you into DDD? And you would be using .net shared libraries?

I can help with DDD if you need it?

Best Regards,

                           Alistair

 

abtraderdemo said:

PanagiotisCharalampous said:

Hi acrigney,

The team is already working on this. However we do not have an ETA for this since it is a complicated task.

Best Regards,

Panagiotis 

Join us on Telegram

Hi,

@PanagiotisCharalampous and what about the UI evolution there is a migration of UI to .NET 5.0 and 6.0 after this also to be compatible with OSX, Linux, Mobile...?

And what about using CTrader in Container or Cloud in the future (Ex to do Front-End (Desktop or WEB) and Back-End (REST or Other in Container or Cloud Ex. for cBot... )?

 

 


@acrigney

acrigney
06 Jan 2021, 13:32

Upgrade to .net 5

Brilliant mate!

May I suggest that you use Domain Driven Design principals so you can plug and play new front/backend technologies easily in the future and quickly evaluate new techs?

Are you into DDD? And you would be using .net shared libraries?

I can help with DDD if you need it?

Best Regards,

                           Alistair

 

abtraderdemo said:

PanagiotisCharalampous said:

Hi acrigney,

The team is already working on this. However we do not have an ETA for this since it is a complicated task.

Best Regards,

Panagiotis 

Join us on Telegram

Hi,

@PanagiotisCharalampous and what about the UI evolution there is a migration of UI to .NET 5.0 and 6.0 after this also to be compatible with OSX, Linux, Mobile...?

And what about using CTrader in Container or Cloud in the future (Ex to do Front-End (Desktop or WEB) and Back-End (REST or Other in Container or Cloud Ex. for cBot... )?

 


@acrigney

acrigney
15 Dec 2020, 06:49

RE: RE: I agree with my colleagues, allowing demo accounts to copy isn't a fair business. In name of transparency and differentiation from other systems on the market, it is urged to stop it. Needless to say that same apply for strategy providers. Cheers.

Guys you can provide a private link to your traders now

VitorMZ said:

PanagiotisCharalampous said:

Hi DisciplinedMindset,

There is no way to prevent demo accounts from copying your strategy at the moment.

Best Regards,

Panagiotis 

Join us on Telegram

 

 

 


@acrigney

acrigney
22 Nov 2020, 21:48

Peperstone and Fondex are down but ICMarkets Ctrader is up

Hi Guys,

                Do we have to upgrade to 3.9 desktop now? Seems that these ctraders are down at the moment, I can not setup my bots to start now or run backtests except on ICMarkets but I don't use them for live.

Best Regards,

                      Alistair


@acrigney

acrigney
09 Jul 2020, 07:15

RE: RE: I to am on the hunt for a broker with good stock support that uses ctrader, but there doesn't seem to be one. I live in the UK which probably make sit harder.

The Ctrader from Ctrader themselves has stocks, so you could use that across platform, but I am sure at the moment that no CTrader supporting broker is offering stocks and they have no plans too. I wish the brokers would comment here!!

louisbrowne said:

flemingkyle749 said:

This platform is not that bad, why do you dislike it? I’m trading for many years already and I have never heard anything bad about this platform. By the way, my destiny of the trader was not so good from the beginning. It was more like a hobby for me than I normal job. So I had to work a normal job while I trade only but I have free time. But everything has changed after I found Webull. Webull is a mobile app-based brokerage offering an enhanced trading platform with commission-free trading. It helped me a lot to increase my income.

 

 


@acrigney