Simple Code for Detect A “New Bar or New Candle ” Received – EA MetaTrader 5

Simple Code for Detect  A  "New Bar or New Candle " Received - expert for MetaTrader 5
This code block detects a New Bar or a New Candle when it has received.  the basic principle of the codes is very simple. First the code stores the Time of the previous bar / Candle. (Then add 60 seconds (equals to 1 min. you can add time as you want) to the Time of

The “New bar” event handler for the indicators – indicator MetaTrader 5

The "New bar" event handler for the indicators - indicator for MetaTrader 5
The idea of this approach is described in the “New Bar” Event Handler article. The example of its use in the Expert Advisors is presented in the article. Here you will find the solution for the indicators. Idea is the same: it will allow to perform recalculations only when the new bar has appeared. It’s

The class of a module of trade signals, on “inner bar breakthrough” in trend direction – library MetaTrader 5

Description of signals
The MQL5 Wizard provides an opportunity to create a strategy using different modules. For example, the main module can be written by developer, the other modules (money management, trailing stop) can be developed by other programmers. The strategy, implemented in this module is following: when outside bar appears, it checks the fact of the inner

Murrey Math Lines for the Current Bar – indicator MetaTrader 5

Murrey Math Lines
Real author: Vladislav Goshkov (VG) The well-known theorist Thomas Henning Murrey is widely known in the world of the modern trading. It was he who adapted the theory of the legendary William Gann making it more understandable. Murrey created his famous math lines on the basis of the Gann’s “Square of Nine” principles. The lines