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

Re: [amibroker] Re: StyleCandle with AddToComposite Indices Builder



PureBytes Links

Trading Reference Links









Graham,

 

Thanks for help. That’s working now
with candles. Building my knowledge base sloooooowly!

 



<span
>Regards,

<span
>
Gordon Sutherland



 

<span
>-----Original Message-----
From: Graham
[mailto:gkavanagh@xxxxxxxxxxxxx] 
Sent: Tuesday, 22 June 2004 2:53
p.m.
To: amibroker@xxxxxxxxxxxxxxx
Subject: RE: [amibroker] Re:
StyleCandle with AddToComposite Indices Builder

<font size=3
face="Times New Roman"> 

<font size=2
face="Courier New">You just need to call up the
foreign data and plot as normal candle chart<font size=2
face="Courier New">

Easiest to use

PlotForeign( tickersymbol, name, color/barcolor,
 |
styleOwnScale, minvalue = {empty}, maxvalue =
{empty} )

But I notice you are taking an average of the
price values per ticker
numbers

So try

SetForeign( "~S_Energy " )
PlotOHLC( O/I, H/I, L/I, C/I, "energy",
colorblack, stylecandle);


Cheers,
Graham
http://e-wire.net.au/~eb_kavan/

-----Original Message-----
From: Gordon Sutherland [mailto:gosuth@xxxxxxxxxx]

Sent: Tuesday, June 22, 2004 10:35 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Re: StyleCandle with
AddToComposite Indices Builder

Hi All,

I am trying to create Group/Industry Indices,
having got to the stage where
I have built my Sector Pyramid of
Groups/Industries/Stocks (big thanks to
Graham for sending me his Australian GICS
breakout). Using AB Help, I have
used the example code to create an Index of the
Aussie Energy Sector - this
seems to work when plotted. However, I would like
to have my Indices
plotting in Candlestick format using OHLC (this
may be possible but may not
add much in due course but.). Is this possible
with AB? I have been used to
this format in AIQ.

This is what I have used so far and I am not sure
how to proceed to the
Candlestick level:

// Create Composite Indices
// SYNTAX  AddToComposite( array,
"ticker", "field", flags = atcFlagDefaults
) 

/* AddToComposite statements are for Automatic
Analysis -> Scan */
/* add Close price to our index OHLC fields */
AddToComposite(O+H+L+C, "~S_Energy",
"X" );

/* add one to open interest field (we use this
field as a counter) */
AddToComposite( 1, "~S_Energy",
"I" );

Buy = 0; // required by scan mode

/* this part is for Indicator Builder */
Graph0 = Foreign( "~S_Energy",
"C" )/Foreign( "~S_Energy", "I" );

Regards,

Gordon Sutherland







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

Check group FAQ at:
<a
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html

Yahoo! Groups Links







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

Check group FAQ at: <a
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html










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

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








Yahoo! Groups Sponsor


  ADVERTISEMENT 












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 the Yahoo! Terms of Service.