软件显示3个窗口,把副图指标栏上拉将主图遮盖,如图所示:十字光标放在说要的颜色上边,显示的数值四舍五入,然后右键、修改指标,就可以看到想要的颜色的写法。
源码后面的中文颜色说明是复制秋好老师提供的RGB色谱显示的颜色,实际上通达信色谱却是用BGR格式,所以中文颜色和通达信实际显示的颜色是不一样的。也就是说如果RGB用1A2B3C 表示的颜色,在TDX就要反过来改为3C2B1A.
还有就是通达信副图好像这只能编制50条横线,说以这将近100个颜色分为两个指标编写了。
源码如下:
色谱一:
1 ,LINETHICK4,COLORFFFFFF;{或COLORWHITE白色}
2 , LINETHICK4,COLORFF0000;{或COLORRED红色}
3 ,LINETHICK4,COLOR00FF00; {或 COLORGREEN绿色}
4 ,LINETHICK4,COLOR0000FF;{ 或 COLORBLUE蓝色}
5 ,LINETHICK4,COLORFF00FF;{牡丹红}
6 ,LINETHICK4,COLOR00FFFF;{青色}
7 ,LINETHICK4,COLORFFFF00;{ 或 COLORYELLOW黄s}
8 ,LINETHICK4, COLOR000000;{ 或 COLORBLACK黑色}
9 ,LINETHICK4, COLOR70DB93;{海蓝}
10 ,LINETHICK4, COLOR5C3317;{巧克力色}
11 ,LINETHICK4, COLOR9F5F9F;{蓝紫色}
12 ,LINETHICK4,COLORB5A642;{黄铜色}
13 ,LINETHICK4, COLORD9D919;{亮金色}
14 ,LINETHICK4,COLORA67D3D;{棕色}
15 ,LINETHICK4, COLOR8C7853;{青铜色}
16 ,LINETHICK4, COLORA67D3D;{ 2号青铜色}
17 ,LINETHICK4, COLOR5F9F9F;{士官服蓝色}
18 ,LINETHICK4, COLORD98719;{冷铜色}
19 ,LINETHICK4, COLORB87333;{铜色}
20 ,LINETHICK4, COLORFF7F00;{珊瑚红}
21 ,LINETHICK4, COLOR42426F;{紫蓝色}
22 ,LINETHICK4, COLOR5C4033;{深棕}
23 ,LINETHICK4, COLOR2F4F2F;{深绿}
24 ,LINETHICK4, COLOR4A766E;{深铜绿色}
25 ,LINETHICK4, COLOR4F4F2F;{深橄榄绿}
26 ,LINETHICK4, COLOR9932CD;{深兰花色}
27 ,LINETHICK4, COLOR871F78;{深紫色}
28 ,LINETHICK4, COLOR6B238E;{深石板蓝}
29 ,LINETHICK4, COLOR2F4F4F;{深铅灰色}
30 ,LINETHICK4, COLOR97694F;{深棕褐色}
31 ,LINETHICK4, COLOR7093DB;{深绿松石色}
32 ,LINETHICK4, COLOR855E42;{暗木色}
33 ,LINETHICK4, COLOR545454;{淡灰色}
34 ,LINETHICK4, COLOR545454;{土灰玫瑰红色}
35 ,LINETHICK4, COLORD19275;{长石色}
36 ,LINETHICK4, COLOR8E2323;{火砖色}
37 ,LINETHICK4, COLOR238E23;{森林绿}
38,LINETHICK4, COLORCD7F32;{金色}
39 ,LINETHICK4, COLORDBDB70;{鲜黄s}
40,LINETHICK4, COLOR8E6B23;{赭色}
41 ,LINETHICK4, COLORC0C0C0;{灰色}
42 ,LINETHICK4, COLOR527F76;{铜绿色}
43 ,LINETHICK4, COLOR93DB70;{青黄s}
44 ,LINETHICK4, COLOR215E21;{猎人绿}
45 ,LINETHICK4, COLOR4E2F2F;{印度红}
46 ,LINETHICK4, COLOR9F9F5F;{土黄s}
47 ,LINETHICK4, COLORC0D9D9;{浅蓝色}
48 ,LINETHICK4, COLORA8A8A8;{浅灰色}
49 ,LINETHICK4, COLOR8F8FBD;{浅钢蓝色}
50 ,LINETHICK4, COLORE9C2A6;{浅木色};
色谱二:
1,LINETHICK5,COLORDB70DB;{淡紫色}
2,LINETHICK5, COLOR8FBC8F;{浅绿色}
3,LINETHICK5, COLORBC8F8F;{粉红色}
4,LINETHICK5, COLORD9D9F3;{石英色}
5,LINETHICK5, COLOR5959AB;{艳蓝色}
6,LINETHICK5, COLOR6F4242;{鲑鱼色}
7,LINETHICK5, COLOR99CC32;{黄绿色}
8,LINETHICK5, COLORBC1717;{猩红色}
9,LINETHICK5, COLOR238E68;{海绿色}
10,LINETHICK5, COLOR32CD32;{石灰绿色}
11,LINETHICK5, COLORE47833;{桔黄s}
12,LINETHICK5, COLOR8E236B;{褐红色}
13,LINETHICK5, COLOR32CD99;{中海蓝色}
14,LINETHICK5, COLOR3232CD;{中蓝色}
15,LINETHICK5, COLOR6B8E23;{中森林绿}
16,LINETHICK5, COLOREAEAAE;{中鲜黄s}
17,LINETHICK5, COLOR9370DB;{中兰花色}
18,LINETHICK5, COLOR426F42;{中海绿色}
19,LINETHICK5, COLOR7F00FF;{中石板蓝色}
20,LINETHICK5, COLOR7FFF00;{中春绿色}
21,LINETHICK5, COLOR70DBDB;{中绿松石色}
22,LINETHICK5, COLORDB7093;{中紫红色}
23,LINETHICK5, COLORA68064;{中木色}
24,LINETHICK5, COLOR2F2F4F;{深藏青色}
25,LINETHICK5, COLOR23238E;{海军蓝}
26,LINETHICK5, COLOR4D4DFF;{霓虹篮}
27,LINETHICK5, COLORFF6EC7;{霓虹粉红}
28,LINETHICK5, COLOR00009C;{新深藏青色}
29,LINETHICK5, COLOREBC79E;{新棕褐色}
30,LINETHICK5, COLORCFB53B;{暗金黄s}
31,LINETHICK5, COLORFF7F00;{橙色}
32,LINETHICK5, COLORFF2400;{橙红色}
33,LINETHICK5, COLOR6B4226;{半甜巧克力色}
34,LINETHICK5, COLORE6E8FA;{银色}
35,LINETHICK5, COLOR3299CC;{天蓝}
36,LINETHICK5, COLOR007FFF;{石板蓝}
37,LINETHICK5, COLORFF1CAE;{艳粉红色}
38,LINETHICK5, COLOR00FF7F;{春绿色}
39,LINETHICK5, COLOR236B8E;{钢蓝色}
40,LINETHICK5, COLOR38B0DE;{亮天蓝色}
41,LINETHICK5, COLORDB9370;{棕褐色}
42,LINETHICK5, COLORD8BFD8;{紫红色}
43,LINETHICK5, COLORADEAEA;{石板蓝色}
44,LINETHICK5, COLOR5C4033;{浓深棕色}
45,LINETHICK5, COLORCDCDCD;{淡浅灰色}
46,LINETHICK5, COLOR4F2F4F;{紫罗兰色}
47,LINETHICK5, COLORCC3299;{紫罗兰红色}
48,LINETHICK5, COLORD8D8BF;{麦黄s}
|