+1 888 340 6572 GET STARTED

Averages > Simple Futures MA

Article/Author: “Genesis of a Simple Futures Trading System” by Jay Kaeppel, S&C Magazine, Traders Tips, 05/1997

Download: SFMAind.ela

File Includes: Indicator - Simple Futures MA

Category: Indicator > Averages

Description:

This indicator is a common Moving Average Crossover with another parameter, the Filter added. The Filter ia a lenghty Moving Average, by default - 80. The Alert is given only in the case when the price is not equal to the Filter.

Usage:

The most popular method of interpreting a moving average is to compare the relationship between a moving average of the security's price with the security's price itself (or between several moving averages).




Inputs:

Price - the data series to average
FastAvg - the trailing number of bars to calculate Fast Moving Average
SlowAvg - the trailing number of bars to calculate Slow Moving Average
AvgFilter - the trailing number of bars to calculate Filter Moving Average

EasyLanguage Code:
INPUTS: PRICE(CLOSE), FASTAVG(9), SLOWAVG(50), AVGFLTR(80);

VARS: FASTMA(0), SLOWMA(0), FILTER(0);

FASTMA = AVERAGE(PRICE, FASTAVG);
SLOWMA = AVERAGE(PRICE, SLOWAVG);
FILTER = AVERAGE(PRICE, AVGFLTR);
CONDITION1 = CLOSE > FILTER;
CONDITION2 = CLOSE < FILTER;

PLOT1(FASTMA, "FASTMA");
PLOT2(SLOWMA, "SLOWMA");
PLOT3(FILTER, "MAFILTER");

IF (PLOT1 CROSSES ABOVE PLOT2 OR PLOT1 CROSSES BELOW PLOT2) AND
(CONDITION1 OR CONDITION2) THEN
IF CHECKALERT THEN ALERT = TRUE;


{COPYRIGHT C 1997, TECHNICAL ANALYSIS, INC.}