Help creating Expert Advisor based on Custom Indicators, the soucrce code to which I don't have

 

Hi

I'm new to the world of MQL4 but not to the world of programming in C. I've got a few custom indicators, the source code of which I don't have, but I want to create and expert advisor to place my trades based on the indicators (basically their colors).

My sample strategy would be:

1. Buy when this bar (based on 1 indicator) is blue and this dot is yellow (based on another indicator).

Is this possible to program? I presume I'd need access to the source code of these indicators but is there any way around this?

Kindly help me out.

Thanks
Maneck

 
You don't need the code. use icustom to read out the values from the indicator.
 
Colored indicators use two or more buffers, you'll have to figure out which buffer is which color and if the N/A value is EMPTY_VALUE or 0.
 
zzuegg:
You don't need the code. use icustom to read out the values from the indicator.


WHRoeder:
Colored indicators use two or more buffers, you'll have to figure out which buffer is which color and if the N/A value is EMPTY_VALUE or 0.


Thanks for the replies! But I'm afraid I got absolutely no clue as to what you both are talking about. Any links or sections I can look into in the MQL4 tutorial given on this website?

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

double iCustom(symbol, timeframe, "Name of indicator", your settings here, indexbuffer (1=0), which bar to look at)
 
maneck35:



Thanks for the replies! But I'm afraid I got absolutely no clue as to what you both are talking about. Any links or sections I can look into in the MQL4 tutorial given on this website?

Here is an old discussion about the same question... https://www.mql5.com/en/forum/126917

The beginning of it should serve your purpose; later it goes on a tangent a bit.

When you read this article, you may have another question, which is answered here... https://www.mql5.com/en/forum/126966

Reason: