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

RE: [amibroker] Displaying composite



PureBytes Links

Trading Reference Links

I think it's because IIF returns an array and your data (~xxx) won't go 
into an array.

I may have a way round this. I'll have to look for it.


MSG

At 08:20 PM 28/07/2003 +0800, you wrote:
>Here is what I am doing with the composites, or at least trying to do. I
>have set up 3 individual charts for each "sector" composite, but would like
>it in a single panel.
>I want to be able to go through the stocks on my watchlist, then as I move
>through the panels for each stock see the composite of stocks according to
>their watchlist. These watchlists are comprised of stocks from a separate
>sector for each. Below is the indicator build for the composites. I cannot
>seem to get the IIF statement working and comes up with Bad Arguments for
>the IIF statement. I have also tried SectorID() as well with no success.
>Any positive suggestions appreciated.
>
>Chart = IIf(InWatchList(1), "~energy", IIf(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);
>
>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(myo, myh, myl, myC, "Candle", colorBlack,
>styleCandle+styleNoLabel);
>
>Cheers,
>Graham
>http://groups.msn.com/ASXShareTrading
>http://groups.msn.com/FMSAustralia
>
>
>-----Original Message-----
>From: Michael.S.G. [mailto:OzFalcon@xxxxxxxx]
>Sent: Monday, 28 July 2003 8:12 PM
>To: amibroker@xxxxxxxxxxxxxxx
>Subject: Re: [amibroker] Displaying composite
>
>
>Graham,
>
>I guess you have tried swapping the order of the plot statments?
>
><MSG>
>
>At 01:42 PM 28/07/2003 +0800, you wrote:
> >When I display a composite that is referenced by the foreign function I
> >have found it only displays the chart as far back as the stock selected
> >in the watchlist Eg I have a composite of my watchlist displayed in a
> >panel using the Foreign function to define the OHLC from the composite.
> >This data starts in 1985. Depending on which stock is selected for the
> >main panels the composite only shows the data over the same period. Eg
> >if the stock started trading in Aug 1998 that is where the composite
> >chart begins, from that date. The true values are ok for current dates,
> >it just seems to ignore everything before that start date.
> >Does anyone else find this happening?
> >
> >Graham
>
>
>
>------------------------ Yahoo! Groups Sponsor ---------------------~--> Buy
>Toner for Your Printer or Fax at LaserTonerSuperstore.com-Save 55%! We have
>your brand: HP, IBM, Canon, Xerox, Apple and many more for less!
>http://www.LaserTonerSuperstore.com
>http://us.click.yahoo.com/YmQqWC/qicGAA/ySSFAA/GHeqlB/TM
>---------------------------------------------------------------------~->
>
>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 http://docs.yahoo.com/info/terms/
>
>
>
>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 http://docs.yahoo.com/info/terms/



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Free shipping on all inkjet cartridge & refill kit orders to US & Canada. Low prices up to 80% off. We have your brand: HP, Epson, Lexmark & more.
http://www.c1tracking.com/l.asp?cid=5510
http://us.click.yahoo.com/GHXcIA/n.WGAA/ySSFAA/GHeqlB/TM
---------------------------------------------------------------------~->

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 http://docs.yahoo.com/info/terms/