Advance and decline line simbol in iqfeed

I order to code some breadth indicators I need the Advance and Decline line. But I have the doubt of which tickers (from IQFeed) I should take since I have found some of them very similar.
For instance, when I have coded the McClellan indicator, I get very different results if I take “IINA.Z” (NYSE ISSUES ADVANCES) and “IIND.Z” (NYSE ISSUES DECLINES) instead “IIAA.Z” (NYSE MKT ISSUES ADVANCES) and “IIAD.Z” (NYSE MKT ISSUES DECLINES)

//MCCLELLAN

UpNYSE = Foreign("IINA.Z", "Close"); // UpNYSE = Foreign("IIAA.Z", "Close"); 
DownNYSE = Foreign("IIND.Z", "Close"); // DownNYSE = Foreign("IIAD.Z", "Close");

NetNYSE = UpNYSE - DownNYSE;

Maclellan = EMA(NetNYSE, 19)-EMA(NetNYSE, 39);

Plot(Maclellan , "McClellan NYSE", colorBlue, styleLine+styleThick);
Plot(-100, "Lower band", colorGreen, styleLine+styleDashed);
Plot(100, "Upper band", colorRed, styleLine+styleDashed);

As you can check, the result is completily different depending on the ticker you chose.

Anybody knows which are the right ticker I should take?

Thank you in advance…

You need to ask IQFeed support what exactly they are including in those market stats, but IINA should be NYSE-only while IIAA has wider “all” scope.

1 Like

Just to tell everybody I asked to IQfeed and we should use IINA.Z and IIND.Z. But there already is a proper ticker to give the difference betwen them JINT.Z
I give you the regarding breadth indicators

_SECTION_BEGIN("McLellan");

maclellan=EMA(Foreign("JINT.Z","C"),19)-EMA(Foreign("JINT.Z","C"),39);
COLORMAC = ParamColor ("color MAC", 11);
STYLEMAC = ParamStyle("style MAC", styleLine|styleThick);

Plot(maclellan,"McClellan", COLORMAC, STYLEMAC);

UP1 = Param("UP LINE 1", 100, 0, 150, 10);
COLORUP1 = ParamColor ("color UP1", colorGrey50);
STYLEUP1 = ParamStyle("style UP1", styleDashed);

UP2 = Param("UP LINE 2", 200, 150, 250, 10); 
COLORUP2 = ParamColor ("color UP2", colorBlue);
STYLEUP2 = ParamStyle("style UP", styleLine);

DOWN1 = Param("DOWN LINE 1", -100, -150, 0, 10);
COLORDOWN1 = ParamColor ("color DOWN1", colorGrey50);
STYLEDOWN1 = ParamStyle("style DOWN1", styleDashed);

DOWN2 = Param("DOWN LINE 2", -200, -250, -150, 10);
COLORDOWN2 = ParamColor ("color DOWN2", colorBlue);
STYLEDOWN2 = ParamStyle("style DOWN2", styleLine);

Plot(UP1,"UP LINE 1", COLORUP1, STYLEUP1);
Plot(UP2,"UP LINE 2", COLORUP2, STYLEUP2);

Plot(DOWN1,"DOWN LINE 1", COLORDOWN1, STYLEDOWN1);
Plot(DOWN2,"DOWN LINE 2", COLORDOWN2, STYLEDOWN2);

Plot(0,"0 LINE", colorGreen, styleLine);

_SECTION_END();
1 Like