Replies

PanagiotisCharalampous
19 Aug 2024, 12:09

RE: RE: Training Stop loss

siddasaiganesh said: 

PanagiotisCharalampous said: 

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

Hi Can I get any samples of code having trailing stop loss using this Open API.

You can find Python samples of Open API in the link below

https://github.com/spotware/OpenApiPy

Trailing stop loss is set in ProtoOANewOrderReq.trailingStopLoss property


@PanagiotisCharalampous

PanagiotisCharalampous
19 Aug 2024, 06:34

Hi there,

You can change your candle colors by right clicking on the chart and selecting color options.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
19 Aug 2024, 05:57

Hi there,

How can we help you?

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
19 Aug 2024, 05:56

Hi there,

Are you using any proxy to connect? Can you send us a screenshot of the Connection Settings?

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
19 Aug 2024, 05:54

Hi there,

Price feeds are a responsibility of the broker. Please talk to your broker regarding this matter.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
19 Aug 2024, 05:53

Hi there, 

Pending orders are only limit, stop and stop limit orders. A market order is not a pending order.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
19 Aug 2024, 05:51

Hi there,

What is a “swiset”? Can you share some screenshots so that we can understand what you are looking at?

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
19 Aug 2024, 05:45

Hi there,

You can go to History, open your Deal information and navigate to the Order details

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
19 Aug 2024, 05:36

Hi there,

Trading conditions are configured by your broker. Check with your broker.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
19 Aug 2024, 05:33

Hi there,

The easiest way would be to develop a cBot executing your strategy natively inside cTrader. You can check the documentation below

https://help.ctrader.com/ctrader-algo/how-tos-index/#defining-cbots

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
19 Aug 2024, 05:20

Hi there,

Can you record a video demonstrating the steps you are taking to reproduce this behavior?

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
19 Aug 2024, 05:14

Hi Raul,

The team confirmed this is a bug and it will be solved in an upcoming update.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
19 Aug 2024, 05:14

Hi Raul,

The team confirmed this is a bug and it will be solved in an upcoming update.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
17 Aug 2024, 06:36

Hi there, 

In order to reference an indicator in your cBot, you would need to have the indicator's source code. It is not possible to reference an indicator that comes without source code.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
16 Aug 2024, 13:55

Hi there,

Send an email to development@clickalgo.com

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
16 Aug 2024, 13:54

RE: RE: RE: Account.Margin not correct : Unacceptable

ncel01 said: 

PanagiotisCharalampous said: 

ncel01 said: 

?

This issue has been fixed, it's been a while. I cannot reproduce it. Make sure you download historical data when you backtest.

 

Hi Panagiotis,

The values I get for the account margin are still not matching while backtesting the code above.
Are you backtesting an index? Probably not.

I selected the historical data, as suggested.
However, the account and symbol currency is the same (USD) and still I am getting different results when selecting/unselecting this option. Why?

I checked this with both Varianse and Pepperstone (using historial data).
Below is the backtest output with Varianse.

Hi ncel01,

Yes I do

 

However, the account and symbol currency is the same (USD) and still I am getting different results when selecting/unselecting this option. Why?

The functionality should work correctly when the option is checked. We are checking why it is not working when unselected and the quote currency matches the account currency. In the meanwhile, keep it checked.

 


@PanagiotisCharalampous

PanagiotisCharalampous
16 Aug 2024, 13:51

Hi there,

Please share the indicator code and some screenshots so that we can check.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
16 Aug 2024, 12:43

RE: RE: RE: RE: HTTP requests with cBot Cloud instance

zinger6673 said: 

PanagiotisCharalampous said: 

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?

Hello Panagiotis, thank you for the reply. Sorry I meant to say in my reply that I switched to trying WebSockets after i found out in the article no HTTP requests won't be sent. And yes my server does listen to post 25345, it works on local execution and i check it on a ping test. It's also using SSH. If you would like to try its up right now on wss://araxy.co.uk:25345/

 

Cloud execution

Local execution

Browser websocket test

Try wss://server:25345 instead of wss://server:25345/


@PanagiotisCharalampous

PanagiotisCharalampous
16 Aug 2024, 08:37

RE: Account.Margin not correct : Unacceptable

ncel01 said: 

?

This issue has been fixed, it's been a while. I cannot reproduce it. Make sure you download historical data when you backtest.

 


@PanagiotisCharalampous

PanagiotisCharalampous
16 Aug 2024, 05:12

Hi there,

No this should not be possible.

Best regards,

Panagiotis


@PanagiotisCharalampous