+1 888 340 6572

Derivativema

Article/Author: Origin: Gary Fritz`s site.

Download: conflu.ela

File Includes:
Function - Derivativema
Function - Confluence
Indicator - Confluence
Strategy - Confluence

Category: Function > Derivativema

Description:

Inputs:
Price -
Length -

EasyLanguage Code:
INPUTS:  PRICE(NUMERIC), LENGTH(NUMERIC);



VARS: DERIV(0),SUMD(0),LENG2(0),N1(0),DR(0);

DERIV= (AVERAGE(PRICE,LENGTH)*2) - AVERAGE(PRICE,LENGTH)[1];

SUMD=LENGTH*DERIV;

LENG2=LENGTH - 1 ;

N1= (AVERAGE(PRICE,LENG2))*LENG2;

DR=SUMD-N1;

DERIVATIVEMA = DR;