Smart close filters
- Utilities
- Smaylle Rafael Coelho Mariano
- Version: 1.0
This MQL4 script is designed for automated trading management with enhanced control over position handling and execution timing. The script allows users to automatically modify open trades by adjusting Stop-Loss and Take-Profit levels according to predefined settings. It provides several features to customize trade management:
1. **Stop-Loss and Take-Profit Modification**: The script can automatically adjust Stop-Loss and Take-Profit levels based on either the trade's open price or the current market price, considering the specific trading instrument's tick size and point values.
2. **Order Filtering**: Users can filter which trades the script will modify by specifying the order type (buy, sell, or both), whether to apply changes to the current symbol only, and whether to match specific magic numbers or comments associated with the trades.
3. **Time-Based Position Closing**: The script includes a feature to automatically close positions that have been open for a specified number of minutes. This can be applied either to all positions or only those matching the specified criteria.
4. **Active Trading Hours**: To ensure trades are managed only during specific hours of the day, the script allows users to define a start and end hour for active trading. Outside these hours, the script will refrain from making any modifications to open trades.
5. **Customization and Flexibility**: With adjustable parameters for delay between modifications, inclusion of pending orders, and control over which price to use for Stop-Loss and Take-Profit adjustments, this script is highly customizable to fit various trading strategies and preferences.
6. **Continuous Monitoring**: The script runs continuously, checking trades at regular intervals (defined by the user) and applying the specified modifications as long as the terminal is connected and trading is enabled.
Overall, this script offers robust functionality for managing trades in an automated and controlled manner, providing flexibility and precision to traders who require advanced trade management capabilities.
User didn't leave any comment to the rating