How can I programmatically add indicators to a chart from within my Expert Advisor?

 

Hello everyone,

I have an Expert Advisor in MQL5 that relies on several indicators. I’d like the EA itself to attach those indicators to the chart on which it’s running—using the input parameters I’ve defined for each indicator—so that they become visible on the chart automatically when the EA starts.

How can I achieve this in MQL5? Which functions or methods should I use to add and configure indicators on the chart from inside my EA’s code?

Thanks in advance for any guidance!