cTrader Position Sizer

Hello.

I have isolated the "Red Text" Error that has just today start to appear today on my side, like to many others before me.
In the quote below is the full explanation what I was doing, but immediatlly after writing all of that I went to troubleshoot and managed to find the issue. I don't know if this is what the others have.

The error happens when you change the first setting "Show line labels" to 'No'.
Now when you press 'H' (Show hide lines) on the keyboard, the Red text of death appears.

If you set it back to 'Yes', the text goes away.


Disregard all of this:
I, as many others, encountered the "Red text" error. I use Ctrader only for charting, not entering trades. Position Sizer was working perfectly until today and now the problem keeps reappearing, even after updating from 1.18 to 1.19 version today. I even deleted all files from Cbot folder and completely reinstalled Position Sizer, but to no avail.

From what I see, the problem starts happening the moment I modify any parameter in its settings and press the 'H' (hide) key on my keyboard.
If I just add it to the chart and use it with its default settings, it seems to work ok.


The thing is, it used to work fine before. I always modified settings before (like colours of the lines, etc...) and there was never an error. I was on version 1.18 when it started happening, today I've installed 1.19, but the problem persists.


The issue started happening after I did this:

I have three linked charts open (m5, H1, and Daily). My main focus and work is always from the m5 chart.
I have an instance of Position Sizer on each of them (I add it via Right-Click on each separate chart).
I thought I had the colors set up the same on all of them, but I saw that they were set back to their default values on the H1, so I wanted to change it.
I saved the m5 instance with my correct settings as a preset state and then loaded the same preset on the H1 chart. I thought this is best, so I wouldn't need to set up everything manually for all three charts.

This immediatelly gave me the "Red text" error on that H1 chart.

I went back to my m5 one, and the text started appearing there as well, and now it just won't go away anymore.


I don't add the cBot from the "Algo" panel, since that seems to give me the bot on some other chart and not the three linked ones I have open in the "Trade" panel. I'm new to cTrader, so I'm not quite grasping all the workflow how things should be set up.


So in summary. I add a new instance via Right Click. I click the Play button to start it. I go in the settings and change the first setting. I go out, press 'H' on my keyboard and the error comes on.



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.
Is there a guide somewhere on how we can do that?
 
Last edited:
  • ℹ️
Reactions: Enivid
The error happens when you change the first setting "Show line labels" to 'No'.
Now when you press 'H' (Show hide lines) on the keyboard, the Red text of death appears.

If you set it back to 'Yes', the text goes away.
Thanks! We will look into this.

Is there a guide somewhere on how we can do that?
You can edit the parameters in the file Parameters.cs, which can be found in the source code folder. Each parameter there has a DefaultValue attribute. You can change the values you'd like, save the file, and then re-build the Position Sizer via the Algo tab in your cTrader.
 
  • 👍
Reactions: EnrichWave and mojster_jaka
Hello,
I have a problem with Position Sizer 1.19.
It works with gbpusd but not with us500.dec25.
And us500.dec25 works with 1.14 (see photo).
Thank you for your help.
 

Attachments

  • 01.png
    01.png
    274.7 KB · Views: 5
Version 1.20 of the Position Sizer for cTrader has been released. It fixes some issues and adds minor improvements:
  • Added an input parameter to avoid deleting the Position Sizer's lines when the robot is removed.
  • Fixed a bug with wrong currency shown in additional line labels. (@threepe)
  • Fixed a crash when broker reports in correct lot size value. (@scarface46)
  • Fixed a crash when the trading symbol's name contains special characters.
  • Renamed Show Line Labels input parameter to Show Main Line Labels.
 
Version 1.20 of the Position Sizer for cTrader has been released. It fixes some issues and adds minor improvements:
  • Added an input parameter to avoid deleting the Position Sizer's lines when the robot is removed.
  • Fixed a bug with wrong currency shown in additional line labels. (@threepe)
  • Fixed a crash when broker reports in correct lot size value. (@scarface46)
  • Fixed a crash when the trading symbol's name contains special characters.
  • Renamed Show Line Labels input parameter to Show Main Line Labels.
Thank you very much, but I'm getting this error.
 

Attachments

  • Capture d’écran 2025-11-25 231805.png
    Capture d’écran 2025-11-25 231805.png
    31 KB · Views: 3
Merci, mais la version 1.14 fonctionne parfaitement.

GOOGLE TRANSLATE: Thank you, but version 1.14 works perfectly.
 

Attachments

  • Capture d’écran 2025-11-26 220427.png
    Capture d’écran 2025-11-26 220427.png
    80.1 KB · Views: 4
Last edited by a moderator:
  • ℹ️
Reactions: Enivid
Version 1.20 of the Position Sizer for cTrader has been released. It fixes some issues and adds minor improvements:
  • Added an input parameter to avoid deleting the Position Sizer's lines when the robot is removed.
  • Fixed a bug with wrong currency shown in additional line labels. (@threepe)
  • Fixed a crash when broker reports in correct lot size value. (@scarface46)
  • Fixed a crash when the trading symbol's name contains special characters.
  • Renamed Show Line Labels input parameter to Show Main Line Labels.
Does Version 1.20 or 1.21 also fix the problem of the take profit percentage distribution returning to the default (even distribution) where previously I had set different risks in each position, for example when taking a position on eurusd TP 1, 2 and 3 then by default in the previous version it would be divided evenly around 33% in each position, and even though I have changed the percentage according to my trading style, the setting will return to the default setting if I take a position on another pair, can such a problem be resolved?,
 
Last edited:
Does Version 1.20 also fix the problem of the take profit percentage distribution returning to the default (even distribution) where previously I had set different risks in each position, for example when taking a position on eurusd TP 1, 2 and 3 then by default in the previous version it would be divided evenly around 33% in each position, and even though I have changed the percentage according to my trading style, the setting will return to the default setting if I take a position on another pair, can such a problem be resolved?,
It's the first time I hear about that issue, so it's unlikely that it has been fixed. Could you please tell me more about how to reproduce it? Because when I do the following, the volume shares are correct:
  1. I added the PS to EURUSD.
  2. I added 3 TP levels and changed the shares from 33/33/33 to 40/10/50.
  3. I pressed the Trade button and it opened three correctly sized positions.
  4. I switched the chart to USDJPY.
  5. I added 3 TP levels and kept their shares at 33/33/33.
  6. I pressed the Trade button and it opened three evenly sized positions.
  7. I switched the chart back to EURUSD.
  8. It already had 3 TPs set up as before with the same 40/10/50 shares.
  9. I pressed the Trade button and it opened the correctly sized trades.
This was all with the default input parameters. Did you change any parameters when you experienced that volume share problem?
 
It's the first time I hear about that issue, so it's unlikely that it has been fixed. Could you please tell me more about how to reproduce it? Because when I do the following, the volume shares are correct:
  1. I added the PS to EURUSD.
  2. I added 3 TP levels and changed the shares from 33/33/33 to 40/10/50.
  3. I pressed the Trade button and it opened three correctly sized positions.
  4. I switched the chart to USDJPY.
  5. I added 3 TP levels and kept their shares at 33/33/33.
  6. I pressed the Trade button and it opened three evenly sized positions.
  7. I switched the chart back to EURUSD.
  8. It already had 3 TPs set up as before with the same 40/10/50 shares.
  9. I pressed the Trade button and it opened the correctly sized trades.
This was all with the default input parameters. Did you change any parameters when you experienced that volume share problem?
Sorry, I just read this message. From the example you gave above, I want every time I change pairs or when I stop cBot, the risk I have set will always be the same, namely 40/10/50, and not return to 33/33/33 (default). Thank you.
 
Sorry, I just read this message. From the example you gave above, I want every time I change pairs or when I stop cBot, the risk I have set will always be the same, namely 40/10/50, and not return to 33/33/33 (default). Thank you.
Stopping and starting the cBot should already restore the saved volume shares. If you want the shares to remain the same when you switch currency pairs, you need to change the Symbol Change Action parameter to KeepPanelAsIs. Please be aware that changing that parameter will reset your panel to its default state. However, after that, your panel's configuration will be carried over all the currency pairs you switch to.
 
Stopping and starting the cBot should already restore the saved volume shares. If you want the shares to remain the same when you switch currency pairs, you need to change the Symbol Change Action parameter to KeepPanelAsIs. Please be aware that changing that parameter will reset your panel to its default state. However, after that, your panel's configuration will be carried over all the currency pairs you switch to.
OK, thanks for the info, I will try it.