CJL1:=IF(DYNAINFO(10)>99999999,STRCAT(CON2STR(DYNAINFO(10)/100000000,2)<10,'亿'),STRCAT(CON2STR(DYNAINFO(10)/10000,0),'万'));

DRAWTEXT_FIX(01,0.01,0.01.0,0,CJL1),COLORYELLOW;

{STICKLINE((CJL1),L,L*333333,100,0),COLOR0099FF,LINETHICK9;}

强弱:=EMA(CLOSE,900);

JJCJL:=DYNAINFO(15)/DYNAINFO(4)/100;

JJJEDW:=IF(DYNAINFO(15)>10000,'','元');

JJJE:=IF(DYNAINFO(15)>10000,CON2STR(DYNAINFO(15)/10000,1),CON2STR(DYNAINFO(15),1));

JJJE1:=STRCAT(JJJE,JJJEDW);

JJ:=STRCAT('',STRCAT(CON2STR(JJCJL/10000,2),''));

JJ1:=STRCAT(JJ,'');

DRAWTEXT_FIX(1,0.45,0.45,0,STRCAT(JJ,0))COLORCYAN;

{DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);}

{DEA:=EMA(DIF,9) ;

MACD:=(DIF-DEA)*2;

RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;

K:=SMA(RSV,3,1);

D:=SMA(K,3,1);

CROSS(MACD,0) AND CROSS(K,D),LINETHICK4,COLOR0066FF;

XXX:=CROSS(MACD,0) AND CROSS(K,D),LINETHICK4,COLOR0066FF;

STICKLINE((XXX),L,L*999999,2,0),COLOR0066FF,LINETHICK9;}

金牛:(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1+XMA(XMA(H,25),25),LINETHICK2,COLORCYAN;

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

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

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

DRAWKLINE(H,O,L,C);

STICKLINE(金钻趋势>LOW AND 金钻趋势<HIGH,金钻趋势,MIN(MIN(OPEN,CLOSE),金钻趋势),2,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,2,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));

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

DRAWTEXT(XGX,L*9,'▲买入'),COLORMAGENTA;

A:=VOL*CLOSE;

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

B1:=EMA(B,17);

进:=STICKLINE(((B-B1)*1500/B)>=0 AND 0>=REF(0,1),0,((B-B1)*1500/B),2,1),COLORRED;

出:=STICKLINE(((B-B1)*1500/B)<0 AND 0>=REF(0,1),0,((B-B1)*1500/B),2,1),COLORGREEN;

主力突破:=(B-B1)*1500/B COLORRED,NODRAW;

{100;}

XG:=主力突破>25;

N:=8;

M:=13;

P:=60;

S:=3;

V1:=(C*2+H+L)/4*10;

V2:=EMA(V1,13)-EMA(V1,34);

V3:=EMA(V2,5);

V4:=2*(V2-V3)*5.5;

超大主力吃:= IF(V4>=0,V4,0),COLORYELLOW,LINETHICK3;

超大主力吐:= IF(V4<=0,V4,0),COLOR66FF00,LINETHICK3;

V5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8;

V6:=EMA(3*V5-2*SMA(V5,18,1),5);

V7:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10;

V8:=(INDEXC*2+INDEXH+INDEXL)/4;

V9:=EMA(V8,13)-EMA(V8,34);

VA:=EMA(V9,3);

VB:=(V9-VA)/2;

超大主力吃线:=28,COLORFF80FF,LINETHICK3;

STICKLINE((XG)AND TIME<=0935,L,L*99,700,0),COLORGREEN;

LOWV:=LLV(LOW,6);

HIGHV:=HHV(HIGH,6);

RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,2);

K:=EMA(RSV,3);

{D:MA(K,3);}

{DRAWBAND(K,RGB(200,10,10),D,RGB(10,200,10));}

{IF(K>D,K,DRAWNULL),COLORYELLOW,LINETHICK1;

IF(K<D,K,DRAWNULL),COLORCYAN,LINETHICK1;}

LC:=REF(CLOSE,1);

RSI5:=((SMA(MAX((CLOSE - LC),0),5,1) / SMA(ABS((CLOSE - LC)),5,1)) * 100);

TR1:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),10);

HD:=(HIGH - REF(HIGH,1));

LD:=(REF(LOW,1) - LOW);

DMP:=SUM(IF(((HD > 0) AND (HD > LD)),HD,0),10);

DMM:=SUM(IF(((LD > 0) AND (LD > HD)),LD,0),10);

PDI:=((DMP * 100) / TR1);

MDI:=((DMM * 100) / TR1);

ADX:=MA(((ABS((MDI - PDI)) / (MDI + PDI)) * 100),5);

AV:=(RSI5 + ADX);

DXR:=(((ADX + REF(ADX,5)) / 2) + RSI5);

WR10:=((100 * (HHV(HIGH,10) - CLOSE)) / (HHV(HIGH,10) - LLV(LOW,10)));

NEWVOL:=(RSI5 - WR10);

阶段底部:=(AV + NEWVOL);

趋势线:=LLV(阶段底部,1),COLORWHITE,LINETHICK0;

{STICKLINE((阶段底部 < 0),20,25,1,0),LINETHICK6,COLORYELLOW;

STICKLINE(CROSS(阶段底部,0),20,30,1,0),LINETHICK6,COLORRED;}

STICKLINE((趋势线 >230 ),90,2,2,0),LINETHICK6,COLORMAGENTA;

DRAWICON(主力突破>25 AND NOT(L=H)AND 主力突破>REF(主力突破,1) ,主力突破*3,23);