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

RE: [amibroker] One quick question



PureBytes Links

Trading Reference Links


Graham
That was much clearer thanks for the insight.
I got something else working for me.
I added to my price indicator the following:
sym =
"~"+IndustryID(1);
Plot(Foreign(Sym,"C"),"Index",colorYellow,styleOwnScale+4);
which just adds a yellow line of the industry index
that a particular stock belongs.  I use QP2 stock 
database.
Thanks.
Steve

At 10:19 AM 8/16/2003 +0800, you wrote:
Sorry, I use this for my
own created index of my watchlists
GraphXSpace = 2;
mycolor=IIf(C>O, colorBlue, IIf(C<O,colorRed,colorBlack));
Chart = WriteIf(InWatchList(1), "~energy",
WriteIf(InWatchList(2),
"~health", "~mining"));
O = Foreign(Chart,"O",1);
H = Foreign(Chart,"H",1);
L = Foreign(Chart,"L",1);
C = Foreign(Chart,"C",1);
OI = Foreign(Chart,"I",1);

Title =EncodeColor(LastValue(mycolor))+ Name()+ " " +Chart
+" Composite
Chart  "+Date()+ " ; O:" + O + ", H:" + H +
", L:" + L + ", C:" + C ; 
myO = Cum( (O/Ref(O,-1))-1 )/OI *1000 ;
myH = Cum( (H/Ref(H,-1))-1 )/OI *1000 ;
myL = Cum( (L/Ref(L,-1))-1 )/OI *1000 ;
myC = Cum( (C/Ref(C,-1))-1 )/OI *1000 ;
PlotOHLC(O, H, L, C, "Candle", colorBlack,
styleCandle+styleNoLabel); 

Cheers,
Graham
http://groups.msn.com/ASXShareTrading
http://groups.msn.com/FMSAustralia
-----Original Message-----
From: Steve Wiser
[mailto:slwiser@xxxxxxxxxxx]

Sent: Saturday, 16 August 2003 10:10 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: RE: [amibroker] One quick question

Thanks but this does not do what I think I want it to do.
This only points to an existing index that is in the database not one of
the
AddToComposite industry indices which I have developed.
Thanks
Steve
At 09:28 AM 8/16/2003 +0800, you wrote:

Use function
GetBaseIndex( ) 
Cheers,
Yahoo! Groups Sponsor
ADVERTISEMENT


Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
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 the Yahoo! Terms of Service. 

Yahoo! Groups Sponsor 
ADVERTISEMENT


Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
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 the Yahoo! Terms of Service. 

Steve Wiser






Yahoo! Groups Sponsor


  ADVERTISEMENT 









Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
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 the Yahoo! Terms of Service.

Attachment: Description: ""

Attachment: Description: ""