You need to make an indicator that is displayed as SMA (average) on the quote chart.
The main code of the indicator will be in a C++DLL
Please help me with a sample of the short code of the indicator in MQL5 and passing it to the DLL close as a double.
The main DLL code is presented in the article on this site, you need to finish it so that an array appears in it, then it is passed back to the indicator and then displayed on the chart.
No more than 5 participants. When the indicator is ready, I will send a copy to those who helped.