{买卖牛K主图}
V5:=EMA(CLOSE,1);主线:=EMA(V5,5) ;
本:=EMA(HHV(主线,5),1);
急进:=EMA(HHV(本,17),1);
稳健:=EMA(HHV(急进,17),2);
飞天:EMA(HHV(稳健,17),3),LINETHICK2, COLORWHITE;
{底顶划线}
BDGD:=CROSS(0.8,H=HHV(H,6));
GDSJ:=BARSLAST(BDGD)+1;
底:=REF(H,GDSJ),COLOR1EFF1E;
BDDD:=CROSS(0.8,L=LLV(L,6));
DDSJ:=BARSLAST(BDDD)+1;
顶:=REF(L,DDSJ),COLOR7400E8;
STICKLINE(GDSJ<=8,底,底,8,0),COLORGREEN;
STICKLINE(DDSJ<=8,顶,顶,8,0),COLORMAGENTA;
{支撑位 }
支撑位:STICKLINE(C
VAR1M:=REF(CLOSE,1);
VAR2M:=MA(CLOSE,5);
VAR3M:=SMA(MAX(CLOSE-VAR1M,0),6,1)/SMA(ABS(CLOSE-VAR1M),6,1)*100;
VAR4M:=SMA(MAX(CLOSE-VAR1M,0),12,1)/SMA(ABS(CLOSE-VAR1M),12,1)*100;
VAR5M:=SMA(MAX(CLOSE-VAR1M,0),24,1)/SMA(ABS(CLOSE-VAR1M),24,1)*100;
VAR6M:=IF(CROSS(VAR3M,VAR5M),LOW,REF(LOW,BARSLAST(CROSS(VAR3M,VAR5M))));
VAR7M:=IF(CROSS(VAR5M,VAR3M),HIGH,REF(HIGH,BARSLAST(CROSS(VAR5M,VAR3M))));
VAR8M:=IF(CLOSE>=MA(CLOSE,20),80,50);
VAR9M:=IF(CLOSE>=MA(CLOSE,20),50,20);
VARAM:=IF(VAR3M
VARCM:=IF(HIGH>VARAM,VAR3M,REF(VAR3M,BARSLAST(HIGH>VARAM)));
VARDM:=IF(HIGH>VARBM AND VAR3M
VARFM:=IF(LOW
支撑线:=VAR11M,COLORYELLOW,DOTLINE;
压力线:=VARDM COLORCYAN,DOTLINE;
FL:=MA(CLOSE,17)+ABS(MA(CLOSE,17)-REF(MA(CLOSE,17),1)),COLORF4E202; IF(C>CG,CG,DRAWNULL), COLORRED,LINETHICK2;
MID:=MA(C,12);
VART1:=POW((C-MID),2);
VART2:=MA(VART1,12);
VART3:=SQRT(VART2);
UPPER:=MID+2*VART3;
LOWER:=MID-2*VART3;
BOLL:=REF(MID,1),COLORFFFFFF;
UB:REF(UPPER,1),COLORGREEN;
LB:=REF(LOWER,1),COLORFF00FF;
BB:=V>MA(V,5) ;
DD1:=V
FS:=MA(CLOSE,17)+MA(CLOSE,17)-REF(MA(CLOSE,17),1),COLORF4E202;
CG:IF(MA(CLOSE,17)
SQS: IF(MA(VOL,3)>MA(VOL,5)>MA(VOL,9),SMA(CLOSE,3,1),SMA(CLOSE,5,1)),COLORFF99FF,LINETHICK2;
重心:=AMOUNT/(100*V)COLORYELLOW;