Download MetaTrader 5

How to return indicators values not handles in mql5

To add comments, please log in or register
philippejara
7
philippejara  
Hello guys, I currently have a problem, I am trying to find the values of the moving average using iMA, however the only thing it returns is the handle. Is there any way to return ts values?
Alain Verleyen
Moderator
31189
Alain Verleyen  

CopyBuffer().

See this articles 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.
To add comments, please log in or register