requested nse sector scan for amibroker

rvlv

Active Member
#1
Hi friends
here is scan from bangladesh coder for their market
can somebody modify this one time to suit nseindia sectors please
https://www.wisestocktrader.com/indicator_parts/2906.txt
afl code
// Downloaded From https://www.WiseStockTrader.com
//https://www.wisestocktrader.com/indicator_parts/2906.txt
//================================================== ===================
//background stock name (works only on Amibroker version 5.30 onwards.
//================================================== ===================
_SECTION_BEGIN("Name");
GfxSetOverlayMode(1);
GfxSelectFont("Tahoma", Status("pxheight")/12 );
GfxSetTextAlign( 6 );// center alignment
//GfxSetTextColor( ColorRGB( 220, 220, 220 ) );
GfxSetTextColor( ColorHSB( 111, 111, 111 ) );
GfxSetBkMode(0); // transparent
GfxTextOut( Name(), Status("pxwidth")/2, Status("pxheight")/12 );
GfxSelectFont("Tahoma", Status("pxheight")/18 );
GfxTextOut( "Sector Analysis", Status("pxwidth")/2, Status("pxheight")/5 );
GfxSelectFont("Tahoma", Status("pxheight")/36 );
_SECTION_END();
//================================================== ====================================//Sector Analysing.....copy right @ Rafi......E-Mail [email protected]
N=Param("Smoother",5, 1, 100, 1 );

_SECTION_BEGIN("BANK");
BANK = ParamToggle("BANK","Off|On",0);
S1 = Foreign( "ABBANK", "Close" ) ;
S2 = Foreign( "ALARABANK", "Close" ) ;
S3 = Foreign( "BANKASIA", "Close" ) ;
S4 = Foreign( "BRACBANK", "Close" ) ;
S5 = Foreign( "CITYBANK", "Close" ) ;
S6 = Foreign( "DHAKABANK", "Close" ) ;
S7 = Foreign( "DUTCHBANGL", "Close" ) ;
S8 = Foreign( "EBL", "Close" ) ;
S9 = Foreign( "EXIMBANK", "Close" ) ;
S10= Foreign( "FIRSTSBANK", "Close" ) ;
S11= Foreign( "ICBIBANK", "Close" ) ;
S12= Foreign( "IFIC", "Close" ) ;
S13= Foreign( "ISLAMIBANK", "Close" ) ;
S14= Foreign( "JAMUNABANK", "Close" ) ;
S15= Foreign( "MERCANBANK", "Close" ) ;
S16= Foreign( "MTBL", "Close" ) ;
S17= Foreign( "NBL", "Close" ) ;
S18= Foreign( "NCCBANK", "Close" ) ;
S19= Foreign( "ONEBANKLTD", "Close" ) ;
S20= Foreign( "PREMIERBAN", "Close" ) ;
S21= Foreign( "PRIMEBANK", "Close" ) ;
S22= Foreign( "PUBALIBANK", "Close" ) ;
S23= Foreign( "RUPALIBANK", "Close" ) ;
S24= Foreign( "SHAHJABANK", "Close" ) ;
S25= Foreign( "SIBL", "Close" ) ;
S26= Foreign( "SOUTHEASTB", "Close" ) ;
S27= Foreign( "STANDBANKL", "Close" ) ;
S28= Foreign( "TRUSTBANK", "Close" ) ;
S29= Foreign( "UCBL", "Close" ) ;
S30= Foreign( "UTTARABANK", "Close" ) ;
AvgBankClose = (S1+S2+S3+S4+S5+S6+S7+S8+S9+S10+S11+S12+S13+S14+S15+S16+S17+S18+S19+S20+ S21+S22+S23+S24+S25+S26+S27+S28+S29+S30)/30;Banksmoother=MA(AvgBankClose,N);
if(BANK==1)
Plot(Banksmoother,"", ParamColor( "Bank Color", colorRed ), ParamStyle("Bank Style", styleLine|styleNoLabel|styleThick|styleOwnScale, mask = maskAll) );
_SECTION_END();

_SECTION_BEGIN("Insurance");
Insurance = ParamToggle("Insurance","Off|On",0);
in1 = Foreign( "AGRANINS", "Close" ) ;
in2 = Foreign( "ASIAINS", "Close" ) ;
in3 = Foreign( "ASIAPACINS", "Close" ) ;
in4 = Foreign( "BGIC", "Close" ) ;
in5 = Foreign( "CENTRALINS", "Close" ) ;
in6 = Foreign( "CITYGENINS", "Close" ) ;
in7 = Foreign( "CONTININS", "Close" ) ;
in8 = Foreign( "DELTALIFE", "Close" ) ;
in9 = Foreign( "DHAKAINS", "Close" ) ;
in10= Foreign( "EASTERNINS", "Close" ) ;
in11= Foreign( "EASTLAND", "Close" ) ;
in12= Foreign( "FAREASTLIF", "Close" ) ;
in13= Foreign( "FEDERALINS", "Close" ) ;
in14= Foreign( "GLOBALINS", "Close" ) ;
in15= Foreign( "GREENDELT", "Close" ) ;
in16= Foreign( "ISLAMIINS", "Close" ) ;
in17= Foreign( "JANATAINS", "Close" ) ;
in18= Foreign( "KARNAPHULI", "Close" ) ;
in19= Foreign( "MEGHNALIFE", "Close" ) ;
in20= Foreign( "MERCINS", "Close" ) ;
in21= Foreign( "NATLIFEINS", "Close" ) ;
in22= Foreign( "NITOLINS", "Close" ) ;
in23= Foreign( "NORTHRNINS", "Close" ) ;
in24= Foreign( "PARAMOUNT", "Close" ) ;
in25= Foreign( "PEOPLESINS", "Close" ) ;
in26= Foreign( "PHENIXINS", "Close" ) ;
in27= Foreign( "PIONEERINS", "Close" ) ;
in28= Foreign( "POPULARLIF", "Close" ) ;
in29= Foreign( "PRAGATIINS", "Close" ) ;
in30= Foreign( "PRAGATILIF", "Close" ) ;
in31= Foreign( "PRIMEINSUR", "Close" ) ;
in32= Foreign( "PRIMELIFE", "Close" ) ;
in33= Foreign( "PROGRESLIF", "Close" ) ;
in34= Foreign( "PROVATIINS", "Close" ) ;
in35= Foreign( "PURABIGEN", "Close" ) ;
in36= Foreign( "RELIANCINS", "Close" ) ;
in37= Foreign( "REPUBLIC", "Close" ) ;
in38= Foreign( "RUPALIINS", "Close" ) ;
in39= Foreign( "RUPALILIFE", "Close" ) ;
in40= Foreign( "SANDHANINS", "Close" ) ;
in41= Foreign( "SONARBAINS", "Close" ) ;
in42= Foreign( "STANDARINS", "Close" ) ;
in43= Foreign( "TAKAFULINS", "Close" ) ;
in44= Foreign( "UNITEDINS", "Close" ) ;
AvgGeneralInsuranceClose = (IN1+IN2+IN3+IN4+IN5+IN6+IN7+IN8+IN9+IN10+IN11+IN12+IN13+IN14+IN15+IN16+IN17+IN18+IN19+IN20+IN21+IN22+IN23+IN24+IN25+IN26+IN27+IN28+IN29+IN30+IN31+IN32+IN33+IN34+IN35+IN36+IN37+IN38+IN39+IN40+IN41+IN42+IN43+IN44)/44;
GeneralInsurancesmoother=MA(AvgGeneralInsuranceClose,N);
if(Insurance==1)
Plot(GeneralInsurancesmoother,"", ParamColor( "Gen.Ins Color", colorYellow ), ParamStyle("Gen.Ins Style", styleLine|styleNoLabel|styleThick|styleOwnScale, mask = maskAll) );
_SECTION_END();

_SECTION_BEGIN("Financial Institutions");
Financial = ParamToggle("Financial","Off|On",0);
f1 = Foreign( "BAYLEASING", "CLOSE" ) ;
f2 = Foreign( "BDFINANCE", "CLOSE" ) ;
f3 = Foreign( "BIFC", "CLOSE" ) ;
f4 = Foreign( "DBH", "CLOSE" ) ;
f5 = Foreign( "FLEASEINT", "CLOSE" ) ;
f6 = Foreign( "ICB", "CLOSE" ) ;
f7 = Foreign( "IDLC", "CLOSE" ) ;
f8 = Foreign( "ILFSL", "CLOSE" ) ;
f9 = Foreign( "IPDC", "CLOSE" ) ;
f10= Foreign( "ISLAMICFIN", "CLOSE" ) ;
f11= Foreign( "LANKABAFIN", "CLOSE" ) ;
f12= Foreign( "MIDASFIN", "CLOSE" ) ;
f13= Foreign( "NHFIL", "CLOSE" ) ;
f14= Foreign( "PHOENIXFIN", "CLOSE" ) ;
f15= Foreign( "PLFSL", "CLOSE" ) ;
f16= Foreign( "PREMIERLEA", "CLOSE" ) ;
f17= Foreign( "PRIMEFIN", "CLOSE" ) ;
f18= Foreign( "ULC", "CLOSE" ) ;
f19= Foreign( "UNIONCAP", "CLOSE" ) ;
f20= Foreign( "UTTARAFIN", "CLOSE" ) ;
AvgFinanceClose=(f1+f2+f3+f4+f5+f6+f7+f8+f9+f10+f11+f12+f13+f14+f15+f16+f17+f18+f19+f20)/20;
Financesmoother=MA(AvgFinanceClose,N);
if(Financial==1)
Plot(Financesmoother,"", ParamColor( "Finance Color", colorBrightGreen ), ParamStyle("Finance Style", styleLine|styleNoLabel|styleThick|styleOwnScale, mask = maskAll) );
_SECTION_END();

_SECTION_BEGIN("Engineering");
Engineering = ParamToggle("Engineering","Off|On",0);
en1 = Foreign( "AFTABAUTO", "Close" ) ;
en2 = Foreign( "ANWARGALV", "Close" ) ;
en3 = Foreign( "ATLASBANG", "Close" ) ;
en4 = Foreign( "AZIZPIPES", "Close" ) ;
en5 = Foreign( "BDAUTOCA", "Close" ) ;
en6 = Foreign( "BDLAMPS", "Close" ) ;
en7 = Foreign( "BDTHAI", "Close" ) ;
en8 = Foreign( "BSRMSTEEL", "Close" ) ;
en9 = Foreign( "DESHBANDHU", "Close" ) ;
en10 = Foreign( "ECABLES", "Close" ) ;
en11 = Foreign( "GOLDENSON", "Close" ) ;
en12 = Foreign( "KAY&QUE", "Close" ) ;
en13 = Foreign( "MONNOSTAF", "Close" ) ;
en14 = Foreign( "NAVANACNG", "Close" ) ;
en15 = Foreign( "NPOLYMAR", "Close" ) ;
en16 = Foreign( "NTLTUBES", "Close" ) ;
en17 = Foreign( "OLYMPIC", "Close" ) ;
en18 = Foreign( "QSMDRYCELL", "Close" ) ;
en19 = Foreign( "RANFOUNDRY", "Close" ) ;
en20 = Foreign( "RENWICKJA", "Close" ) ;
en21 = Foreign( "SALAMCRST", "Close" ) ;
en22 = Foreign( "SINGERBD", "Close" ) ;

AvgEngineeringClose= (en1+en2+en3+en4+en5+en6+en7+en8+en9+en10+en11+en12+en13+en14+en15+en16+en17+en18+en19+en20+en21+en22)/22;
Engineeringsmoother=MA(AvgEngineeringClose,N);
if(Engineering==1)
Plot(Engineeringsmoother,"", ParamColor( "Engineering Color", colorTurquoise ), ParamStyle("Engineering Style", styleLine|styleNoLabel|styleThick|styleOwnScale, mask = maskAll) );
_SECTION_END();

_SECTION_BEGIN("Textile");
Textile = ParamToggle("Textile","Off|On",0);
L1 = Foreign( "AL-HAJTEX", "Close" ) ;
L2 = Foreign( "ALLTEX", "Close" ) ;
L3 = Foreign( "ANLIMAYARN", "Close" ) ;
L4 = Foreign( "APEXSPINN", "Close" ) ;
L5 = Foreign( "CMCKAMAL", "Close" ) ;
L6 = Foreign( "DACCADYE", "Close" ) ;
L7 = Foreign( "DELTASPINN", "Close" ) ;
L8 = Foreign( "DSHGARME", "Close" ) ;
L9 = Foreign( "DULAMIACOT", "Close" ) ;
L10 = Foreign( "HRTEX", "Close" ) ;
L11 = Foreign( "MAKSONSPIN", "Close" ) ;
L12 = Foreign( "MALEKSPIN", "Close" ) ;
L13 = Foreign( "METROSPIN", "Close" ) ;
L14 = Foreign( "MITHUNKNIT", "Close" ) ;
L15 = Foreign( "MODERNDYE", "Close" ) ;
L16 = Foreign( "PRIMETEX", "Close" ) ;
L17 = Foreign( "RAHIMTEXT", "Close" ) ;
L18 = Foreign( "RNSPIN", "Close" ) ;
L19 = Foreign( "SAFKOSPINN", "Close" ) ;
L20 = Foreign( "SAIHAMTEX", "Close" ) ;
L21 = Foreign( "SONARGAON", "Close" ) ;
L22 = Foreign( "SQUARETEXT", "Close" ) ;
L23 = Foreign( "STYLECRAFT", "Close" ) ;
L24 = Foreign( "TALLUSPIN", "Close" ) ;
AvgTextileClose= (L1+L2+L3+L4+L5+L6+L7+L8+L9+L10+L11+L12+L13+L14+L15+L16+L17+L18+L19+L20+L21+L22+L23+L24)/24;
Textilesmoother=MA(AvgTextileClose,N) ;
if(Textile==1)
Plot(Textilesmoother,"", ParamColor( "Textile Color", colorWhite ), ParamStyle("Textile Style", styleLine|styleNoLabel|styleThick|styleOwnScale, mask = maskAll) );
_SECTION_END();
 

Similar threads