源码
{玄黄通道2}
N:=12;N1:=50;
h0:=v/capital;
a1:=IF(h0>0,AMOUNT,c*v*100);
c1:=sma(ema(a1,3)/ema(v,3)/100,2,1);
c2:=sma(ema(a1,6)/ema(v,6)/100,2,1);
c3:=sma(ema(a1,12)/ema(v,12)/100,2,1);
c4:=sma(ema(a1,24)/ema(v,24)/100,2,1);
BBI:(C1+C2+C3+C4)/4;
上轨:BBI+3*STD(BBI,N);
下轨:BBI-3*STD(BBI,N);
a2:=COUNT(下轨>low,N1)=N1 AND 下轨>REF(下轨,1) AND REF(下轨,1)>REF(下轨,2) AND CLOSE>下轨;
a3:=COUNT(上轨<上轨;