Download MetaTrader 5

Is it possible to get Indicator info into an EA?

To add comments, please log in or register
Stephen Reynolds
7615
Stephen Reynolds  
I recently purchased an Indicator from Market that I really like but I prefer it as an EA. Is there any way to code an EA to read an Indicator you place onto a chart?
Zirkon
121
Zirkon  
renzbub:
I recently purchased an Indicator from Market that I really like but I prefer it as an EA. Is there any way to code an EA to read an Indicator you place onto a chart?
Usually with iCustom().
whroeder1
16076
whroeder1  
Just get the value of the indicator. Detailed explanation of iCustom - MQL4 forum
Stephen Reynolds
7615
Stephen Reynolds  
WHRoeder:
Just get the value of the indicator. Detailed explanation of iCustom - MQL4 forum

Yes using iCustom works as suggested and I can read values from the indicator within my EA okay but, is it possible to let an EA know when a signal has occurred from that indicator.  

EG say i have a MACD Divergence indicator, I understand how it can recognise the values of the histogram but what about when the divergence signal occurs between price and histogram? 

 

My real problem is I have bought an Indicator from Market called VJ Sniper. Your meant to trade it when for example a buy signal is generated and the trend line is up. You ignore the signal if its a buy signal and the trend is down.

But the problem with this to me is it gives unnecessary alarm signals. So im trying to figure out a way to make it sound an alarm only when on buy signal when trend lines are up and to not sound a buy alarm when the trend is down?

whroeder1
16076
whroeder1  
renzbub: But the problem with this to me is it gives unnecessary alarm signals. So im trying to figure out a way to make it sound an alarm only when
If you have the code to it, you can modify it. Otherwise you can not do anything with it.
To add comments, please log in or register