In this article, I provide another example of creating a fully operational trading panel from scratch in order to assist those who trade Forex manually.
1. Identify functionality of a trading panel
First, we need to set for ourselves the final results that we wish to achieve. We will have to decide what functionality we expect from our panel, and what design will be the most convenient for us. My vision of a trading panel is shared with you here, but I am also happy to take your suggestions on board and, hopefully, cover them in my new articles.
So, our panel must certainly include the following elements.
- Buy and Sell buttons.
- Buttons to close all positions by symbol or account or in different directions (Buy/Sell orders).
- Option to display Stop Loss and Take Profit levels in points and currency of deposit (when entering one parameter, the other parameter should be automatically corrected).
- Automatically calculates Stop Loss and Take Profit levels using manually set parameters (p.2), and displays them on chart.
- Enables traders to move Stop Loss and/or Take Profit on the chart. All changes should be displayed on the panel with a change of relevant values.
- Calculates an expected trading volume by set risk parameters (in currency of deposit or in percentage from the current balance).
- Allows traders to set a trade volume himself/herself. All relevant parameters that depend on him/her must be automatically re-calculated at the same time.
- Memorizes which parameters are entered by a trader, and which are automatically calculated. This is important, so parameters entered by a trader remain the same during further re-calculations.
- Stores all entered parameters in order to avoid repeatedly entering them after rebooting.