[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Re: Composites on Industries Not Watchlists



PureBytes Links

Trading Reference Links

Should be similar:

NumOfIndustry = 200; // or the actual number (max 256)
for(w=0;w<NumOfIndustry;w++) // note that the loop starts from 0, not 1
  {
   if(IndustryID() == w) 
   {
    Comp = "~"+CategoryGetName(categoryIndustry,w);
    AddToComposite(C,Comp,"C");
    AddToComposite(1,Comp,"I");
   }
  }
  
Buy=0;