The following code is an example of how to create a simple moving average with the custom tool scripting
This is a companion discussion topic for the original entry at https://www.optuma.com/kb/optuma/tools/pascal-programming/simple-moving-average-example