Topics
Replies
ctid+customer-395444
23 Jun 2023, 06:26
How do you expect anyone to help you if you don't post any of your code so people can see what you're code is doing and why it might be failing?
Since you haven't done that, edit your code in VIsual Studio and run it with debugging enabled.
@ctid+customer-395444
ctid+customer-395444
21 Jun 2023, 15:41
( Updated at: 21 Dec 2023, 09:23 )
I've experienced the same issue and I wasn't doing any backtesting -- only running a bot.
Renko 6 EURJPY. Date/time is UTC + 8 running cTrader 4.7.12.
Chart on one computer under "automate" when running/stopping a cBot:
Chart on second computer in trading tab (automate has the same chart too on this computer that was not running any cBots) :
@ctid+customer-395444
ctid+customer-395444
20 Jun 2023, 11:19
RE:
PanagiotisChar said:
Hi firemyst,
I guess when the data is downloaded once, it is then cached and reused by other instances too
Need help? Join us on Telegram
I would hope that's the way it is set to work. But if so, I think it would be better to only show one message saying data is being downloaded instead of 15 (like the screen capture) as that gives off the wrong impression.
Unless that's a "glitch" I came across :-)
@ctid+customer-395444
ctid+customer-395444
20 Jun 2023, 04:40
RE:
ncel01 said:
Hi firemyst,
I suppose that your account currency is AUD and that's for currency conversion purposes.
Thank you. that makes sense.
But be that as it may, I'm not sure why there has to be 15 separate threads downloading the SAME conversion rate data? Surely Spotware could implement it so that the data is downloaded ONCE and then shared between any number of child threads that may launch?
@ctid+customer-395444
ctid+customer-395444
19 Jun 2023, 13:03
What are you talking about?
Because from the way I read this, both those options are already there:
1) Pip counter - just right-click and add the column:
2) weekly profit/loss for week - click the drop down and select it:
??????
@ctid+customer-395444
ctid+customer-395444
17 Jun 2023, 06:04
Your bot is closing all positions because you tell it to:
private void CloseAllPositions()
{
foreach (var position in Positions)
{
ClosePosition(position);
}
}
If you only want to close positions that your bot has specifically opened, then it's a two step process:
1) when you open a position, you need to assign a label to it (eg, "acBotPosition"), which is a string.
2) when looping through all the open positions, only close those positions whose label matches "acBotPosition":
private void CloseAllPositions()
{
foreach (var position in Positions)
{
if (position.Label == "acBotPosition")
ClosePosition(position);
}
}
As for the cut scenario, I wouldn't use the "HasCrossedAbove" method.
Instead, I would use logic similar to the following:
if (_fastMA.Result.Last(1) > _slowMA.Result.Last(1))
{
ExecuteStrategy(TradeType.Buy);
}
else if (_fastMA.Result.Last(1) < _slowMA.Result.Last(1))
{
ExecuteStrategy(TradeType.Sell);
}
@ctid+customer-395444
ctid+customer-395444
17 Jun 2023, 05:54
This happens a lot with WIndows Programs (not just cTrader). I find it happens when you have two displays that are different resolutions (eg, laptop screen FHD, monitor 4k) and the higher resolution monitor gets disconnected _before_ running program is brought over to the primary display. Windows remembers program display locations, so as a result, it appears off screen when the second display isn't connected any more. It's a hassle.
Ways to try fixing it which have helped me in the past:
@ctid+customer-395444
ctid+customer-395444
17 Jun 2023, 05:48
( Updated at: 21 Dec 2023, 09:23 )
Your watch list?
Since nobody else has spoken up, here's something you can try:
- using your default settings file. You can find it in a location similar to:
In that file has the listing of your watch lists.
If you open that file up in Notepad, Notepad++, or some other similar text editor, it will have binary characters in it, but it will also have the symbols in your watch list, listed out.
For example, here's part of my watch list:
@ctid+customer-395444
ctid+customer-395444
16 Jun 2023, 20:07
Why is this question posted under "Suggestions"?
This should be posted under
or
> To date it is not possible to modify volume for the position and/or direction.
It sure is. Please post your question in the other groups for an answer. This forum is for "suggestions", not "questions".
@ctid+customer-395444
ctid+customer-395444
16 Jun 2023, 20:02
( Updated at: 21 Dec 2023, 09:23 )
What version of cTrader do you have? It shows up in the "what's new" for version 4.7.12 :
@ctid+customer-395444
ctid+customer-395444
15 Jun 2023, 15:44
You do realize there's already one available?
@ctid+customer-395444
ctid+customer-395444
14 Jun 2023, 03:12
RE:
danor60000 said:
Good afternoon everyone. Help me figure out how to make the TakeProfit and StopLoss indicator so that when its price approaches, it moves up (down). Thank you in advance.
I provided example logic in this thread:
@ctid+customer-395444
ctid+customer-395444
23 Jun 2023, 06:32
You should have enough to go on with the samples included in cTrader. I don't understand how none of those or any included in the cbot repository
can't help you but a sample macd zero crossing one will.
@ctid+customer-395444