Eg&5

Newbie
Jan 23, 2025
7
0
1
39
Hello please I want to be able to Surpass MaxPositionSizeTotal by splitting it into multiple trades just like SurpassBrokerMaxPositionSize
 

Eg&5

Newbie
Jan 23, 2025
7
0
1
39
The feature is not available
Post automatically merged:

If I set a MaxPositionSizeTotal at 60 lots, if I have a trade of 200 lots I need it to split that 200lots into multiple 60lots and whatever remains
 

Enivid

Administrator
Staff member
Nov 30, 2008
19,438
1,570
144
Odesa
www.earnforex.com
The feature is not available
Post automatically merged:

If I set a MaxPositionSizeTotal at 60 lots, if I have a trade of 200 lots I need it to split that 200lots into multiple 60lots and whatever remains
How do you mean it is not available? MaxPositionSizeTotal has nothing to do with that. You shouldn't modify it unless you are willing to restrict the total volume of the trades the Position Sizer will tolerate in an account.
 

ulises2k

Trader
Feb 12, 2022
11
1
19
44
Hi, I've made a change to the colors of DarkMode, if you like it, feel free to implement it. This is what I changed:

Defines.mqh
1738636869373.png


Position Sizer.mq5:
1738636901543.png


GUI DarkMode:
1738636922977.png
1738636937539.png
1738636948322.png
1738636958394.png
1738636969908.png
 

Eg&5

Newbie
Jan 23, 2025
7
0
1
39
Hi, I've made a change to the colors of DarkMode, if you like it, feel free to implement it. This is what I changed:

Defines.mqh
View attachment 31259


Position Sizer.mq5:
View attachment 31260


GUI DarkMode:
View attachment 31261
View attachment 31262
View attachment 31263
View attachment 31264
View attachment 31265
I'm getting lots of errors message while trying to compile
Post automatically merged:

I'm getting lots of errors message while trying to compile
I've fixed it already
 

Mio

Trader
Nov 10, 2021
23
13
19
25
MT5 3.10 Translated to Portuguese-Brazilian (PTBR)
MT4 3.10 Translated to Portuguese-Brazilian (PTBR)

  • Fixed Portuguese.mqh missing the new inputs.
  • Translated new inputs in Position Sizer.mq5 and mq4
@Enivid
I’ve fully translated both Portuguese.mqh files. I also translated the .mq5 and .mq4 files, just as I did with previous versions. However, I’ve encountered a new issue: the .mq5 file from the original link (https://www.earnforex.com/mt5-expert-advisors/Position Sizer.zip) appears to be corrupted. It won’t compile.

It’s likely that the .ex5 file works, but the distributed .mq5 file is faulty, which prevents me from completing and compiling the translation. Could you check and update the files to ensure they compile correctly? That would help me finalize the translation.

Thanks in advance for your help!
 

Attachments

  • Position Sizer 3.10 MT5 PTBR.zip
    128 KB · Views: 1
  • Position Sizer 3.10 MT4 PTBR.zip
    856.4 KB · Views: 1
  • 👍
Reactions: Enivid

Enivid

Administrator
Staff member
Nov 30, 2008
19,438
1,570
144
Odesa
www.earnforex.com
@Enivid
I’ve fully translated both Portuguese.mqh files. I also translated the .mq5 and .mq4 files, just as I did with previous versions. However, I’ve encountered a new issue: the .mq5 file from the original link (https://www.earnforex.com/mt5-expert-advisors/Position Sizer.zip) appears to be corrupted. It won’t compile.

It’s likely that the .ex5 file works, but the distributed .mq5 file is faulty, which prevents me from completing and compiling the translation. Could you check and update the files to ensure they compile correctly? That would help me finalize the translation.
It doesn't appear to be corrupted. What makes you think that it is?
 
  • 👍
Reactions: Mio

Mio

Trader
Nov 10, 2021
23
13
19
25
It doesn't appear to be corrupted. What makes you think that it is?
Hi @Enivid ,

I tried compiling the MT5 version on my end and received some warnings and errors. However, after your reply, I had a friend compile the translated 3.10 version, and it worked correctly on their system. This suggests that the issue might be specific to my local setup.

Are you also able to compile the MT4 and MT5 translations without any issues? If so, then everything is set on your side, and you can update the MT4 and MT5 Portuguese.mqh files accordingly.

Thanks for your help!
 

Enivid

Administrator
Staff member
Nov 30, 2008
19,438
1,570
144
Odesa
www.earnforex.com
Hi @Enivid ,

I tried compiling the MT5 version on my end and received some warnings and errors. However, after your reply, I had a friend compile the translated 3.10 version, and it worked correctly on their system. This suggests that the issue might be specific to my local setup.

Are you also able to compile the MT4 and MT5 translations without any issues? If so, then everything is set on your side, and you can update the MT4 and MT5 Portuguese.mqh files accordingly.

Thanks for your help!
Yes, I've already tried compiling them on my side and updated them in the current version archives. Thank you!

As for the compilation errors, perhaps some of the .mqh files was missing?
 

Vycky

Newbie
Feb 15, 2025
2
0
1
19
Hello is there a way i can be able to hide the risk USD and position size on the main Tab, i would appreciate the help. This 2 portions below1739617651437.png
 
Last edited:

Enivid

Administrator
Staff member
Nov 30, 2008
19,438
1,570
144
Odesa
www.earnforex.com
View attachment 31401

I mean if there was an option to just key in the risk percentage only without necessarily viewing the risk in money form.
You can enter the percentage risk via input parameters without seeing the money risk or position size (as long as you on some other tab or have the panel minimized).
 

Eg&5

Newbie
Jan 23, 2025
7
0
1
39
Hello, my broker has a max position size of 200.00, but during certain times that max position size is reduced to 60.00.

When I try taking trades during those times with a lot size of 500.00, I expect that the EA will split the trades using 200.00, but it gives me an error because the broker already reduced the max PS to 60.00, but the EA isn't picking it.

What solution do you think will solve this issue easily, please? Thank you for your patience and response
 

Enivid

Administrator
Staff member
Nov 30, 2008
19,438
1,570
144
Odesa
www.earnforex.com
Hello, my broker has a max position size of 200.00, but during certain times that max position size is reduced to 60.00.

When I try taking trades during those times with a lot size of 500.00, I expect that the EA will split the trades using 200.00, but it gives me an error because the broker already reduced the max PS to 60.00, but the EA isn't picking it.

What solution do you think will solve this issue easily, please? Thank you for your patience and response
Yes, currently the Position Sizer reads the maximum symbol data only once - when it's first initialized on the chart.
You can change that by finding the call to the GetSymbolAndAccountData() function in Position Sizer.mqh and removing the condition it's enclosed in.