Dear mladen, mrtools
should be possible to have a mt4, mt5 indi for calculating COINTEGRATION of  two or more assetts.
There is a library here --------------------------------------  that may be useful for this purpose.
Thanks in advance , Andrea