STOCHASTICS FROM STUART EVANS

STOCHASTICS FROM STUART EVANS

Type: Function, Name: StochKreg

Input: Length(Numeric);
Variables: HH(0), LL(0);
HH = Highest(High, Length);
LL = Lowest(Low, Length);
StochKreg = 100 * ((Close — LL) / (HH — LL));

 

Type: Function, Name: StochDreg

Inputs: Length(Numeric), SlowPeriod(Numeric);
Variables: HH(0), LL(0);
HH = Highest(High, Length);
LL = Lowest(Low, Length);
StochDreg = 100 * (Summation(Close — LL, SlowPeriod) / Summation(HH — LL, SlowPeriod));
Type: Function, Name: StochKslow

Inputs: Length(Numeric), SlowPeriod(Numeric);
StochKSlow = StochDreg(Length, SlowPeriod);

 

Type: Function, Name: StochDslow

Input: Length(Numeric), SlowPeriod(Numeric);
StochDSlow = Average(StochDreg(Length, SlowPeriod), SlowPeriod);

 

Type: Indicator, Name: Stoch — Reg

Inputs: Length(5), SlowLen(3);
Plot1(StochKreg(Length), «%K-reg»);
Plot2(StochDreg(Length, SlowLen), «%D-reg»);

 

Type: Indicator, Name: Stoch — Slow

Inputs: Length(5), SlowLen(3);
Plot1(StochKSlow(Length, SlowLen), «%K-Slow»);
Plot2(StochDSlow(Length, SlowLen), «%D-Slow»);

Подписаться
Уведомить о
0 комментариев
Межтекстовые Отзывы
Посмотреть все комментарии