+1 888 340 6572

NewCoeffR

Article/Author: "Standard Error Bands" Jon Anderson, Stocks&Commodities Magazine, Traders Tips, 09/1996

Download: FUNCTION-NEWCOEFFR.ELA

File Includes: Function - NewCoeffR

Category: Function > NewCoeffR

Description:

Inputs:
Lenght

EasyLanguage Code:
INPUTS: LENGTH(NUMERIC);

VARS: X(0), UPEQ(0), LOWEQ1(0), LOWEQ2(0), LOWEQT(0);

X = BARNUMBER;
UPEQ = SUMMATION(X * CLOSE, LENGTH) - (LENGTH * AVERAGE(X, LENGTH) * AVERAGE(CLOSE, LENGTH));
LOWEQ1 = SUMMATION(SQUARE(X), LENGTH) - (LENGTH * SQUARE(AVERAGE(X, LENGTH)));
LOWEQ2 = SUMMATION(SQUARE(CLOSE), LENGTH) - (LENGTH *SQUARE(AVERAGE(CLOSE, LENGTH)));
IF LOWEQ1 * LOWEQ2 > 0 THEN
LOWEQT = SQUAREROOT(LOWEQ1 * LOWEQ2);

IF LOWEQT <> 0 THEN
NEWCOEFFR = UPEQ / LOWEQT;


{COPYRIGHT C 1997, TECHNICAL ANALYSIS, INC.}