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

Re: [amibroker] Add to Composite Question



PureBytes Links

Trading Reference Links

Duke/Dave,

Below is a copy of a post I sent back on the 8th Sept 04. These are
detailed instructions for setting up the AD-Line in AmiBroker. I hope
that is what you are after, reading your post I'm not 100% sure so post
back if its different.


You can also see here http://www.amibroker.com/newsletter/04-2000.html


----Copied from previous post---

Most of the indicators should work without any problems. i.e. RSI OBV
but the AD-Line is different.
Before you can use the AD-Line you will need to configure some base
indexes for each market of interest and then run the calculate
composite tool.
(I'll use the Nasdaq market as an example, if you don't have a Nasdaq
market, use the market that you have available)


1) Configuring the base index ticker for each market:
My ticker name for the Nasdaq index is !COMP, this ticker is
supplied to me by my data provider (QuotesPlus).
You need to set this ticker as an AmiBroker index by right clicking on the ticker in the
workspace, then select Information and tick the Index box.
You also need to make sure this ticker is in the Nasdaq market by
selecting Nasdaq from the Market drop down list box. Click OK


2) Setting the base indexes for the market composites:
Main menu--Symbol\Categories\Market\Composites
Click on the market (Nasdaq) and select the !COMP from the drop down
composite list box. Click OK


3) Perform the composite recalculation:
Main menu--Symbol\Calculate Composites
Click the Delete button.
Tick the Number of Advancing/Declining Issues box.
Select Last n Quotes and enter the number of bars (i.e 252 for one year with daily data).
Select Nasdaq from This Market drop down list box.
Click Calculate button.

You should now see the AD-Line in the chart pane for all stocks in the AmiBroker Nasdaq
Market.


Regards,
William Peters
www.amitools.com


Sunday, October 10, 2004, 9:25:13 AM, you wrote:


DJC> Dave,
 
DJC> I too would like to see some examples as I have dug through
DJC> the archives and was unable to see some code examples.
DJC> Unfortunately, there are no examples in the help files
DJC> either.  I have been able to make AD Lines using other
DJC> methods that I found in the archives but these may not be as
DJC> efficient as the native functions Tomasz has built in to
DJC> AFL.  Maybe a kind soul will help us out. :-)
 
DJC> Duke Jones, CMT
DJC> www.sectorrotationfund.com
 
DJC>    _____  

DJC> From: Dave McLeod [mailto:dmcleod1981@xxxxxxxxx] 
DJC> Sent: Saturday, October 09, 2004 9:20 PM
DJC> To: amibroker@xxxxxxxxxxxxxxx
DJC> Subject: Re: [amibroker] Add to Composite Question
 

DJC> I have built some composites but I have not been able to
DJC> figure out how to use the ADLine() or the AdvIssues()
DJC> /Declssues() to create an advance decline line. Does anyone
DJC> have an example they could show me how this is used with
DJC> composites?


DJC> Thanks

DJC> DM





------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

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