Codes

Control Panel for the Contest for MetaTrader 5

The panel simplifies manual trading and trailing of the opened position

Articles

How to Obtain Synchronized Arrays for Use in Portfolio Trading Algorithms for MetaTrader 5

The article describes a practical approach to synchronizing bars between instruments in a portfolio in MQL5. Classes are provided for loading, storing, and aligning OHLCV data, with options to use an empty bar or carry over values from the previous bar, select a synchronization symbol, and process

Trading Options Without Options (Part 4): More Complex Option Strategies for MetaTrader 5

In this article, we will examine how to reduce risk (and whether it is even possible to do so) in option strategies where risk is initially unlimited. This applies to strategies based on writing options, i.e., range-bound strategies. We will also consider ways to lock in profits for option

Trading Options Without Options (Part 3): Complex Option Strategies for MetaTrader 5

The article discusses flat (non-directional) and trend-following (directional) option strategies and their implementation in MQL5. The EA described in the previous article is updated. The display of option levels has been added. Now it is time to examine the strategies used by options traders in

Trading Options Without Options (Part 2): Use in Real Trading for MetaTrader 5

The article considers simple options strategies and their implementation in MQL5. We will develop a basic EA that will be modernized and become more complex

Trading Options Without Options (Part 1): Basic Theory and Emulation Through Underlying Assets for MetaTrader 5

The article describes a variant of options emulation through an underlying asset implemented in the MQL5 programming language. The pros and cons of the chosen approach are compared with real exchange options using the example of the FORTS futures market of the MOEX Moscow exchange and the Bybit

A Few Tips for First-Time Customers for MetaTrader 5

A proverbial wisdom often attributed to various famous people says: "He who makes no mistakes never makes anything." Unless you consider idleness itself a mistake, this statement is hard to argue with. But you can always analyze the past mistakes (your own and of others) to minimize the number of

Creating Custom Criteria of Optimization of Expert Advisors for MetaTrader 5

The MetaTrader 5 Client Terminal offers a wide range of opportunities for optimization of Expert Advisor parameters. In addition to the optimization criteria included in the strategy tester, developers are given the opportunity of creating their own criteria. This leads to an almost limitless number

The Indicators of the Micro, Middle and Main Trends for MetaTrader 5

The aim of this article is to investigate the possibilities of trade automation and the analysis, on the basis of some ideas from a book by James Hyerczyk "Pattern, Price & Time: Using Gann Theory in Trading Systems" in the form of indicators and Expert Advisor. Without claiming to be exhaustive

Drawing Channels - Inside and Outside View for MetaTrader 5

I guess it won't be an exaggeration, if I say the channels are the most popular tool for the analysis of market and making trade decisions after the moving averages. Without diving deeply into the mass of trade strategies that use channels and their components, we are going to discuss the

Create your own Market Watch using the Standard Library Classes for MetaTrader 5

The new MetaTrader 5 client terminal and the MQL5 Language provides new opportunities for presenting visual information to the trader. In this article, we propose a universal and extensible set of classes, which handles all the work of organizing displaying of the arbitrary text information on the

Forum

Testing 'CopyTicks'

Let's start with a simple one - volume. Below is a picture of the glitch detected. Occasionally "doubles" appear in volumes. Win7-64 MT5-1085 Broker "Otkritie", real server. The main indicator cycle looks as follows: //--------------------------------------------------------------------- //