Thanks Keith. I've only briefly looked at the documentation. My fault. Sorry for premature questions.
I do appreciate your input and will look into all of the resources. Thanks, Levi --- In [email protected], Keith McCombs <kmcco...@...> wrote: > > Levi -- > This is not a direct answer to your question. > > However, I know you are a relatively new AmiBroker user. And so thought > you might be interested to know that there is much already in AmiBroker > that may do what you want. > > 1. There is the AmiBroker Users Guide in .pdf format, here: > http://www.amibroker.com/bin/UsersGuide.pdf > I suggest you download and save it on your computer for quick reference > if the future. > > 2. View the Users Guide with Adobe reader (free). Use search to find > ADline (if you didn't know about ADline, you could search for Advance > first. That would quickly get you to ADLINE, and you can then start > your search anew for adline). There are 14 entries for adline, the last > on page 802 is the most useful, because it contains a link to a Tips > newsletter written by TJ, 4/2000: > http://www.amibroker.com/newsletter/04-2000.html > > 3. Tip 2. Tutorial: Working with composites explains how to set up > AmiBroker to calculate the adline() function for the market you are > interested in. Notice that you can specify the date range. You > probably want to pick a starting date such that it will be in your data > base long into the future and your start value will not keep changing. > > 4. BTW, if you may want to read how AB calculates ADLine, see Users > Guide page 319. This is a bit different than your equation, but > probably will achieve the same overall effect. (the sqrt() will just > give you smaller numbers to work with). > > Hope this helps. > -- Keith > > levibreidenbach wrote: > > > > > > How to calculate A/D Line in AB? > > > > Assuming A/D Line = (Adv-Dec)+Previous value of A/D Line. > > > > For data, I have the daily Advances in one symbol, the Declines in > > another symbol. How would I create A/D Line. > > > > I've read to start with a large value, such as 100,000 then go from there. > > > > For example. On day 1, calculate as 100,000 + (Adv-Dec) > > > > On day 2, calculate as previous value (above) + (Adv-Dec) > > > > etc. > > > > My concern (because I don't know how to code this) is that each time I > > run exploration, it will calculate from the 100,000 and not the > > previous value. > > > > Thank You > > > > >
