Essien

Newbie
Jul 22, 2023
5
0
2
23
If I'm using a 500k account on MyForexFunds broker. And mff broker only allows me to open 50lot maximum per position. And I get a trade which is 70 lotsize. Would the ea divide the position into 50lot and 20lot at the same time.
And if I want to use 230lot at once can it divide it into 4 x50lot position and one 20lot.
Is there a settings on it like that.
 

Enivid

Administrator
Staff member
Nov 30, 2008
19,396
1,566
144
Odesa
www.earnforex.com
If I'm using a 500k account on MyForexFunds broker. And mff broker only allows me to open 50lot maximum per position. And I get a trade which is 70 lotsize. Would the ea divide the position into 50lot and 20lot at the same time.
And if I want to use 230lot at once can it divide it into 4 x50lot position and one 20lot.
Is there a settings on it like that.
If you set SurpassBrokerMaxPositionSize to true, it will do that.
 

Mio

Trader
Nov 10, 2021
23
13
19
25
Heey, I modified the original 3.04 to 3.04 Translated to Brazilian Portuguese (PT-BR)

  • I enhanced the Position Sizer.mq5 default inputs for dark templates by adjusting the default inputs accordingly.
  • Additionally, I have meticulously translated the input comments into portuguese to cater to the Portuguese-speaking community.
    (Remember that Portuguese tutorial you commented on YouTube? That was me! I just wanted to let you know that I'm totally dedicated to making this open-source code even better for everyone in the community.)
  • To ensure seamless integration, I've introduced the Portuguese.mqh file inside the Translations folder. This enables the Position Sizer.mq5 to automatically load the Portuguese translation, providing users with a more accessible and localized interface.
  • I took great care to use consistent words throughout all tabs and explanations in the code, ensuring a cohesive translation. Additionally, I made sure that all the information fits neatly within the panel without any text overlapping.

Attached is the translated version. Thank you!
 

Attachments

  • Position Sizer - 3.04 PTBR.zip
    109.2 KB · Views: 3
Last edited:
  • 🚀
Reactions: Enivid

Enivid

Administrator
Staff member
Nov 30, 2008
19,396
1,566
144
Odesa
www.earnforex.com
Heey, I modified the original 3.04 to 3.04 Translated to Brazilian Portuguese (PT-BR)

  • I enhanced the Position Sizer.mq5 default inputs for dark templates by adjusting the default inputs accordingly.
  • Additionally, I have meticulously translated the input comments into portuguese to cater to the Portuguese-speaking community.
    (Remember that Portuguese tutorial you commented on YouTube? That was me! I just wanted to let you know that I'm totally dedicated to making this open-source code even better for everyone in the community.)
  • To ensure seamless integration, I've introduced the Portuguese.mqh file inside the Translations folder. This enables the Position Sizer.mq5 to automatically load the Portuguese translation, providing users with a more accessible and localized interface.
  • I took great care to use consistent words throughout all tabs and explanations in the code, ensuring a cohesive translation. Additionally, I made sure that all the information fits neatly within the panel without any text overlapping.

Attached is the translated version. Thank you!
Fantastic work! Thank you very much for sharing this!
 
  • 👍
Reactions: Mio

Enivid

Administrator
Staff member
Nov 30, 2008
19,396
1,566
144
Odesa
www.earnforex.com
In case it's relevant, I switch the SLs by using a script that looks for PSC_StopLossLine and places it at current candle (0) low. If it's already at candle 0 low, it moves SL to previous candle (1) low.
There could be a potential problem when moving the SL line should also provoke the trade's direction change. Could you please attach the script, so I could test this?
 

CARPARK

Trader
Mar 29, 2021
69
23
24
47
Tallinn
There could be a potential problem when moving the SL line should also provoke the trade's direction change. Could you please attach the script, so I could test this?
Sure. I originally wrote the script to modify 'PSC_' lines so I change that in input settings for PS before using the script.
 

Attachments

  • Buy SL Toggle.mq5
    111.4 KB · Views: 4
  • Buy SL Toggle.ex5
    99 KB · Views: 3
  • Sell SL Toggle.mq5
    111.4 KB · Views: 4
  • Sell SL Toggle.ex5
    98.8 KB · Views: 2
  • 👍
Reactions: Enivid

Enivid

Administrator
Staff member
Nov 30, 2008
19,396
1,566
144
Odesa
www.earnforex.com
The Position Sizer has just been updated to version 3.05. Mostly, as a hotfix to some experience-breaking issues reported by users or noticed by myself. Here is the list of changes:
  • Added a new input parameter (PrefillAdditionalTPsBasedOnMain) to control whether newly added TPs are pre-filled or not. (Via email)
  • Added a file with Portuguese (Brazilian) translation (contributed by Matheus Sevaroli) for the MT5 version of the expert advisor. (@Mio)
  • Fixed the Reward calculation display when some of the additional take-profit levels are zero. It will now calculate reward only for those trades that have a non-zero TP. (Via email)
  • Fixed a bug with position size restriction and subtraction settings not actually working. (@EnrichWave)
  • Fixed a bug that caused the SymbolChange = Reset to Defaults to not work for most fields. (@EnrichWave)
  • Fixed a bug that prevented normal updating of entry and TP levels when lines were hidden. (@CARPARK)
  • Fixed a bug in MT4 version that could sometimes cause an 'array out of range' error.
I suggest upgrading from 3.04 (and of course from 3.03 too) as soon as possible.
 
  • 👍
  • 🎉
Reactions: Mio, EnrichWave and CARPARK

EnrichWave

Master Trader
May 15, 2018
384
100
89
India
Do you have any idea how much is the commission in FTMO and MFF? by the thanks for reply
What ever brokers you use. Just place 0.01 lot and calculate it for 1 standard lot. Some brokers may give idea about commission on specification of that symbol. Most of the brokers don't.

@Enivid the following option (Enabled the following options). It allows to risk first order 0.02%. But when I try to risk another 0.01% it shows the error.
2023-07-26_01h00_211.png
2023-07-26_01h00_28.png
 
Last edited:
  • 👍
Reactions: bibol trader

EnrichWave

Master Trader
May 15, 2018
384
100
89
India
And if the settings is like following.
2023-07-26_01h18_18.png

First pending order with 0.05% risk works fine. If I place another instant order with risk 0.05% risk, it shows
2023-07-26_01h16_50.png
 

Enivid

Administrator
Staff member
Nov 30, 2008
19,396
1,566
144
Odesa
www.earnforex.com
@Enivid the following option (Enabled the following options). It allows to risk first order 0.02%. But when I try to risk another 0.01% it shows the error.
View attachment 24509
View attachment 24510

And if the settings is like following.
View attachment 24511

First pending order with 0.05% risk works fine. If I place another instant order with risk 0.05% risk, it shows
View attachment 24512
In both cases, your calculated volume is lower than the volume of the already open position/order. You have the 'subtract' checkboxes ticked. After subtraction, the result is 0 or less - there is no volume to open.
 
  • ℹ️
Reactions: EnrichWave

EnrichWave

Master Trader
May 15, 2018
384
100
89
India
In both cases, your calculated volume is lower than the volume of the already open position/order. You have the 'subtract' checkboxes ticked. After subtraction, the result is 0 or less - there is no volume to open.
Understand.
But for the real it should work in the following way isn't?. The higher risk should go to first then the calculation should happen. So it will calculate very perfect. It should calculate like 12-6 instead of 6-12

BR
 
Last edited:

Enivid

Administrator
Staff member
Nov 30, 2008
19,396
1,566
144
Odesa
www.earnforex.com
Understand.
But for the real it should work in the following way isn't?. The higher risk should go to first then the calculation should happen. So it will calculate very perfect. It should calculate like 12-6 instead of 6-12
It is supposed to work by subtracting the volume of the existing positions from the volume of the planned position.
This feature was intended to open complementary positions when you already have a part open though some way.
 
  • ℹ️
Reactions: EnrichWave

Mio

Trader
Nov 10, 2021
23
13
19
25
Attached is updated v3.05 inputs to brazilian portuguese if anyone interested.

Firstly, I want to extend my heartfelt appreciation for the remarkable work and dedication you have put into enhancing the PSC EA. As a user, I have been thoroughly delighted with the recent improvements, and I know many other members from the Brazilian community that I introduced to PSC share the same sentiment.

I have a couple of quality of life suggestions that I believe could take the user experience to even greater heights in the next update of PSC EA.
  • Minimalistic Display of ATR, Spread, and CandleTime: It would be wonderful to have the input options to easily toggle on or off the exhibit of ATR, Spread, and CandleTime in a minimalistic way at the PSC tab when it is minimized.

    Currently, the spread option is available, but it only shows when the panel is maximized.

    It would be great to have each option individually accessible, allowing users to display only the information they need. For instance, having the flexibility to choose to display ATR and Spread only, or just Spread, or solely CandleTime would be highly valuable. I've included a image example of how this could look.
  • Shortcut for Entry Line: the existing shortcut options for stop loss ("S") and take profit ("P") in the PSC EA provide great convenience for placing instant and pending orders. However, I'd like to suggest the addition of a shortcut for entry line as well, using the letter "E."
    The "E" shortcut would not only allow users to set the entry order quickly but also automatically switch it to the pending order type. "S" and "P" made instant order more efficient, but pending order still have to drag the entry line. The inclusion of the "E" shortcut for pending orders would further optimize the user experience.

  • Breakeven Offset/Buffer/Space: The recent addition of the breakeven line display and the option to account for commissions is undoubtedly valuable. However, I have a suggestion that could further enhance this feature and provide traders with additional control and flexibility.

    An option to set a customizable offset/buffer/Space in points below the breakeven edit label, let's say "Breakeven Buffer: 50" With this enhancement, the calculation for the breakeven price would be adjusted to Breakeven Price + Commission + Buffer

    Now, you might wonder why such an option would be beneficial. In real market conditions, especially in prop firms, slippage is a common occurrence, and fast movements can sometimes go through the breakeven price along with the commission, resulting in a trade ending in the negative due to slippage. By allowing traders to define a personalized offset in points, they can ensure a bit more security beyond just breakeven. This offset acts as a buffer, protecting the trade from potential slippage-induced losses and offering peace of mind during volatile market scenarios.

    In most cases, the typical breakeven might result in a slight negative due to slippage, which can be disheartening when expecting a positive outcome. However, this option also introduces a new possibility for traders to protect at a fixed price after hitting a specific target set in the breakeven edit label, which is also useful and a win-win for everyone.

I believe these enhancements would greatly improve the usability and accessibility of the PSC EA and make it even more popular. Thank you for considering my suggestions. I look forward to witnessing the continued evolution of PSC EA and can't wait to try out the new features in future updates.
 

Attachments

  • Position Sizer v3.05 PTBR.zip
    551.5 KB · Views: 2
  • ℹ️
Reactions: Enivid

Enivid

Administrator
Staff member
Nov 30, 2008
19,396
1,566
144
Odesa
www.earnforex.com
  • ℹ️
Reactions: EnrichWave