# Moving average on easy chart

**URL:** <https://forum.inductiveautomation.com/t/moving-average-on-easy-chart/45515>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [April 13, 2021, 4:55am UTC](https://forum.inductiveautomation.com/t/moving-average-on-easy-chart/45515 "2021-04-13T04:55:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SaravanaKumar.S2](https://avatars.discourse-cdn.com/v4/letter/s/8edcca/32.png) [@SaravanaKumar.S2](https://forum.inductiveautomation.com/u/SaravanaKumar.S2)\
**Post date:** [April 13, 2021, 4:55am UTC](https://forum.inductiveautomation.com/t/moving-average-on-easy-chart/45515/1 "2021-04-13T04:55:24Z")

</div>

Dear @Kevin.Herron

I have a requirement to display the **moving average** along with the actual signal and **control limits**. Hence I have chosen to use easy chart default functionalities. I have below questions

1. How to calculate **moving average for a specific period**. (This period is tunable from ignition screen e.g., 1 hour or 2 hour, etc)
2. How to calculate **LCL and UCL based on the moving average and user-defined control limits** (e.g., ±200 Nm3/hr)

Is it possible to achieve the above functions **with the help of easy chart** (may be using some scripting)?

Thanks & Regards,  
Saravanan
