Download MetaTrader 5

working with custum indicator into an EA

To add comments, please log in or register
1000 paid orders are executed in Freelance service. Sign up!
mohsen bahrami
284
mohsen bahrami 2012.11.12 13:11 

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
39239
Andrey Barinov 2012.11.12 13:19  
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
2398
Moses Olawale Ajayi 2012.11.12 13:28  
Please, what is iCustom function?
mohsen bahrami
284
mohsen bahrami 2012.11.12 14:08  

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
39239
Andrey Barinov 2012.11.12 14:56  
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
284
mohsen bahrami 2012.11.12 15:10  
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