Data between K line & AddColumn are inconsistent

Hey guys,

I want to rank every close of symbols, and here's the issue:
—Day before 2002/5/16: the rank were all correct.
—Day after 2005/5/16: more and more close of symbol are empty on the AddColumn, but the data on the K line are normal, i'm wondering why is that.

Here're the part of the screenshot and the code below, thank you.

Version(6.40);

Mainlist = GetCategorySymbols(categoryWatchlist, 1);

if (Status( "StockNum" ) == 0 )
{
	StaticVarRemove("ValuesToSort*");
	StaticVarRemove("rank*");
	
	for (i = 0; (Sym = StrExtract(Mainlist, i)) != ""; i++)
	{
		SetForeign(Sym);
		SymClose =  Close;
		RestorePriceArrays();
		StaticVarSet("ValuesToSort" + Sym, SymClose);
	}
	StaticVarGenerateRanks("rank", "ValuesToSort", 0, 1224);

}
Close_Price = StaticVarGet("ValuesToSort" + Name());
Close_Price_Rank = StaticVarGet("rankValuesToSort" + Name());

Filter = 1;
AddColumn(Close_Price, "Close");
AddColumn(Close_Price_Rank, "Close_Rank");
SetSortColumns(2, 4);

See symbol 100220.SH_C

1260

1261

Your watchlist defined in AFL code and the watchlist set in Filter of analysis toolbar appear to be not the same ones.

What do you get if using this one

Mainlist = GetCategorySymbols(categoryWatchlist, GetOption("FilterIncludeWatchlist"));

and then clearing all Filters and then choosing watchlist number there.

Also enable pad&align in analysis general settings.

Hi, @fxshrat

Thank you so much for your great help.

The index of my GetCategorySymbols code is 1, same as my filters setting.

B

A

Can't understand why was this happened. May i ask what else info do i need to provide?

Appreciated.

This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.