Replies

PanagiotisCharalampous
24 Apr 2018, 09:01

Hi cuongdn1102,

Thanks for posting in our forum. You could also consider postng a Job or contacting a professional Consultant to help you with your cBot.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
23 Apr 2018, 17:36

Hi reza.roboforex,

Thanks for posting in our forum. If you wish to start programming cBots, you should first get familiar with C#. If you google "Learn C#" you will find thousands of resources on how to do so.

If you are familiar with C# and you need to get accustomed with cAlgo specifics that you can have a look at the following guides

Let me know if you need any additional information.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
23 Apr 2018, 16:17 ( Updated at: 21 Dec 2023, 09:20 )

Dear rwieden,

Thanks but I am seeing different parameters. See below

Am I using the correct robot?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
23 Apr 2018, 15:15

Hi ceakuk,

Yes, I believe this is possible. You could create another indicator that reads values from csv data and use it as an imput to your current indicator.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
23 Apr 2018, 14:42

Hi ceakuk,

Currently there is no way to get a fixed range of market data. We plan to add this as an option of the MarkerSeries.GetData() function in a future release of cTrader. If you could share your indicator so that I can reproduce your problem then I might be able to suggest a different approach.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
23 Apr 2018, 12:46

Hi ceakuk,

Could you please explain to me what is the purpose if the following condition?

if (index == 0)

What are you trying to achieve?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
23 Apr 2018, 12:22 ( Updated at: 21 Dec 2023, 09:20 )

Hi carlosdrcunha,

Thanks for posting in our forum. Regarding your questions.

1) It is not clear what do you mean. Would you like to calculate the simple moving average of the ADX. If yes, see below how you can set the ADX indicator as an input to your SMA indicator

If this in not what you mean, please explain further.

2) I did not understand this question. Can you elaborate a bit more?

3) If you want to restrict your cBot to opening one position at a time, you can use the following condition before executing a market order.

            if (Positions.Count == 0)
            {
                // Execute trading...
            }

Let me know if the above helps,

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
23 Apr 2018, 11:48

Hi rwieden,

Thanks for the additional information. Could you please provide me the cBot parameters you are using? I will run the cBot on my side as well and check if I can reproduce the problem.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
23 Apr 2018, 09:21

Hi MUSYOKAMORRIS,

Thanks for posting in our forum. Yes, it is in our plans to add Heiken Ashi charts in cTrader Windows, however this is not planned for the next major update. We will keep you updated when this chart type will come in cTrader Desktop.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
23 Apr 2018, 09:10

Hi rwieden,

It would be easier to get an answer if you contacted the broker directly, provide them with the position ID and explain them the issue. They should come back to you with the exact reason why the position was closed. The cBot's code is fairly extensive for someone to go through and guess what could go wrong. If the broker cannot provide an explanation, then we can investigate further.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
20 Apr 2018, 16:29

Hi mosaddeqi@gmail.com,

You can use the same robot on Bactesting and it will save the historical data.

Best Regards,

Panagiotis 


@PanagiotisCharalampous

PanagiotisCharalampous
20 Apr 2018, 15:22

Hi mosaddeqi@gmail.com,

Check the cBot below. It could be helpful.

/algos/cbots/show/843

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
20 Apr 2018, 10:01

Hi ulrichdene,

Thanks for posting in our forum. Your question is very general to be answered with a yes or no answer. It would be easier to reply to a question related to what kind of features you would expect from the API to have in order to implement your copy trading system. 

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
20 Apr 2018, 09:53

Hi yearn2012,

The reason you do not see a line is because you eventually make all Result values NaN with the following line of code

Result[index - 1] = double.NaN;

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
19 Apr 2018, 09:17

Hi tasr1r1,

Could you please share a code sample that would allow us to reproduce your issue?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
19 Apr 2018, 09:13

Dear cintuanginbox,

VS 2017 is supported only for cTrader 3.0. 

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
18 Apr 2018, 15:36

Hi felix.agabo,

An idea would be to have some flags in the indicator that would indicate whether your conditions are met. However I cannot engage into programming this for you. If you need a professional assistance, I would advise you to contact a Consultant or post a Job for this.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
18 Apr 2018, 10:42

Hi felix.agabo,

I have had a brief look at the indicator, however it does not seem to explicitly provide this kind of output. You will probably need to tweak a bit the indicator to provide you with this information.

Best Regards,

Panagiotis

 


@PanagiotisCharalampous

PanagiotisCharalampous
18 Apr 2018, 10:16

Hi tasr1r1,

Winning and Losing Trades columns represent only closed positions. Your backtesting results to negative equity due to open positions with negative P&L.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
17 Apr 2018, 17:48

Hi yearn2012,

You can send your code at community@spotware.com. Please also try to put a description of what your indicator is supposed to do, what would you expect to see and what you are seeing instead. This will help us help you.

Best Regards,

Panagiotis


@PanagiotisCharalampous