麻烦老师帮忙弄一下,谢谢 [文华财经]
-
咨询内容:
老师麻烦帮忙给填充颜色,按照下图这样,上面粉红色,下面水绿色,中间淡蓝色(要全部都填充哈)
源码如下:
TD准备:=IF(REF(C,1)>REF(C,4),1,0);
TD0:=BARSLAST(TD准备);A:=IF(BARSSINCEN(LAST(C<REF(C,4),9,0),9),1,NULL);
F:=IF(BARSLASTCOUNT(C<REF(C,4))>=9,1, A);
G:=A+F;
TD11:=IF(1,TD0=1,0);TD21:=IF(1,G,NULL);
A1:=TD11 AND TD21;
TD12:=IF(2,TD0=2,0);TD22:=IF(2,G,NULL);
A2:=TD12 AND TD22;TD13:=IF(3,TD0=3,0);
TD23:=IF(3,G,NULL);
A3:=TD13 AND TD23;TD14:=IF(4,TD0=4,0);
TD24:=IF(4,G,NULL);
A4:=TD14 AND TD24;TD15:=IF(5,TD0=5,0);
TD25:=IF(5,G,NULL);
A5:=TD15 AND TD25;TD16:=IF(6,TD0=6,0);
TD26:=IF(6,G,NULL);
A6:=TD16 AND TD26;TD17:=IF(7,TD0=7,0);
TD27:=IF(7,G,NULL);
A7:=TD17 AND TD27;TD18:=IF(8,TD0=8,0);
TD28:=IF(8,G,NULL);
A8:=TD18 AND TD28;TD19:=IF(9,TD0=9,0);
TD29:=IF(9,G,NULL);
A9:=TD19 AND TD29;DRAWTEXT(A1,L-0.3,Ƈ'),COLORYELLOW;
DRAWTEXT(A2,L-0.3,ƈ'),COLORYELLOW;
DRAWTEXT(A3,L-0.3,Ɖ'),COLORYELLOW;
DRAWTEXT(A4,L-0.3,Ɗ'),COLORYELLOW;
DRAWTEXT(A5,L-0.3,Ƌ'),COLORYELLOW;
DRAWTEXT(A6,L-0.3,ƌ'),COLORYELLOW;
DRAWTEXT(A7,L-0.3,ƍ'),COLORYELLOW;
DRAWTEXT(A8,L-0.3,Ǝ'),COLORYELLOW;
DRAWTEXT(A9,L-0.3,Ə'),COLORYELLOW;TDP:=BARSLAST(A9);
B:=IF(LAST(C<REF(C,2),13,0),1,NULL);TD11A:=IF(1,TDP=1,TDP);
TD21A:=IF(1,LLV(C,1)<REF(L,2),NULL);D1:=TD11A AND TD21A;
TD12A:=IF(2,TDP=2,TDP);
TD22A:=IF(2,LLV(C,2)<REF(L,2),NULL);D2:=TD12A AND TD22A;
TD13A:=IF(3,TDP=3,TDP);
TD23A:=IF(3,LLV(C,3)<REF(L,2),NULL);D3:=TD13A AND TD23A;
TD14A:=IF(4,TDP=4,TDP);
TD24A:=IF(4,LLV(C,4)<REF(L,2),NULL);D4:=TD14A AND TD24A;
TD15A:=IF(5,TDP=5,TDP);
TD25A:=IF(5,LLV(C,5)<REF(L,2),NULL);D5:=TD15A AND TD25A;
TD16A:=IF(6,TDP=6,TDP);
TD26A:=IF(6,LLV(C,6)<REF(L,2),NULL);D6:=TD16A AND TD26A;
TD17A:=IF(7,TDP=7,TDP);
TD27A:=IF(7,LLV(C,7)<REF(L,2),NULL);D7:=TD17A AND TD27A;
TD18A:=IF(8,TDP=8,TDP);
TD28A:=IF(8,LLV(C,8)<REF(L,2),NULL);D8:=TD18A AND TD28A;
TD19A:=IF(9,TDP=9,TDP);
TD29A:=IF(9,LLV(C,9)<REF(L,2),NULL);D9:=TD19A AND TD29A;
TD10A:=IF(10,TDP=10,TDP);
TD20A:=IF(10,LLV(C,10)<REF(L,2),NULL);D10:=TD10A AND TD20A;
TD110A:=IF(11,TDP=11,TDP);
TD210A:=IF(11,LLV(C,11)<REF(L,2),NULL);D11:=TD110A AND TD210A;
TD120A:=IF(12,TDP=12,TDP);
TD220A:=IF(12,LLV(C,12)<REF(L,2),NULL);D12:=TD120A AND TD220A;
TD130A:=IF(13,TDP=13,TDP);
TD230A:=IF(13,LLV(C,13)<REF(L,2),NULL);D13:=TD130A AND TD230A;
DRAWTEXT(D1,L-0.6,Ƈ'),COLORRED;
DRAWTEXT(D2,L-0.6,ƈ'),COLORRED;
DRAWTEXT(D3,L-0.6,Ɖ'),COLORRED;
DRAWTEXT(D4,L-0.6,Ɗ'),COLORRED;
DRAWTEXT(D5,L-0.6,Ƌ'),COLORRED;
DRAWTEXT(D6,L-0.6,ƌ'),COLORRED;
DRAWTEXT(D7,L-0.6,ƍ'),COLORRED;
DRAWTEXT(D8,L-0.6,Ǝ'),COLORRED;
DRAWTEXT(D9,L-0.6,Ə'),COLORRED;
DRAWTEXT(D10,L-0.6,ཆ'),COLORRED;
DRAWTEXT(D11,L-0.6,ཇ'),COLORRED;
DRAWTEXT(D12,L-0.6,'),COLORRED;
DRAWTEXT(D13,L-0.6,ཉ'),COLORRED;CURRBARSCOUNT:=DATACOUNT-DAYBARPOS+1;
DRAWTEXT(CURRBARSCOUNT=3,HIGH*1.02,Ɖ'), COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=5,HIGH*1.02,Ƌ'), COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=8,HIGH*1.02,Ǝ'), COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=13,HIGH*1.02,ཉ'), COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=21,HIGH*1.02,ད'), COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=34,HIGH*1.02,ཞ'), COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=55,HIGH*1.02,ཱི'), COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=89,HIGH*1.02,ྕ'), COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=144,HIGH*1.02,飨'), COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=233,HIGH*1.02,饁'), COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=377,HIGH*1.02,駑'), COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=610,HIGH*1.02,骺'), COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=987,HIGH*1.02,鰳'), COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=1597,HIGH*1.02,玲'), COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=2584,HIGH*1.02,ﶈ'), COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=4181,HIGH*1.02,υ'), COLORGREEN;DRAWTEXT(CURRBARSCOUNT=7,HIGH*1.025,ƍ'), COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=11,HIGH*1.025,ཇ'), COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=18,HIGH*1.025,ཎ'), COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=29,HIGH*1.025,ཙ'), COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=47,HIGH*1.025,ཫ'), COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=76,HIGH*1.025,ྈ'), COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=123,HIGH*1.025,飓'), COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=199,HIGH*1.025,餟'), COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=322,HIGH*1.025,馚'), COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=521,HIGH*1.025,驡'), COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=843,HIGH*1.025,鮣'), COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=1364,HIGH*1.025,'), COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=2207,HIGH*1.025,ﰏ'), COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=3571,HIGH*1.025,ţ'), COLORWHITE;NB:=80;
MB:=3;
MA5X:=MA(C,5);
MA13X:=MA(C,13);
高:=REF(HHV(H,NB),MB);
低:=REF(LLV(L,NB),MB);
H19:=高-(高-低)*0.191;
H38:=高-(高-低)*0.382;
H中:=高-(高-低)*0.5;
H61:=高-(高-低)*0.618;
H80:=高-(高-低)*0.809;一:REFX1(高,10000),POINTDOT,COLORWHITE;
二:REFX1(H19,10000),POINTDOT,COLORYELLOW;
三:REFX1(H38,10000),POINTDOT,COLORMAGENTA;
四:REFX1(H中,10000),POINTDOT,COLORRED;
五:REFX1(H61,10000),POINTDOT,COLORMAGENTA;
六:REFX1(H80,10000),POINTDOT,COLORYELLOW;
七:REFX1(低,10000),POINTDOT,COLORWHITE;DRAWTEXT(ISLASTBAR,一,' 高'),COLORWHITE;
DRAWTEXT(ISLASTBAR,二,' '),COLORYELLOW;
DRAWTEXT(ISLASTBAR,三,' '),COLORMAGENTA;
DRAWTEXT(ISLASTBAR,四,' 中'),COLORRED;
DRAWTEXT(ISLASTBAR,五,' '),COLORMAGENTA;
DRAWTEXT(ISLASTBAR,六,' '),COLORYELLOW;
DRAWTEXT(ISLASTBAR,七,' 低'),COLORWHITE;
文件名:qq截图20190804163838.png
来源:程序化99
-
文华技术人员:
加入下面语句
FILLRGN(1,二,一,COLORMAGENTA); FILLRGN(1,七,六,COLORGREEN); FILLRGN(1,二,六,COLORCYAN); DRAWKLINE1(H,O,L,C);
来源: WWW.CXH99.COM
-
文华客服:
文件名:qq截图20190804193906.png老师麻烦看一下,不行啊,颜色是可以了,但是操作不了,鼠标一点就编辑了
-
网友回复:
软件右上角菜单-》个性化-》个性化设置-》更多k线图设置1 -》点指标选中指标
取消这里的勾选 您操作看下
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 262069696 或微信:cxhjy888 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,谢谢您!)
相关文章
-
没有相关内容