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); }
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.
Could you pleasesend 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.
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.
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.
Thanks for reporting this. Could you pleasesend us some troubleshooting information the next time this happens? Please paste a link to this discussion inside the text box before you submit it.
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.
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.
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.
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.
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
19 Jan 2024, 06:50
RE: How to make string variable writable?
AndreaPereira said:
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