{资金趋势与正版线形一致但数值有别}

A:=(CLOSE*2+HIGH+LOW)/4*VOL;

B:=SUM(A,1)/SUM(VOL,1);

B1:=EMA(B,17);

资金:(B-B1)*100/B,COLORYELLOW;

强弱线:0,COLOR808080;

金牛:(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1+XMA(XMA(H,25),25),DOTLINE,COLORYELLOW;

金钻趋势:XMA(XMA(L,25),25)-(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1,LINETHICK2,COLORRED;

金牛2:EMA(金钻趋势,25)COLORCYAN,LINETHICK2;

DRAWBAND(金钻趋势,RGB(55,0,0),金牛2,RGB(0,91,0));

DRAWKLINE(H,O,L,C);

STICKLINE(金钻趋势>LOW AND 金钻趋势<HIGH,金钻趋势,MIN(MIN(OPEN,CLOSE),金钻趋势),20,0),COLORYELLOW;

STICKLINE(金钻趋势>MIN(C,O) AND 金钻趋势<MAX(C,O),金钻趋势,MIN(OPEN,CLOSE),2,0),COLORYELLOW;

STICKLINE(金钻趋势>HIGH,OPEN,CLOSE,2,0),COLORYELLOW;

STICKLINE(金钻趋势>HIGH,HIGH,LOW,0,0),COLORYELLOW;

VAR23:=100*XMA(XMA((C-REF(C,1)),6),6)/XMA(XMA(ABS((C-REF(C,1))),6),6);

回调买:=LLV(VAR23,2)=LLV(VAR23,7) AND COUNT(VAR23<0,2) AND CROSS(VAR23,MA(VAR23,2));

XGG:=金钻趋势>HIGH AND 回调买 AND L<=金钻趋势;

DRAWTEXT(XGG,H,'▲买入'),COLORRED;

STICKLINE(XGG,H,H,2,0),COLOR0099FF,LINETHICK9;