Directory of RSS feeds

RSS feeds in the directory: 2817

Added today: 0

Added yesterday: 0

Business / Finance

MQL5: How to write a indicator for MetaTrader 5

Portal Forex trader 09.10.2018 at 09:10

Forex trading strategies, expert advisors, indicators, video training trade

Dear friends Forex traders programmers, Hello!

Today's lesson is devoted to the development of the indicator. We will learn How to write a indicator for Metatrader 5 in MQL5 respectively. It is an oscillator that displays the difference of two moving averages in the form of a color histogram.

the Indicator has four configurable settings:

MaFastPeriod — period of the fast MA;

MaSlowPeriod — period of the slow MA;

MaMethod — the Method used to price;

MaAppliedPrice — the actual — type prices.

the calculation Formula is defined as:

MAOS = MaFast — MaSlow

Let's write our indicator for the MetaTrader 5 terminal.


Instead of displaying the difference of values of the Moving Average, make a histogram display based on the RSI indicator. In lessons 6 and 7 we wrote to the advisers. Continue? Write an expert Advisor running on this indicator. Let this be a scalper, nightlight, i.e., one of the options which will work.

the Previous lessons on MQL5:

MQL5: Write multi-currency expert Advisor MQL5: Write Martingale EA on MQL5: MQL5 orders: Write the first Advisor MQL5: Create a dashboard MQL5: Write the indicator and the EA on the basis of the Index Correlation MQL5: How to write a script for Metatrader 5

forum Topic

best regards, Sergei aka xbms