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

[amibroker] Playing with Colors



PureBytes Links

Trading Reference Links


Hi all,
 
Below is an expansion of William Peters' useful color.afl which now shows you what lines and histograms look like with your background.  Just click on a color from the band at the bottom, and you'll get a histogram and line of the same.  Hope this helps somebody.
 
Kind Regards,
Gary
 

//PARAMETERS
X = Param("Band Width",6,1,10,1);
Plot( 20, "", int(Cum(1/X)%56 ), styleOwnScale+styleArea+styleNoLabel,0,100);
Plot(80,"", SelectedValue(int(Cum(1/X)%56)),styleOwnScale+styleLine+styleThick,0,100);
Plot(Cum(1)%70,"",SelectedValue(int(Cum(1/X)%56)),styleOwnScale+styleHistogram+styleThick,0,100);
Title = "\n"
+ EncodeColor(0) + "0C1"
+ EncodeColor(1) + "1C2 "
+ EncodeColor(2) + "2C3 "
+ EncodeColor(3) + "3C4 "
+ EncodeColor(4) + "4C5 "
+ EncodeColor(5) + "5C6 "
+ EncodeColor(6) + "6C7 "
+ EncodeColor(7) + "7C8 "
+ EncodeColor(8) + "8C9 "
+ EncodeColor(9) + "9C10 "
+ EncodeColor(10) + "10C11 "
+ EncodeColor(11) + "11C12 "
+ EncodeColor(12) + "12C13 "
+ EncodeColor(13) + "13C14 "
+ EncodeColor(14) + "14C15 "
+ EncodeColor(15) + "15C16 "
+ "\n"
+ EncodeColor(16) + "16Blk "
+ EncodeColor(17) + "17Brn "
+ EncodeColor(18) + "18DOlvGn "
+ EncodeColor(19) + "19DGn "
+ EncodeColor(20) + "20DTeal "
+ EncodeColor(21) + "21DBlu "
+ EncodeColor(22) + "22Ind "
+ EncodeColor(23) + "23DGy "
+ EncodeColor(24) + "24DRd "
+ EncodeColor(25) + "25Orn "
+ EncodeColor(26) + "26DYel "
+ EncodeColor(27) + "27Gn "
+ EncodeColor(28) + "28Teal "
+ "\n"
+ EncodeColor(29) + "29Blu "
+ EncodeColor(30) + "30BluGy "
+ EncodeColor(31) + "31Gy40 "
+ EncodeColor(32) + "32Rd "
+ EncodeColor(33) + "33LOrn "
+ EncodeColor(34) + "34Lim "
+ EncodeColor(35) + "35SeaGn "
+ EncodeColor(36) + "36Aq "
+ EncodeColor(37) + "37LBlu "
+ EncodeColor(38) + "38Vio "
+ EncodeColor(39) + "39Gy50 "
+ EncodeColor(40) + "40Pnk "
+ EncodeColor(41) + "41Gld "
+ EncodeColor(42) + "42Yel "
+"\n"
+ EncodeColor(43) + "43BGn "
+ EncodeColor(44) + "44Trq "
+ EncodeColor(45) + "45SkyBlu "
+ EncodeColor(46) + "46Plm "
+ EncodeColor(47) + "47LGy "
+ EncodeColor(48) + "48Ros "
+ EncodeColor(49) + "49Tan "
+ EncodeColor(50) + "50LYel "
+ EncodeColor(51) + "51PGn "
+ EncodeColor(52) + "52PTrq "
+ EncodeColor(53) + "53PBlu "
+ EncodeColor(54) + "54Lav "
+ EncodeColor(55) + "55Wht "
+ EncodeColor(SelectedValue(int(Cum(1/X)%56))) + "\n"
+ "\n CURRENTLY SELECTED COLOR NUMBER: "
+ NumToStr(SelectedValue(int(Cum(1/X)%56)),5.0) ;
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing






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.