Load indicator - iCustom

 

Ive tried to load this indicator to my EA: https://www.mql5.com/en/code/575

But i need some help.. 

Before I was using MQL4 and just switched to MQL5 and MT5.

In mql4 I just could access the values like this.


double valuechart = iCustom(NULL,0,"value_chart",3,0);//value 3 and current candle


Now I looked into the documentation of MQL5 iCustom but I am not sure how to now get the data of the buffer and where to specify which candle.
I read something about using a handle and any copybuffer but I do not understand it fully.

Could anyone give me an example (with this indicator if possible) on how to access the data?

Any help is highly appreciated.

Thanks!


cheers,

salexes

PriceChannel Parabolic system
PriceChannel Parabolic system
  • 2013.01.17
  • www.mql5.com
So I decided to create some simple trading system with re-enter based on indicator's arrow on the chart.
 
https://www.mql5.com/en/articles/31
MQL5 for Newbies: Guide to Using Technical Indicators in Expert Advisors
MQL5 for Newbies: Guide to Using Technical Indicators in Expert Advisors
  • 2010.03.18
  • Sergey Pavlov
  • www.mql5.com
In order to obtain values of a built-in or custom indicator in an Expert Advisor, first its handle should be created using the corresponding function. Examples in the article show how to use this or that technical indicator while creating your own programs. The article describes indicators that are built n the MQL5 language. It is intended for those who don't have much experience in the development of trading strategies and offers simple and clear ways of working with indicators using the offered library of functions.