Three ways. Count Per Ticker, Count Per Row (say when n = 10), alterative
Count Per Ticker.
// The start
if( LastValue( Status("stocknum") ) == 0)
StaticVarSet("counter", 0);
Filter = 1;
SetOption("NoDefaultColumns",True);
//SetBarsRequired( sbrAll );
CounterperSymbol = 1 + Cum(Flip(Status("firstbarinrange"),0 ) AND Filter );
CounterGlobal = StaticVarGet("counter") + CounterperSymbol;
AddColumn( CounterperSymbol, "per ticker",1);// To get counter per symbol
AddColumn( CounterGlobal, "global",1);// To get counter per row
StaticVarSet("counter",LastValue(CounterGlobal) );
Width_Name = 65;
Width_FullName = 295;
AddTextColumn(Name(),"Ticker",1, colorDefault, colorDefault, Width_Name);
AddTextColumn(FullName(),"----Name of Screened Fund---",1,
colorDefault, colorDefault, Width_Fullname);
StockNo = Status( "StockNum" ) + 1;
AddColumn(StockNo,"StockNo", 1.0);// Alternative to get counter per symbol only
// the end
--- In [email protected], "Ed H" <reefbreak...@...> wrote:
>
> Does anyone know how to create an Exploration column that has each row
> numbered?
>
> I would like to pick - say the top 200 stocks off of a list of 1000 without
> having to count each row.
>
> Thanks,
>
> Ed H (aka ReefBreak)
>