cTrader Position Sizer

Unfortunately, the most recent version of cTrader used by my broker is the one already installed. I have been to their site and redownloaded but its the same version.

The issues have occurred again today. On a second chart I cannot set a TP.

I have attached log files to see if these can help you.
Thank you! I will look into it. However, I hope your broker's server will soon push out this 5.2.5 update, so you can make sure the bug can be reproduced there and isn't just some issue in 5.1.14.
 
Thank you! I will look into it. However, I hope your broker's server will soon push out this 5.2.5 update, so you can make sure the bug can be reproduced there and isn't just some issue in 5.1.14.
As soon as I can use the newer version I will report back if there is an issue. Thanks again
 
I think I know what the issue is, I enabled "Use Commission to Set TP Distance" and then the issues started occurring if I have more than 1 chart open at a time.

I was trying to get it so that when it calculates TPx2 it adds in commission and spreads. Not sure if that was the correct setting to try and make it do that, but that is what has caused me the issue.
 
  • ℹ️
Reactions: Enivid
I think I know what the issue is, I enabled "Use Commission to Set TP Distance" and then the issues started occurring if I have more than 1 chart open at a time.

I was trying to get it so that when it calculates TPx2 it adds in commission and spreads. Not sure if that was the correct setting to try and make it do that, but that is what has caused me the issue.
Yeah, got it! Thank you!
 
I just updated to CTrader 5.3.9
and installed Position Sizer 1.14
but I can't install it. There are red boxes and I can't add it to the chart.

It's a bug.
I've had this since I updated to CTrader 5.3.9.

watch the video
Post automatically merged:

Je viens de mettre à jour vers CTrader 5.3.9
et installé Position Sizer 1.14
mais je n'arrive pas à l'installer. Il y a des cases rouges et je ne peux pas l'ajouter au tableau.

C'est un bug.
Je l'ai depuis que j'ai mis à jour vers CTrader 5.3.9.

regarde la vidéo merci
View attachment 2025-06-18 22-50-21.mp4
 
I just updated to CTrader 5.3.9
and installed Position Sizer 1.14
but I can't install it. There are red boxes and I can't add it to the chart.

It's a bug.
I've had this since I updated to CTrader 5.3.9.

watch the video
Unfortunately, there is a serious bug in cTrader 5.3.9. It doesn't allow zero value parameters of type double. Please either wait for cTrader to push its next update to fix this issue or set some non-zero values in all of those parameters (though you'd probably want to set the values back to zero directly on the panel after that).
 
Hi,
I would like to report a bug, my c trader position size is 1.14.

There are often red words appear all over the place. And what I observe is that this often happens when I am doing instant trades, and price moves through the SL line, the red words will have a high chance of appearing. like this , the SL is 3367.6, and price now moves through it, and the red words appear.
c trader error.png
 
Hi,
I would like to report a bug, my c trader position size is 1.14.

There are often red words appear all over the place. And what I observe is that this often happens when I am doing instant trades, and price moves through the SL line, the red words will have a high chance of appearing. like this , the SL is 3367.6, and price now moves through it, and the red words appear.
View attachment 33177
Has this started happening only recently or since a long time ago?
 
Ever Since I downloaded position size calculator, but it is only recently have a good idea of what triggers the bug. I tested it, Placing the SL level at where I think it will hit, when the SL level got violated, the red words appear really frequently.
 
  • ℹ️
Reactions: Enivid
Hello,
When you modify cbot Position Sizer,
where should you save the file?
C:\Users\scarf\Documents\cAlgo\Sources\Robots\PositionSizer.cbotset
OK?
The problem is that when I change the risk to 0.5%, I save it.

But if there's a crash and I have to restart, it goes back to 1%.
How do I keep it at 0.5%?
Thanks

 
Hello,
When you modify cbot Position Sizer,
where should you save the file?
C:\Users\scarf\Documents\cAlgo\Sources\Robots\PositionSizer.cbotset
OK?
The problem is that when I change the risk to 0.5%, I save it.

But if there's a crash and I have to restart, it goes back to 1%.
How do I keep it at 0.5%?
Thanks

To the left of the Save button, there is a Load button. You can use it to load the saved settings from the file to modify the parameters.
If you want this to be changed forever in all instances of the Position Sizer without loading the settings file, you have to modify the default parameter values in the source code and re-build the cBot.
 
Hi,
I would like to report a bug, my c trader position size is 1.14.

There are often red words appear all over the place. And what I observe is that this often happens when I am doing instant trades, and price moves through the SL line, the red words will have a high chance of appearing. like this , the SL is 3367.6, and price now moves through it, and the red words appear.
View attachment 33177
Could you please share the settings file with the input parameters you are using?
 
Hi, I am getting this error on one specific pair ( US 30 ) for my prop firm PIPFARM. It works on every other instrument but not this one. It says :

Message: Symbol Names are supposed to be the same, but they are different: US30 and US 30
StackTrace:
at cAlgo.Robots.PositionSizer.CanImplementModelOrPropertyChange(IModel m) in C:\Users\USUARIO\Documents\cAlgo\Sources\Robots\PositionSizer\PositionSizer.cs:line 947
at cAlgo.Robots.PositionSizer.Initialize() in C:\Users\USUARIO\Documents\cAlgo\Sources\Robots\PositionSizer\PositionSizer.cs:line 134
at cAlgo.Robots.PositionSizer.OnStart() in C:\Users\USUARIO\Documents\cAlgo\Sources\Robots\PositionSizer\PositionSizer.cs:line 55
at cTrader.Automate.Adapters.RobotWrapper.OnStart()
at cTrader.Automate.Host.Runtime.SmallAlgoCodeExecutorExtensions.<>c__cctor>b__3_0(Action a)
at cTrader.Automate.Domain.Shared.Dispatcher.DispatcherAction`1.Invoke()
at cTrader.Automate.Host.Runtime.AlgoExecutor.SmallAlgoCodeExecutor.ExecuteInternal(IDispatcherAction& action, Boolean raiseFrameEvent)

Can anyone can help me solve this error?
 
Hi, I am getting this error on one specific pair ( US 30 ) for my prop firm PIPFARM. It works on every other instrument but not this one. It says :

Message: Symbol Names are supposed to be the same, but they are different: US30 and US 30
StackTrace:
at cAlgo.Robots.PositionSizer.CanImplementModelOrPropertyChange(IModel m) in C:\Users\USUARIO\Documents\cAlgo\Sources\Robots\PositionSizer\PositionSizer.cs:line 947
at cAlgo.Robots.PositionSizer.Initialize() in C:\Users\USUARIO\Documents\cAlgo\Sources\Robots\PositionSizer\PositionSizer.cs:line 134
at cAlgo.Robots.PositionSizer.OnStart() in C:\Users\USUARIO\Documents\cAlgo\Sources\Robots\PositionSizer\PositionSizer.cs:line 55
at cTrader.Automate.Adapters.RobotWrapper.OnStart()
at cTrader.Automate.Host.Runtime.SmallAlgoCodeExecutorExtensions.<>c__cctor>b__3_0(Action a)
at cTrader.Automate.Domain.Shared.Dispatcher.DispatcherAction`1.Invoke()
at cTrader.Automate.Host.Runtime.AlgoExecutor.SmallAlgoCodeExecutor.ExecuteInternal(IDispatcherAction& action, Boolean raiseFrameEvent)

Can anyone can help me solve this error?
1750699673537.png
 
  • ℹ️
Reactions: Enivid