量学多彩K线 { 公式名称: 量学多彩K线 公式描述: 显示多彩K线,阳胜,阴胜,小倍阳,高量线,大K线3121 参数数量: 12 参数1: 显3121刻度, 最小: 0, 最大: 2, 缺省: 0 参数2: 显买卖点, 最小: 0, 最大: 1, 缺省: 0 参数3: 显阴阳标记, 最小: 0, 最大: 1, 缺省: 1 参数4: 不重复阴阳标记, 最小: 0, 最大: 1, 缺省: 1 参数5: 高量周期, 最小: 3, 最大: 250, 缺省: 20 参数6: 画高量逃顶线, 最小: 0, 最大: 1, 缺省: 0 参数7: 小倍阳量倍起, 最小: 1.2, 最大: 3, 缺省: 1.5 参数8: 小倍阳量倍止, 最小: 2.1, 最大: 4, 缺省: 3 参数9: 画小倍阳底线, 最小: 0, 最大: 1, 缺省: 1 参数10: 画底虚实, 最小: 0, 最大: 1, 缺省: 1 参数11: 显M日 均线, 最小: 0, 最大: 250, 缺省: 0 参数12: 价胜1价量胜2, 最小: 0, 最大: 2, 缺省: 2 } VAR1:=881161231; VAR2:=TESTSKIP(DATE>VAR1); VAR3:=250; VAR4:=LLV(LOW,VAR3); VAR5:=HHV(HIGH,VAR3); VAR6:=VAR5-VAR4; VAR7:=HIGH+VAR6*0.03; VAR8:=LOW-VAR6*0.03; VAR9:=MIN(CLOSE,OPEN); VAR10:=MAX(CLOSE,OPEN); VAR11:=画底虚实; VAR12:=IF(VAR11=1,VAR9,LOW); VAR13:=IF(VAR11=1,VAR10,HIGH); DRAWTEXT_FIX(ISLASTBAR,0,0,0,HYBLOCK); DRAWTEXT_FIX(ISLASTBAR,0.05,0,0,DYBLOCK); DRAWTEXT_FIX(ISLASTBAR,0.1,0,0,GNBLOCK); STICKLINE(REF(LOW,1)>HIGH,HIGH,REF(LOW,1),5,0),COLORGRAY; STICKLINE(REF(HIGH,1)<LOW,LOW,REF(HIGH,1),5,0),COLORGRAY; WEN98编_现价:CONST(CLOSE),POINTDOT,COLORLIRED; K中:(HIGH+LOW)/2,NODRAW,COLORYELLOW; VAR14:=MA(CLOSE,显M日 均线); 均线:IF(显M日 均线>0,VAR14,DRAWNULL),COLORLIGREEN; IF( 均线>REF( 均线,1), 均线,DRAWNULL),COLORCCCCFF; 均线角度:ATAN(( 均线/REF( 均线,1)-1)*100)*180/3.1416,NODRAW; VAR15:=REF(VOL,1)=HHV(VOL,高量周期) AND VOL<REF(VOL,1); VAR16:=BARSLAST(VAR15)+1; VAR17:=REF(VAR12,VAR16); VAR18:=VAR9>=VAR17 AND LLV(CLOSE,VAR16-1)>=VAR17; 高量底:IF(画高量逃顶线=1 AND VAR18,VAR17,DRAWNULL),POINTDOT,COLORMAGENTA; STICKLINE(画高量逃顶线=1 AND VAR15,REF(VAR12,1),REF(VAR12,1),8,(-1)),COLORMAGENTA; STICKLINE(画高量逃顶线=1 AND VAR18,VAR17,VAR17,4,(-1)),COLORMAGENTA; VAR19:=CLOSE>OPEN AND BETWEEN(VOL/REF(VOL,1),小倍阳量倍起,小倍阳量倍止); VAR20:=BARSLAST(VAR19);{www.tzj123.com} VAR21:=REF(VAR12,VAR20); VAR22:=IF(VAR19,1,LLV(CLOSE,VAR20)>=VAR21); 小倍阳底:IF(画小倍阳底线=1 AND VAR22,REF(VAR12,VAR20),DRAWNULL),POINTDOT,COLORYELLOW; STICKLINE(画小倍阳底线=1 AND VAR22,小倍阳底,小倍阳底,4,(-1)),COLORYELLOW; DRAWKLINE(HIGH,OPEN,LOW,CLOSE); VAR23:=REF(CLOSE,1);{www.tzj123.com} VAR24:=5/IF(CLOSE>=1,1000,10000); VAR25:=1.1*VAR23-VAR24; VAR26:=1.05*VAR23-VAR24; VAR27:=0.9*VAR23+VAR24; VAR28:=0.95*VAR23+VAR24; VAR29:=NAMELIKE(3) OR NAMELIKE(4); VAR30:=IF(VAR29,CLOSE>=VAR26,CLOSE>=VAR25); VAR31:=IF(VAR29,CLOSE<=VAR28,CLOSE<=VAR27); VAR32:=IF(VAR29,HIGH>=VAR26,HIGH>=VAR25); VAR33:=IF(VAR29,LOW<=VAR28,LOW<=VAR27); STICKLINE(VAR32,HIGH,MAX(CLOSE,OPEN),0,0),COLORMAGENTA; STICKLINE(VAR33,LOW,MIN(CLOSE,OPEN),0,0),COLORLICYAN; VAR34:=CLOSE>OPEN AND (CLOSE>=VAR26 OR OPEN<0.95*CLOSE+VAR24) OR (CLOSE>1000 AND CLOSE>=VAR23*1.025); STICKLINE(VAR34,OPEN,CLOSE,1,0),COLOR0000BB; VAR35:=CLOSE<OPEN AND (CLOSE<=VAR28 OR CLOSE<0.95*OPEN+VAR24) OR (CLOSE>1000 AND CLOSE<VAR23*0.976); STICKLINE(VAR35,OPEN,CLOSE,1,0),COLORLIGREEN; STICKLINE(VAR30,OPEN,CLOSE,1,0),COLORMAGENTA; STICKLINE(VAR31,OPEN,CLOSE,1,0),COLORLICYAN; VAR36:=CLOSE<OPEN AND CLOSE>REF(CLOSE,1); VAR37:=AMOUNT/VOL/100;{www.tzj123.com} VAR38:=CLOSE<OPEN AND VAR37>VAR23 AND CLOSE<=VAR23 AND VAR37<=HIGH; STICKLINE(VAR36,OPEN,CLOSE,0,0),COLORRED; STICKLINE(VAR38,VAR37,VAR37,1,0),COLORRED; VAR39:=CLOSE>OPEN AND CLOSE<VAR23; VAR40:=CLOSE>OPEN AND VAR37<VAR23 AND CLOSE>=VAR23 AND VAR37>=LOW; STICKLINE(VAR39,OPEN,CLOSE,0,0),COLORGREEN; STICKLINE(VAR40,VAR37,VAR37,1,0),COLORGREEN; VAR41:=CLOSE>500; VAR42:=IF(VAR41,HIGH,VAR10); VAR43:=IF(VAR41,LOW,VAR9); VAR44:=VAR42-(VAR42-VAR43)/3; VAR45:=VAR43+(VAR42-VAR43)/3; VAR46:=VAR43+(VAR42-VAR43)/2; VAR47:=1.0249; VAR48:=IF(VAR41=0,VAR34 OR VAR35,VAR42/VAR43>=VAR47 OR CLOSE/REF(CLOSE,1)>=VAR47); VAR49:=显3121刻度>0 AND VAR48; C31:IF(VAR49,VAR44,DRAWNULL),POINTDOT,COLORWHITE; C21:IF(VAR49,VAR46,DRAWNULL),POINTDOT,COLORWHITE; C32:IF(VAR49,VAR45,DRAWNULL),POINTDOT,COLORWHITE; VAR50:=1;{www.tzj123.com} VAR51:=显3121刻度=2 AND VAR48; STICKLINE(VAR51,VAR44,VAR44,VAR50,0),COLORYELLOW; STICKLINE(VAR51,VAR46,VAR46,VAR50,0),COLORYELLOW; STICKLINE(VAR51,VAR45,VAR45,VAR50,0),COLORYELLOW; VAR52:=REF(HHV(VAR13,2),1); VAR53:=FILTER(CLOSE>VAR52,1); VAR54:=REF(LLV(VAR12,2),1); VAR55:=FILTER(CLOSE<VAR54,1); VAR56:=VAR53 AND COUNT(VAR53,BARSLAST(VAR55))=1 AND 显买卖点=1; VAR57:=VAR55 AND COUNT(VAR55,BARSLAST(VAR53))=1 AND 显买卖点=1; DRAWICON(VAR57,VAR7,39); DRAWICON(VAR56,VAR8,38); VAR58:=CLOSE<VAR23; VAR59:=BARSLAST(VAR58); VAR60:=IF(价胜1价量胜2=2,SUM(VOL,VAR59)>REF(VOL,VAR59),1); VAR61:=CLOSE>REF(VAR10,VAR59) AND VAR60; VAR62:=VAR61 AND COUNT(VAR61,VAR59)=1; VAR63:=CLOSE>VAR23; VAR64:=BARSLAST(VAR63); VAR65:=IF(价胜1价量胜2=2,SUM(VOL,VAR64)>REF(VOL,VAR64),1); VAR66:=CLOSE<REF(VAR9,VAR64) AND VAR65; VAR67:=VAR66 AND COUNT(VAR66,VAR64)=1; VAR68:=VAR62 AND 价胜1价量胜2>0 AND IF(不重复阴阳标记=1,COUNT(VAR62,BARSLAST(VAR67))=1,1); VAR69:=VAR67 AND 价胜1价量胜2>0 AND IF(不重复阴阳标记=1,COUNT(VAR67,BARSLAST(VAR62))=1,1); STICKLINE(VAR68,VAR8,VAR8-0.005*VAR6,1,0),COLORLIRED; STICKLINE(VAR69,VAR8,VAR8-0.005*VAR6,1,0),COLORGREEN;
|
阅读:914 评论:0
声明:站内所有文章、公式均来自互联网或网友分享提供,如侵犯您的权利请告知,我们会在24小时内及时删除!
【电脑版】 【回到顶部】