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

[amibroker] Re: Question on Layouts



PureBytes Links

Trading Reference Links

Anthony,

I did get it to work but it took some fooling around.  Just listing 
the IIF() statements did not work but nesting them did.

I created a custom indicator called "Custom Chart 1".  Then added the 
code.  My final code is as follows:

//Custom Chart 1
//Contains two stocks(Candlestick Style)and six (Line Style)
//Using nest IIf()'s 

style=IIf(Name() == "Stock Ticker 1",styleCandle,
style=IIf(Name() == "Stock Ticker 2",styleCandle,
style=IIf(Name() == "Fund Ticker 1",styleLine,
style=IIf(Name() == "Fund Ticker 2",styleLine,
style=IIf(Name() == "Fund Ticker 3",styleLine,
style=IIf(Name() == "Fund Ticker 4",styleLine,
style=IIf(Name() == "Fund Ticker 5",styleLine,
style=IIf(Name() == "Fund Ticker 6",styleLine,styleCandle))))))));

style=LastValue(style); 

Plot(C,"",colorBlack,style);

Then I added the ticker windows to create a Global Layout and saved 
it. Thank you for starting me out. Sometimes I need a nudge.

Ed


--- In amibroker@xxxxxxxxxxxxxxx, "Anthony Faragasso" <ajf1111@xxxx> 
wrote:
> Hello,
>  
> One solution could be to create you own custom charts using the 
following :
>  
> example:
> style=IIf(Name()=="CSCO",styleLine,styleCandle);//you could insert 
your
> Mutual funds ...etc.
> style=LastValue(style);
> Plot(C,"",colorBlack,style);
> Anthony
>  
> -------Original Message-------
>  
> From: amibroker@xxxxxxxxxxxxxxx
> Date: Friday, March 21, 2003 9:16:30 PM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] Question on Layouts
>  
> I set up two Global layouts, one for Mutual Funds and one for 
> stocks.  When I set the Price Chart style for "line" in the Mutual 
> Fund layout it changes the Stock layout to line style as well.  
When 
> I save the Mutual Fund layout and doubleclick on the stock layout 
and 
> change the chart style to "Candlesticks" and save the layout it 
also 
> changes the Mutual Fund layout even though I saved the Mutual Fund 
> layout with "Line" chart style.
>  
> I have a similar problem when I have a stock and three mutual funds 
> in one layout. It seems that they all have to be the same chart 
> style.  I can't seem to get the stock with candlesticks and the 
funds 
> with line style to be saved.
>  
> Am I looking for capabilities that aren't there?
>  
> Ed
>  
>  
> Yahoo! Groups Sponsor
> ADVERTISEMENT
>  
>  
>  
>  
> Send BUG REPORTS to bugs@xxxx
> Send SUGGESTIONS to suggest@xxxx
> -----------------------------------------
> 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 ---------------------~-->
Your own Online Store Selling our Overstock.
http://us.click.yahoo.com/rZll0B/4ftFAA/46VHAA/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/