Replies

PanagiotisCharalampous
16 Aug 2024, 05:11

Hi there,

Unfortunately it is not possible at the moment.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
16 Aug 2024, 05:08

RE: What's New in cTrader Automate API 3.01

prlozc said: 

please don't remove Colors enumeration because we can't use Color as a default parameter!!!

You can pass the default color as a string


@PanagiotisCharalampous

PanagiotisCharalampous
16 Aug 2024, 05:07

Hi there,

See below


@PanagiotisCharalampous

PanagiotisCharalampous
16 Aug 2024, 04:47

RE: Complete in acefxpro

gssiva586 said: 

Hi Team, 
This is to inform that, My account balance which is untouchable I’m AceFx Pro, Trading Broker.
I have a balance of $9724.90 in my AceFx Pro, trading account, which is traded in C trader Platform. I have tried withdrawing my profit and at least my capital, but my withdrawals are being stopped by the broker with no reason to hold and I haven’t  reversed any form of response yet. 
So please help me to, get my capital at-least as a minimum requirement for me to access my fund for the withdrawal. I want is to close my trading account and withdraw my capital and mark a negative review on AceFx Pro.
Below mentioned are my trading account details;

Email ID:  gssiva586@gmail.com
Live ID : 1054315

Total balance: $9639.70

Please be kind enough to sort my issue and get my funds back.
Thank you.

Hi there,

Unfortunately you will not get much help in this forum. If you cannot settle the issue with your broker, contact the regulator or your local authorities.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
15 Aug 2024, 05:55

Hi there,

Check advanced protection in the link below

https://help.ctrader.com/ctrader/interface/trade-watch/?h=advanced+p#position-advanced-protection

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
15 Aug 2024, 05:54

Hi Waxy,

Thanks for the post. These are not issues but Suggestions. Feel free to post them in the relevant section.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
15 Aug 2024, 05:44

RE: RE: RE: RE: RE: RE: RE: Calling DLL functions help.

rick2010 said: 

PanagiotisCharalampous said: 

rick2010 said: 

rick2010 said: 

PanagiotisCharalampous said: 

rick2010 said: 

PanagiotisCharalampous said: 

Hi there,

cBots are based on .Net. Therefore you can only call dll files based on managed code. If your dll is based on managed code, you should be able to use it.

Best regards,

Panagiotis

Thanks for the reply. I figured that was the case. I got a DLL written in managed C/C++. I need to be able to call this DLL from the cBot. I guess the only way to do that is to create a .Net DLL proxy that will call my C++ DLL?

Check the article below. It should help 

https://learn.microsoft.com/en-us/dotnet/framework/interop/consuming-unmanaged-dll-functions

Thanks

I created a .NET DLL wrapper class that calls my unmanaged C++ DLL functions ok. I added the code below to the cBot and it compiles fine in cTrader but when I run the cBot it says it can't find the DLL even though the DLL is in the same directory?

    internal static class NativeMethods {
    
        [DllImport("Client.dll", CallingConvention = CallingConvention.Cdecl)]
        internal static extern bool connClient(uint id, char[] username, char[] password);
    }

13/08/2024 22:06:42.127 | Info | CBot instance [Client_CBOT, EURUSD, h1] started.
13-08-2024 22:06:42.908 | Error | Crashed in OnStart with DllNotFoundException: Unable to load DLL 'Client.dll' or one of its dependencies: The specified module could not be found. (0x8007007E)

Any ideas? Do I have to use the .NET DLL wrapper… doesn't make sense to do that when cBot is built in .NET?

Make sure your dll is copied to the output directory. Check the Copy Local property and make sure is set to true

 

Thanks but can you attach a bigger screenshot? I don't know where that setting is…

It's from the reference's properties. Click on the reference and check it's properties.

 


@PanagiotisCharalampous

PanagiotisCharalampous
15 Aug 2024, 05:41

Hi there,

It should have been approved now.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
15 Aug 2024, 05:40

Hi there,

It's hard to get help with such vague descriptions. Please provide exact steps we can follow and reproduce such issues.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
15 Aug 2024, 05:29

Hi there,

There is no built in parameter for this but you could pass this information by yourself through a cBot parameter.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
15 Aug 2024, 05:25

RE: RE: RE: cTrader Web Algo not working?

zytotoxiziteat said: 

zytotoxiziteat said: 

PanagiotisCharalampous said: 

Hi there,

You are doing nothing wrong. cBots running locally require cTrader to be running.

Best regards,

Panagiotis

 Thank you!

I read that it is possible to run the bots on a cloud:

https://help.ctrader.com/ctrader-algo/synchronisation/

It says: “Synchronisation with the Cloud is a feature that allows you to run cBots in a dedicated environment independent of your local machine”

I thought setting up the insurance is enough. 

How can I run my bots 24/7 on a cloud without using my local machine?

 

Thank you!

Okay how do I turn Synchronization on if I dont have the checkbox? 

 

 

Hi there, 

To use cloud execution, you need to use the latest version of cTrader. You can find it in the link below

https://ctrader.com/download/

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
14 Aug 2024, 10:17

Hi there, 

You cannot set a trailing stop loss using FIX API. If you need to set a trailing stop loss, you should use Open API instead.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
14 Aug 2024, 10:13

RE: RE: RE: RE: RE: Calling DLL functions help.

rick2010 said: 

rick2010 said: 

PanagiotisCharalampous said: 

rick2010 said: 

PanagiotisCharalampous said: 

Hi there,

cBots are based on .Net. Therefore you can only call dll files based on managed code. If your dll is based on managed code, you should be able to use it.

Best regards,

Panagiotis

Thanks for the reply. I figured that was the case. I got a DLL written in managed C/C++. I need to be able to call this DLL from the cBot. I guess the only way to do that is to create a .Net DLL proxy that will call my C++ DLL?

Check the article below. It should help 

https://learn.microsoft.com/en-us/dotnet/framework/interop/consuming-unmanaged-dll-functions

Thanks

I created a .NET DLL wrapper class that calls my unmanaged C++ DLL functions ok. I added the code below to the cBot and it compiles fine in cTrader but when I run the cBot it says it can't find the DLL even though the DLL is in the same directory?

    internal static class NativeMethods {
    
        [DllImport("Client.dll", CallingConvention = CallingConvention.Cdecl)]
        internal static extern bool connClient(uint id, char[] username, char[] password);
    }

13/08/2024 22:06:42.127 | Info | CBot instance [Client_CBOT, EURUSD, h1] started.
13-08-2024 22:06:42.908 | Error | Crashed in OnStart with DllNotFoundException: Unable to load DLL 'Client.dll' or one of its dependencies: The specified module could not be found. (0x8007007E)

Any ideas? Do I have to use the .NET DLL wrapper… doesn't make sense to do that when cBot is built in .NET?

Make sure your dll is copied to the output directory. Check the Copy Local property and make sure is set to true

 


@PanagiotisCharalampous

PanagiotisCharalampous
14 Aug 2024, 10:08

RE: RE: HTTP requests with cBot Cloud instance

zinger6673 said: 

PanagiotisCharalampous said: 

Hi there,

No, internet access is not permitted for cBots executed on the cloud.

Best regards,

Panagiotis

Thanks for the reply, If internet access is not permitted then why does it say here https://help.ctrader.com/ctrader-algo/synchronisation/requirements-for-cbots/#api-features that we can connect to a WebSocket server as long its port 25345. Is this article outdated or is it possible?
 

using System;using cAlgo.API;namespace cAlgo.Robots {    [Robot(AccessRights = AccessRights.None, AddIndicators = true)]    public class TESTlistenonly : Robot {        public WebSocketClient client;        public string uri;                protected override void OnStart() {            Print("attempting connection");            client = new WebSocketClient();            var uri = new Uri("wss://server:25345/");            client.Connect(uri);            Print("WebSocket connection opened");        }    }}

I have my own server running on port 25345 and it works on local execution but on the cloud it says this

There was no mention of web sockets in the initial post. Yes, it's possible to use web sockets through port 25345. Does your server listen to this port?


@PanagiotisCharalampous

PanagiotisCharalampous
14 Aug 2024, 10:05

Hi there,

You are doing nothing wrong. cBots running locally require cTrader to be running.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
14 Aug 2024, 10:03

Hi there,

There is no such feature at the moment.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
13 Aug 2024, 15:54

Hi there,

As per the message, you are overriding an obsolete member. You should use the Position.Closed event instead.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
13 Aug 2024, 15:52

Hi there,

Can you share the code so that we can reproduce this issue?

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
13 Aug 2024, 12:15

RE: RE: Total P&L

facchinm92 said: 

PanagiotisCharalampous said: 

Hi there,

This field is not available at the moment. It will be added in a future update.

Best regards,

Panagiotis

by any chance can you tell me when it will be released approximately? and if the platform will update automatically or will I have to search for it on the site

Hi there,

The platform will update automatically but I do not have a date for the update.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
13 Aug 2024, 06:35

Hi there,

This field is not available at the moment. It will be added in a future update.

Best regards,

Panagiotis


@PanagiotisCharalampous