AA:=(HHV(HIGH,120)-LLV(LOW,120))/30;
VAR1:=(2*CLOSE+HIGH+LOW)/4;
转换线:(HHV(HIGH,9)+LLV(LOW,9))/2;
基准线:(HHV(HIGH,26)+LLV(LOW,26))/2;
先行带A:(转换线+基准线)/2;
先行带B:(HHV(HIGH,52)+LLV(LOW,52))/2;
STICKLINE(先行带A>先行带B,先行带A,先行带B,0.1,-1),COLORLIRED;
STICKLINE(先行带A<先行带B,先行带A,先行带B,0.1,-1),COLORLICYAN;
延迟线:REFX(CLOSE,26);
TL11:=REF(转换线,1)=REF(基准线,1) AND 转换线>基准线;
DRAWTEXT(CROSS(转换线,基准线) AND VAR1
DRAWTEXT(CROSS(转换线,基准线) AND VAR1>MAX(先行带A,先行带B),L*0.95,'▲▲▲'),COLORRED;
DRAWTEXT(TL11 AND VAR1>MAX(先行带A,先行带B),L*0.95,'▲▲▲'),COLORRED;
DRAWTEXT(CROSS(基准线,转换线) AND VAR1
DRAWTEXT(CROSS(基准线,转换线) AND VAR1>MAX(先行带A,先行带B),MAX(基准线,HIGH)+AA,'▼'),COLORBLUE;