The InTradePanel trade panel for manual trading.
Figure 1. Control Panel items (Mode 1).
Control Panel items
Control Panel items
1. Show/Hide panel button.
2. Enable/Disable sound when Take Profit or pending order has triggered.
3. Send e-mail when Take Profit or pending order has triggered.
4. Order types:
5. Order placing buttons (Sell/Buy).
6. Trade volume.
7. Stop Loss (in points).
8. Take Profit (in points).
Two modes are supported:
Mode 1 (Fig. 1) - Open position with specified Stop Loss and Take Profit levels (in points).
Mode 2 (Fig. 2) - Placement of order with Stop Loss and Take Profit levels, dependent on position of the horizontal lines.
The mode 1 is used for market orders.
The mode 2 is used for pending orders. In this mode, the order placement button is shown instead of "Sell" and "Buy" buttons. The specified Price, Take Profit and Stop Loss levels are shown on the chart. By moving the lines, you can change the order parameters:
Figure 2. Mode 2 (buystoplimit order is selected)
The minimal value of trade volume (Pos. 6 at Fig. 1) is set when you press the "lot" label. If position is opened, it will set the position volume to simplify its closing.
Stop Loss and Take Profit
The Stop Loss and Take Profit levels defined in points. If you don't want to use SL/TP, set them to 0. Click on the "sl"/"tp" buttons to set minimal allowed sl and tp.
The program checks the values of Stop Loss and Take Profit, the invalid values are shown with red color:
Figure 3. Invalid values of Stop Loss and Take Profit
In pending orders mode (Mode 2) the values of Stop Loss and Take Profit depends on the Stop Loss and Take Profit lines.
The Expert Advisor saves the last used values of order volume, Stop Loss and Take Profit levels (for each symbol) and loads them after the new start of the client terminal.
The position of trade panel can be changed.
To move the panel you need to double click on the panel (grey) and move panel to any place on the chart. All the items (buttons, edits, labels) will be hidden (Fig. 4) and restored after the double click.
Figure 4. Panel movement
The position of panel is saved for each chart and restored after restart of the client terminal.
The Stop Loss and Take Proft also can be specified in spreads. If you enter the "s" after the value, it means that Stop Loss/Take Profit is specified in spreads. If you type "s", you will see the spread.
The same behavior is for "m". In this case the SL/TP are specified in minimal stop levels. If you type "t", the program will show the time, passed from the beginning of the current H4 bar. The other commands "t2", "t3", "t4", "t6", "t8", "t12" corresponds to H2, H3, H4, H6, H8, H12 timeframes. If you type "d", you will see the current date and day of the week.
Unpack the archive to the folder of the client terminal. The file CIntegerTradePanel.mqh will appear in the MQL5/Include folder, the eInTradePanel.mq5 will appear in MQL5/Experts folder. After the compilation of eInTradePanel.mq5 you can launch the Expert Advisor.
Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/220
The panel simplifies manual trading and trailing of the opened position.TradeXpert
Control panel for the MQL5 Best Graphic Panel Contest.
The script allows you to place the deals history on the chart using the graphic objects."MCM Control Panel" for Multicurrency Expert Advisors and Indicators
The MCM Control Panel provides the solution for multicurrency trading in MetaTrader 5.