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

PanagiotisCharalampous
01 Mar 2019, 10:34

Hi Ton,

Server.Time is the time of your broker's server based on the timezone you set for the cBot. 

Regarding the order types, both of the examples you posted are IOC orders. It means on triggering the order, fill whatever you can immediately and cancel the rest. On the other hand a FOK orders means fill the order immediately and completely or do not fill it at all. Since all orders in cTrader allow partial execution there is no way to satisfy the completely part of a FOK order.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
01 Mar 2019, 10:18

Hi ryan.a.blake,

Can you also provide us with backtesting parameters and backtesting results where we can see such trades? You can post a screenshot of a trade that you think is wrong and explain what would you expect to happen instead.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
01 Mar 2019, 09:59

Hi BamsiCBR,

Thank you for contacting Spotware. Subaccounts are visible only in cTrader Copy section. You should be able to see your sub accounts below the main account. Have you checked the cTrader Copy section?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
01 Mar 2019, 09:35

Hi Glen,

Should work the same way for both. I checked on cTrader Web but still seems ok. If you have exact steps to reproduce, please let us know to have a look at this.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
28 Feb 2019, 16:45

Hi Ryan,

Unfortunately the information you provide is too little. We need you to share with us your indicator and cBot and tell us how to reproduce the issue so that we can advise you.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
28 Feb 2019, 15:23

Hi Ben,

Both cAlgo folder and Templates folder are located in the Documents folder. So it seems cTrader does not have sufficient permissions to that folder. However I cannot give you further advise as I do not know what is happening on your pc. Can you please try running cTrader as an admininstrator and let me know if the problems disappear?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
28 Feb 2019, 15:13

Hi ycomp, 

Unfortunately I cannot advise you about Java, I am a .Net guy. However v2 is based on the same technology as v1. It just features more messages and changes to some existing ones. Also I don't think this this is an API issue but a matter of your application architecture. My proposal is to have a connection established all the time which will be used to send and receive messages. You will need to send heartbeats to the server to keep the connection open and have a listener which will listed constantly to incoming messages. If you are familiar with .Net, you can have a look at the .Net Sample.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
28 Feb 2019, 14:41

Hi Max T,

:) Here is what it is.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
28 Feb 2019, 13:53

Hi wisegprs,

Based on your description it seems possible.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
28 Feb 2019, 12:51

Hi Glen,

This is not how it should work. The object list displays only objects of belonging to the specific chart. I tried this on a couple of cTrader versions and works fine. Can you provide us exact steps to reproduce this behavior and maybe some screenshots/videos to see the problem?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
28 Feb 2019, 12:37

Hi Max T,

It is meant to detect both. If the order has not been accepted for any reason, the order will not be successfull.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
28 Feb 2019, 12:28

Hi Eliezer,

1. If you want to check the trend of the 14 period during the last 3 periods, you can just compare the last value with the value 3 periods before. See below an example

if(sma.Result.LastValue > sma.Result.Last(3)
{
    //Do something for bullish sma
}

2. Regarding the warnings, just replace the Color property with LineColor e.g. Color = Colors.Red should become LineColor = "Red"

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
28 Feb 2019, 11:49

Hi Max T,

There is a risk that your code might end up in an infinite loop. It is better to examine the reason of the unsuccessful order before sending a new one. If for example you are sending a wrong volume or TP/SL levels then you will end up in a loop.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
28 Feb 2019, 11:42

Hi ycomp,

You will need to generate new classes from the new proto files and adjust your code accordingly. 

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
28 Feb 2019, 11:34

Hi ycomp,

1) I do not see any problems either. v1 and v2 will work in parallel for now. 

2) The java sample for v2 is here.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
28 Feb 2019, 09:54

Hi moezm4h,

Trailing stop loss means that the 10 pips stop loss you have set at the beginning will start trailing immediately. It is not related with the Take Profit. The Take Profit is still executed at 30 pips.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
28 Feb 2019, 09:50

Hi Ben,

Thank you for posting in our forum. They both sound as permission issues. Can you make sure that cTrader has read/wrire access to the specific folders?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
28 Feb 2019, 09:46

Hi DelTrader,

At the moment this information is not available. We will add it in a future update.

Best Regards,

Panagiotis

 


@PanagiotisCharalampous

PanagiotisCharalampous
28 Feb 2019, 09:43

Hi ramahka_22,

Please send more information about your signin issue at feedback@spotware.com and they will help you sign in to the platform.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
28 Feb 2019, 09:40

Hi Max T,

Your solution is correct. It was my oversight that I did not notice this overload.

Best Regards,

Panagiotis


@PanagiotisCharalampous