Trading Panel with Autopilot - MetaTrader 4 Expert | MT4 EA Download - MetaTrader 4 Resources

The trading panel for manual and automatic trading showcases the Master Windows library. Use the interface window visual design environment to automatically generate panel code MQL5's MasterWindows .
By analyzing the price database ENUM_APPLIED_PRICE type, you can make assumptions about future price movements. The probability of such a move is shown as a ratio and a percentage. The functionality of the trading panel allows sending requests to the broker to perform trading operations. A market order is used in this example. You can also close orders, enable/disable stop- loss orders and enable autopilot .
Autopilot refers to automatic trading based on panel signals. This mode is activated by pressing the corresponding button.
Input boolean inp_on_trade= false ; // Autopilot (on/off) Enter double inp_open = 85 ; // threshold for opening a position Enter double inp_close= 55 ; // closing threshold Enter double inp_lot_fix= 0.01 ; // Lot fixed Enter double inp_lot_perc= 0.01 ; // Lot size as a percentage of equity Input boolean inp_on_lot= false ; // If "false", the equity percentage Input boolean inp_on_SL= false ; // stop loss (on/off)

Figure 1. Trading panel
suggestion:
Attachment download
📎 classunit.mqh (15.5 KB)
📎 classrow.mqh (22.28 KB)
📎 classwin.mqh (8.23 KB)
📎 accountinfo.mqh (10.84 KB)
📎 dealinfo.mqh (10.16 KB)
📎 historyorderinfo.mqh (14.28 KB)
📎 orderinfo.mqh (17.36 KB)
📎 positioninfo.mqh (10.35 KB)
📎 symbolinfo.mqh (34.79 KB)
📎 terminalinfo.mqh (10.48 KB)
📎 trade.mqh (58.91 KB)
📎 trade_panel_with_autopilot_4.mq4 (18.55 KB)
Source: MQL5 #15933
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •