| 
Rank: Newbie
 Groups: Registered, Registered UsersJoined: 10/17/2010(UTC)
 Posts: 3
 
 | 
            
	      
                Hi,  Lets suppose 6 stocks 'ABB',ACC,'BEL','BHEL','BPCL','ITC' form an index. 
 Advance-Decline Lines can be plotted as below: { Adv:=	If(Security("ABB",C) > Ref(Security("ABB",C),-1),1,0) +  		If(Security("ACC",C) > Ref(Security("ACC",C),-1),1,0) +   		If(Security("BEL",C) > Ref(Security("BEL",C),-1),1,0) +  		If(Security("BHEL",C) > Ref(Security("BHEL",C),-1),1,0) +  		If(Security("BPCL",C) > Ref(Security("BPCL",C),-1),1,0) +  		If(Security("ITC",C) > Ref(Security("ITC",C),-1),1,0); 
 Dec:=	If(Security("ABB",C) < Ref(Security("ABB",C),-1),1,0) +  		If(Security("ACC",C) < Ref(Security("ACC",C),-1),1,0) +   		If(Security("BEL",C) < Ref(Security("BEL",C),-1),1,0) +  		If(Security("BHEL",C) < Ref(Security("BHEL",C),-1),1,0) +  		If(Security("BPCL",C) < Ref(Security("BPCL",C),-1),1,0) +  		If(Security("ITC",C) < Ref(Security("ITC",C),-1),1,0); 
 Adv; Dec} 
 I hope the above content is useful for understanding. 
 Regards, sdg 
 
 
 |