Exclude a sector

Hello,

how can I program in an setup to exclude a sector for example GICSID (.... I know the Filter settings but I would write down this in a code using Norgate

Setup =  C > 5 and not GICSID(25101010 )   // C >5 and exclude all Auto Parts ..)

Any help for a beginner . Thanks.

thanks a lot. Like always. :smiley:

I'm a beginner myself, but I think you are looking for InGics("25101010").
https://www.amibroker.com/guide/afl/ingics.html

2 Likes

Yes, that one is better than using GicsID() function.

So

SetUp = C > 5 AND NOT InGics("25101010");

Or

if ( InGics("25101010") ) {
    Setup = False;
    
} else {
    SetUp = C > 5;
    // Do something else in addition
}
1 Like

thanks this works. :smiley:

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