Download: Nmp.ela
File Includes:
Function - NewMarketParadigm
Indicator - NewMarketParadigm C
Indicator - NewMarketParadigm E
PaintBar - NMP Contraction
PaintBar - NMO Expansion
Strategy - NMP System
Strategy - NMP System--original
Category: Function > NewMarketParadigm
Description:
Inputs:
Price -
Length -
StdDevUp -
StdDevDn -
EasyLanguage Code:
INPUTS: PRICE(NUMERICSERIES), LENGTH(NUMERICSERIES), STDDEVUP(NUMERICSERIES), STDDEVDN(NUMERICSIMPLE);
VALUE1 = BOLLINGERBAND(PRICE, LENGTH, STDDEVUP);
VALUE2 = BOLLINGERBAND(PRICE, LENGTH, STDDEVDN);
CONDITION1 = VALUE1 < VALUE1[1] AND VALUE2 > VALUE2[1];{CONTRACTION}
{BUILT AS CONDITIONS FOR LATER REVISION --WD}
CONDITION2 = VALUE1 > VALUE1[1] AND VALUE2 < VALUE2[1];{EXPANSION}
CONDITION3 = CONDITION1 = FALSE AND CONDITION2 = FALSE;{TRANSITION}
IF CONDITION1 THEN
NEWMARKETPARADIGM = 1;{CONTRACTION}
IF CONDITION2 THEN
NEWMARKETPARADIGM = 2;{EXPANSION}
IF CONDITION3 THEN
NEWMARKETPARADIGM = 3;{TRANSITION}
{COPYRIGHT 1998 TECHNICAL ANALYSIS, INC.}