Voir comment télécharger gratuitement des robots de trading
Retrouvez-nous sur Facebook !
Rejoignez notre page de fans
Un script intéressant ?
Poster un lien vers celui-ci -
laisser les autres l'évaluer
Vous avez aimé le script ? Essayez-le dans le terminal MetaTrader 5
Experts

Trade panel with autopilot - expert pour MetaTrader 5

Vues:
11412
Note:
(28)
Publié:
2016.10.10 14:42
Mise à jour:
2016.11.22 07:32
\MQL5\Include\
ClassRow.mqh (22.18 KB) afficher
Besoin d'un robot ou d'un indicateur basé sur ce code ? Commandez-le sur Freelance Aller sur Freelance

The trade panel for manual and automated trading demonstrates the possibilities of the MasterWindows library. The panel code has been automatically generated using the environment for visual design of interface windows MasterWindows for MQL5.

By analyzing the price databases of the ENUM_APPLIED_PRICE type, you can make an assumption about the future price movement. The probability of such movement is shown as a scale and in terms of percentage. The functionality of the trade panel allows sending requests for the broker to execute trading operations. Market orders are used in this example. You can additionally reduce or increase the volume of positions, close positions, enable/disable placing Stop Loss and enable autopilot.

Autopilot means automated trading based on the signals of the panel. The mode can be activated by pressing the appropriate button.

Input data:

input bool     inp_on_trade=false;  // Autopilot (On/Off)
input double   inp_open=85;         // Threshold values for the opening position
input double   inp_close=55;        // Threshold values for the closing position
input double   inp_lot_fix=0.01;    // lot fixed
input double   inp_lot_perc=0.01;   // lot as a percentage of equity
input bool     inp_on_lot=false;    // if "false" to % of the equity
input bool     inp_on_SL=false;     // Stop loss (On/Off)

Fig. 1. Appearance of the trade panel.

Fig. 1. Appearance of the trade panel.

Recommendations:

  • The MasterWindows library should be added to the \MQL5\Include\ folder. The library provides adequate operation of the interface windows you create.
  • For a better display of created interface windows, use graphical schemes with a black background.
  • This is a demo panel (a joke program) and is not intended for live accounts. However, you can modify or replace the BUYorSELL() signal generation function in accordance with your trading system, add position support function, and try to use it on a live account.

Traduit du russe par MetaQuotes Ltd.
Code original : https://www.mql5.com/ru/code/15890

Exp_Volume_Weighted_MA_Digit_System Exp_Volume_Weighted_MA_Digit_System

Trading system based on Volume_Weighted_MA_Digit_System indicator signals.

Exp_JFatl_Digit_System Exp_JFatl_Digit_System

Trading system based on JFatl_Digit_System indicator signals.

Exp_Volume_Weighted_MACandle Exp_Volume_Weighted_MACandle

Trading system based on Volume_Weighted_MACandle indicator signals.

Exp_Donchian_Channels_System Exp_Donchian_Channels_System

Trading system based on Donchian_Channels_System indicator signals.