Knowledge base MQL4 code repository

Measuring order execution time

Check how much time passes from sending an order to server to receive information whether it has been successfully completed.

Code execution independent of incoming ticks

The article describes the independent from incoming ticks way of making the code, which is alternative to included in MT4 mechanism.

MetaTrader 4 and data export to a file

The article provides an answer to the popular question how to export data from MT4 to files so that they can be analysed e.g, in Excel.

Easy way of adding comments to the chart

As we know, the default mechanism of adding comments to the chart in MQL is uncomfortable. Learn the functions that will avoid these inconveniences.

Counting orders – version with references

Let’s get back to the previous subject of counting orders in the market depth. This time we present an approach based on references.

Trading in specified hours

Do you want to be able to specify when your expert advisor can trade? Meet an easy way to reduce trading hours of your EA.

MetaQuotesLanguage and references

Unfortunately, MQL doesn’t support object oriented programming and it has no structures either. However, we can use the mechanism of passing parameters by a reference.

How to set breakpoints in the tester

The article presents a trick which enables you to stop the tester in the visual mode in the chosen moment.

6 useful MetaQuotesLanguage mini-functions

Several small but very useful functions that allow you to make the code shorter, more elegant and also more readable.

Easy arrows drawing on the chart

The function allows you to add to the chart an arrow pointed up or down easily. It can be used, e.g. to increase the readability of the incoming signals.

Strona 1 z 212
  • Facebook