Download MetaTrader 5

working with custum indicator into an EA

To add comments, please log in or register
mohsen bahrami
312
mohsen bahrami  

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.
Andrey Barinov
39485
Andrey Barinov  
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
Moses Olawale  Ajayi
2405
Moses Olawale Ajayi  
Please, what is iCustom function?
mohsen bahrami
312
mohsen bahrami  

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

Andrey Barinov
39485
Andrey Barinov  
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
mohsen bahrami
312
mohsen bahrami  
Wahoo:
When you use CopyBuffer function, you need to specify the buffer which you want to use.

Thank you alot

Its nice of you

To add comments, please log in or register