AA:=(HHV(HIGH,120)-LLV(LOW,120))/30;
Var1:=(2*CLOSE+HIGH+LOW)/4;
转换线:(hhv(h,8)+llv(l,8))/2,colorRED,LINETHICK2;
基准线:(hhv(h,22)+llv(l,22))/2,COLORGREEN,linethick2;
先行线:ref(c,22),coloryellow;
云带A:ref((转换线+基准线)/2,22),COLORcccccc;
云带B:ref((hhv(h,44)+llv(l,44))/2,22),COLORcccccc;
STICKLINE(云带A<云带B,云带A,云带B,0.1,0),COLORffff00,pointdot;
STICKLINE(云带A>=云带B,云带A,云带B,0.1,0),COLORff00ff,pointdot;
DRAWTEXT(CROSS(转换线,基准线) AND Var1<MIN(云带A,云带B),MIN(基准线,LOW)*0.995,'▲'),COLORRED;
DRAWTEXT(CROSS(基准线,转换线) AND Var1>MAX(云带A,云带B),MAX(基准线,HIGH)+AA,'▼'),COLORFF9966;