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

PanagiotisCharalampous
19 Jan 2024, 06:50

RE: How to make string variable writable?

AndreaPereira said: 

Thanks, I'll go and test...

 

This function should solve the comma problem on the textbox. When I enter floating point text with the period, the function should replace the period with the comma. But it doesn't work, what am I doing wrong? or is there a better solution to do this? Thanks you Panagiotis.

private void TextBox_TextChanged(TextChangedEventArgs obj){                        char oldChar = '.';            char newChar = ',';            string str = obj.TextBox.Text;            for (int i = 0; i < str.Length; i++){                if (str[i] == oldChar){                    str.Replace(oldChar,newChar);                         }            }                    Quantity = Convert.ToDouble(str);        }

 

PanagiotisCharalampous said: 

Hi there,

Use String.Replace() instead.

Best regards,

Panagiotis

 

Hi there, 

It seems you haven't read the documentation carefully :) You don't need a for loop and the method does not work on the current string, it returns a new one with the character replaced.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
19 Jan 2024, 06:46

RE: RE: RE: RE: RE: RE: RE: RE: ChatGPT cBot Issues

danerius said: 

 

Hi danerius,

Thanks. It works fine on my side

 Could you please send us some troubleshooting information the next time this happens? Please paste a link to this discussion inside the text box before you submit it.

 

Hello. I sent a report via the form on cTrader this saturday. No response yet. 

Regards /danerius

Hi danerius,

The team has received the troubleshooting information and they are investigating the issue.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
19 Jan 2024, 06:42

RE: RE: RE: CBot instance XXX process was unexpectedly terminated.

acrigney said: 

I have tried rebuilding the bot several times, is there no way to debug this mate?

acrigney said: 

Thanks mate but I don't see how that is going to help you, maybe if I could send you a stack trace/symbolic dump or something?

The error occurs before the bot gets to debug. I have tried a clean rebuild etc. I just cloned one bot to make changes and it happened after making changes to the clone.  I will reclone again and see if I get the problem again before making any changes.

 

Best Regards,

                       Alistair

PanagiotisCharalampous said: 

Hi there,

Please send us some troubleshooting info and quote the link to this discussion.

Best Regards,

Panagiotis 


 

 

 

Hi Alistair,

Unfortunately I cannot help you since I cannot reproduce this issue. So please follow my suggestion above.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
19 Jan 2024, 06:38

RE: RE: RE: cTrader tick data or m bars not working!

codex_oli said: 

codex_oli said: 

PanagiotisCharalampous said: 

Hi there,

Please send us some troubleshooting info and quote the link to this discussion by pasting a link to this discussion inside the text box before you submit it.

Best Regards,

Panagiotis 


 

OK I sent! 

I wait for a response!

Tks!

I think it's a problem related to the new accounts (DEMO (possibly?!?!?!)). 

No matter if I have newly opened account on spotware, topfx, icmarkets... The problem is the same... I cannot do backtesting tests without checking the VISUAL box, or in the optimization tab. 

I asked a friend to log in into my computer with his older account and everything seems to be working normally. (So, it is not a computer problem !!!) 

If I log in, with my account (which is a newer account than his) backtesting and optimization no longer work. 

Do you have a solution to this problem? Please if you have to post it, I am bored of writing... monologue! 

Thanks!

Hi,

As explained above, this issue will be resolved in an upcoming update. We do not have any other solution at the moment. If you have found a workaround i.e. using a different account, then you could use it.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
18 Jan 2024, 10:48

Hi Heinrich,

Thanks for reporting this. Could you please send us some troubleshooting information the next time this happens? Please paste a link to this discussion inside the text box before you submit it.

Best regards,


 


@PanagiotisCharalampous

PanagiotisCharalampous
18 Jan 2024, 10:45

Hi there,

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

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
18 Jan 2024, 10:41

Hi there,

IsLastBar is just a boolean indicating if the Calculate() method is executing on the last bar of the chart. Calculate() is called once for every historical bar and on every tick for the current bar.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
18 Jan 2024, 10:07

RE: RE: RE: RE: RE: RE: RE: Repeated Disconnections

eynt said: 

PanagiotisCharalampous said: 

We have received the troubleshooting and it is under investigation.

Best regards,

Panagiotis

Hello

Since the last post there were much fewer disconnections (1-2 a week) and I thought this issue was taken care of. Unfortunattly since about a week ago the problem came back and there are disconnections every few hours (about 5-10 disconeections happend last week). I was able to send troubleshooting within 3-4 minutes of the disconnection with a reference to this post.

I'm looking forward to hear from you.

 

Thanks

 

Hi eynt,

Troubleshooting received, our team is investigating.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
18 Jan 2024, 10:02

Hi there,

Use String.Replace() instead.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
17 Jan 2024, 07:02

Hi there,

Can you please provide us more information about this issue? What exactly happens? If you can share some screenshots, it would be helpful.

Best regards,

Panagiotis

 


@PanagiotisCharalampous

PanagiotisCharalampous
17 Jan 2024, 07:00

Responded here 

https://ctrader.com/forum/announcements/1463#post-106931


@PanagiotisCharalampous

PanagiotisCharalampous
17 Jan 2024, 06:59

RE: get movingaverages on histogram

ahmadtrader448 said: 

hello guys,

I calculated histograms over the higher timeframe of 15 minutes timeframe and fitted them on a lower timeframe of 5 minutes,

Is there any way to get a moving average on the higher timeframe histograms of 15 minutes on a lower timeframe of 5 minutes?

MAson15Min_hist      = Indicators.MovingAverage(15Min_hist , MAsonhistPeriod  , MAsonhistMethod);

 

 

 

 

Hi Ahmad,

What is stopping you from doing so? The code sample you have shared should have more or less work, if the data source you pass to the indicator is correct. 

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
17 Jan 2024, 06:39

Hi acrigney,

Can you please provide us with a more comprehensive explanation of your problem?

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
17 Jan 2024, 06:38

RE: RE: CLI: lack of basic functionalities

ncel01 said: 

PanagiotisCharalampous said: 

Hi there,

Stop Command

cBot can be stopped by killing the CLI process. This is the command implied by the documentation

Journal File Generation / Date and Time in CLI Log

Stdout contains all the information and can be forwarded to a text file. You can also implement your own logging functionality. We do not have any further plans at the moment.

Best regards,

Panagiotis

Dear Panagiotis,

Can you please provide more details about the “stdout” you mentioned?
I cannot find this file nor I am able to find any documentation about this.

Thank you.

Hi ncel01,

stdout stands for Standard Output. In terms of C# check Console.Out


@PanagiotisCharalampous

PanagiotisCharalampous
17 Jan 2024, 06:34

RE: RE: cTrader randomly crashing

Waxy said: 

Hello Panagiotis, 

The only thing the log says is “CbotName” crashed

As for sending the code, can I share it via email? The code is private, and I cannot share it publicly.

Regards,

PanagiotisCharalampous said: 

Hi Waxy,

Can you share the cBot's code and log after the crash as well?

Best regards,

Panagiotis

 

Hi Waxy,

Yes feel free to send it to me at community@ctrader.com

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
16 Jan 2024, 07:11

Hi there,

There is no screenshot uploaded. Can you try again?

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
16 Jan 2024, 07:09

RE: RE: cTrader tick data or m bars not working!

codex_oli said: 

PanagiotisCharalampous said: 

Hi there,

Please send us some troubleshooting info and quote the link to this discussion by pasting a link to this discussion inside the text box before you submit it.

Best Regards,

Panagiotis 


 

Hi, do you have an answer for the issue?

 

The team is investigating and it will be fixed in an upcoming update


@PanagiotisCharalampous

PanagiotisCharalampous
16 Jan 2024, 07:08

Hi there,

Make sure you are using the .Net 6.0 compiler

 


@PanagiotisCharalampous

PanagiotisCharalampous
16 Jan 2024, 07:07

RE: RE: free market data

thailand300 said: 

PanagiotisCharalampous said: 

Hi there,

All price data provided by cTrader brokers is free.

Best regards,

Panagiotis

Thank you. And is it possible to transfer cTrader data for Futures 6E and 6A to Ninjatrader 8? Is there a guide available for this?

 

Hi there,

You should ask NinjaTrader about this.

Best regards,


@PanagiotisCharalampous

PanagiotisCharalampous
16 Jan 2024, 07:05

RE: String to double conversion

AndreaPereira said: 

Hi Panagiotis,

I trade on fpmarkets and here they make 100 oz for units.

Hi Andrea,

What is the lot size of your broker e.g. for IC Markets is 100 units per lot. So if you type 0.22, it will trade 22 Oz of gold.

Best regards,

Panagiotis

 

So I do not see any problem


@PanagiotisCharalampous