趋势布林线,简洁实用.源码如下:
SD:=OBV*100/MA(OBV,50),COLORCYAN,DOTLINE;
MIDD:=MA(SD,20),COLORRED,DOTLINE;
UPD:=MIDD+2*STD(SD,20),COLORRED;
DND:=MIDD-2*STD(SD,20),COLORRED;
A:=VOL*100/MA(VOL,50),COLORCYAN,DOTLINE;
ST:=(EMA(A,3)+EMA(A,5)+EMA(A,8)+EMA(A,10)+EMA(A,12)+EMA(A,15))/10,COLORCYAN;
布中轨:MA(ST,30),COLORGREEN,DOTLINE;
UP:布中轨+2*STD(ST,40),COLORYELLOW;
DN:布中轨-2*STD(ST,40),COLORMAGENTA;
B:=50,COLORLIMAGENTA,DOTLINE;
CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
DD:=DMA(CLOSE,CC);
天:=(1+7/100)*DD;
地:=(1-7/100)*DD ;
QS:3*SMA((C-地)/(天-地)*100,5,1)-2*SMA(SMA((C-地)/(天-地)*100,5,1),3,1)COLORRED LINETHICK2;
趋势线:EMA(QS,9)COLORCYAN LINETHICK2;