-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
21 changed files
with
4,030 additions
and
673 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
337 changes: 218 additions & 119 deletions
337
MQL4/Experts/Position Sizer/Position Sizer Trading.mqh
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.