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

CalcB

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

Download: FUNCTION-CALCB.ELA

File Includes: Function - CalcB

Category: Function > CalcB

Description:

Inputs:
Lenght

EasyLanguage Code:
INPUTS: LENGTH(NUMERIC);

VARS: X(0);

X = BARNUMBER;

VALUE1 = SUMMATION(X * CLOSE, LENGTH) - (LENGTH * AVERAGE(X, LENGTH) * AVERAGE(CLOSE, LENGTH));
VALUE2 = SUMMATION(SQUARE(X), LENGTH) - (LENGTH * SQUARE(AVERAGE(X, LENGTH)));

CALCB = VALUE1/VALUE2;