ENUM_APPLIED_PRICE applied_price // type of price or handle
See iMA MQL5 reference manual. The small dragon asks for the way, the large dragon studies the map.
This is MQL 4. In MQL 5 it works different, you first need to obtain a handle to the indicator and then use CopyBuffer to read out the indicator data.
And you can pass the first indicator handle to obtain a second indicator handle.
Like so maybe. See the reference manual. https://www.mql5.com/en/docs/indicators