Changing indicator value from an EA

 

Hi,

I’m a real newbie to this game and this site has been recommended to me as a great learning tool. So after searching the Internet for an answer to this question I thought I would try here.

I am a programmer by profession but I have had no experience with MetaTrader and EA’s which puts me on a steep learning curve at the moment.

My question is:
I have created an indicator with two moving averages. A short one of 10 days and a long one of 50 periods. In an EA I have used icustom to read the values of the moving averages for each day testing for a cross. Is it possible to programmatically change the values of the moving averages in the indicator from the EA?

Thanks in advance for your help

John

 

https://book.mql4.com/samples/shared

Your CI should have external input and use this external input in ICustom.

Reason: