PureBytes Links
Trading Reference Links
|
Example, on the attached gif: at the yellow arrow, the 10 day net change of
the Dow was -164 points, but the NDX net change when converted to Dow
points was -1036 points. In the coming weeks the Dow dropped 20% while the
NDX dropped 28%
David
PS please don't make fun of my code and sorry for the banners on the gif
User Function Net_Change:
Inputs: Price(NumericSeries);
Net_Change = Price - Price[1]
Indicator NDay Net Change:
{Compares the cumulative 10 day net change of the DJIA with that of any
other index of lesser numeric value.
Plot data1 as DJIA and data2 as NDX, SPX or Russell 2000}
Inputs: Price1(C data1), Price2(C data2), SumLen(10);
Plot1(Summation(Net_Change(Price1), SumLen));
Plot2((C data1/C data2) * Summation(Net_Change(Price2), SumLen));
Attachment:
diverge.gif
Attachment:
Description: "Description: GIF image"
|