重心:=(C+0.618*REF(C,1)+0.382*REF(C,1)+0.236*REF(C,3)+0.146*REF(C,4))/2.382;
BBIZG:=((MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4),COLORYELLOW,LINETHICK2;
黄金线:IF(重心>=BBIZG,BBIZG,DRAWNULL),COLORRED,LINETHICK1.5;
空仓线:IF(重心<BBIZG,BBIZG,DRAWNULL),COLORGREEN,LINETHICK1.5;
N:=20;
MD:SMA(CLOSE,N,1),COLORMAGENTA,LINETHICK2;
TNT:=SQRT(MA(POW((CLOSE-MD),2),N));
UP:MD+1.4*TNT,COLORBROWN;
LO:MD-1.4*TNT,COLORLIRED;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9) ;
MACD:=(DIF-DEA)*2;
画红:=C>MD AND MACD>0;
画绿:=C<MD AND MACD<0;
画B:=C>UP AND MACD>0;
画S:=C<LO AND MACD<0;
IF(画红,MD,DRAWNULL),COLORRED ,LINETHICK3;
IF(画绿,MD,DRAWNULL),COLORGREEN ,LINETHICK3;
DRAWICON(TIME=1500,LOW,14);
效果图:
|