Skip to content

Tags: EarnForex/PositionSizer

Tags

3.11

Toggle 3.11's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
3.11

1. Added an input parameter to avoid deleting the Position Sizer's lines and line labels when the EA is removed.
2. Added two input parameters to set colors for the Long/Short order direction button.
3. Added an input parameter to set the color for the Trade buttons.
4. Added the Include directions switch to the Risk tab to filter either All, Buy only, or Sell only when calculating risk and reward data.
5. Changed how the TP-locked-on-SL feature works. It is now turned on and off via a dedicated checkbox on the Main tab rather than being bound to the TP button.
6. Changed the ShowLineLabels input parameter to ShowMainLineLabels and it no longer controls additional line labels.
7. Changed how often the Position Sizer refreshes the account and symbol information to avoid calculations based on stale data.
8. Changed the Count pending orders checkbox on the Risk tab to a button that switches between All, Pending orders, and Open positions.
9. Changed the Ignore symbols switch to the Include symbols switch on the Risk tab.
10. Fixed a minor bug in the MT5 version when the hide/show lines hotkey worked with some small delay.
11. Fixed a bug with the SL/TP values not resetting to defaults when changing the chart's symbol while the SymbolChange parameter is set to Reset to defaults on symbol change.
12. Fixed a bug with the outside Trade button not changing color when the Dark Mode is switched on.

3.10

Toggle 3.10's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
3.10

1. Added support for Strategy Tester backtesting in MetaTrader 4.
2. Added panel translations to the MT4 version of the Position Sizer.
3. Added an input parameter (CapMaxPositionSizeBasedOnMargin) to automatically limit the calculated position size with the maximum position size available based on the account's free margin.
4. Added a button to switch between ignoring no trades, ignoring trades in other symbols, and ignoring trades in the current symbol to the Risk tab.
5. Added an option (via input parameters) to let the trade open even when its execution would lead to the max volume/risk values (set via the Trading tab) being exceeded. The trade will be reduced in size to fit into the given max values.
6. Added a user-contributed Chinese (traditional) panel translation.
7. Added a max risk fuse to the Trading tab to prevent a trade from executing when the risk exceeds the given value.
8. Added support for the new swaps type in MT5: profit currency.
9. Changed messages for 'autotrading disabled' situation. Now two distinct messages will be used: one for the EA's properties, the other one for the platform's options.
10. Changed the TP line to be non-selectable when the TP-locked-on-SL mode is on.
11. Changed the description of the SettingsFile input parameter to correctly state that a custom settings file should be put in the \Files\PS_Settings\ folder.
13. Fixed the bug that caused changed edit values to reset when the panel got refreshed at the same as the edit was about to save in MT5.
14. Fixed how the TradeSymbol input parameter is used in MT5. Now it will be used in all the calculations to avoid problems with custom symbols' specifications.
15. Fixed the bug that caused ATR SL multiplier to initialize at zero even when SL distance is non-zero.
16. Fixed the bug with ATR TP not turning off when setting it to zero.
17. Fixed the bug that caused the TP distance to be set to some very large value when using the Shift+P hotkey to switch from level to distance.
18. Fixed the bug that caused a delay for the TP line movement when it was in the TP-locked-on-SL mode in MT5.
19. Fixed display of swap values with too many decimal places in MT5.
20. Fixed the bug that caused the take-profit line to appear unselected in MT5 even when lines should be selected by default.
21. Fixed a minor bug when loading an ini-file.
22. Fixed the bug that caused the Entry line fail to re-appear when HideEntryLineForInstant was set to true and you switched from an Instant to Pending order.
23. Fixed the calculation of the automatic TP line placement when UseCommissionToSetTPDistance is set to true. It is now based on Risk Money Result rather than Risk Money Input.

3.09

Toggle 3.09's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
3.09

1. Fixed a bug that could cause the trade button to trigger when pressing unrelated buttons.
2. Fixed a bug that could cause the panel to get stuck in the initialization process when the SL line was generated at the same price as the Entry line.
3. Fixed a bug with deleting the settings file when closing the panel.

3.08

Toggle 3.08's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
3.08

1. Added optional additional Trade buttons.
2. Added keyboard modifiers for the increase and decrease buttons to add/subtract in multiples of the tick size.
3. Added some additional logging when a trade is executed.
4. Added an option to hide the Entry line for Instant orders.
5. Added an automatic replacement from comma to period as a decimal separator for values entered via the panel's input fields.
6. Added an input parameter to ask for a confirmation when closing the panel.
7. Fixed a bug in MT5 that could sometimes cause the Breakeven feature to fail.
8. Fixed a bug that prevented hotkeys from being turned off.
9. Fixed a bug with the Maximum Position Size Total value overwriting the the Maximum Position Size per Symbol value.
10. Fixed a bug with trades not executing when stop-loss or take-profit are too close to entry but the respective ignore SL or ignore TP checkboxes are ticked.
11. Fixed a bug when additional TP values could change when switching from Short to Long or vice versa.
12. Fixed a bug that could lead to a glitch with take-profit values when switching TP from levels to points via a hotkey.
13. Fixed a bug with the additional Entry label remaining on the chart when the respective input parameter has been switched to false.
14. Changed the additional take-profits to follow the main take-profit when it is "locked" on the stop-loss.
15. Changed all warning messages from alerts to prints.

3.07

Toggle 3.07's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
3.07

1. Added an optional additional label for the Entry line to display the total position volume calculated by the Position Sizer.
2. Added new hotkeys (Shift+S and Shift+P by default) to switch stop-loss and take-profit values from level to points and vice versa.
3. Added risk-to-reward ratio calculations to the Risk tab.
4. Added the expiration time field and parameter to allow setting a time limit for pending orders.
5. Added a new hotkey ('`' by default) to minimize/maximize the panel.
6. Fixed TP button colors in the dark mode.
7. Fixed hotkeys to not trigger when they are set to work without Shift/Ctrl, but either Shift or Ctrl are pressed.
8. Fixed the margin calculation in the MT5 version to take into account the maintenance margin when required.
9. Fixed a bug when changing the hotkey input parameters for an already attached Position Sizer could fail to work.
10. Fixed a potential array out-of-range error that could appear under certain rare circumstances.
11. Fixed additional TP fields scaling on the panel for HiDPI screens.
12. Changed the take-profit hotkey to switch off the TP-lock-on-SL when triggered.
13. Changed where the panel setting files are stored. They are now saved and loaded from the PS_Settings subfolder of MetaTrader's Files folder. Older settings files will be loaded correctly if they are found in the previous location.
14. Changed default colors for TP and SL lines to goldenrod and green respectively.

3.06

Toggle 3.06's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
3.06

1. Added a hotkey to set the Entry line to the price level at the mouse pointer's current position (SetEntryHotKey).
2. Added files with Arabic, Chinese (Simplified), and Spanish translations of the panel for the MT5 version of the expert advisor.
3. Fixed a bug that caused TP levels (when set in points) to drift from their given values.
4. Fixed a bug where incorrect previous SL was reported upon application of a trailing stop or breakeven.
5. Fixed a potential 'array out of range' error when switching symbols.
6. Fixed a bug with SL not resetting to default on symbol change when required by the SymbolChange parameter.
7. Fixed a bug when SL and TP lines could get set to levels that don't respect the symbol's tick sizer property.
8. Removed the possibility for the Stop-Loss to be set to zero.

3.05

Toggle 3.05's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
3.05

1. Added a new input parameter (PrefillAdditionalTPsBasedOnMain) to control whether newly added TPs are pre-filled or not.
2. Added a file with Portuguese (Brazilian) translation (contributed by Matheus Sevaroli) for the MT5 version of the expert advisor.
3. 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.
4. Fixed a bug with position size restriction and subtraction settings not actually working.
5. Fixed a bug that caused the SymbolChange = Reset to Defaults to not work for most fields.
6. Fixed a bug that prevented normal updating of entry and TP levels when lines were hidden.
7. Fixed a bug in MT4 version that could sometimes cause an 'array out of range' error.

3.04

Toggle 3.04's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
3.04

1. Added a dark theme mode, which can be set via the DarkMode input parameter.
2. Added an option to display breakeven lines at levels where the Position Sizer will apply breakeven to existing positions.
3. Added the Entry line label to display the distance from the current price to the Entry level for pending orders.
4. Added input parameters (ShowMaxParametersOnTrading, ShowFusesOnTrading, and ShowCheckboxesOnTrading) to make the Trading tab more compact.
5. Added separate total and per-symbol fields to control volume, risk, and number of trades on the Trading tab.
6. Added an input parameter (SettingsFile) to let users load their own custom settings file with panel fields configured according to their needs. The EA won't delete custom settings files.
7. Added two new hotkeys — to set a stop-loss (SetStopLossHotKey) and a take-profit (SetTakeProfitHotKey) to the price level at the mouse pointer's current position.
8. Added an option to change the translation of the panel's interface in MetaTrader 5. Language files are currently only available for Ukrainian and Russian. Users can create and use their own translation files.
9. Changed the breakeven mechanism to take into account the size of the commission if UseCommissionToSetTPDistance is set to true.
10. Changed the additional TP fields to appear with some non-zero value if the main TP is non-zero.
11. Fixed a bug when switching the chart's symbol could result in line labels disappearing if SymbolChange was set to Keep panel as is.
12. Fixed a bug in the MT5 version that resulted in the trade type not resetting properly when SymbolChange was set to Reset to defaults on symbol change.
13. Fixed a bug that resulted in false warnings and incorrect position size calculation when the EA failed to get the symbol information at the first attempt.
14. Fixed a bug that resulted in some of the +/- buttons to remain on the chart when the panel was minimized.
15. Fixed a bug that resulted in the stop-loss not keeping its correct distance when SLDistanceInPoints was set to true.
16. Fixed a bug when the additional funds asterisk remained visible even when the panel was minimized.
17. Fixed a bug in the MT5 version that resulted in the risk field resetting to default when the user clicked on the position size field after setting it to a custom value.
18. Fixed a bug that resulted in the stop-loss line sometimes disappearing on a symbol change.
19. Fixed a bug in the MT5 version that resulted in the Stop Price line appearing after switching from Stop Limit to Instant and setting the DisableStopLimit input parameter to true.
20. Fixed a bug that would result in wrong value appearing in the account size field after clicking on it and then clicking outside if the value contained a thousands separator.
21. Fixed a bug in the MT5 version that caused a critical 'array out of range' error when clicking on the +/- buttons for a single take-profit field.
22. Fixed a bug in the MT4 version that caused a critical 'array out of range' error when switching the chart symbol to a one with more additional TPs saved in a settings file.
23. Fixed a bug that caused the risk to be calculated based on the percentage value instead of the money value when Custom Balance was updated even if the MoneyRisk parameter was greater than 0.
24. Fixed a bug with ATR timeframe button not working.
25. Fixed a bug with incorrect volume share allocation when adding a new TP.
26. Fixed a bug in the MT5 version that caused a critical 'stack overflow' error when the EA failed to convert a symbol's profit or margin currency.
27. Fixed a bug that would cause TP values set in points to shift when dragging doing some unrelated chart manipulations.

3.03

Toggle 3.03's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
3.03

1. Added an option to set commission in percentage of the contract's value.
2. Added a possibility to use fractional values for custom leverage and symbol leverage.
3. Added an option to surpass the broker's maximum position with multiple trades (SurpassBrokerMaxPositionSize).
4. Added an option to apply SL/TP to market execution mode trades only after all positions are opened (MarketModeApplySLTPAfterAllTradesExecuted).
5. Added an option to limit maximum total risk per pair or overall.
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.
7. Added a warning when broker has tick value set to zero for a Forex trading instrument.
8. Added a hotkey setting (SwitchHideShowLinesHotKey) to hide/show the EA's lines.
9. Added an input parameter (DisableTradingSounds) to disable sounds during trade execution.
10. Added a possibility to use Escape, Tab, Backspace, and Caps Lock keys for panel hotkeys.
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.
13. Added a possibility to add and remove additional take-profits directly on the panel.
14. Added a panel button to quickly populate take-profit volume shares based on three different schemes: equal, descending, ascending.
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.
17. Added a setting (DisableStopLimit) to disable the Stop limit order type selection when switching via the 'Order type' button.
18. Changed the trading function to check the symbol's execution mode only if the relevant input parameter (IgnoreMarketExecutionMode) is set to false.
19. Changed the 'All symbols' checkbox to apply to 'Max # of trades', 'Max total volume', and 'Max total risk' fields simultaneously.
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'.
22. Fixed the algorithm for trading volume distribution between multiple TP trades on trade execution.
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.
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.
26. Fixed a bug that caused the open trade's commentary to be "PS EA" despite empty the empty Order commentary field.
27. Fixed a bug that caused wrong values in volume shares after changing the TakeProfitsNumber input parameter.
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.
30. Fixed a bug that would sometimes cause SL/TP lines to snap back when dragging them in the ATR mode.
31. Fixed a bug that would deselect SL/TP/Entry lines on chart template change.
32. Fixed a bug with lines re-appearing on platform profile change even if the 'Hide lines' button was pressed.
33. Fixed rounding issues with the risk value in the additional stop-loss label.
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.
36. Fixed incorrect volume calculation that could sometimes occur on the Risk tab in MT5.
37. Fixed a bug that caused the 'Do not apply take-profit' checkbox to be ignored.
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.
40. Improved currency conversion for calculations in MT5.
41. Optimized the EA initialization and deinitialization phases to significantly improve the loading speed when switching the chart symbol.
42. Removed the PanelOnTopOfChart input parameter. Use the 'Chart on foreground' checkbox in the chart's settings instead.

3.02

Toggle 3.02's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
3.02

1. Fixed a bug that could result in wrong position size calculation when switching the chart's symbol in MT5.
2. Fixed the Commentary and Auto-Suffix fields which weren't working correctly in MT5.
3. Fixed a bug that prevented newly set default input parameters to change the respective fields on the panel.
4. Fixed a bug that could result in reward-related Main tab elements to show up when some other tab was selected.
5. Fixed a bug that sometimes prevented the Position Size field change from registering when the panel was calculating the Risk based on the Position Size.
6. Moved the ShowATROptions input parameter to the Compactness inputs group.
7. Removed the redundant Stop Price Label Color input parameter as there is no such label in MT5.
8. Made some purely cosmetic changes.