Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

Trading Panel with Autopilot - MetaTrader 5 Expert | MT5 EA Download - MetaTrader 5 Resources

author EAcpu | 6 reads | 0 comments |

Trade panel with autopilot - expert for MetaTrader 5

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 reduce or increase your position size, close positions, enable/disable placing stops 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)

Trade panel with autopilot - expert for MetaTrader 5

Figure 1. Appearance of the trading panel.

suggestion:


Attachment download

📎 trade_panel_with_autopilot.mq5 (17.48 KB)

📎 classunit.mqh (15.4 KB)

📎 classrow.mqh (22.18 KB)

📎 classwin.mqh (8.13 KB)

Source: MQL5 #15890

Verification code Refresh