Tutorial 174 | Markplex Centered Moving Average

2 years ago
18

Tutorial 174 demonstrates how to write Markplex’s version of the Centered Moving Average (C) using TradeStation EasyLanguage. A centered moving average is placed at the center of the range rather than the end of it. This positions the moving average values at their central positions in time and is easy to accomplish by using EasyLanguage’s displace capability.

A disadvantage of the C is that because the values are displaced there are a number of bars at the end of the chart where there are not a sufficient number of future bars to calculate the average, by definition.

This tutorial demonstrates one approach to estimating the average for the last bars by replacing “missing” bars with the Close of the last bar and then re-calculating and re-plotting the last few bars whenever the close is updated.

https://markplex.com/free-tutorials/tutorial-174-markplex-centered-moving-average/

Loading comments...