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

PanagiotisCharalampous
20 Nov 2017, 15:34

Hi to all,

This might be related to this issue. Please read my last reply why this is happening. We are looking into how we can improve this behavior.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
20 Nov 2017, 14:55

Hi armstr.tradie,

Unfortunately the information you provide is not enough for us to help you. Could you please provide a complete cBot (it doesn't need to be the original, just one the reproduces the same behavior or error messages)?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
20 Nov 2017, 14:35

Hi myinvestmentsfx,

Please see my reply here.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
20 Nov 2017, 14:34

Dear Trader,

Thanks for your post. If you need professional assistance, you can post a job in our Jobs section or you can contact a professional Consultant.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
20 Nov 2017, 14:31

Hi itmfar,

No this is currently not possible in cTrader.

Best Regards,

Panagiotis

 


@PanagiotisCharalampous

PanagiotisCharalampous
20 Nov 2017, 13:55

Hi Hussien,

You can use the Market Snapshot tool. You can find more details here.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
20 Nov 2017, 13:51

Hi jjwes76@gmail.com,

Thanks for your post. If you need professional assistance, you can post a job in our Jobs section or you can contact a professional Consultant.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
20 Nov 2017, 12:54

Hi patrick.sifneos@gmail.com,

Thanks for posting in our forum and reporting this issue. Can you please post a sample cBot that we could use to reproduce this issue?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
20 Nov 2017, 12:14

Hi mto1995,

Thanks for posting your question, but it is not very clear what exactly you need. From what I understand you want something to happen after the limit order is triggered. Can you please elaborate on that so that the community can help you?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
20 Nov 2017, 12:10

Hi 344260146,

The solution to your problem is to properly handle the exception thrown by your code. Read more about exception handling here or here.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
20 Nov 2017, 11:06

Hi davideng5555,

There is no full script. It is just the three lines above that show how to calculate the 2/3 of a position and use it in the ClosePosition function.

Is it possible to combine with the Close Position you wrote?

Can you please point me to the code you refer to and what you would actually like to achieve?

Best Regards,

Panagiotis 


@PanagiotisCharalampous

PanagiotisCharalampous
20 Nov 2017, 11:03

Hi zendoo,

Your question is very general for somebody to give a more specific answer to it. In principle, you should write your code in a way that it does not fall into infinite loops. If you could share your code with us then we could maybe give you a more specific advice.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
20 Nov 2017, 10:59

Hi myinvestmentsfx,

Thanks for your suggestion. However these features are not API specific but general C# features and there are plenty available on the internet. As mentioned in another thread, cAlgo uses .Net Framework 4.0 so features available in .Net 4.0 should work. Nevertheless, if you have any trading specific examples you would like to see, let us know the scenario and we can post some sample cBots/Indicators on the forum.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
20 Nov 2017, 10:55

Hi myinvestmentsfx,

I have some feedback from the product team. 

  1. cAlgo APIs are not thread safe. All invocations of API methods should be done in main thread. If you are calling API method from another thread, you should use BeginInvokeOnMainThread() to wrap API call.
  2. cAlgo is currently working on .Net version 4.0 to support early versions of Windows. We are planning to upgrade it soon. Since .Net version 4.0, code compilation at runtime has changed. Now it's compiled against latest version of .Net Framework installed on client PC. So you can use things like Async Await, but it's not supported by cAlgo.
    One of the issue with this is that context is not synchronized and you will return on another thread after awaiting method call.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
20 Nov 2017, 10:40

Hi lec0456,

Can you please check if the difference between the backtesting data and the live data is constant i.e. 0.4 pips? It could be that there is some additional markup on the price from your broker.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
16 Nov 2017, 12:53

Hi dusek.martin,

Thanks for posting in our forum. You can get information about positions using the Request for Positions message. You will need to calculate the P&L yourself based on the position's opening price and the current price.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
16 Nov 2017, 11:50

Dear g61232,

Thanks for posting in our forum and letting us know about the issue. Can you please send us the log so that we can check what the problem might be? Please send it at feedback@spotware.com

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
10 Nov 2017, 17:23

Hi tmc.

Thanks for reporting then :) It has been confirmed that it is a bug and will be resolved soon.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
10 Nov 2017, 17:20

Hi BeardPower,

Thanks for reporting this. I will forward to our QA team to investigate further.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
10 Nov 2017, 12:18

Hi myinvestmentsfx,

The product team is looking into it. I will update you as soon as I get their feedback.

Best Regards,

Panagiotis


@PanagiotisCharalampous