//b1:=MA(CLOSE,N);
//布林极限:100*(CLOSE-b1)/STD(CLOSE,n);
//布林K值:EMA(布林极限,3);
IF(CODETYPE>0)
{
//a="该指标只用于沪深指数。";
IF(MONEY>1)
CYC:=MONEY/VOL;
ELSE
CYC:=(3*H+L+O+2*C)/7;
}
ELSE
{
CYC:=(3*INDEXH+INDEXL+INDEXO+2*INDEXC)/7;
}
CYCMA:=MA(CYC,N);
布林极限:100*(CYC-CYCMA)/STD(CYC,N),colorwhite;
K值:EMA(布林极限,5),coloryellow;
b2:100,colorgray;
b3:-100,colorgray;
b4:170,colorlicyan;
b5:-170,colorlicyan;
J值:布林极限-K值,colorred;
IF(布林极限<-180)
{
IF(CROSS(布林极限,K值) AND K值<-180)
BUY;
}
IF(布林极限>180)
{
IF(CROSS(K值,布林极限))
SELL;
}