[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Unidentified subject!



PureBytes Links

Trading Reference Links

{ChopinessIndex Function}Input: Length(NumericSimple);
Var: n(0), true_high(0), true_low(0), tr_rang(0), sum(0), n_high(0),
n_low(0), n_range(0), ratio(0), log_ratio(0), log_n(0);


n = length;
true_high = @Maxlist(high, close[1]);
true_low = @MinList(low, close[1]);
tr_rang = true_high - true_low;
sum = @summation(tr_rang, n);
n_high = @highest(true_high, n);
n_low = @Lowest(true_low, n);
n_range = n_high - n_low;
ratio = sum/n_range;
log_ratio = Log(ratio);
log_n = Log(n);

ChopinessIndex=100*log_ratio/log_n


{ChopinessIndex Indicator}

Input: Ndays(14);
Plot1(ChopinessIndex(NDays),"Plot1");
Plot2(50,"Plot2");
IF CheckAlert Then Begin
  IF Plot1 Crosses Above Plot2 or Plot1 Crosses Below Plot2
  Then Alert = TRUE;
End;

{from Omega indicator download site ahile ago}








"Some days the fish do, in fact, bite."