Articles

Three Aspects of Manual Trading Automation. Part 1: Trading for MetaTrader 4

This article is the first in a series of articles on manual trading automation in the МetaТrader 4 trading platform. Each of the articles will be devoted to one of the following aspects: automation of manual trading, current state of trade display automation and automation of reports on trade

Protect Yourselves, Developers! for MetaTrader 4

Protection of intellectual property is still a big problem. This article describes the basic principles of MQL4-programs protection. Using these principles you can ensure that results of your developments are not stolen by a thief, or at least to complicate his "work" so much that he will just

Visual Optimization of Indicator and Signal Profitability for MetaTrader 4

This article is a continuation and development of my previous article "Visual Testing of Profitability of Indicators and Alerts". Having added some interactivity to the parameter changing process and having reworked the study objectives, I have managed to get a new tool that does not only show the

Visual Testing of the Profitability of Indicators and Alerts for MetaTrader 4

What indicator of trading alerts or just the methods of their calculating to use is usually decided when testing EAs using these alerts. However, it is not always possible/necessary/reasonable to write an EA for each indicator. You can promptly calculate the profitability of trading on the alerts

A Non-Trading EA Testing Indicators for MetaTrader 4

All indicators can be divided into two groups: static indicators, the displaying of which, once shown, always remains the same in history and does not change with new incoming quotes, and dynamic indicators that display their status for the current moment only and are fully redrawn when a new price

A Pattern Trailing Stop and Exit the Market for MetaTrader 4

Developers of order modification/closing algorithms suffer from an imperishable woe - how to compare results obtained by different methods? The mechanism of checking is well known - it is Strategy Tester. But how to make an EA to work equally for opening/closing orders? The article describes a tool

Market Diagnostics by Pulse for MetaTrader 4

In the article, an attempt is made to visualize the intensity of specific markets and of their time segments, to detect their regularities and behavior patterns

Forum

Does any of the TA work on tick charts?

It just so happens that I've had to spend a lot of time on tick charts lately. I drew myself a simple indicator and watched it. In the course of this process the question of the subject arose. I know MACs will work, but what about other things? Has anyone tried to do something more or less adequate

Is it possible to close several orders at the same time?

for sure the answer is no. but little if any.... the situation: five open orders on different pairs at a weak loss and a strong risk of falling into a real loss. the light goes out. the oops (for example) will last no more than 30 seconds. close the first order - requote , trade flow is busy, what

How to ensure that the EA only works on the chart where it was first dropped

I need to make the EA work with only "one instance". I.e. I attach it to any chart for the first time and it works. If I then accidentally or intentionally attach it again to another chart, the second attachment should recognize that it's already running and do nothing. Leaving the label in a global

We can no longer control the placement of objects on the graph "vertically"

The last, almost scandalous, discussion of the source code formatting problem ended with the developers acknowledging the programmer's "right" to write programs the way they want (not the way they think) and promising to finalize the source code formatting settings. Now I've encountered a similar

Dynamic periods for indicators

Many indicators use a "period" to calculate their values. This is usually the number of bars that are involved in the calculation of the next value. Take RSI, for example. Roughly speaking, this indicator shows the ratio of the length of upward price "run" relative to the similar length of downward

Once again, about MQL localisation

The topic has already been touched upon in passing . I'm talking about the possibility to write experts completely in Russian (or any other language) in MQL. Something like this: Логический Четный; Цикл ( целое НомерПозиции = 1; НомерПозиции <= ДлиннаБуфера; НомерПозиции++ ) { Если ( Остаток

That's the style! :)

Prehistory: Over many years of coding I developed a "personal" style of text formatting (here ). My texts have been authomatic already for a long time and I have to use Astyle only when I start working with some "alien" text. I can explain why I format my texts in this way: the number of tabs

Signs of a REAL system

After the excitement in the "Who needs JAPAN CHANGES? I tried to systematize my criteria for assessing the correctness of this or that trading system and the Expert Advisor built on it. Here is a brief summary of my rules that came to my mind. Signs of fitting: the balance growth curve and the

How do I access the server from behind a corporate proxy?

The MT5 trading server mt5.metaquotes.net runs on port 1950. We have closed all the "left" ports at our company, including port 1950. It is impossible to agree with the administrator about its opening (security policy...). Tunneling via HTTPort - doesn't work. MT4 was running on port 443 which is