Blog

Non-standard chart types in mql programming

clock

Most of the trading strategies created by means of mql programming predict the price movement based on the historical data. This data can be displayed in different ways. The most common case is the display of the price movements at fixed intervals. However, there are a lot of other ways to display data in a chart. This article will teach you to handle the non-standard types of charts in MetaTrader and adjust your expert advisors for dealing with such charts.

Continue reading…

Alternative audio signals for expert advisors in metatrader programming

If you have already used Metatrader programming products, you probably know that Metatrader 4 and Metatrader 5 use various sounds for alerts and notifications. You can set them for different Metatrader events (for example, “Connected” or “Alert”), as well as to use them inside the program. This is a very convenient feature, because while the trader is away from the computer, he can still know what’s happening with his Metatrader or trading automation with the help of audio signals.

Continue reading…

Metatrader folder structure

metatrader-5-foldersIf you are an experienced trader or still a beginner, you have most likely already used the appropriate trading software, which is created by means of MetaTrader programming. Anyone who has worked with MetaTrader products at some point probably needed to install an expert, a script or an indicator into the program. And sometimes trading automation might seem a little difficult.

Continue reading…

How to mark StopLoss and TakeProfit with different colors

colored stoploss and takeprofitThe article is supposed to simplify traders visual perception of the information on current market orders given on graph. Automatic trade systems do not always display open orders as arrows on graph, while visualization of StopLoss and TakeProfit is even more infrequent. The article is intended for metatrader programmers, but it will also be of interest for the traders in terms of familiarization with the features of mql programming.

Continue reading…

Pending order color gradient marking with mql programming

Gradient pictureIt’s very frequent that a problem occurs for a trader having difficulties to make out orders open on a chart if his trade strategy assumes opening of a multitude of pending or market orders. Such lots usually have various lot sizes, from the smaller to the bigger. This article deals with solution for visualization of opening order arrows in case they are numerous.

Continue reading…

Metatrader bar and time frames

Metatrader candlesIn Metatrader 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 and pursue one objective – to reduce the volume of information being processed while saving maximum useful data.

Most often, bars and Japanese candlesticks charting are used. These elements are equally informative. The difference between them is only in how they are displayed.

For convenience, we will consider only the bars hereafter.

Continue reading…

Metatrader programming overview

metatrader programmer

Metatrader is one of the most popular trading platform among presently existing. Wide configuration and control possibilities for brokers and robust programming tool – integrated MQL language – for traders make the system handy and versatile in use at its maximum.

MQL programming language is a C++ like language. Its concepts and syntax are familiar to a majority of programmers and this allows to conserve time resources during the learning phase. It is enough to grasp syntax and basic idea of Metatrader trading platform to start programming in MQL language.

Continue reading…

Metatrader programming. Break Even

As well as Stop Loss, Break Even is a special case of Trailing Stop, which is created by means of mql programming and used in MetaTrader operations. 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.

Due to the features of mql programming a newly opened order has to surmount the spread which is a distance between purchase price and selling price to reach the break-even point. After this, the Stop Loss value needs to be fixed in this point. In this manner, if the price turns in the opposite direction then the order is closed with zero losses.

Continue reading…