试着编了一个,测试一下,不知道好用不好用,配合BBI
AA:=CLOSE-(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
A1:=HHV(AA,15);
A2:=LLV(AA,15);
A3:=A1-A2;
A4:=EMA((AA-A2)/A3,3)*100;
BB:=AA-(MA(AA,3)+MA(AA,6)+MA(AA,12)+MA(AA,24))/4;
B1:=HHV(BB,15);
B2:=LLV(BB,15);
B3:=B1-B2;
B4:=EMA((BB-B2)/B3,3)*100;
短:A4,colorlired;
长:B4,coloryellow;
强弱分界:50, POINTDOT,colorwhite;
超买区:90,POINTDOT,colorwhite;
超卖区:20,POINTDOT, colorwhite;
DRAWTEXT(CROSS(短,长),短,'终'),colorgreen;
DRAWTEXT(CROSS(长,短),短,'始'),colorred;