In MQL4 there is a function to get the value of Moving Average, here it is - https://docs.mql4.com/indicators/ima But in this function you can't set any Levels and I don't know other function that can.
There is a function that is called SetLevelValue(), but it is used in custom indicators, not experts - https://docs.mql4.com/customind/setlevelvalue