working with custum indicator into an EA

 

hi traders

i want to use a custom indicator in my EA.

how can i use its data like iMA or iRSI?

should i define a class or other else?

thank you

Step on New Rails: Custom Indicators in MQL5
Step on New Rails: Custom Indicators in MQL5
  • 2009.11.23
  • Андрей
  • www.mql5.com
I will not list all of the new possibilities and features of the new terminal and language. They are numerous, and some novelties are worth the discussion in a separate article. Also there is no code here, written with object-oriented programming, it is a too serous topic to be simply mentioned in a context as additional advantages for developers. In this article we will consider the indicators, their structure, drawing, types and their programming details, as compared to MQL4. I hope that this article will be useful both for beginners and experienced developers, maybe some of them will find something new.
 
Hi,

You can use iCustom function.

Andrey
Documentation on MQL5: Technical Indicators / iCustom
Documentation on MQL5: Technical Indicators / iCustom
  • www.mql5.com
Technical Indicators / iCustom - Documentation on MQL5
 
Please, what is iCustom function?
 

thank you for your help

but if the indicator have 2 or 3 buffers like "Alligator(13,8,5)"

how can i use each of three buffer of the  indicator into an EA?

thanks

 
When you use CopyBuffer function, you need to specify the buffer which you want to use.
Documentation on MQL5: Timeseries and Indicators Access / CopyBuffer
Documentation on MQL5: Timeseries and Indicators Access / CopyBuffer
  • www.mql5.com
Timeseries and Indicators Access / CopyBuffer - Documentation on MQL5
 
Wahoo:
When you use CopyBuffer function, you need to specify the buffer which you want to use.

Thank you alot

Its nice of you

Reason: