通达信自用趋势抄底副图红线上穿蓝线同花顺指标副图源码
B:= 100*(CLOSE-HHV(HIGH,14))/(HHV(HIGH,14)-LLV(LOW,14));
D:= EMA(100*(CLOSE-HHV(HIGH,34))/(HHV(HIGH,34)-LLV(LOW,34)),3);
A:= MA(100*(CLOSE-HHV(HIGH,34))/(HHV(HIGH,34)-LLV(LOW,34)),8);
短期线: B+100,COLORWHITE,LINETHICK1;
中期线: D+100,COLORRED,LINETHICK3;
长期线: A+100,COLORBLUE,LINETHICK3;
DRAWICON(CROSS(80,短期线),82,15);
DRAWICON(CROSS(短期线,长期线),长期线*1.1,7);
DRAWICON(CROSS(中期线,短期线),中期线*1.1,8);
DRAWICON(CROSS(中期线,长期线),长期线,23);
DRAWICON(CROSS(长期线,中期线),长期线,2);
见顶:(REF(中期线,1)>85 AND REF(短期线,1)>85 AND REF(长期线,1)>65) AND CROSS(长期线,短期线),COLORYELLOW;
顶部1:=FILTER(见顶,4);
STICKLINE(顶部1,93,98,5,0),COLORYELLOW,LINETHICK2;
顶部区域:(中期线<REF(中期线,1) AND REF(中期线,1)>80) AND (REF(短期线,1)>95 OR REF(短期线,2)>95 ) AND 长期线>60 AND 短期线<83.5 AND 短期线<中期线 AND 短期线<长期线+4,COLORGREEN;
顶部:=FILTER(顶部区域,4);
底部区域:(长期线<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),COLORRED ;
STICKLINE(顶部,99,103,5,0),COLORGREEN,LINETHICK2;
STICKLINE( 底部区域,-4,0,5,0),COLORRED,LINETHICK2;
低位金叉:长期线<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 ),COLORBLUE;
STICKLINE( 低位金叉,0,5,5,0),COLORBLUE,LINETHICK2;
强弱分水岭:50,POINTDOT,COLORWHITE;