I have few indicators in .ex4 format. I intended to automate them i.e. when they changes color altogether it will give me an alert. But as they are in .ex4 format so I don't have the source code.
But I heard that I can call those indicators in any EA without knowing the source code using buffer and iCustom() function.
I have searched online for the process but got example for mq4 files where the source code is known. So I need such process for .ex4 file. If anyone have it then please share.
And if don't then please suggest me.
I have opened the Data window in the chart using Ctrl+D. There I found three value. Y,G,R.
When I move the mouse over different bars, then the value of Y and G changes. R never changes for the indicator I have tested.
I observed that when the color of indicator goes from Gray to Blue Y becomes 1to 0 and G becomes 0 to 1 and vice versa for Blue to Gray changing.
So I concluded that Y is buffer '0', G is buffer '1' and R is buffer 2.
So the iCustom() function lines for each buffer for current bar [i.e. 0 bar]
can be like this?
Code: Select all
iCustom(Symbol(),Timefram e,"CUSOMT INDI NAME",all parameters separated by coma, 0, 0);
iCustom(Symbol(),Timefram e,"CUSOMT INDI NAME",all parameters separated by coma, 1, 0);
iCustom(Symbol(),Timefram e,"CUSOMT INDI NAME",all parameters separated by coma, 2, 0);Thanks