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

Re: [amibroker] Another Chart Question



PureBytes Links

Trading Reference Links

And another version using Param() function to switch between views.



MA1=MA(C,5);

MA2=MA(C,15);

fill=Param("style",1,1,2,1);

style=IIf(fill==1,styleHistogram,IIf(fill==2,styleArea,Null));

Plot(MA1,"ma1",colorGreen,styleLine);

Plot(MA2,"ma2",colorRed,styleLine);

x=IIf(MA1 > MA2,MA2,MA1);

Plot(x,"",colorLightGrey,style);

Plot(MA2,"ma2",colorRed,style);

Plot(MA1,"",colorGreen,style);


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.502 / Virus Database: 300 - Release Date: 7/19/2003


------------------------ 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/