custom indicator to EA

 

I am new to mql programming

Hi have custom indicator(bought it online), I want to write EA which will check the condition and open the trade, I know it possible but what I don't understand is how to call it and get the return values from that indicator ?


Thank You

 
rfbudhwani:

I am new to mql programming

Hi have custom indicator(bought it online), I want to write EA which will check the condition and open the trade, I know it possible but what I don't understand is how to call it and get the return values from that indicator ?


Thank You




Please have a look on https://docs.mql4.com/indicators/iCustom
 
brother3th:
Please have a look on https://docs.mql4.com/indicators/iCustom

I saw that but my Point is I haven't wrote that indicator(its in ex4) so I don't know what I have to use for string name, ..., int mode, int shift, but I have template for that indicator so it possible I can extract info from template and use it in EA

to get the condition ?

 

double iCustom( string symbol, int timeframe, string name, ..., int mode, int shift)


  1. Name: filename without the .ex4
  2. ...: on chart control-i, select indicator, edit. Note all the properties order, type and value.
  3. mode: which buffer you want (zero)
  4. shift: which bar.
 
Just test the indicator for every buffer (if there's nothing at buffer0, chance is others are empty as well, but they may not be. either way you only have 0-7 buffers). Shift is most likely 0.
 
ohhh man its complicated I have Indicators anybody interested in writing me an EA Ill pay, give me ur email then we can take this private.
 
Our Company develops EAs. Write me to it@robofx.org
 

Call iCustom 8 times.

g_ibuf_14x indicates the indicator was decompiled, i.e. stolen. No one will be helping with that code.