Replies

PanagiotisCharalampous
15 May 2024, 05:56

Hi there,

You should contact a prop trading firm regarding this.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
15 May 2024, 05:56

Hi there,

You should contact a prop trading firm regarding this.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
15 May 2024, 05:43

Hi there,

You can set the visibility of your strategy when you create it

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
15 May 2024, 05:38

Hi there,

There is a known issue with host names in cTrader Desktop. Try to get your host name from cTrader Web.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
15 May 2024, 05:24

RE: RE: MacOS App Backtesting

cBotTrader said: 

PanagiotisCharalampous said: 

Hi there,

Backtesting is not available yet, it will be delivered in an upcoming update.

Best regards,

Panagiotis

Hi,

There are a few months already. Can we get an estimated date for backtesting in macOS?

Thanks!

Unfortunately we do not have an ETA at the moment.


@PanagiotisCharalampous

PanagiotisCharalampous
15 May 2024, 05:23

Hi there,

Can you record a video demonstrating the exact steps you are following to encounter this issue?

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
15 May 2024, 05:21

RE: RE: Help for " result"

obus79 said: 

PanagiotisCharalampous said: 

Hi there,

Your question is not clear. Please explain what you think is wrong and how you would like it to be corrected.

Best regards,

Panagiotis

hi, the code written as follows is not correct and I don't understand how to fix it. I used " Indicator.GetIndicator<> " as it is a custom indicator. I removed ".Result " but I need to manage the value of Result somewhere...

Does the indicator have a Result property? Can you share the indicator's source code?


@PanagiotisCharalampous

PanagiotisCharalampous
14 May 2024, 05:57

RE: RE: Bot stops working after Reconnect

dreampunchboy said: 

scherli said: 

Hello everyone

I have the same problem, my bots (running on ctrader-cli) stop once a week without visible reason, with or without lost connection. I help myself with writing timestamps to a logfile and having a watchdog process, that restarts the cbot when the log entries don't occure anymore.

Greetings
scherli

 

I've been experiencing this almost every morning when I check the CLI processes.
“Attempting to reconnect” while everything else is still open and running. CTrader open and connected, MT5 connected and running.

@Spotware can you please have a look at this?

Hi there,

We would need more information regarding this matter. Also this seems to be a separate issue so please do the following

  1. Create a new thread with a clear explanation of your issue
  2. Provide your cBot code.
  3. Provide us with exact steps on how to reproduce this problem.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
14 May 2024, 05:51

Hi there,

Please provide us with dates, cBot parameters and backtesting settings so that we can reproduce this behavior on backtesting. Also share some screenshots demonstrating these positions.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
14 May 2024, 05:48

RE: RE: referencing an custom Indicator

bernhardCM said: 

PanagiotisCharalampous said: 

Hi xabbu,

You are passing wrong parameters in the indicator. Here is the correct way to initialize it

 _sma = Indicators.GetIndicator<SampleSMA>(MarketData.GetBars(TimeFrame.Daily).ClosePrices, 14);

Best Regards,

Panagiotis 

Join us on Telegram

 

Hi Panagiotis,

is there a particular indicator calculation order or could we influence it, e.g. by priorities?

In the example mentioned above the custom indicator “NNFXInfosonChart” uses the values of custom indicator “SampleSMA”, but how we can make sure that SampleSMA.LastValue is belonging to current Index (Index of NNFXInfosonChart.Calculation(THIS_INDEX)) and not to the previous index when retrieved in NNFXInfosonChart.Calculation-method?

Thank you so much.

Best regards,

Bernhard

LastValue is always the value of the last index, since the Calculate() method is called when you call the property.


@PanagiotisCharalampous

PanagiotisCharalampous
14 May 2024, 05:45

Hi there,

Did you add a reference to the indicator?

https://help.ctrader.com/ctrader-automate/articles/for-developers/how-to-use-custom-indicators-in-cbots/

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
14 May 2024, 05:43

RE: RE: RE: RE: RE: RE: RE: RE: Connecting C-trader desktop to mongodb

said.moridi said: 

said: Thanks for the tips. Got the connection working. Only not plotting data. I think becouse I need to write a code to tell the database what data to send. Any tips or example python code?

I am not familiar with MongoDB, neither I understand what you are trying to do, sorry.


@PanagiotisCharalampous

PanagiotisCharalampous
14 May 2024, 05:41

RE: RE: Help: indicator plots different on historical data and in backtesting!

DR.SHADI_JARRAR said: 

PanagiotisCharalampous said: 

Hi there,

Calculate() method is called once per bar for historical bars and once per tick for live bars. The part below will behave differently when the method is called once per bar, compared to once per tick

            if ((Bars.ClosePrices[index] > DLagEMAs[index] && Bars.ClosePrices[index - 1] < DLagEMAs[index - 1]) ||               (Bars.ClosePrices[index] < DLagEMAs[index] && Bars.ClosePrices[index - 1] > DLagEMAs[index - 1]))            {                barsSinceEvent = 0;            }            else            {                barsSinceEvent++;            }

You need to rethink your logic and make sure this part is called only once for each bar.

Best regards,

Panagiotis

Thanks for your response, I really did my best several ways but couldnt solve it yet, can you suggest anyway to do it!

You can use a parameter that registers at which index the last addition was made and not call that part of the code until the index changes.


@PanagiotisCharalampous

PanagiotisCharalampous
14 May 2024, 05:37

Hi there,

This feature is not available at the moment on cTrader for Mac. It will be added in a future release of the application.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
14 May 2024, 05:36

Hi there,

You should talk to your broker about this.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
14 May 2024, 05:34

Hi there,

Can you please share some screenshots of this error?

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
14 May 2024, 05:29

Hi there,

Your question is not clear. Please explain what you think is wrong and how you would like it to be corrected.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
14 May 2024, 05:27

Hi there,

Partial TP is not available on cTrader for Mac at the moment. It will be added in a future release.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
13 May 2024, 12:44

RE: RE: Order Cancel/Replace doesn't trigger expected response

gbuella said: 

PanagiotisCharalampous said: 

Hi there,

In order to identify to which request the response is related to, you need to use tag 11. Tag 41 is about identifying the order to be amended. 

I see OrigClOrdID and the ClOrdID fields being echoed by CSERVER

I don't see where is OrigClOrdID sent back to you and it should not. I only see ClOrdID. OrigClOrdID should have been sent to you when the order was executed.

Best regards,

Panagiotis

Another log of what actually happens, I just tweaked my code to use specific strings as ids:

-> 8=FIX.4.4|9=184|35=D|34=5|49=demo.icmarkets.9045572|56=cServer|57=TRADE|52=20240513-07:25:05.854|11=this_is_the_original_order_id|55=1|54=2|60=20240513-07:25:05.854|38=1000|40=2|44=1.09|494=bot_order|10=177|<- 8=FIX.4.4|9=241|35=8|34=5|49=cServer|50=TRADE|52=20240513-07:25:05.931|56=demo.icmarkets.9045572|11=this_is_the_original_order_id|14=0|37=703287877|38=1000|39=0|40=2|44=1.09|54=2|55=1|59=1|60=20240513-07:25:05.928|150=0|151=1000|494=bot_order|721=425982100|10=234|-> 8=FIX.4.4|9=168|35=G|34=5|49=demo.icmarkets.9045572|56=cServer|57=TRADE|52=20240513-07:26:11.712|41=this_is_the_original_order_id|11=this_is_the_request_id|37=703287877|38=1000|44=1.2|10=204|<- 8=FIX.4.4|9=240|35=8|34=5|49=cServer|50=TRADE|52=20240513-07:26:11.802|56=demo.icmarkets.9045572|11=this_is_the_original_order_id|14=0|37=703287877|38=1000|39=0|40=2|44=1.2|54=2|55=1|59=1|60=20240513-07:26:11.792|150=5|151=1000|494=bot_order|721=425982100|10=175|

You can see I place an order, modify it, but the string this_is_the_request_id is only present in my modify request, the response doesn't contain that string.

Maybe/Probably I still misunderstand something, I would be happy if you let me know what is this about, thank you very much!

Hi again,

It looks like a bug, we will check

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
13 May 2024, 10:27

Hi there,

Calculate() method is called once per bar for historical bars and once per tick for live bars. The part below will behave differently when the method is called once per bar, compared to once per tick

            if ((Bars.ClosePrices[index] > DLagEMAs[index] && Bars.ClosePrices[index - 1] < DLagEMAs[index - 1]) ||
               (Bars.ClosePrices[index] < DLagEMAs[index] && Bars.ClosePrices[index - 1] > DLagEMAs[index - 1]))
            {
                barsSinceEvent = 0;
            }
            else
            {
                barsSinceEvent++;
            }

You need to rethink your logic and make sure this part is called only once for each bar.

Best regards,

Panagiotis


@PanagiotisCharalampous