通达信高抛低吸副图指标 源码 附图
{高抛低吸副图}
90,COLOR996699;
10,COLORGREEN;
底:10,COLORFF00FF,LINETHICK4;
顶:90,COLOR00FF33,LINETHICK4;
50,COLORRED,NODRAW;
A:=MA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19);
B:=-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));
D:=EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4);
长期线:A+100,COLOR9900FF,LINETHICK1;
短期线:B+100,LINETHICK1,COLORGREEN;
中期线:D+100,COLORYELLOW,LINETHICK3;
见顶:=((REF(中期线,1) 85 AND REF(短期线,1) 85 AND REF(长期线,1) 65) AND CROSS(长期线,短期线));
顶部区域:(中期线 REF(中期线,1) AND REF(中期线,1) 80) AND (REF(短期线,1) 95 OR REF(短期线,2) 95 ) AND 长期线 60 AND 短期线 83.5
AND 短期线 中期线 AND 短期线 长期线+3,COLORGREEN;
顶部:=FILTER(顶部区域,3);
STICKLINE( {见顶 OR} 顶部,99,80,2,0 ),COLORGREEN,LINETHICK2;
底部区域:(长期线 12 AND 中期线 8 AND (短期线 7.2 OR REF(短期线,1) 5) AND (中期线 REF(中期线,1) OR 短期线 REF(短期线,1)))
OR (长期线 8 AND 中期线 7 AND 短期线 15 AND 短期线 REF(短期线,1)) OR (长期线 10 AND 中期线 7 AND 短期线 1) ,COLORCYAN;
STICKLINE( 底部区域,-3,25,2,0 ),COLORRED;
低位金叉:40*(长期线 15 AND REF(长期线,1) 15 AND 中期线 18 AND 短期线 REF(短期线,1) AND CROSS(短期线,长期线) AND 短期线 中期线
AND (REF(短期线,1) 5 OR REF(短期线,2) 5 ) AND (中期线 =长期线 OR REF( 短期线,1) 1 )),COLORRED,LINETHICK2;
DRAWTEXT(LONGCROSS(底,中期线,2),底*0.3,'★买入'),COLORYELLOW;{吸}
DRAWTEXT(LONGCROSS(中期线,顶*1.05,2),中期线*1.04,'★快跑'),COLORWHITE;{抛};
DRAWTEXT(CURRBARSCOUNT=1,顶,' 阻力'),COLORFFFFFF;
DRAWTEXT(CURRBARSCOUNT=1,底,' 支撑'),COLORFFFFFF;
DA:=YEAR AND MONTH AND DAY;
AAA:=STRCAT(CON2STR(YEAR,0),'年');
AAB:=STRCAT(CON2STR(MONTH,0),'月');
AA33:=STRCAT(CON2STR(DAY,0),'日');
AA4:=STRCAT('【 ',IF(WEEKDAY=1,'星期一',IF(WEEKDAY=2,'星期二',IF(WEEKDAY=3,'星期三',IF(WEEKDAY=4,'星期四',IF(WEEKDAY=5,'星期五',IF(WEEKDAY=6,'六','日')))))));
AA:=STRCAT(STRCAT(STRCAT(AAA,AAB),STRCAT(AA33,AA4)),' 】');
SA:DRAWTEXT_FIX(DA,0.84,0.99,0,AA),COLORGREEN;