Adaptive Moving Average Strategy

Tuesday 1 July 2008 @ 10:02 am


Summary

The Adaptive Moving Average that was originally discussed in an interview with Perry Kaufman in STOCKS & COMMODITIES Bonus Issue that originally appeared in March 1995. The Adaptive Moving Average is an excellent alternative to standard moving average calculations.

Screen Shots

Usage

The Adaptive Moving Average calculation that is used in the studies and strategy in TradeStation is performed primarily by a function referred to as AMA. Another function referred to as AMAF is used to calculate the Adaptive Moving Average Filter. As always, the functions should be created prior to the development of the strategy.

Once you have successfully created both Adaptive Moving Average functions, you can then create the strategy. The download includes a workspace with an example strategy implemented, along with the EasyLanguage files for review and modification.

Note: You may need to download and install the Adaptive Moving Average indicator before installing this strategy.

Downloads

Download Adaptive Moving Average System (Workspace and ELD files)

Happy Trading!




Adaptive Moving Average

Tuesday 24 June 2008 @ 9:07 pm


Summary

The adaptive moving average that was discussed in the interview with Perry Kaufman in the 1998 STOCKS & COMMODITIES Bonus Issue (the article originally appeared in March 1995) is an excellent alternative to standard moving average calculations

Screen Shots

Usage

The adaptive moving average calculation that is used in the studies and system in TradeStation is performed primarily by a function referred to as "AMA." Another function referred to as "AMAF" is used to calculate the adaptive moving average filter. As always, the functions should be created prior to the development of the studies/system.

Once you have successfully created both functions, you can then create the two studies and the system. The first indicator displays the adaptive moving average line, with an optional twist. The twist is that the AMA line can be smoothed using linear regression. Thus, I have included in the indicator an input named "smooth" that allows you to determine if the AMA line should be smoothed or not. A "Y" as the input value smoothes the calculation. An "N" simply plots the raw AMA line. This indicator should be scaled to "Same as price data."

The second indicator, "Mov Avg Adaptive Fltr," takes the filtering concept and applies it to an indicator. Based on the filtered adaptive moving average (AMAF) parameters, this indicator will plot a vertical blue or red line, depending on the condition that is met. The values reflected by the vertical lines reflect the value of the AMA filter calculation.

Note that the following recommendations provide an excellent chart: Plot1 should have a label of “Buy” be of type “Histogram” have a color of “Blue” and a line thickness of “Thinnest” Plot2 should have a label of “Sell” be of type “Histogram” have a color of “Red” and a line thickness of “Thinnest” Plot3 should have a label of “AMAFilter” be of type “Line” have a color of “Magenta” and a line thickness of “Thinnest” A TradeStation workspace is included in the zip file for an example of usage.

Downloads

adaptive_ma_indicator

Happy Trading!