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

PanagiotisCharalampous
06 Jul 2018, 11:05

Hi solark,

Thanks for the additional information. We have tested it locally and it works. Any chance you are missing something in the process?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
06 Jul 2018, 10:16

Hi Alexander,

From what I understand you want to operate on open positons. So my suggestions are the following

  1. Distinguish the positions of each cBot using a different label. 
  2. Use Select and Distinct  functions to get collections of open symbols and running robots.

See some examples below

            var robots = Positions.Select(x => x.Label).Distinct();
            var symbols = Positions.Select(x => x.SymbolCode).Distinct();

Let me know if these suggestions help

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
06 Jul 2018, 09:52

Hi Alexander,

Such information is not available at the moment via cAlgo.API. If you describe to us what you are up to, we might be able to propose a workaround.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
06 Jul 2018, 09:12

Hi prosteel1,

You can search pending orders by label, in the same way you can do with positions. See example below

 PendingOrders.Where(x => x.Label == "My label");

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
05 Jul 2018, 14:27

Hi tradingu,

Can you please send troubleshooting information? To do so, tap 7 times on Logo in Settings.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
04 Jul 2018, 16:38

Hi prosteel1,

Thanks for posting in our forum. This seems to be a bug. The development team has received the necessary information and they are looking into it.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
04 Jul 2018, 14:55

Hi ctid418503,

Did you try recompiling the cBot as well each time you make a change in the indicator?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
04 Jul 2018, 14:52

Hi megha,

I tried to connect with the same broker and I have no issues. See below my messages.

Price Login

8=FIX.4.49=11635=A49=fxpig.300071156=CSERVER57=QUOTE50=300071134=152=20180704-11:50:3698=0108=30553=3000711554=xxx10=232

Price Response

8=FIX.4.49=8335=034=249=CSERVER50=QUOTE52=20180704-11:51:07.65056=fxpig.300071157=300071110=209

Trade Login

8=FIX.4.49=11635=A49=fxpig.300071156=CSERVER57=TRADE50=300071134=252=20180704-11:50:5298=0108=30553=3000711554=xxx10=201

Trade Response

8=FIX.4.49=9535=A34=149=CSERVER50=TRADE52=20180704-11:50:52.98856=fxpig.300071157=300071198=0108=3010=236

Check your messages for any typos or any other mistakes.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
04 Jul 2018, 09:07

Hi solark,

Can you send us an example cBot to check?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
03 Jul 2018, 17:45

Hi ctid418503,

The discrepancy is caused by the fact that indicators referenced from a cBot take the timezone of the cBot and this is also related to the way you calculate VWAP. If the VWAP is considering the days based on different timezones then the results will be different.  If you want your indicator in the cBot to yield the same results to the indicator of the chart, then the cBot should operate on the same timezone as the indicator on the chart.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
03 Jul 2018, 14:32

Hi leohermoso,

This is a very rare issue and will be fixed in the next release of cTrader.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
03 Jul 2018, 12:43

Hi ctid418503,

I mentioned above that we are still investigating this issue. 

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
03 Jul 2018, 12:19

Hi Enrico,

Thanks for the additional information. First of all we do not have the cBot/Indicator code. Also we do not know what the cBot/Indicator are supposed to do in the first place. Therefore there is not much advice we can give. From your description we can also conclude that this will need some investigation so maybe you could consider contacting a professional cAlgo programmer to help you and maybe converting the EA and indicator for you instead of relying on an online tool.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
03 Jul 2018, 12:02

Hi tradermatrix,

What does the UTC parameter do?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
03 Jul 2018, 11:50

Hi ctid418503,

Can you try setting both on UTC?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
03 Jul 2018, 11:08

Hi ctid418503,

An initial investigation has shown that this is caused by the fact that the cBot and the Indicator are using different timezones. If you can set them to the same timezone the issue will be resolved. In the meanwhile we will investigate further why this happens.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
03 Jul 2018, 10:48

Hi megha,

Please make sure that you are sending the messages to the correct port. For Quote is 5211 and for Trader is 5212.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
03 Jul 2018, 10:36

Hi eOs IT,

Thanks for posting in our forum. However, I don't think there is enough information for somebody to help you. First of all, you only posts parts of the code so it is not easy for somebody to understand what is going on. Also, how did you make the conversion? Did somebody convert the algorithms for you?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
03 Jul 2018, 10:19

Hi irmscher9,

It means that the indicator will take into consideration the last 20 periods, each time a value is calculated.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
03 Jul 2018, 10:16

Hi budiali,

Currently this information is not availabe via the cAlgo API. 

Best Regards,

Panagiotis


@PanagiotisCharalampous