Tutorial 190 | Markplex Centered Moving Average Envelope | EasyLanguage tutorials and programs

1 year ago
6

Tutorial 190 (based on tutorial 174) demonstrates how to write Markplex’s version of the Centered Moving Average (CMA) Envelope using TradeStation EasyLanguage. A centered moving average is placed at the center of the time period it is averaging rather than the end of it. This positions the moving average values at their central positions in time.

A disadvantage of the CMA 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.

This tutorial demonstrates one approach to estimating the average for the last bars by replacing “missing” bars with the price of the last bar and then re-calculating and re-plotting the last few bars whenever the close is updated. The earliest bar of the estimate remains on the chart after a new bar develops.

See the tutorial page for more information and downloads: https://markplex.com/free-tutorials/tutorial-190-markplex-centered-moving-average-envelope/

Loading comments...