Replies

PanagiotisCharalampous
06 Sep 2022, 12:27

Hi drewisdad,

This is an issue and will be fixed in an upcoming release.

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous

PanagiotisCharalampous
06 Sep 2022, 12:06

Hi there,

Obviously something has changed in the API between 4.1 and 4.2 but this does not mean it's a bug. But in order to advise where the change is, evaluate if it is a bug or an impreovement, and how address it, I need a small code sample that reproduces the problem. Unfortunately I cannot spend hours undestanding and debugging your code to figure out what is calcuated differently.

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous

PanagiotisCharalampous
06 Sep 2022, 09:57

Hi MongolTrader,

Then use Contains function instead

Positions.Where(p => p.SymbolName.Contains("EURUSD_Buy"))

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous

PanagiotisCharalampous
06 Sep 2022, 09:00

Hi aranath,

Thank you, we will have a look at this.

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous

PanagiotisCharalampous
06 Sep 2022, 08:45

Hi Vadivelan,

I am still not sure about your requirements but you can try this

 foreach (var pos in Positions.Where(p => Positions.Count(ps => ps.Comment == p.Id.ToString()) == 0))

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous

PanagiotisCharalampous
06 Sep 2022, 08:23

Hi MongolTrader,

Use the below instead

 Positions.Where(p => p.SymbolName == EURUSD_Buy)

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous

PanagiotisCharalampous
06 Sep 2022, 08:21

Hi MongolTrader,

See below

 Positions.Where(p => p.SymbolName == SymbolName).Sum(p => p.NetProfit);

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous

PanagiotisCharalampous
06 Sep 2022, 08:18

Hi again,

You could try contacting the indicator developer to debug this issue.

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous

PanagiotisCharalampous
06 Sep 2022, 08:16

Dear moiz.forex,

If you need somebody to develop this for you, you can reach out to a consultant.

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous

PanagiotisCharalampous
06 Sep 2022, 08:13

Hi Sebastian,

It really depends on your requirements. cTrader Automate is an API that is b built in inside cTrader Desktop and it's geared towards creating automated strategies and indicators. You cannot use it outside cTrader Deskop. On the other hand, Open API is a more low level but much more versatile API, which you can use to even build your own trading GUI. Just think that cTrader Desktop and cTrader Automate are built on top of an API similar to Open API. So depending on what you are looking to develop, you should choose accordingly.

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous

PanagiotisCharalampous
05 Sep 2022, 15:46

Hi aranath,

Can you share parameters and dates? I have a hard time reproducing this.

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous

PanagiotisCharalampous
05 Sep 2022, 15:21

Hi there,

Not sure what you mean. Nothing was removed. Can you share a sceenshot?

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous

PanagiotisCharalampous
05 Sep 2022, 14:47

Hi there,

If you can simplify the code, we can check what happens. At the moment it is very complicated and will take a long time for somebody to figure out what is going on.

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous

PanagiotisCharalampous
05 Sep 2022, 14:24

Hi Vadivelan,

It is not possible because you cannot know the position id before it is executed.

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous

PanagiotisCharalampous
05 Sep 2022, 12:28

Hi aranath,

Can you share some code that will allow us to reproduce this behavior?

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous

PanagiotisCharalampous
05 Sep 2022, 11:40

Hi aranath,

Which cTrader version do you use?

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous

PanagiotisCharalampous
05 Sep 2022, 11:38

Hi Vadivelan,

It is not possible to edit position comments at the moment.

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous

PanagiotisCharalampous
05 Sep 2022, 11:36

Hi Filip,

Also please try to set the cBot Access Rights to FullAccess and let me know if it resolves the problem.

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous

PanagiotisCharalampous
05 Sep 2022, 11:35

Hi Filip,

Did you send the link to this discussion with your troubleshooting? Can you please advise the broker and version of cTrader you are using?

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous

PanagiotisCharalampous
05 Sep 2022, 11:32

Hi JS,

This option will be added soon in mobile apps.

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous