ZeThags

Trader
Dec 3, 2024
3
1
8
40
This is odd. The commission value should be read by the Position Sizer automatically and displayed in the commission field (which is always read-only). Did it show zero?
It shows 1$ all the time, but i know the commission on this broker/funded challenge is 2$ per Lot, It would be great if we could just input manually like on MT4/5


That's how robots work in cTrader. You cannot use the up/down arrows on charts with a running cBot to switch timeframes. Changing the timeframe with your mouse leads to a complete re-initialization of the robot, that's why its panel gets unfolded. I will look into it. Perhaps, it's possible to keep it minimized on timeframe changes.
That would be better than it is now. I didn't know I couldn't use the arrows with bots in general, this is the only bot I use.
 

Enivid

Administrator
Staff member
Nov 30, 2008
19,328
1,535
144
Odesa
www.earnforex.com
It shows 1$ all the time, but i know the commission on this broker/funded challenge is 2$ per Lot, It would be great if we could just input manually like on MT4/5
Hm... If it's showing $1 there, it means that it's using $2 in the calculations because it's showing a one-way commission value, while in risk calculation it accounts for both entry and exit, so I don't see how that would make the calculations wrong...
 

ZeThags

Trader
Dec 3, 2024
3
1
8
40
Hm... If it's showing $1 there, it means that it's using $2 in the calculations because it's showing a one-way commission value, while in risk calculation it accounts for both entry and exit, so I don't see how that would make the calculations wrong...
Ohh I see! Yes that makes sense now! I didn't think about that! My bad.. Thanks for clarifying
 
  • 👍
Reactions: Enivid

Enivid

Administrator
Staff member
Nov 30, 2008
19,328
1,535
144
Odesa
www.earnforex.com
cTrader Position Sizer updated to version 1.06 to fix some bugs and add a new feature:
  • Added an input parameter (Use Async Orders) to enable asynchronous trade requests. (@youforex)
  • Fixed panel minimization status not saving through timeframe switching. (@ZeThags)
  • Fixed a runtime error that could appear in some cases when opening the chart with the Position Sizer after launching it first.
  • Fixed a runtime error that could sometimes appear when setting a take-profit. (@toshin)
  • Fixed a runtime error when clicking on the Show lines button. (@Safi Ullah)
  • Fixed a bug that would cause edit fields' background change to white in the dark mode. (@Safi Ullah)
The problem with the all-white edit fields is an issue with the current cTrader version. It should be gone after the next cTrader update.
 
  • 🎉
Reactions: EnrichWave

JonSTP

Trader
Dec 19, 2024
5
0
6
49
Thank you for Ctrader position sizer, it is very smooth Cbot. I don't understand why MT5 version always freeze after 2-3 minutes, but for Ctrader version it is very smooth and stable. :cool:

Anyway, did you share the source code of Ctrader version ? If not share, it's fine. :)
 

Enivid

Administrator
Staff member
Nov 30, 2008
19,328
1,535
144
Odesa
www.earnforex.com
Thank you for Ctrader position sizer, it is very smooth Cbot. I don't understand why MT5 version always freeze after 2-3 minutes, but for Ctrader version it is very smooth and stable. :cool:
Could you please provide more details about the freezing issue in MT5 in the main PS thread?
Anyway, did you share the source code of Ctrader version ? If not share, it's fine. :)
The source code is included in the download.
 
  • 👍
Reactions: JonSTP

threepe

Trader
Dec 23, 2024
3
2
8
47
Discuss the cTrader Position Sizer robot here. This cBot lets you calculate optimal position size and execute trades based on these calculations. It's a conversion of the popular MetaTrader Position Sizer EA.

Please note: this post's date has been modified to keep at the top of the thread. There was no public release of the cTrader Position Sizer before October 15, 2024.

I have started to use this, but when I open the menu areas there are no values filled in for any of the fields. If I set the values, for example, max risk at 10% for all positions, the bot appears to accept this, but then the input field goes blank again. Clicking on it reveals that the value is indeed 10%, but its a little disconcerting that you cannot see what you have input without clicking back into the box to make it visible. I am using a dark theme if that could be something to do with it
 

Enivid

Administrator
Staff member
Nov 30, 2008
19,328
1,535
144
Odesa
www.earnforex.com
I have started to use this, but when I open the menu areas there are no values filled in for any of the fields. If I set the values, for example, max risk at 10% for all positions, the bot appears to accept this, but then the input field goes blank again. Clicking on it reveals that the value is indeed 10%, but its a little disconcerting that you cannot see what you have input without clicking back into the box to make it visible. I am using a dark theme if that could be something to do with it
That's a bug in the current cTrader version with the edit controls' background. You should be able to circumvent it by setting the Dark Mode parameter to Yes for the Position Sizer.
 

Enivid

Administrator
Staff member
Nov 30, 2008
19,328
1,535
144
Odesa
www.earnforex.com
I have started to use this, but when I open the menu areas there are no values filled in for any of the fields. If I set the values, for example, max risk at 10% for all positions, the bot appears to accept this, but then the input field goes blank again. Clicking on it reveals that the value is indeed 10%, but its a little disconcerting that you cannot see what you have input without clicking back into the box to make it visible. I am using a dark theme if that could be something to do with it
With the release of cTrader version 5.1.11, the bug with the "blanking" input fields on the panel has been fixed.
 
  • 👍
Reactions: threepe and JonSTP

threepe

Trader
Dec 23, 2024
3
2
8
47
Fab. thank you, all sorted and working with the Dark Mode toggle (I should have thought of that)

Really pleased the bug is being worked on, thank you again
 

threepe

Trader
Dec 23, 2024
3
2
8
47
I am sorry to ask another question, but I have got stuck again.

I have attempted to limit overall risk of my trades and entered an overall risk for all trades to be 10% and then a risk per symbol of 10%. When I try and place a single trade of 5% risk (and I have checked that it has done that part of the calculation it fails to place the trade. I get an error stating that the risk has been exceeded.

When that failed to work I adjusted it to be just per symbol risk and again I have not been able to place a trade.

I have no trades running at the point I attempted to place a trade, and the calculation for risk limit appears to be wrong. 10% of the account is not the value shown in the error message

Screenshot 2024-12-31 164319.png
 

Attachments

  • Screenshot 2024-12-31 164542.png
    Screenshot 2024-12-31 164542.png
    148.1 KB · Views: 2
  • ℹ️
Reactions: Enivid

Enivid

Administrator
Staff member
Nov 30, 2008
19,328
1,535
144
Odesa
www.earnforex.com
I am sorry to ask another question, but I have got stuck again.

I have attempted to limit overall risk of my trades and entered an overall risk for all trades to be 10% and then a risk per symbol of 10%. When I try and place a single trade of 5% risk (and I have checked that it has done that part of the calculation it fails to place the trade. I get an error stating that the risk has been exceeded.

When that failed to work I adjusted it to be just per symbol risk and again I have not been able to place a trade.

I have no trades running at the point I attempted to place a trade, and the calculation for risk limit appears to be wrong. 10% of the account is not the value shown in the error message

View attachment 30900
Yeah, that's a bug. Thanks for reporting!
 
  • 👍
Reactions: threepe