Topics
Replies
ycomp
17 Jan 2022, 15:32
( Updated at: 17 Jan 2022, 15:35 )
RE: RE:
any tips though? I have disabled print statements as firemyst suggested, because it does produce some print statements on a regular basis. But any ideas what can cause this kind of problem?
My bot does nothing fancy except it does modify the order often.
So just to verify, there would be no benefit to adding Thread Sleep statements?
Also there is nothing wrong with having 2 isntances of the same bot running on the same symbol, correct? They never actually modify the same position. One modifies when positions are long, the other when short.. to change this behaviour would take a lot of work.
amusleh said:
ycomp said:
I wrote a cAlgo bot
It works fine but after a while of running (sometimes hours), cTrader becomes very unresponsive.
I also run 2 instances of the bots on the same symbol.. one for long and one for short position management.
What would generally cause cTrader to hang or become unresponsive?
I have no idea where to start with debugging this.
The bot manages an existing (i.e. manually opened by the user) trade position. It doesn't do anything fancy like call other dlls or anything.
Do I need to put some kind of sleep statements in my code?
Any insight appreciated.
Hi,
Your cBot is not coded properly, and there is only one solution, fix your cBot code.
@ycomp
ycomp
12 Jan 2022, 08:55
RE:
amusleh said:
Hi,
What do you mean by using Quick Trade Buttons with automate?
If you open a position/order with quick trade button or with create new order window, you can access both of them on your cBot/Indicator.
I mean using the Quick Trade buttons on the chart that is displayed when the algo is selected in the Automate section
@ycomp
ycomp
03 Jan 2022, 17:11
( Updated at: 21 Dec 2023, 09:22 )
RE:
it's not irrelevant when you have a lot of outputs, but I understand anyhow - not possible.
firemyst said:
The width has its own configurations in the cTrader window for anything that's marked as "Output", so using the parameter in that way is irrelevant.
If you're drawing a line of any sort, that's where you'd use a separate width parameter.
@ycomp
ycomp
02 Jan 2022, 14:20
RE:
any idea when 4.2 is coming out?
PanagiotisCharalampous said:
Hi amml,
No there aren't. This method is not actually supported and from the next update (4.2) you will be able to use dotnet build command instead. So you will need to survive with this workaround till then :).
Best Regards,
Panagiotis
@ycomp
ycomp
21 Mar 2019, 10:00
ok, this is my understanding now...
even if cTrader broker has copy enabled AND displays a copy icon in the cTrader Windows Desktop application, you still can only view copied positions by logging into the ct.BROKER.com/copy url in the web browser, correct?
also is there a list anywhere or brokers who support copy and to what level - or can you email me the list if it is not on the web?
@ycomp
ycomp
15 Mar 2019, 20:55
RE:
are you saying in the broker client that has the account that is copying the strategy, that it should have a subaccount under the account that now shows $0.00 (because funds were withdrawn by copying)?
I'm not really sure what a subaccount is.
The source of the strategy is a ct.spotware.com/copy web browser instance I am using .. should I be looking for subaccounts there instead?
Panagiotis Charalampous said:
Hi ycomp,
Copied positions are only visible in cTrader Copy section. To see them you need to select the subaccount that is copying the strategy. If you still cannot see the copied positions, please send us some screenshots of both the strategy page and the subaccount page to investigate further.
Best Regards,
Panagiotis
@ycomp
ycomp
28 Feb 2019, 15:00
in v1 trading api (with java) the way to send and receive messages was to have a message sender thread and message receiver thread running. You send messages on the sender thread and receive them on the receiver thread.
Can I still use this approach with v2? Or do I need to use this netty like in the java examples and open a new connection and wait for the result each time I want to make a request?
@ycomp
ycomp
20 Jan 2022, 18:14 ( Updated at: 21 Dec 2023, 09:22 )
RE:
wow I just tried it, and applied a template I had from an automate chart.
So does this mean that all the settings of the bot on the automate chart (if the chart is saved as a template), then get applied to a regular trading chart - if the template is selected?
PanagiotisCharalampous said:
@ycomp