源码
AA=(O+H+L+C)4;
BB=MA(AA,3);
CC=SUM(IF(AAREF(AA,1),AAVOL,0),4)SUM(IF(AAREF(AA,1),AAVOL,0),4);
DD=REF(100-(100(1+CC)),1);
a1=HHV(AA,15);
a2=LLV(AA,15);
a3=a1-a2;
a4=EMA((AA-a2)a3,2)100;
b1=HHV(AA,60);
b2=LLV(AA,60);
b3=b1-b2;
b4=EMA((AA-b2)b3,2)100;
C1=HHV(AA,240);
C2=LLV(AA,240);
C3=C1-C2;
C4=EMA((AA-C2)C3,2)100;
短期a4,colorgreen;
中期b4,coloryellow;
长期C4,colorFF00FF;
STICKLINE(短期90 AND 中期70,86,94,6,0),COLOR00FF00;
STICKLINE(短期5 AND 中期30,0,8,6,0);
IF(FILTER(中期REF(中期,1)AND 中期90 AND BBREF(BB,1),5),80,100),colorblue,Linethick2;
IF(FILTER(中期REF(中期,1)AND 中期5 AND CREF(C,1),5),20,0),colorred,Linethick2;
D1=中期REF(中期,1)AND 短期REF(短期,1)AND 长期REF(长期,1)AND 长期8 AND 中期10 AND 短期15;
D2=CROSS(短期,中期)AND 中期8;
D3=CROSS(短期,长期)AND 长期8 AND 中期20;
DRAWICON(FILTER((D1 OR D2 OR D3) AND DD15 AND CREF(C,1),5),5,1);
DRAWICON(FILTER((中期REF(中期,1)AND 短期REF(短期,1)AND 长期REF(长期,1)AND 中期95 AND 短期85)OR (长期100 AND 中期100 AND 短期100),5),95,2);
强弱分界50, POINTDOT,colorwhite;
警戒区90,linethick1,colorwhite;
安全区20,ColorFFFF00;
DRAWTEXT(CROSS(短期,中期),短期,'始');
DRAWTEXT(CROSS(中期,短期),中期,'终');