Black Friday great discounts start today Learn more
+1 888 340 6572

Derivative Moving Average

Article/Author: Stocks&Commodities Magazine, Traders Tips, 02/1997

Download: dma.ela

File Includes:
Signal - Derivative Moving Average
Indicator - Trend Analysis Index
Function - TAI

Category: Strategy > Derivative Moving Average

Description:

Inputs:

Signal Derivative Moving Average ELA Code:
INPUT: PRICE(CLOSE),AVGLEN(28),LOWLEN(4),TAILEN(5),EXITLEV(.4);

IF MARKETPOSITION = 0 AND AVERAGE(PRICE, AVGLEN)[1] = LOWEST(AVERAGE(PRICE, AVGLEN),LOWLEN)[1] THEN BUY ON CLOSE;
IF MARKETPOSITION = 1 AND TAI(PRICE, AVGLEN, TAILEN) CROSSES BELOW EXITLEV THEN EXITLONG ON CLOSE;