VAR1:=(C+H+O+L)/4;
SQWE:=XMA(VAR1,32)*(1-100/1600);
BB1:=SQWE;
通道下轨:=BB1,COLORRED,LINETHICK2;
RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=2*K-2*D;
X:=LLV(J,2)=LLV(J,8);
{DRAWTEXT(CROSS(J,REF(J+0.01,1)) AND X AND J<20 AND C<通道下轨,LOW,'↖买入'),COLORRED;}
黑马通道买入:CROSS(J,REF(J+0.01,1)) AND X AND J<20 AND C<=通道下轨;