How to use a variable from one indicator into another indicator

 

Hi all,


I want to import a variable x[i] from indicator1.mq4 file and use it in indicator2.mq4file. Is it possible to do this?

 
Shailesh Mishra:

Hi all,


I want to import a variable x[i] from indicator1.mq4 file and use it in indicator2.mq4file. Is it possible to do this?

https://docs.mql4.com/indicators/icustom


Within indicator2, use iCustom() to get value(s) from indicator1.