PanagiotisCharalampous's avatar
PanagiotisCharalampous
26 follower(s) 0 following 1006 subscription(s)
Replies

PanagiotisCharalampous
04 Jul 2024, 04:25

Hi there,

There is actual spread in bar information. The concept of spread makes sense only in the contect of tick data and bid and ask prices.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
03 Jul 2024, 08:41

Hi there,

Please note that the WebSocket server needs to use this port as well. Else no communication is possible.

Here’s a step-by-step guide to set up your WebSocket server to communicate with your cBot:

  1. Set up your WebSocket Server:
    • Ensure that your WebSocket server is configured to listen and send messages on port 25345.

Here is a simple example using Node.js with the ws library:
 

const WebSocket = require('ws');

const server = new WebSocket.Server({ port: 25345 });

server.on('connection', socket => {
    console.log('Client connected');

    socket.on('message', message => {
        console.log('Received:', message);
        // Process the message and send a response if needed
        socket.send('Message received');
    });

    socket.on('close', () => {
        console.log('Client disconnected');
    });
});

console.log('WebSocket server is listening on port 25345');

  1. Update Your cBot to Connect to the WebSocket Server:
    • Ensure your cBot is configured to connect to your WebSocket server. The URI should look like this: wss://example.com:25345/.

Here is an example cBot code snippet:

using System;
using System.Text;
using cAlgo.API;
using cAlgo.API.Internals;

namespace cAlgo.Robots
{
    [Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
    public class WebSocketBot : Robot
    {
        private WebSocketClient _webSocketClient;

        protected override void OnStart()
        {
            _webSocketClient = new WebSocketClient();


            var uri = new Uri("wss://example.com:25345/");
            _webSocketClient.Connect(uri);

            Print("WebSocket connection opened");
        }


    }
}
  1. Testing:
    • Start your WebSocket server and ensure it is running and accessible on port 25345.
    • Deploy your cBot to the cTrader Cloud instance.
    • Monitor the logs to ensure the cBot is connecting to the WebSocket server and receiving messages correctly.

By following these steps, your cBot should be able to communicate with your WebSocket server, even in a cTrader Cloud instance.

If you encounter any issues or have further questions, please feel free to reach out.


 


@PanagiotisCharalampous

PanagiotisCharalampous
03 Jul 2024, 07:40

RE: RE: Copying Conditions were met but no actual copy trading

gorot said: 

PanagiotisCharalampous said: 

Hi there,

The problem you are trying to describe is not clear to me. Can you please rephrase and use some images so that we can understand what you are looking at?

Best regards,

Panagiotis

I started copy trading with my chosen strategy provider, but no trades are being copied, as shown in the image. Thank you.

Hi there,

Why do you hide the strategy name? Does your strategy provider have open positions? Can you share a screenshot showing that the strategy has open positions but your account has not?

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
03 Jul 2024, 07:30

Hi there,

This is the case even when a cBot is running (as shown below), suggesting that the respective cBot instance is always running on the active account, which is (obviously) not always the case.

I do not understand what is the problem. What other case could there be for local execution?

In addition to this, I don't see any explicit reference to the respective account where a cBot is running.

What do you mean by explicit reference?


@PanagiotisCharalampous

PanagiotisCharalampous
03 Jul 2024, 07:27

RE: RE: RE: RE: cMAM

diripa said: 

PanagiotisCharalampous said: 

diripa said: 

Hi Panagiotis,

when I hit the Allow access button, I get  the message, which you can see in  the screenshot. I am stuck there. Can you please help. Thank you.

Kurt aiias diripa

 

PanagiotisCharalampous said: 

Hi there,

Can you rephrase your question? It is not clear what you are asking for.

Best regards,

Panagiotis

 

Hi there,

This page just provides you with a token and a refresh token. There is nothing else to do than copy the token and use it as per your wish. What are you trying to do? What do you expect to happen? Please provide some more context.

Best regards,

Panagiotis

Hi there,

I just want to use cMAM. I want to see all my ctrader accounts to use cMAM. I don't know how to get there. I want to have a master account and slave accounts. I am just a simple person,  running a ctrader live account, which is the best platform. I am not a ctrader Guru. That is why I am kindly and humble asking for help. That is all what it is about.

Thank you.

I am not familiar with cMAM. Did you read the documentation? Did you ask in the product's Telegram group https://t.me/cmam_official ?


@PanagiotisCharalampous

PanagiotisCharalampous
03 Jul 2024, 07:26

RE: RE: open positions

wesamforx said: 

PanagiotisCharalampous said: 

Hi there,

This happens because the strategy providers have these positions open in their accounts.

Best regards,

Panagiotis

i already check there is nothing open in his account and it's not just one provider it's all of them opening same positions 2 deferent provider attached in the photos every time i close the copy and open again it will give me the same 2 positions 

 

What exactly did you check? Can you share a screenshot with the strategy's positions?


@PanagiotisCharalampous

PanagiotisCharalampous
02 Jul 2024, 18:53

Hi there,

This happens because the strategy providers have these positions open in their accounts.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
02 Jul 2024, 18:52

RE: RE: RE: RE: RE: RE: RE: History tab not showing previous trades

herve.limousy said: 

PanagiotisCharalampous said: 

 

The history is on the server, let us know if this still happens on v5.0

 

I have the same problem on 5.0.25. The Object "History" in Calgo is not reachable neither; so my bots whose use it are crashing. I tried to delete the fxpro directories in appadata, but it don't works, it works one time, i retrieve the full history the first start of CTrader, after from the second start same thing: the history is empty, only positions who are closed while ctrader is open will be displayed, but at the next start of ctrader, the history will be empty. 

Hi there,

Can you record a video demonstrating this happening on the latest version?

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
02 Jul 2024, 18:51

Hi there,

It's a known issue which the team is currently investigating.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
02 Jul 2024, 18:50

RE: RE: RE: Advanced TP

salvo.rubera said: 

PanagiotisCharalampous said: 

greg83 said: 

Just downloaded cTrader for MacOS last night.. 

Are there no Advanced Take Profit options yet?

I can see the shield icon on the orders???

Hi there,

Advanced protection will be released in an upcoming update of the application.

Best regards,

Panagiotis

Buongiorno sono passati mesi. Tantissime app utilizzano il multi Tp e Sl anche per gli ordini limit, così che il trader sia tranquillo. Posso capire quanto ci vuole per questi banali aggiornamenti? iOS inesistente, Mac inesistente. Grazie

Hi there,

We do not have an ETA at the moment.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
02 Jul 2024, 18:44

RE: RE: cMAM

diripa said: 

Hi Panagiotis,

when I hit the Allow access button, I get  the message, which you can see in  the screenshot. I am stuck there. Can you please help. Thank you.

Kurt aiias diripa

 

PanagiotisCharalampous said: 

Hi there,

Can you rephrase your question? It is not clear what you are asking for.

Best regards,

Panagiotis

 

Hi there,

This page just provides you with a token and a refresh token. There is nothing else to do than copy the token and use it as per your wish. What are you trying to do? What do you expect to happen? Please provide some more context.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
02 Jul 2024, 11:57

Hi there,

Can you rephrase your question? It is not clear what you are asking for.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
02 Jul 2024, 05:31

Hi there,

The problem you are trying to describe is not clear to me. Can you please rephrase and use some images so that we can understand what you are looking at?

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
01 Jul 2024, 18:13

Hi there,

If you are using your own accounts, then you can just obtain your token from the playground.  Then you can just refresh the token whenever needed. You don't need to implement any authentication logic in this case.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
01 Jul 2024, 18:11

Hi there,

cTrader does not execute orders on its own. Please check with your broker regarding details of your execution.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
01 Jul 2024, 18:09

RE: RE: RE: RE: RE: RE: RE: RE: Swaps are zero for back tests

prashantkumar.hg said: 

PanagiotisCharalampous said: 

prashantkumar.hg said: 

prashantkumar.hg said: 

PanagiotisCharalampous said: 

prashantkumar.hg said: 

prashantkumar.hg said: 

PanagiotisCharalampous said: 

Hi there,

Does this happen in cTrader 5.0 as well?

Best regards,

Panagiotis

Thanks Panagiotis.

I am on 4.8.30, Can I upgrade this version to Ctrader5.0 from current version or I need to reinstall complete cTrader? 

After Upgrade I can now see swaps but all instances have been removed :( 

On Upgrade I am seeing instances 

 

Is there a way to view instances old way? Please advise

Hi there,

No this is the new design for the instances.

Best regards,

Panagiotis

 

Thanks Panagiotis. 

Looks like there are issues with this new version. 

  1. Unable to rename bot 
  2. Unable to delete bot
  3. After 5 instances, unable to back test any further instances
  4. consistent hanging during back test

Is there a way I can upgrade to 4.8 to 4.9 instead of 5.0. I did not like version 5.0 and above.

Hi there,

Unable to rename bot 

This option has been removed. You can duplicate the cBot if you need to change the name and delete the old one.

Unable to delete bot

This option is available, I do not see any problems at the moment.

  1. After 5 instances, unable to back test any further instances
  2. consistent hanging during back test

Please create a separate thread regarding this matter. Share your cBot code and send us some troubleshooting information the next time this happens. Please paste a link to this discussion inside the text box before you submit it.

Is there a way I can upgrade to 4.8 to 4.9 instead of 5.0. I did not like version 5.0 and above.

No, there is no version 4.9

Best regards,

Panagiotis

I am using another broker ICMarkets, they are on version 4.9.2 hence was checking but pepperstone are on 4.8.30 where issue with Swaps exists

4.9 is not available for any other broker than IC Markets


@PanagiotisCharalampous

PanagiotisCharalampous
01 Jul 2024, 07:56

RE: RE: RE: RE: RE: RE: Swaps are zero for back tests

prashantkumar.hg said: 

prashantkumar.hg said: 

PanagiotisCharalampous said: 

prashantkumar.hg said: 

prashantkumar.hg said: 

PanagiotisCharalampous said: 

Hi there,

Does this happen in cTrader 5.0 as well?

Best regards,

Panagiotis

Thanks Panagiotis.

I am on 4.8.30, Can I upgrade this version to Ctrader5.0 from current version or I need to reinstall complete cTrader? 

After Upgrade I can now see swaps but all instances have been removed :( 

On Upgrade I am seeing instances 

 

Is there a way to view instances old way? Please advise

Hi there,

No this is the new design for the instances.

Best regards,

Panagiotis

 

Thanks Panagiotis. 

Looks like there are issues with this new version. 

  1. Unable to rename bot 
  2. Unable to delete bot
  3. After 5 instances, unable to back test any further instances
  4. consistent hanging during back test

Is there a way I can upgrade to 4.8 to 4.9 instead of 5.0. I did not like version 5.0 and above.

Hi there,

Unable to rename bot 

This option has been removed. You can duplicate the cBot if you need to change the name and delete the old one.

Unable to delete bot

This option is available, I do not see any problems at the moment.

  1. After 5 instances, unable to back test any further instances
  2. consistent hanging during back test

Please create a separate thread regarding this matter. Share your cBot code and send us some troubleshooting information the next time this happens. Please paste a link to this discussion inside the text box before you submit it.

Is there a way I can upgrade to 4.8 to 4.9 instead of 5.0. I did not like version 5.0 and above.

No, there is no version 4.9

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
01 Jul 2024, 05:31

RE: RE: Bollinger Bands on RSI(or CCI) with unseen MACD

lbwforex said: 

PanagiotisCharalampous said: 

Hi Louis,

Thanks for your kind words. I am not sure why you got the impression that the source in Bollinger Bands cannot change. You can use any source you need. See below where you can do it

Best regards,

Panagiotis

 

Thank you for your reply. 

The issue is two fold. The MACD is still on the chart above the RSI using the MACD data. Maybe there is a way to remove the MACD and keep the the RSI using the MACD data? Then attaching the Bollinger Bands to the RSI does appear to be as easy changing the source parameters for the Bollinger Bands to the RSI, but the Source parameter is grayed out and cannot be changed. I tried to play around with the settings and could not achieve the singular subwindow with the Bollinger Bands on the RSI using the previous MACD data, (unseen same sub window). I am new to cTrader, so I hope there is a way to do this setup, because it is the best setup that exists, im my opinions. Please check it out. 

Thank you, 

Louis B.W.

 

Hi there,

The MACD is still on the chart above the RSI using the MACD data. Maybe there is a way to remove the MACD and keep the the RSI using the MACD data?

No the indicator needs to be on the chart in order to use it as a source. Alternatively, you need to code your own indicator.

but the Source parameter is grayed out and cannot be changed.

You need to add the source when you add the indicator on the chart. You cannot change it later. So make sure your RSI indicator is already on the chart before you add the Bollinger Bands indicator.

Best regards,


@PanagiotisCharalampous

PanagiotisCharalampous
01 Jul 2024, 05:27

Hi there,

cAlgo.API.Indicators.Extensions namespace is missing. You need to find it and reference it.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
01 Jul 2024, 05:21

RE: RE: RE: Swaps are zero for back tests

prashantkumar.hg said: 

prashantkumar.hg said: 

PanagiotisCharalampous said: 

Hi there,

Does this happen in cTrader 5.0 as well?

Best regards,

Panagiotis

Thanks Panagiotis.

I am on 4.8.30, Can I upgrade this version to Ctrader5.0 from current version or I need to reinstall complete cTrader? 

After Upgrade I can now see swaps but all instances have been removed :( 

On Upgrade I am seeing instances 

 

Is there a way to view instances old way? Please advise

Hi there,

No this is the new design for the instances.

Best regards,

Panagiotis


@PanagiotisCharalampous