通达信黄金多牛通道主图指标公式VAR3:=AMOUNT/VOL;A:=SMA(VAR3,5,1)-SMA(VAR3,55,1);B:=SMA((A-SMA(A,5,1)),5,1);STICKLINE(CLOSE,HIGH,LOW,0,1),COLORWHITE;STICKLINE(CLOSE=OPEN,OPEN,CLOSE,3,0),COLORWHITE;STICKLINE(CLOSEOPEN,OPEN,CLOSE,3,1),COLORWHITE;STICKLINE(CLOSEMA(CLOSE,5)ANDAREF(A,1)ANDBREF(B,1),HIGH,LOW,0.0,1),COLORRED;STICKLINE(CLOSEMA(CLOSE,5)ANDAREF(A,1)ANDBREF(B,1),OPEN,CLOSE,3,1),COLORRED;STICKLINE(CLOSEMA(CLOSE,5)ANDAREF(A,1)ANDBREF(B,1),HIGH,LOW,0.0,0),COLORWHITE;STICKLINE(CLOSEMA(CLOSE,5)ANDAREF(A,1)ANDBREF(B,1),OPEN,CLOSE,3,0),COLORWHITE;STICKLINE(AREF(A,3)ANDBREF(B,3),HIGH,LOW,0.0,1),COLORGREEN;STICKLINE(AREF(A,3)ANDBREF(B,3),OPEN,CLOSE,3,1),COLORGREEN;STICKLINE(AREF(A,1)ANDBREF(B,1),HIGH,LOW,0.0,0),COLORWHITE;STICKLINE(AREF(A,1)ANDBREF(B,1),OPEN,CLOSE,3,0),COLORWHITE;STICKLINE(AREF(A,1)ANDBREF(B,1),HIGH,LOW,0.0,0),COLORWHITE;STICKLINE(AREF(A,1)ANDBREF(B,1),OPEN,CLOSE,3,0),COLORWHITE;主力:=EMA(CLOSE,10),COLORRED;散户:=EMA(CLOSE,5),COLORYELLOW;绿降:=(46.18*EMA(CLOSE,10)-31.82*EMA(CLOSE,4))/14.36,COLORGREEN,LINETHICK1;操盘:=MA(CLOSE,9),COLORFF9C65,LINETHICK2;界点:=MA(CLOSE,20);AH:HHV(H,100);AL:LLV(L,100);AHL:=AH-AL;A23:AL+AHL*0.236,COLORBLUE;A38:AL+AHL*0.382,COLORGREEN;A61:AL+AHL*0.618,COLORFF9CFF;A76:AL+AHL*0.764,COLORF0F000;A77:AL+AHL*0.500,COLORRED;DRAWTEXT(ISLASTBAR,AH,'100%'),COLORAAAAAA;DRAWTEXT(ISLASTBAR,A76,'0.764%'),COLORAAAAAA,LINETHICK2;DRAWTEXT(ISLASTBAR,A77,'0.500%'),COLORAAAAAA,LINETHICK2;DRAWTEXT(ISLASTBAR,A61,'0.618%'),COLOR00AAAA,LINETHICK2;DRAWTEXT(ISLASTBAR,A38,'0.382%'),COLOR00AAAA,LINETHICK2;DRAWTEXT(ISLASTBAR,A23,'0.236%'),COLORAAAAAA,LINETHICK2;DRAWTEXT(ISLASTBAR,AL,'最低'),COLORAAAAAA,LINETHICK2;VAR1:=C-REF(C,1);VAR2:=100*EMA(EMA(VAR1,6),6)/EMA(EMA(ABS(VAR1),6),6);MA5:=EMA(C,5);MA13:=EMA(C,13);UP:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS(MA13,MA5))+1),H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS(MA5,MA13))+1),0),COLOR0000FF;DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS(MA5,MA13))+1),L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS(MA13,MA5))+1),0),COLOR00FF00;BT:=(LLV(VAR2,2)=LLV(VAR2,7)ANDCOUNT(VAR20,2)ANDCROSS(VAR2,MA(VAR2,2)))ANDREF(DOWN,1)REF(DOWN,2)ANDUPREF(DOWN,1);STICKLINE(BT,H,L,2,0),COLORRED;DRAWTEXT(BT,C*0.92,'短牛'),COLORRED;TJ1:=REF(DOWN,1)REF(DOWN,2)ANDUPREF(DOWN,1)ANDCHHV(H,21)*0.82;STICKLINE(TJ1,H,L,2,0),COLORMAGENTA;DRAWTEXT(TJ1,C*0.89,'中牛'),COLORMAGENTA;HR:=HHV(HIGH,55);HRY:=LLV(LOW,55);HRY11:=HR*HRY;HRY33:=SQRT(HRY11);TJ2:=REF(DOWN,1)REF(DOWN,2)ANDUPREF(DOWN,1)ANDCHRY33;STICKLINE(TJ2,H,L,2,0),COLORYELLOW;DRAWTEXT(TJ2,L*0.90,'大牛'),COLORYELLOW;ST:=REF(UP,1)REF(UP,2)ANDDOWNREF(UP,1);STICKLINE(ST,H,L,2,0),COLORGREEN;DRAWTEXT(ST,H*1.02,'卖'),COLOR00FF00;VAR11:=MA(C,9),COLORRED;上升通道:IF(VAR11REF(VAR11,1),VAR11,DRAWNULL),LINETHICK3,COLORRED;下降通道:IF(VAR11REF(VAR11,1),VAR11,DRAWNULL),LINETHICK3,COLORGREEN;