MultiCharts 12 is here with the Super Hot Summer Offer! Take advantage of it!
+1 888 340 6572

Simple Futures MA

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

Download: SFMA.ela

File Includes: Signal - Simple Futures MA

Category: Strategy > Simple Futures MA

Description: This strategy is a regular strategy based on Moving Average Crossover, but with an additional Filter parameter. Filter is the Moving Average with a pretty a big length, by default - 80. Buy or Sell is done only if the price is not equal to Filter.

Inputs:
Price - the data series to average
FastAvg - the trailing number of bars для вычисления Fast Moving Average
SlowAvg - the trailing number of bars для вычисления Slow Moving Average
AvgFilter - the trailing number of bars для вычисления Filter Moving Average

Signal Simple Futures MA ELA 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;

IF FASTMA CROSSES ABOVE SLOWMA AND CONDITION1 THEN
BUY THIS BAR ON CLOSE;
IF FASTMA CROSSES BELOW SLOWMA AND CONDITION1 THEN
EXITLONG THIS BAR ON CLOSE;

IF FASTMA CROSSES BELOW SLOWMA AND CONDITION2 THEN
SELL THIS BAR ON CLOSE;
IF FASTMA CROSSES ABOVE SLOWMA AND CONDITION2 THEN
EXITSHORT THIS BAR ON CLOSE;



{COPYRIGHT C 1997, TECHNICAL ANALYSIS, INC.}