Replies

PanagiotisCharalampous
05 May 2024, 15:30

Hi there,

I do not understand what the problem is with the specific code sample. Can you please share the complete cBot code so that we can reproduce it and explain to us how we can see this?

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
05 May 2024, 15:28

Hi there,

If you are looking for somebody to write the code for you, you can assign the job to a professional. If you need help to implement this yourself, please rephrase your post to a specific question that we can answer.

Best regards,

Panagiotis


 


@PanagiotisCharalampous

PanagiotisCharalampous
05 May 2024, 15:19

Hi there,

No there aren't, you can use third party ones like cMAM and Trade Copier

https://clickalgo.com/ctrader-trade-copy

https://www.trade-copier.com

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
05 May 2024, 15:19

Hi there,

No there aren't, you can use third party ones like cMAM and Trade Copier

https://clickalgo.com/ctrader-trade-copy

https://www.trade-copier.com

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
05 May 2024, 15:17

Hi there,

Talk to sales@spotware.com

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
04 May 2024, 06:50

Hi there,

Protobuf class generation generates the ProtoOAGetPositionUnrealizedPnLRes class but it does not generate the code to handle the message. Therefore your code builds but it does not handle the specific message. For example, did you update the MessageFactory.GetMessage() method?

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
03 May 2024, 15:10

Hi there,

You should talk to your broker regarding this matter.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
03 May 2024, 15:09

RE: RE: How to Reference chart count down Timer/Clock

zoo.digitaladv said: 

amusleh said: 

Hi,

You can't use the bar counter on chart from Automate API, and there is no need for it.

You can easily code one, each bar has an open time and if you know the time frame you can subtract the bar open time from current time, ex:

using System;using System.Linq;using cAlgo.API;using cAlgo.API.Indicators;using cAlgo.API.Internals;using cAlgo.Indicators;namespace cAlgo.Robots{    [Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]    public class NewcBot : Robot    {        private TimeSpan _barTimeLeft;        protected override void OnStart()        {            Timer.Start(1);        }                protected override void OnTimer()        {            var previousBarTimePeriod = Bars.LastBar.OpenTime - Bars.Last(1).OpenTime;            _barTimeLeft = previousBarTimePeriod - (Server.Time - Bars.LastBar.OpenTime);                        // Check logs, it should match with chart counter            Print("{0:hh':'mm':'ss}", _barTimeLeft);            // Close all positions if the time left is less than or equal 10 seconds            if (_barTimeLeft.TotalSeconds <= 10)            {                foreach (var position in Positions)                {                    ClosePosition(position);                }            }        }    }}

By any chance, there is one for mobile Android CTrader app? 

 

No there isn't one


@PanagiotisCharalampous

PanagiotisCharalampous
03 May 2024, 15:09

Hi there,

Please talk to your broker about this matter.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
03 May 2024, 15:07

Hi there,

Can you please send us some troubleshooting info after this happens and quote the link to this discussion?

Best Regards,

Panagiotis 


 


@PanagiotisCharalampous

PanagiotisCharalampous
03 May 2024, 15:02

RE: RE: My ROI (Monthly) View is Wrong

GMT.Invest said: 

PanagiotisCharalampous said: 

Hi there,

This is what I see at the moment. Is the issue still there for you?

Best regards,

Panagiotis

Hi Panagiotis,

 

Unfortunately, I still see the below on my end: (on Ctrader Web and via Desktop v. 4.8.30 as well)



That's weird. Could you please double check it why this discrepancy is happening?

Ty! Best!

Hi there, can you pelase advise the timezone your computer is using?


@PanagiotisCharalampous

PanagiotisCharalampous
03 May 2024, 15:00

Hi there,

The sample is not up to date with the latest protobuf files. Therefore you would need to develop this handling yourself.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
03 May 2024, 14:57

Hi there,

There is no formula for Price and Balance. They are fixed values. Regarding the rest

Pips: (Entry Price - Bid/Ask Price) / Pip Size 

P&L: (Volume * (Entry Price - Bid/Ask Price)) - (Commissions + Swaps)

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
03 May 2024, 14:52

RE: RE: switching between accounts in cbot

prihod007 said: 

PanagiotisCharalampous said: 

Hi there,

This is not possible. If you want to copy trades between accounts, you can consider cMAM

https://clickalgo.com/ctrader-trade-copy

Best regards,

Panagiotis

Thanks, but this is a paid third-party product. 
And how can a developer do this on their own through direct cTrader services without buying cMAM ?

cMAM is free but if you want to develop something like this from scratch, have a look at Open API

https://openapi.ctrader.com

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
03 May 2024, 07:29

Hi there,

This is not possible. If you want to copy trades between accounts, you can consider cMAM

https://clickalgo.com/ctrader-trade-copy

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
03 May 2024, 07:25

Hi there,

If you need professional help, feel free to contact me at development@clickalgo.com

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
03 May 2024, 07:24

Hi there,

This is what I see at the moment. Is the issue still there for you?

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
03 May 2024, 07:20

RE: RE: RE: RE: cTrader Cached Data preventing optimisation

riverstourtreasures said: 

 

Unfortunately we do not have an ETA for the update. You can create another account with your broker and use that when backtesting

I have already tried another account with my broker, but it performs exactly the same 

Then you would have to wait for the update or try another broker


@PanagiotisCharalampous

PanagiotisCharalampous
02 May 2024, 12:15

Hi there,

If you can share the cBot code, we can have a look. Also make sure you use tick data for your backtesting.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
02 May 2024, 12:13

RE: RE: cTrader Cached Data preventing optimisation

riverstourtreasures said: 

PanagiotisCharalampous said: 

Hi there,

It's a known issue and it will be resolved in an upcoming update of cTrader. In the meanwhile a workaround would be to use a different account.

Best regards,

Panagiotis

Thanks Panagiotis,

 

When is the upcoming update? 

Also, a different account - in what way?

Regards,

Steven

Unfortunately we do not have an ETA for the update. You can create another account with your broker and use that when backtesting


@PanagiotisCharalampous