这个主图要找 全绿或者全紫色,数据会变,早上看到收盘可能看不到了
***********************************************************************************************************************
LC:=REF(CLOSE,1);
WRSI:=SMA(MAX(CLOSE-LC,0),5,1)/SMA(ABS(CLOSE-LC),5,1)*100;
WR10:=(HHV(HIGH,3)-CLOSE)/(HHV(HIGH,3)-LLV(LOW,3))*100;
活跃:=(WRSI-WR10);
活跃度比:=IF(活跃>=0,(活跃+100)/2,100-ABS((活跃-100)/2));
DRAWTEXT_FIX(1,0.45,0.50,1,STRCAT(STRCAT('活跃:',CON2STR(活跃度比,2)),'%')),COLORCYAN;
日:=120; 昨前:=3;
高1:=REF(HHV(H,日),昨前);
低1:=REF(LLV(L,日),昨前);
H1:=高1-(高1-低1)*0.191;
H2:=高1-(高1-低1)*0.382;
H3:=高1-(高1-低1)*0.5;
H4:=高1-(高1-低1)*0.618;
H5:=高1-(高1-低1)*0.809;
HIGH1:=REFDATE(高1,DATE),COLORRED,LINETHICK3;
HIGH2:=REFDATE(H1,DATE),COLORYELLOW,LINETHICK3;
LOW2:=REFDATE(H5,DATE),COLORYELLOW,LINETHICK3;
LOW1:=REFDATE(低1,DATE),COLORGREEN,LINETHICK3;
XYZ:=O<H1;
VAR3AA:=IF((CLOSE>REF(CLOSE,1)),88,0);
VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)<1.01) AND (VAR3AA>0),91,0);
XGX:=(FILTER((VAR4AA>90),45)),COLORYELLOW;
STICKLINE(XGX,50,0,4,0),COLORMAGENTA;
STICKLINE((XGX) AND (XYZ),L,L*9,1000,0),COLORMAGENTA;
HSL:=IF((SETCODE==0||SETCODE==1),100*VOL,VOL)/(FINANCE(7)/100);
攻击量:=((HSL*0.50+REF(HSL,1)*0.33)+(REF(HSL,2)*0.17))*SUM(C,FROMOPEN)/FROMOPEN;
攻击量A:=SUM(IF(C>REF(C,1),攻击量*V,0),FROMOPEN),COLOR0000FF,LINETHICK0;
攻击量B:=-SUM(IF(C<REF(C,1),攻击量*V,0),FROMOPEN),COLOR00FF00,LINETHICK0;
攻击流量:=攻击量A+攻击量B,COLORSTICK;
攻击比:=攻击流量/SUM(V,FROMOPEN)*100,COLORRED,LINETHICK1;
资金攻击度:=IF(攻击比>=0,(攻击比+50),100-ABS((攻击比-50)))>100,COLORYELLOW;
资金流入:=SUM(IF(C>REF(C,1),V,0),FROMOPEN),STICK,COLORRED;
资金流出:=-SUM(IF(C<REF(C,1),V,0),FROMOPEN),STICK,COLOR00FF00;
资金出入:=资金流入+资金流出,COLORSTICK;
资金比:=资金出入/SUM(V,FROMOPEN)*100,COLOR00FFFF,LINETHICK1;
资金流量比:=IF(资金比>=0,(资金比+100)/2,100-ABS((资金比-100)/2));
{DRAWTEXT_FIX(1,0.550,0.75,0,STRCAT(STRCAT('流量比',CON2STR(资金流量比,2)),'%买')),COLORCYAN;}
DRAWTEXT_FIX(1,0.0,0.99,0,STRCAT(STRCAT('',CON2STR(资金攻击度,2)),' ')),COLORCYAN;
CJL1:=IF(DYNAINFO(10)>99999999,STRCAT(CON2STR(DYNAINFO(10)/100000000,2)<10,'亿'),STRCAT(CON2STR(DYNAINFO(10)/10000,0),'万'));
CJL:=IF(DYNAINFO(10)>99999999,STRCAT(CON2STR(DYNAINFO(10)/100000000,2),'亿'),STRCAT(CON2STR(DYNAINFO(10)/10000,0),'万'));
{DRAWTEXT_FIX(01,0.01,0.01.0,0,CJL),COLOR0099FF; }
DRAWTEXT_FIX(01,0.01,0.01.0,0,CJL1),COLORYELLOW;
{STICKLINE((CJL),L,L*333333333,100,0),COLOR0099FF,LINETHICK9;}
{STICKLINE((CJL1),L,L*3,100,0),COLOR0099FF,LINETHICK9;}
N:=21;M:=55;Q:=3;
回归:=EMA(SLOPE(CLOSE,N)*20+CLOSE,M)*1,COLORMAGENTA,LINETHICK3;
平滑:=EMA(CLOSE,Q),COLORYELLOW,LINETHICK2;
简单差:=平滑-回归;
DRAWICON(CROSS(ZIG(3,8),REF(ZIG(3,8),1)),平滑*999999999,9);
VAR326:=IF(CLOSE AND MA(VOL, 5)/240 AND CLOSE>REF(CLOSE, 1)*1.00 AND CLOSE,88,0);{VAR38>VAR39;}
VAR327:=IF(CLOSE/REF(CLOSE, 1)>1.050 AND VOL/CAPITAL*100<10 AND CLOSE<17 AND HIGH/CLOSE<1.050 AND VAR326>0, 91, 0);
DRAWTEXT(VAR327>90,HIGH*99999999,'●追涨'),COLORGREEN;
STICKLINE((VAR327>90) AND (XYZ) ,L,L*9,1000,0),COLORGREEN;
STICKLINE((VAR327>90) AND (CJL1) ,L,L*9,1000,0),COLORMAGENTA;
V2Z:=SMA(AMOUNT/V,2,1)/100;
V5Z:=SMA(V2Z,5,1);
V10Z:=SMA(V5Z,5,1);
V20Z:=SMA(V10Z,5,1);
V40:=SMA(V20Z,5,1);
当日实量:=V,NODRAW;
DRAWICON(CROSS(C,REF(V2Z,1)*1.02) AND CROSS(C,REF(V5Z,1)*1.03),REF(V2Z,1),38);