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

[amibroker] total volume of advance/decline stock



PureBytes Links

Trading Reference Links

hello,
I want to creat ticker for total volume of advance &
decline. I tried to code, which is given below:-

Avol=IIf(ROC(C,1)>0,V,-1e10);
dvol=IIf(ROC(C,1)<0,V,-1e10);
AddToComposite(Avol,"~avol","X"); 
AddToComposite(dvol,"~dvol","X"); 

Is it correct? Can someone help me?

regards
johnny

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/