Replies

PanagiotisCharalampous
04 Dec 2018, 12:50

Hi bienve.pf,

This seems to be a bug. We will check it and fix it.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
04 Dec 2018, 12:02

Hi netread2004,

To investigate this I will need the time it happened, the broker, your account number and the proxy you used. Please provide this information so that we can check further.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
04 Dec 2018, 10:57

Hi Patrick,

A suggestion is to check the position's take profit before modifying. If it is the same with the position you want to copy from, skip modification. This should break the loop.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
04 Dec 2018, 10:44

Hi nguyendan81985,

The proper solution to this would be to make haOpen and haClose as output parameters in the indicator, call the indicator from the cBot and then use HasCrossedAbove and HAsCrossedBelow from the cBot to make the check. It will require some effort to do this so if you need some professional help, I would suggest that you post a Job or contact a Consultant.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
04 Dec 2018, 10:21

Hi Patrick,

This happens because the two versions use a different API but it is stored in the same folder \Documents\cAlgo\API. So the application installed last will put it's API dll there and will cause trouble to the other one. In general, this in not a problem since our applications are usually updated in a short amount of time and all brokers use the same API. However in this case it takes some time for all brokers to upgrade to 3.3 and this problem occurred. A workaround for this issue is to delete the contents of this folder and restart the application you want to use.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
04 Dec 2018, 10:13

Hi vancong140293,

You can get all the positions for the symbol that the cBot is running on using the following line of code.

var positions = Positions.Where(x => x.SymbolCode == Symbol.Code);

If there is only one then you can get the entry price with the below

var entryPrice = positions.First().EntryPrice;

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
04 Dec 2018, 09:57

Hi rovailore,

If your balance is in EUR and you are trading EUR then you can use the code below to calculate the volume.

var volume = Symbol.NormalizeVolumeInUnits(Account.Balance, RoundingMode.ToNearest);

If you are not trading EUR but you want to calculate the volume equivalent to your account's balance then this will become more complicated as you will need to make the necessary conversion from EUR to the traded asset.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
03 Dec 2018, 16:48

Hi rovailore,

Can you explain what do you mean when you say "100% of balance per trade"? Do you mean to adjuct the SL so that you risk x% of your balance each time?

Best Regards,

Panagiotis 


@PanagiotisCharalampous

PanagiotisCharalampous
03 Dec 2018, 12:15

Hi nguyendan81985,

You get this error because haOpen is not declared. I am a bit confused about what you are trying to do. Why don't you just call the indicator from within the cBot?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
03 Dec 2018, 11:28

Hi dmn,

Thank you for your suggestion. However I would advise you to post it either on our UserVoice forum or in the Suggestions section. If you post suggestions in the wrong sections then they are not easily traceable and might get lost.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
03 Dec 2018, 11:23

Hi William,

Can you share with us the complete cBot code so that we can fix it? It the above code sample the definition of result is missing.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
03 Dec 2018, 11:21

Hi Mailto.nileshsingh,

Thank you for posting in our forum. Tick volume is not available via FIX API. If you need tick volume, you can consider using Open API.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
03 Dec 2018, 11:10

Hi rovailore,

Can you please share with us the indicator code as well?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
03 Dec 2018, 10:59

Hi nguyendan81985,

Heikin Ashi are currently not available in cTrader Desktop and cTrader Automate API. If you are using the Heikin Ashi indicator, then you need to develop an Output parameter first before using in in your cBot.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
03 Dec 2018, 10:37

Hi sean.n.long, 

This is not possible at the moment.

Best Regards,

Panagiotis

 


@PanagiotisCharalampous

PanagiotisCharalampous
03 Dec 2018, 10:34

Hi netread2004,

You can use the overload that uses a TimeSpan parameter for the Start function.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
30 Nov 2018, 17:11

Hi bienve.pf,

Thank you for posting in our forum. There is no such event at the moment. I will pass the suggestion to the product team for consideration.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
30 Nov 2018, 17:08

Hi dmn,

After discussing this internally, this will be included in one of the following updates of cTrader.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
30 Nov 2018, 11:02

Hi hsbcstor,

This is a misprint. Volume is provided in ticks not in cents. We will fix the documentation.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
30 Nov 2018, 10:46

Hi willd7781,

Can you please provide us with some more information about the bug? When does it happen? Are there any steps to reproduce it?

Best Regards,

Panagiotis


@PanagiotisCharalampous