Lavoro terminato
Specifiche
The base idea is to develop a mini-action panel that allows the trader to perform certain actions. The actions will be done by using a grid of buttons. It will be using a grid of 2x3 of buttons. Initially, only the 3 buttons of the first row will be set up.
The first 3 button will need to perform the following actions:
- First Button (left): Place a BUY market order.
- Second button (middle): Place a SELL market order.
- Third button (right): Close all open positions.
For the action of opening a market order, the volume will be passed by a variable at the configuration moment. This variable can be an input or a simple variable filled with the desired lot value to open the position.
Every action button should present a confirmation window before executing. The trader should be informed of what action will be taken. This is to avoid any miss-fire of any action.
The second line of buttons should be inactive but available for further configurations, allowing the trader to perform extra actions.
Some considerations
- Should be a modular solution because it will be implemented on several existing Expert Advisors.
- Is preferred to be a class or namespace because all the functionalities should be contained. This allows ease reference when implementing or modifying.
- The size of the panel should be configurable. At least the width of the panel should be modifiable. The buttons grid will be adjusted to the given parameters to accommodate all buttons.
- All actions performed by the panel should be bound to the given symbol and magic.
- Each instance of button should be configurable for the following elements: Background Color, Foreground Color, Label and Action to be performed.
Important: The panel must be able to work on Back Test the same as it does on Forward or Live.
Mockup