Replies

PanagiotisCharalampous
06 Oct 2017, 09:16

Hi obaum1@gmail.com,

I would advise you to put the stream.Read() function in a while loop and continue reading the stream until the function returns 0, which is the number of bytes read.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
05 Oct 2017, 17:58

Dear leohermoso,

There could be many reasons that this happens e.g. are the backtesting parameters exactly the same as your broker's settings? In order to explain the difference we will need to have the cBot code and the exact backtesting parameters so that we can reproduce internally and check deals one by one.

Best Regards,

Panagiotis

 


@PanagiotisCharalampous

PanagiotisCharalampous
05 Oct 2017, 16:19

Hi obaum1@gmail.com,

It is not a normal behavior. Are you sure that the messages are indeed returned truncated? The issue could be caused by the way you are reading and parsing the messages. Can you reproduce this using the example project?

Best Regards,

Panagiotis
 


@PanagiotisCharalampous

PanagiotisCharalampous
05 Oct 2017, 14:11

Dear Forex Trader,

Commissions are not transferred to your balance instantly but at the end of the day.

Best Regards,

Panagiotis

 


@PanagiotisCharalampous

PanagiotisCharalampous
05 Oct 2017, 12:54

Hi k_baghyan,

This is a known issue in cAlgo and should be fixed in the next major release.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
05 Oct 2017, 09:45

Hi hungtonydang,

The correct syntax for the foreach loop is the following

foreach (var position in Positions.Find(label))
{
.
.
.
.
}

Let me know if this is what you are looking for.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
05 Oct 2017, 09:41

Hi hungtonydang,

If you know the exact time of the hour you are after then you can specify it as shown below

MarketSeries.OpenTime.GetIndexByExactTime(new DateTime(2017,10,5,10,0,0))

The sample above returns the value for X hours (if you are on the h1 timeframe) before the current time.

Let me know if this helps.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
05 Oct 2017, 09:23

Dear leohermoso,

This is a similar issue with the one in this discussion. Please read my last reply which explains why this is happening. The cAlgo team is looking at this issue.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
05 Oct 2017, 09:19

Hi Depesh,

There isn't a release date for this feature yet. However it is in the last stages of development so it should come out soon.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
05 Oct 2017, 09:16

Hi obaum1@gmail.com,

It could happen but this is a very rare case. However, in any case you detect a truncated message and you need the server to send it again, there is a Resend Request in the FIX API Rules of Engagement.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
04 Oct 2017, 10:43

Dear dordkash@gmail.com,

We are happy that you found a solution to your problem. Thanks for sharing the solution as well! It will be useful for other cTrader users that experience the same issue.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
04 Oct 2017, 09:22

Hi meta4charting@gmail.com,

Thanks for posting in our forum. Can you please share the cBot code so that we can advise what the problem could be?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
03 Oct 2017, 17:16

Hi k_baghyan,

Thanks for your post. Could you please let us know the broker and share a cBot and Indicator that will allow us to reproduce the problem?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
03 Oct 2017, 17:09

Hi cauedotnet,

We have investigated the issue and the discrepancy is caused because in cAlgo's profit calculation equation, the conversion rate (the ... * 1/76.107 ... part) is not taken from the position's closing price, instead a single value is used which taken from the backtesting period's last day. It has been implemented this way to facilitate the need to convert the profit to any currency account, for which the conversion rate is not available for every single point in time. However, as your calculations show it might lead to confusion when the account's currency is one of the Symbol's currencies and the conversion rate is available in real time. Therefore, the cAlgo team is considering changing this logic for such cases. We will keep you posted.

In a nutshell your calculations are correct, it is just the fact that cAlgo uses a different formula to calculate P&L and might lead to these small discrepancies.

Best Regards,

Panagiotis

 

 

 


@PanagiotisCharalampous

PanagiotisCharalampous
03 Oct 2017, 15:57

Hi dordkash@gmail.com,

Thanks for the additional info. I tried both broker platforms but I could still not reproduce it. It might be something specific with your computer. Could you please send troubleshooting information to our quality assurance team so that they can investigate further? In order to do so, please press Ctrl+Alt+Shift+T and in the form that pops up, provide a description of the issue and press Submit. The necessary information will be sent to the support team and they will be able to investigate if something is going wrong.

Best Regards,

cTrader Team

 


@PanagiotisCharalampous

PanagiotisCharalampous
03 Oct 2017, 09:02

Hi dordkash@gmail.com,

These settings are saved and kept after cTrader closes and reopens. We checked this on Spotware cTrader and works fine. Could you please tell us the broker you are using to check it further?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
02 Oct 2017, 15:28

Hi rhikmet,

Thanks for the clarification. If you have difficulties uploading the image here, please send it to community@spotware.com.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
02 Oct 2017, 14:46

Hi rhikmet,

Thanks for posting in the forum. Do you get any message during installation? Could you please provide us with a screenshot of what you see?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
02 Oct 2017, 11:32

Hi mbenes,

Thanks for the clarification. Please send me an email at community@spotware.com so that I can send you more information about our backend APIs

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
02 Oct 2017, 11:18

Hi MaVe,

Ok thanks it is clear now. I will pass your suggestion to the product managers for consideration. I would also advise you to post your suggestions in the Suggestions section so that all suggestions are kept in one place. This section is visited often by product managers to evaluate suggestions and add them in their backlogs.

Best Regards,

Panagiotis


@PanagiotisCharalampous