PureBytes Links
Trading Reference Links
|
In a message dated 11/21/00 7:23:17 PM Pacific Standard Time,
jbclem@xxxxxxxxxxxxxx writes:
<< I'm trying to set up the McClellan Summation Index formula(TS 4.0). I
took the official Omega McClellan Oscillator formula, plugged in a CUM and
tried it. What I got looked like the Summation Index, but the amounts were
about 3x too high(11/21 was +1446; the McClellan Osc was -5 which is about
right).
Here is my effort:
Plot1(Cum(Xaverage(Close of data1-Close of data2,19) of
data1-Xaverage(Close of data1-Close of data2,39) of data1,"McClellanSum");
This verifies; but I think the problem may be that I don't have a starting
point or starting number for the calculation. Can someone help me get this
right.
Also, I looked on the Omega site for the easy language formula section they
used to have, but it seems to have disappeared. Is it hidden somewhere?
Thanks, John
>>
John,
Below is the ELA code for the McClellan Oscillator function from TS2000i.
Hope this helps. If not, let me know and I'll try to give you a further hand.
Lee Scharpen
{*******************************************************************
Description : returns the McClellan Oscillator value
Provided By : Omega Research, Inc. (c) Copyright 1999
********************************************************************}
Inputs: AdvIssues(NumericSeries), DecIssues(NumericSeries),
FastLength(Numeric), SlowLength(Numeric);
Variables: PriceDiff(0);
PriceDiff = AdvIssues - DecIssues;
McClellanOsc = XAverage(PriceDiff, FastLength) of Data1 - XAverage(PriceDiff,
SlowLength) of Data1;
|