goldpath

Trader
Dec 11, 2022
7
1
17
25
Thank you for this amazing piece of work.

May I please suggest these 2 features?
1. Add the Trailing Stop, Only when the Break Even has been activated.
2. Add the Pending Orders, but with a distance in points, instead of price.

Thank you again.
 

Enivid

Administrator
Staff member
Nov 30, 2008
19,398
1,566
144
Odesa
www.earnforex.com
1. Add the Trailing Stop, Only when the Break Even has been activated.
I don't think I will add such a feature, but you could probably attain something like this, by modifying your TS when it hits the BE level.
2. Add the Pending Orders, but with a distance in points, instead of price.
I will consider adding this in one of the next versions. Thank you!
 
  • 👍
Reactions: goldpath

goldpath

Trader
Dec 11, 2022
7
1
17
25
I don't think I will add such a feature, but you could probably attain something like this, by modifying your TS when it hits the BE level.

I will consider adding this in one of the next versions. Thank you!

Thank you, Could it be possible to add the TS when a certain amount of points are in profit?
 

Enivid

Administrator
Staff member
Nov 30, 2008
19,398
1,566
144
Odesa
www.earnforex.com
The Position Sizer EA has been updated to version 3.03 with a rather large list of changes this time:
  1. Added an option to set commission in percentage of the contract's value. (Via Github)
  2. Added a possibility to use fractional values for custom leverage and symbol leverage. (Via Github)
  3. Added an option to surpass the broker's maximum position with multiple trades (SurpassBrokerMaxPositionSize). (@EARNIST and @Mio)
  4. Added an option to apply SL/TP to market execution mode trades only after all positions are opened (MarketModeApplySLTPAfterAllTradesExecuted). (@CARPARK)
  5. Added an option to limit maximum total risk per pair or overall. (@bester)
  6. Added support for trade execution when the Position Sizer is attached to a custom symbol in MT5. The actual symbol for trading is set via the TradeSymbol input parameter. (@Martin911)
  7. Added a warning when broker has tick value set to zero for a Forex trading instrument. (@Salah47)
  8. Added a hotkey setting (SwitchHideShowLinesHotKey) to hide/show the EA's lines. (@mahday12)
  9. Added an input parameter (DisableTradingSounds) to disable sounds during trade execution. (@EnrichWave)
  10. Added a possibility to use Escape, Tab, Backspace, and Caps Lock keys for panel hotkeys. (@gut)
  11. Added a new hotkey setting (SwitchOrderTypeHotKey) to quickly switch order type.
  12. Added quick buttons to modify Entry, Stop-loss, Take-profit, and Stop price values. (@2TJV)
  13. Added a possibility to add and remove additional take-profits directly on the panel. (@yoovie and @Crypto Beaver )
  14. Added a panel button to quickly populate take-profit volume shares based on three different schemes: equal, descending, ascending. (@Crypto Beaver)
  15. Added the Stop limit line label to show the distance from Entry.
  16. Added an option to switch the spread display from points to stop-loss ratio via the ShowSpread input parameter. (@Vic124)
  17. Added a setting (DisableStopLimit) to disable the Stop limit order type selection when switching via the 'Order type' button. (@EnrichWave)
  18. Changed the trading function to check the symbol's execution mode only if the relevant input parameter (IgnoreMarketExecutionMode) is set to false. (Via Github)
  19. Changed the 'All symbols' checkbox to apply to 'Max # of trades', 'Max total volume', and 'Max total risk' fields simultaneously. (@EnrichWave)
  20. Changed the margin currency display to switch to the currency pair's base currency when conversion to the account currency is impossible.
  21. Changed the 'Ignore orders without stop-loss/take-profit' checkbox to two separate checkboxes: 'Ignore orders without stop-loss' and 'Ignore orders without take-profit'. (@EnrichWave)
  22. Fixed the algorithm for trading volume distribution between multiple TP trades on trade execution. (Via Github)
  23. Fixed a bug that would cause stop-loss to sometimes reset to zero.
  24. Fixed a bug that was causing some panel edit values to reset to previous value after changing them. (@EnrichWave)
  25. Fixed a bug that resulted in a failing trade execution following a switch from a currency pair with Stop Limit order type to another pair. (@pepperb)
  26. Fixed a bug that caused the open trade's commentary to be "PS EA" despite empty the empty Order commentary field. (Reported via email.)
  27. Fixed a bug that caused wrong values in volume shares after changing the TakeProfitsNumber input parameter. (@Crypto Beaver and via Github)
  28. Fixed a bug that resulted in the take-profit line not disappearing even after setting TP to zero.
  29. Fixed the ATR timeframe button to remain in the Current state when the default ATR timeframe is set to Current. (@LektorHH)
  30. Fixed a bug that would sometimes cause SL/TP lines to snap back when dragging them in the ATR mode. (Via Github)
  31. Fixed a bug that would deselect SL/TP/Entry lines on chart template change. (@EnrichWave and @05071991R)
  32. Fixed a bug with lines re-appearing on platform profile change even if the 'Hide lines' button was pressed. (@Eric0)
  33. Fixed rounding issues with the risk value in the additional stop-loss label. (@LittleBB)
  34. Fixed a bug with incorrect processing of the situation when Stop-loss is equal to Entry.
  35. Fixed the default PositionSize input parameter to make it override the percentage Risk setting. (@CARPARK)
  36. Fixed incorrect volume calculation that could sometimes occur on the Risk tab in MT5. (@EnrichWave)
  37. Fixed a bug that caused the 'Do not apply take-profit' checkbox to be ignored. (@yoovie)
  38. Fixed a minor bug that would sometimes cause line labels to freeze on the chart.
  39. Fixed a bug that would sometimes cause the EA initialization to fail in MT5. (Via Github)
  40. Improved currency conversion for calculations in MT5. (Via Github)
  41. Optimized the EA initialization and deinitialization phases to significantly improve the loading speed when switching the chart symbol. (@EARNIST)
  42. Removed the PanelOnTopOfChart input parameter. Use the 'Chart on foreground' checkbox in the chart's settings instead. (@yoovie)
It is recommended to completely remove the Position Sizer from the chart before installing and reattaching the new version.
 

EnrichWave

Master Trader
May 15, 2018
384
100
89
India
Wooooooowwwwwww. It is massive update. To check all this update will take more than 1 month. Thank you so much for the great contribution in this hard field.. You must be billionaire in love heart.
 
Last edited:

eyekoms

Active Trader
May 21, 2017
14
2
34
40
Thanks for the reply! But that does not work, the value appears instantly. I also tried to put the Take Profit value to 0. but in this case the line is over the entry line...
 

EnrichWave

Master Trader
May 15, 2018
384
100
89
India
Thanks for the reply! But that does not work, the value appears instantly. I also tried to put the Take Profit value to 0. but in this case the line is over the entry line...
If you have locked TP or SL it might appear like that.

IF you can post your settings .set file here (You can save that while loading the EA click on Inputs tab. there is option to Save the settings) will help to fix your problem.

Is it on MT4 or MT5?
 
  • 👍
Reactions: eyekoms

eyekoms

Active Trader
May 21, 2017
14
2
34
40
Thanks, here is the file. I have changed the line color to "none" for the moment... :)
 

Attachments

  • PositionSizer_default.set
    2.4 KB · Views: 2

EnrichWave

Master Trader
May 15, 2018
384
100
89
India
What do you mean? Not functioning how?
Actually It's functioning. But Have minor bug. Once you have enabled the Stop limit order by clicking 3 times on "Order types" and we come back to "instant" then we set "DisableStopLimit" True. it shows the stop limit line even the order type currently "Instant", "Pending" (It hides the line once we click on the "Order Type"). The same happens If the current order type is "Instant" or ""Pending" we set the "DisableStopLimit" false.

Regards
 
Last edited:
  • ℹ️
Reactions: Enivid

Enivid

Administrator
Staff member
Nov 30, 2008
19,398
1,566
144
Odesa
www.earnforex.com
Actually It's functioning. But Have minor bug. Once you have enabled the Stop limit order by clicking 3 times on "Order types" and we come back to "instant" then we set "DisableStopLimit" True. it shows the stop limit line even the order type currently "Instant", "Pending" (It hides the line once we click on the "Order Type"). The same happens If the current order type is "Instant" or ""Pending" we set the "DisableStopLimit" false.

Regards
Noted!
 

yoovie

Trader
Feb 9, 2022
22
25
24
@Enivid Congrats on the new version.

Some issues reports and suggestions:

1) The copy shortcut key (CTRL + C) conflict issue in Position Sizer MT4 version still exists (https://www.earnforex.com/forum/threads/position-sizer.47384/post-215665)

Perhaps you can consider changing the copy shortcut key as a solution?

2) Multiple TP line showing issue in MT4 & MT5 version

If you click the "Take Profit:" label (the 1st TP) directly to show the 1st TP line and then clicking the "+" button, the 2nd TP ("Take Profit 2:") would show 0.00 value, so the 2nd TP line won't be visible immediately. I have to modify the 2nd TP field manually in order to show the 2nd TP line. Currently, to make all multiple TP lines to show up in the same time, you have to click the "+" button first before clicking the 1st "Take Profit:" label.

So I think it's better if the "Take Profit 2:" label (and Take Profit 3rd, 4th, 5th, and so on) has clickable button function too for showing the TP line. And I would also suggest when user clicking the "+" button, the 2nd TP line should be automatically shown if the 1st TP line is already shown too.

3) Account Balance field value showing "1.00" issue in MT4 version

Steps to reproduce the issue:
* Click and to text selection in "Account Balance" field
* Press Tab to unfocus the field
* The account balance field value would become "1.00"

4) Suggestion: there should be a way to revert the "Account Balance" field value after modified

Perhaps there should be a small button to the right of the input field to revert the balance value?

Alternative solution is how about if the "Account Balance" field value is made immutable and then add a new field "Custom balance" that can be modified by user instead? The "Custom balance" label/field would be in 4th toggle cycle position: "Account Balance" -> "Account Equity" -> "Balance - CPR" -> "Custom Balance".
 
  • ℹ️
Reactions: Enivid

Enivid

Administrator
Staff member
Nov 30, 2008
19,398
1,566
144
Odesa
www.earnforex.com
1) The copy shortcut key (CTRL + C) conflict issue in Position Sizer MT4 version still exists (https://www.earnforex.com/forum/threads/position-sizer.47384/post-215665)

Perhaps you can consider changing the copy shortcut key as a solution?
This cannot be solved from within the PS. It's a platform issue.
2) Multiple TP line showing issue in MT4 & MT5 version

If you click the "Take Profit:" label (the 1st TP) directly to show the 1st TP line and then clicking the "+" button, the 2nd TP ("Take Profit 2:") would show 0.00 value, so the 2nd TP line won't be visible immediately. I have to modify the 2nd TP field manually in order to show the 2nd TP line. Currently, to make all multiple TP lines to show up in the same time, you have to click the "+" button first before clicking the 1st "Take Profit:" label.

So I think it's better if the "Take Profit 2:" label (and Take Profit 3rd, 4th, 5th, and so on) has clickable button function too for showing the TP line. And I would also suggest when user clicking the "+" button, the 2nd TP line should be automatically shown if the 1st TP line is already shown too.
I will consider doing something with it, but for now, you can easily fill quickly any number of TPs via the Trade panel's << and >> buttons.
3) Account Balance field value showing "1.00" issue in MT4 version

Steps to reproduce the issue:
* Click and to text selection in "Account Balance" field
* Press Tab to unfocus the field
* The account balance field value would become "1.00"
Yeah, there is a bug that cuts the balance at the formatting thousands separator (comma). It looks like an old bug, which has existed since a long time...
4) Suggestion: there should be a way to revert the "Account Balance" field value after modified

Perhaps there should be a small button to the right of the input field to revert the balance value?

Alternative solution is how about if the "Account Balance" field value is made immutable and then add a new field "Custom balance" that can be modified by user instead? The "Custom balance" label/field would be in 4th toggle cycle position: "Account Balance" -> "Account Equity" -> "Balance - CPR" -> "Custom Balance".
You can easily reset the balance by entering 0 in the field.