The EightMonthAvg strategy compares monthly price with its average of specified type and length. It adds a BUY_AUTO order at the last bar of the month if the average crosses below the price; SELL_AUTO order if it crosses above.

As was proposed by strategy's author Brooke Gardner, it should use an 8 month Simple Moving Average with monthly Close.

Input Parameters

Parameter Description
price The price used in calculation.
length The length of the moving average, in months.
average type The type of average used in calculations.

Further Reading

1. "Trading High-Yield Bonds Using ETFs" by Brooke Gardner. Technical Analysis of Stocks & Commodities, June 2012.