Finally I have found something without the "for" loop ...

   b= Foreign("^DJI","Close");  

   Rapport1 = C/b;  
   basepricedetest1 = MA(Rapport1,13);  
   Courbemansfield1 = ((Rapport1/basepricedetest1));
  
   Filter = 1 ;
   AddColumn(Courbemansfield1,"Mansfield",1.3);
   SetSortColumns(-3);

I have got a sorted array .
But before to obtain the result I must click with my mouse in the "analysis 
windows" on the option button "use filter" and on the button "define" and 
checks the box "indexes" on .

The better way will be to say the same thing in AFL code ...

The line to change is "filter = 1 ;"
wich will become ?  filter = sectorID;

Ideas are welcome ...


Reply via email to