{布林优化主图}
N:=20;
P:=2;
MID:=MA(CLOSE,N);
UPPER:=MID + P*STD(CLOSE,N);
LOWER:=MID - P*STD(CLOSE,N);
MID,COLORWHITE,LINETHICK2;
UPPER,COLORRED;
LOWER,COLORGREEN;
STICKLINE(C>=O,C,O,3,0),COLORRED;
STICKLINE(C<O,C,O,3,0),COLORGREEN;
STICKLINE(C>=O,O,L,0,0),COLORRED;
STICKLINE(C<O,C,H,0,0),COLORGREEN;