Embed Indicator inside the EA

 

Is there a simple way to make and EA lanuch a  moving average indicator, include it in the  chart (on same chart where the EA is running)

and also create an additional window runnig and RSI oscillator.

So basically the EA source code should be enough to call some indicator charting (using user inputs from the EA input box)

Any ideas/alaternatives appreciated.

Thank you

 
cmarconetti: Is there a simple way to make and EA lanuch a  moving average indicator, include it in the  chart (on same chart where the EA is running) and also create an additional window runnig and RSI oscillator.

So basically the EA source code should be enough to call some indicator charting (using user inputs from the EA input box) Any ideas/alaternatives appreciated. Thank you

For MQL4, it's not possible if it's embedded as a resource in the EA. As a resource, it is only possible for MQL5.

 
  1. Code has no eyes; they don't need to see the indicator on the chart, just the values. If you want to see it, you add it to the appropriate chart.

  2. There is no (and will not ever be) ChartIndicatorAdd in MT4.
              MQL4 Add indicator to chart from EA - MQL4 programming forum #18 (2016)

    use ChartApplyTemplate() or go down the rabbit hole.
              MQL4 Add indicator to chart from EA - MQL4 programming forum #1 (2016) and #27 (2018) #55 (2022), and Issues with PostMessageW in MQL4 | Forex Factory #27 (2020)

 
Thank you both. Good and complete answers.Will check all.
Reason: