通达信中长阴半分位主图及画线
本帖最后由 吴建新 于 2015-5-25 21:33 编辑通达信中长阴半分位主图及画线长阴:=C<O*0.95;
WTGLK:=STICKLINE(长阴,ABS(C-O)/2+C,ABS(C-O)/2+C,2.5,1),COLORBLUE;
DRAWTEXT(WTGLK,(O+C)/2,'-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------'),COLORBROWN;
DRAWTEXT(WTGLK,(L+H)/2,'-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------'),COLORGREEN;
STICKLINE(长阴,C,O,2,0),COLORGREEN;
中阴:=C<O*0.965;
WTGLKT:=STICKLINE(中阴,ABS(C-O)/2+C,ABS(C-O)/2+C,2.5,1),COLORBLUE;
DRAWTEXT(WTGLKT,(O+C)/2,'-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------'),COLORWHITE;
DRAWTEXT(WTGLKT,(L+H)/2,'-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------'),COLORYELLOW;
STICKLINE(中阴,C,O,0.5,0),COLORBLUE;
#在这里快速回复#绿低量:=10;{WWW.178448.COM WEN98编制} 蓝低量:=50; 灰低量:=100; H_L:=0.1*CONST(HHV(VOL,240)); {MAV10:MA(V,10),COLORYELLOW;} 异动135:MA(V,135),COLORMAGENTA; 洗盘40:MA(V,40),COLORBLUE; 启动5:MA(V,5),COLORWHITE; VVOL:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL);{模拟量} STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,VVOL,0,1,-1),COLOR00C0C0; 量:VOL,VOLSTICK,COLORLIGRAY; 换手: VOL*10000/FINANCE(7),NODRAW,COLORGREEN; {DYNAINFO(37)*100} 全换手周期: SUMBARS(V,CAPITAL),NODRAW,COLORLIGREEN;{求完全换手到现在的周期数} 量比: V/REF(MA(V,5),1),COLORBROWN,NODRAW; 几倍: V/REF(V,1),COLORYELLOW,NODRAW; 倍数:=1.9; 倍量: VOL>=REF(V,1)*倍数 AND (IF(C<O,C>REF(C,1),1)),COLORYELLOW,NODRAW; 倍缩: REF(V,1)>=VOL*倍数,COLORMAGENTA,NODRAW; 平量: RANGE(V/REF(V,1),0.97,1.03) AND BARSCOUNT(V)>=2,COLORWHITE,NODRAW; 低量10: VOL=LLV(VOL,绿低量) AND BARSCOUNT(V)>=绿低量,COLORGREEN,NODRAW; 低量50: VOL=LLV(VOL,蓝低量) AND BARSCOUNT(V)>=蓝低量,COLORBLUE,NODRAW; 地量: VOL=LLV(VOL,灰低量) AND BARSCOUNT(V)>=灰低量,COLORGRAY,NODRAW; V1:=VOL*0.95;{图标位置} V2:=VOL*0.85; STICKLINE(倍量, 0,V1,1,0),COLORYELLOW; STICKLINE(平量,0,V1,1,0),COLORWHITE; STICKLINE(低量10,0,V2,1,0),COLORLIGREEN; STICKLINE(低量50,0,V2,1,0),COLORBLUE; STICKLINE(地量,0,V2,1,0),COLORGRAY; STICKLINE(倍缩,0,V*0.45,1,0),COLORMAGENTA; STICKLINE(C<O AND C>REF(C,1),0,V1,0,0),COLORRED;{假阴柱}真阳或假阴:=C>O OR C>REF(C,1); 收阳:= REF(真阳或假阴,3); 倍量1:=REF(倍量,3);高量:=REF(V,3)>=HHV(V,7); 三日不破:= LLV(C,3)>=REF(L,3); 价升:=COUNT(C>=REF(C,1),3)=3;{收盘价逐升} 量缩:=COUNT(V<=REF(V,1),3)=3; 连阳:= COUNT(真阳或假阴,3)=3; 倍量将军柱:= 倍量1 AND 三日不破 AND 收阳; 高量将军柱:= 高量AND 三日不破 AND 收阳; 将军柱:= 倍量将军柱 OR 高量将军柱; 黄金柱:= 将军柱 AND 价升 AND 量缩 AND 连阳 ;{标准黄金柱} STICKLINE(黄金柱,0.3*V,0.7*V,1,0),COLORRED; {红柱} DRAWICON(黄金柱,V*1.5,1); V100:= V<=LLV(V,100)*1.2 AND V>0 AND BARSCOUNT(V)>=100; 百日地量群:=COUNT(V100,5)>=3; DRAWTEXT(FILTER(百日地量群,4),V+3*H_L,'地量群'),COLORGRAY; 长阴短柱:=C/REF(C,1)<=0.96 AND V<HHV(V,30)/1.9; DRAWTEXT(长阴短柱 ,V+1.6*H_L,'!'),COLORLICYAN;{----VOL.量能饱和----不喜欢可删去下面语句----} N1:=21; SAT:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20)); 量能饱和:IF(SAT>1,1,SAT)*100,COLOR00AAFF,NODRAW; 中点:=REFDATE(HHV(V,180)*0.5,DATE); STICKLINE(CURRBARSCOUNT=N1,中点*1.9,中点*1.5,100,1),COLOR00AAFF; STICKLINE(CURRBARSCOUNT=N1,中点*1.88,中点*1.52,量能饱和,0),COLOR0077FF; DRAWTEXT(CURRBARSCOUNT=N1+3,中点*1.7,'饱和度'),COLORYELLOW; STICKLINE(CLOSE>OPEN,(CLOSE+OPEN)/2,(CLOSE+OPEN)/2,2,1),COLORYELLOW;
STICKLINE(CLOSE>OPEN,(CLOSE+OPEN)/2,(CLOSE+OPEN)/2,2,1),COLORRED;
昨中价位:REF(OPEN,1)+REF(CLOSE,1)/2,COLORYELLOW,NODRAW;
上三分之一位: (MAX(O,C)-MIN(O,C))*2/3+MIN(O,C),NODRAW;
下三分之一位: (MAX(O,C)-MIN(O,C))/3+MIN(O,C),NODRAW;
倍量:VOL>=REF(V,1)*1.9 AND C>=O,NODRAW;
DRAWTEXT(倍量,LOW*0.99,'↖倍量'),COLORYELLOW;
STICKLINE(倍量,OPEN,CLOSE,0.5,0),COLORYELLOW;
K1:=SUMBARS(倍量,1);
STICKLINE(K1,REF(O,K1-1),REF(O,K1-1),10,0),COLORYELLOW;
VAR2:=1*AMOUNT;
月天量:=VAR2=HHV(VAR2,20);
季天量:=VAR2=HHV(VAR2,60);
百天量:=VAR2=HHV(VAR2,100);
年天量:=VAR2=HHV(VAR2,240);
天量: (季天量 OR 百天量 OR 年天量),NODRAW;
DRAWTEXT(天量,LOW*0.95,'↖高'),COLORRED;
STICKLINE(天量,OPEN,CLOSE,0.5,0),COLORRED;
K11:=SUMBARS(天量,1);
STICKLINE(K11,REF(O,K11-1),REF(O,K11-1),10,0),COLORRED;
缺口:O>REF(H,1),NODRAW;
DRAWTEXT(缺口,LOW*0.93,'↖缺'),COLORWHITE;
STICKLINE(缺口,OPEN,CLOSE,0.5,0),COLORWHITE;
K111:=SUMBARS(缺口,1);
STICKLINE(K111,REF(0,K111-1),REF(0,K111-1),10,0),COLORWHITE;
DRAWTEXT((K111,REF(0,K111-1),REF(0,K111-1),10,0),LOW,'平台'),COLORRED; BIAS:(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100; OBV:=BIAS; P:=5; A1:=REF(OBV,P)=HHV(OBV,2*P+1); B1:=FILTER(A1,P); C1:=BACKSET(B1,P+1); D1:=FILTER(C1,P);{高点} A2:=REF(OBV,P)=LLV(OBV,2*P+1); B2:=FILTER(A2,P); C2:=BACKSET(B2,P+1); D2:=FILTER(C2,P);{低点} 上:REF(OBV,BARSLAST(D1)),COLORFF00FF,NODRAW; 下:REF(OBV,BARSLAST(D2)),COLOR00FF00,NODRAW; 向上:CROSS(OBV,上*1.01),NODRAW; 相对能量:=(OBV-下)/(上-下)*100,COLORYELLOW; R11:=BACKSET(ISLASTBAR,BARSLAST(D1)+1); S11:=R11>REF(R11,1); 压力:DRAWLINE(D1,OBV,S11,OBV,1),COLORYELLOW; T11:=BACKSET(ISLASTBAR,BARSLAST(D2)+1); U11:=T11>REF(T11,1); 支撑:DRAWLINE(D2,OBV,U11,OBV,1),COLORGREEN; 下轨:STICKLINE(C>0,下,下,1,0),COLORGREEN; 上轨:STICKLINE(C>0,上,上,1,0),COLORMAGENTA; DRAWTEXT(CROSS(OBV,上*1.01),上,'上'),COLORYELLOW; DRAWTEXT(CROSS(下*0.99,OBV),下,'下'),COLORYELLOW; DRAWICON(D1,OBV,1); DRAWICON(D2,OBV,2); 她她她她她她她她她她她她她她她她她她她 学习,学习,谢谢老师,, 通达信中长阴半分位主图及画线 学习,学习..... 谢谢您分享 dddddddddd 谢谢楼主分享 看得见吗,学习,学习口可口可 长阴中阴量副图 好好学习天天向上 谢谢一楼,学习了 谢谢分享! 。。。。。。。。。。