I need urgent help for my EA

[Deleted]  

Please i need someone to help me with Least Square Moving Average formula/equation. i need the formula itself and not indicator

thanks