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

[amibroker] Customized OBV()



PureBytes Links

Trading Reference Links

I want to create some customized volume indicators.
 
I never backtest, I only want them to these desired custom AFL statements to display lines in custom indicator windows. 
 
 Directly below, I give a non-technical description of what OBV() does, and then I will attempt to describe the customized Volume indicators that I want to be able to test.
 
OBV() is like a huge Up-Day barrel that has the total  of the day's trading volume added to it if  the stock's  close of that day is higher that the open of that day. I think a more accurate name for OBV() would have been "UDV" meaning Up-Day volume.
 
Conversely, if a stock closes lower that it opened, then the volume for that day is removed from this Up-Day barrel. Obviously, OBV() can be positive, negative or it could theoretically have a value of zero.
 
I would like to have a  companion Down-Day barrel indicator "DDV" that I can use in conjunction with OBV().
 
Does anyone know how many bars that the Amibroker version of OBV() looks at as it is used in this below simple Plot statement. The number of days that this Amibroker OBV() looks at is unknown to me.

Plot(OBV(),"UpDayVol Grn",colorGreen,styleLine);

I would like to be able to specify the number of bars that  these desired UDV, and DDV  formulas  look at.  That way, I could see how the shorter time-frames compare with the longer time-frames.

I assume that I could simply add the UDV to the DDV in order to also plot the line of TDV, which is the total volume for that day. 

I played around with CUM() and SUM() , but it is not doing what I want.

Hopefully, someone will know how to do this, or at least make some suggestions of how to do it.  Ron D

 

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


Check AmiBroker web page at:
http://www.amibroker.com/

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




Yahoo! Groups Links

Internal Virus Database is out-of-date.
Checked by AVG Anti-Virus.
Version: 7.0.296 / Virus Database: 265.7.2 - Release Date: 1/21/2005