Discussing the article: "Creating an Interactive Graphical User Interface in MQL5 (Part 2): Adding Controls and Responsiveness"

 

Check out the new article: Creating an Interactive Graphical User Interface in MQL5 (Part 2): Adding Controls and Responsiveness.

Enhancing the MQL5 GUI panel with dynamic features can significantly improve the trading experience for users. By incorporating interactive elements, hover effects, and real-time data updates, the panel becomes a powerful tool for modern traders

Seven components are to be automated. The first component is the closure of the panel when the closing button is clicked. We intend to delete all the panel elements when this button is clicked. Second, when the position management buttons are clicked, the buttons will close their respective positions and orders as instructed. For example, when we click the "Profit" button or label, we close all the positions that are in profit only. The third automation will be on the trading volume component. Once the entity is clicked, a dropdown list of options will be created for the user to choose a trading option.

The fourth automation will be on the increase or decrease buttons beside the respective trading buttons to increment or decrease the values in the edit fields, instead of just typing them. In case the user wants to input the desired values directly, the edit field will need to capture the inputted values, and this makes our fifth automation step. Then, the sixth step will be the creation of a hover effect on the hovered button. That is, when the mouse is within the hovered button area, the button will grow indicating that the mouse is within the button proximity, and when the mouse moves away from the button area, reset the button to default features. Finally, we will update the price quotes to real-time values on every price tick. 

Author: Allan Munene Mutiiria

 
Excellent job, thank you!
 
Clemence Benjamin #:
Excellent job, thank you!

@Clemence Benjamin thank you for the feedback and recognition. It's very kind of you. Welcome.

 
Awesome Job, thank you for sharing.
 
Jasser90 #:
Awesome Job, thank you for sharing.
@Jasser90 thank you for your kind feedback and recognition. We appreciate it very much.