Protection from MQL decompiling

The article is dedicated to those who encountered such a phenomenon as decompiling and looks for an effective means of protection for their trading strategy.

A little bit of theory.

Expert advisors, indicators and scripts for the Metatrader system are created using the built-in MQL language. Then, the source text code MQ4 is compiled into executable binary [...]

Metatrader. Bar

Information of the price change comes with two parameters: new price level and time of the change. There appears to be a lot of historical data and in order to reduce the volume of information used, such combinations as bars, candlesticks or recording format as per closing price are used. All these forms are alike [...]

Metatrader. Time Zone Shift

It is quite often that a trader is to perform a time synchronization task when expert advisor is working. Prohibition or permission for orders opening in certain time spans during 24 hours, cancellation of suspended orders after certain time, prohibition against work of the expert advisor on holidays, trade permission only at news-time etc. may [...]

Metatrader. Break Even.

Break Even is a special case of Trailing Stop. The difference is that the Stop Loss value is set only once when the required level is reached and it does not change any more till the order is closed. Break Even allows to fix Stop Loss value at the break-even point. To make a newly [...]

Metatrader. Trailing Stop.

One of the easy and most effective methods to reduce losses when trading is Trailing Stop. Trailing Stop is an integrated algorithm and we will also need a Stop Loss value for its implementation.
Trailing Stop works as follows. Let’s denote Trailing Stop as TS, Stop Loss – SL. If the price goes up and profit [...]

Metatrader. Take Profit.

Standard Take Profit

Two types of Take Profit have to be distinguished. The first type is automatic, the second is or manual.
Let’s look at the automatic Take Profit. It is activated as follows: an order is opened and value of Take Profit is being set as an absolute value higher than opening price. In case if [...]

Metatrader. Stop Loss.

Standard Stop Loss

Stop Loss have to be divided into two types, same as Take Profit. The first type is automatic, the second is manual. The main function of Stop Loss is to minimize losses when the price rushes in direction that is opposite to the desirable.
Let’s first look at the automatic Stop Loss. It is [...]

SLiM API Optimization Tips. Part 1.

Using SLiM 2.0?
Get information about better functions for license validation techniques and about better place in mql code to check for license settings.

 Subscribe in a reader