Tags: EarnForex/PositionSizer
Tags
3.16 1. Added basic support for Strategy Tester backtesting in MT5. 2. Added automatic commission retrieval from the broker's server in MetaTrader 5 version. It is now a default method. Set AutoCommission to false to disable. 3. Added an option (HideMoneyAndPointsValues) to hide all risk and reward values in points and currency units, leaving only percentage values. 4. Added an option (ConvertToPendingIfMaxMinEntrySLFails) to convert an instant (market) order to a pending (stop or limit) one when maximum or minimum distance from entry to stop-loss (set via the Trading tab) fails its check. 5. Added an option (StopLimitDistanceInPoints) for the Stop-Limit price to be changed to distance in points for MT5 Stop-Limit orders. 6. Added new trade error return codes to errordescription.mqh in MT5. 7. Changed spread adjustment checkboxes to buttons that now work in all modes (not only ATR-based). 8. Changed the max margin fuse on the Trading tab to respect the LessRestrictiveMaxLimits input setting. 9. Changed margin utilization to ignore pending orders' margin. 10. Fixed a minor glitch in label positioning in MT4. 11. Fixed a bug with TP line becoming selected in TP-locked-on-SL mode sometimes. 12. Fixed a small bug with SL label/button not changing correctly when switching between distance and level using a hotkey. 13. Fixed a bug in the MT5 version when breakeven and trailing stop functions could use point and digits values of an incorrect symbol. 14. Fixed a glitch when breakeven lines could stay on the chart after disabling the breakeven (by setting it to zero). 15. Fixed a minor bug with Stop-Limit price and its normalization.
3.15 1. Added support for point value display when it is less than 0.01. 2. Added alerts when SL/TP application fails in the Market Execution mode. 3. Optimized hotkey processing. 4. Changed how the Max risk % per trade field on the Trading tab works when LessRestrictiveMaxLimits is set to true. It will now allow opening a smaller trade. 5. Changed how trailing stop and breakeven filter trades by magic number. Now, if the Magic number field is set to zero, they will work with all trades irrespective of their magic numbers. 6. Changed how SL/TP is applied post-opening in the Market Execution mode. It will now retry up to 10 times per position if failing. This change applies to MT5 only. In MT4, it already worked liked that before. 8. Fixed take-profit update speed when it is locked to the stop-loss and the latter is updated via a hotkey. 9. Fixed multiple code typos. 10. Fixed a potential infinite loop issue. 11. Fixed a bug in swaps calculation in MT4. 12. Fixed a potential bug with custom balance calculation. 13. Fixed multiple instances of potentially incorrect comparison of double variables. 14. Fixed a bug that would wipe additional TP values when changing the number of take-profits via input parameters. 15. Fixed a bug that would prevent the TP multiplier entered via the panel to load properly when restarting MT5. 16. Fixed some chart object tooltips. 17. Fixed a bug that would sometimes allow opening more trades than allowed via the Max number of trades field. 18. Fixed some error message texts. 19. Fixed some translation issues. 20. Fixed a bug with the custom leverage not getting updated when changing the respective input parameter on an already attached instance of the Position Sizer (MT5 only). 21. Fixed a potential memory leak from undeleted CTrade objects (MT5 only).
3.14 1. Added an option to display margin utilization information on the Margin tab (the Show additional margin settings/info? parameter). This can be useful when trading with some prop firms who restrict how much margin can be used by your trades. 2. Added an option to restrict position opening based on total margin utilization, per-symbol margin utilization, or margin utilization of the currently calculated position. 3. Added an option to append current account balance to order commentary when a trade is taken (the CommentBalance parameter). 4. Improved performance by optimizing the text label drawing function. 5. Changed the MT5 version to work with GetTickCount64 function to avoid the internal timer overflowing. 6. Fixed how hotkeys work so that they would still trigger when a non-English keyboard layout is used. 7. Fixed dummy horizontal line objects appearing on the chart. 8. Fixed a bug when margin calculations weren't carried out when the panel was minimized. 9. Fixed the display of line labels going off-screen on HiDPI screens in MT5.
3.12 1. Added TP multiplier field to the panel. Previously, it required modification via input parameters. 2. Added translations the EA description. 3. Added translations for input parameters in MT5. 4. Added Japanese translation of the panel's interface (contributed by Satoru Hoshino). 5. Added an option to let the Position Sizer detect dark mode automatically based on the terminal's settings. 6. Added large icons for Hi-DPI displays. 7. Added dark mode icons. 8. Updated hotkey processing functions to support more keys. 9. Optimized some slow places in the code. 10. Changed Risk tab filters from click buttons to radio buttons for faster switching. 11. Fixed a minor glitch with Stop price appearing in the order confirmation window even for orders that are not Stop-Limit in MT5. 12. Fixed a minor glitch with a decimal separator appearing in the money risk result field when the account currency has no decimal places (JPY for example). MT5 only. 13. Fixed a minor glitch with the percentage risk result field not rounding properly in some cases. MT5 only. 14. Fixed a potential freeze issue when OnTimer gets called during deinitialization. 15. Fixed an issue with additional take-profits not getting pre-filled when main take-profit is set using the P hotkey despite the fact that such pre-filling was required according to the input parameters. 16. Fixed a compilation bug that could appear in some MT4 platforms due to another version of the CompareDoubles function declared in stdlib.mqh. 17. Removed a minor notification message that could previously flood the terminal's log.
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 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 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.
PreviousNext