Download MetaTrader 5

Watch how to download trading robots for free

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal

2016.05.16 10:20
Indicators

Applying the Equity graph on the chart - indicator for MetaTrader 4

| English Español Português Русский 中文 Deutsch 日本語

Views:
4440
Rating:
votes: 7
equity.zip (0.8 KB)

Suppose that there is some data, which is used as the basis for plotting a diagram, for example, a chart of five equities.





The source data is stored in the equity.csv file.





And this data needs to be viewed on the price chart of some currency pair. And not in a separate window, but right in the window that displays the instrument price. This indicator example is written for such a case. It displays 5 charts of the average equity for five groups with different values of Money Compounding. First, compile the indicator and attach it to the daily chart (the equity.csv file must be placed to experts\files\..). Nothing appears on the chart, this is normal, as the scale of the chart and the scale of the values read from the file have great differences.

After that, comment out one line in the indicator code, and, conversely, uncomment the other one, then press F5 (compile). Now there is a normal picture.






Thus, the terminal was "deceived" and forced to scale the indicator according to the current price range. This trick is only possible in case the indicator is told to be drawn in a separate window.
Receive this picture.







Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/7600

Accelerator Oscillator (AC) Accelerator Oscillator (AC)

The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.

Average Directional Movement Index (ADX) Average Directional Movement Index (ADX)

The Average Directional Movement Index Indicator (ADX) helps to determine if there is a price trend.

Example of MACD Automated Example of MACD Automated

Code example of MACD automated with advanced money management function.

Pivot Star Pivot Star

Pivot indicator. Standard, Fibonacci, Camarilla, Woody's, Demark. Calculates pivot points from previous bar of chosen period (M5 - MN).