+1 888 340 6572

NormRange

Article/Author: "Normalization", Brian R. Bell, S&C Magazine, Traders Tips, 10/2000

Download: normalize.ela

File Includes:
Function - NormRange
Function - NormATR
Function - NormAvg
Function - NormStdDev
Indicator - Osc Normalization

Category: Function > NormRange

Description:

Inputs:

EasyLanguage Code:
INPUTS: OSCVALUE(NUMERIC), NORMLENGTH(NUMERIC);

VARIABLE: HIHI(0), LOLO(0), HIGHLOWDIFF(0);

HIHI = HIGHEST(OSCVALUE, NORMLENGTH);
LOLO = LOWEST(OSCVALUE, NORMLENGTH);
HIGHLOWDIFF = HIHI - LOLO;

IF HIGHLOWDIFF <> 0 THEN
NORMRANGE = (((OSCVALUE - LOLO) / HIGHLOWDIFF) * 100)
ELSE
NORMRANGE = 0;