You need the Advances - Declines for the NYSE.  Here's the formula to make 
appropriate composites:

// Breadth of NYSE
// Develops 4 composites that can be plotted or manipulated as you wish
// How to Run
// 1) Select Market - NYSE
// 2) Select an issue with a long history in the current ticker window
// 3) Set APPLY TO to use filter Market - NYSE
// 4) Set RANGE to one bar... 1 n last quotations
// 5) Press SCAN

//===================52 Weeks New NewLows==================================
NHi = (C> HHV(Ref(C,-1),250));
NLo = (C< LLV(Ref(C,-1),250));
AddToComposite(IIf(C > HHV(Ref(C, -1), 250), 1,0), "~NYSENewHi", "X"); //Find 
New Highs over the past 52 weeks. Same for lows next.
AddToComposite(IIf(C < LLV(Ref(C, -1), 250), 1,0), "~NYSENewLo", "X"); 
NewHigh = Foreign("~NYSENewHi","X");
NewLow = Foreign("~NYSENewLo","X");

DIFF_H_L = NewHigh-NewLow;

Plot(NewHigh,"NewHigh",colorGreen,styleThick);
Plot(NewLow,"NewLow",colorRed,styleThick);
Plot(Diff_H_L,"Diff_H_L",colorPlum,styleThick);

//===================Advance/Decline Issues
AddToComposite(IIf(C - Ref(C, -1) > 0, 1,0), "~NYSEAdv", "X" );
AddToComposite(IIf(Ref(C, -1) - C > 0, 1,0), "~NYSEDec", "X" );
Adv = Foreign("~NYSEAdv","X");
Dec = Foreign("~NYSEDec","X");
DIFF_A_D = Adv-Dec;

Plot(Adv,"Adv",colorBlack,styleThick);
Plot(Dec,"Dec",colorBrown,styleThick);
Plot(Diff_A_D,"Diff_A_D",colorBrown,styleLine);
Filter = C;
Buy = NHi;
Sell = NLo;


AddTextColumn(FullName(),"Full name",77,colorPlum, IIf(Close 
<1.00,colorYellow,colorDefault ) );
Result = WriteIf(Buy,"Buy","Sell");
AddTextColumn( WriteIf(Buy, "Buy" , "Sell" ) , "TRADE" ,  5 ,   
IIf(Buy,colorYellow, colorWhite), IIf(Buy, colorDarkGreen, colorDarkRed) );
//AddTextColumn(Result,"Trade", 
formatChar,IIf(Buy,colorDarkGreen,colorLightYellow ), 
IIf(Sell,colorPink,colorLime));
AddTextColumn(IndustryID(1) ,"     Industry Sector      ", 25.0, colorWhite, 
colorBlue);
AddColumn( Close, "Close", 1.2, IIf( ROC(C, 1 ) >= 0, colorDarkGreen,colorRed 
),50 );
AddColumn(NHi,"52 Wk High",1.2,colorBrown);
AddColumn(NLo,"52 Wk Low",1.2,colorDarkBlue);
//AddColumn (NHi-NLo/NHi*100,"% Dif Hi_Lo", 3.2, colorYellow,colorGreen);
AddColumn( ( (HHV(C,252))-LLV(C,252))/(HHV(C,252))*100,"% Dif Hi_Lo", 3.2, 
colorYellow,colorGreen);
Buy = ExRem(Buy,Sell);
Sell = ExRem(Sell,Buy);
_SECTION_END();

That should do it  .... good luck

Dick H

--- In [email protected], "davidjohnkenyon" <dave.ken...@...> wrote:
>
> Hi
> 
> I seem to be going around in circles....
> 
> Could somebeody please give a complete listing that will allow me to plot the 
> NYSE McLellan Oscillator?  I'm only using the free EOD data from Yahoo.
> 
> I'm new to this and just confusing myself!
> 
> Thanks
>


Reply via email to