参数m1 2 100 3 m2 2 100 6 m3 2 100 12 m4 2 100 24
VAR1:=ZIG(3,13);
STICKLINE((REF(VAR1,2) < REF(VAR1,1)) AND (VAR1 < REF(VAR1,1)),CLOSE,OPEN,5,0),COLORMAGENTA ;
BBI:(MA(CLOSE,M1)+MA(CLOSE,M2)+MA(CLOSE,M3)+MA(CLOSE,M4))/4,LINETHICK6,COLORMAGENTA;
AAA:=REFDATE(HHV(H,130),DATE);
BBB:=REFDATE(LLV(L,130),DATE);
{ DRAWBAND(AAA,RGB(0,80,80),BBB,RGB(00,00,00));}
N:=3;
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
CCI修正1:=EMA(EMA(EMA(CCI,2),2),2);
CCI修正2:=EMA(EMA(EMA(CCI,3),2),2);
X:=(CROSS(CCI修正1,CCI修正2) OR (CCI修正1>=CCI修正2))
AND CCI修正1>=-101 AND CCI修正1>=REF(CCI修正1,1)
AND REF(CCI修正1,1)<-101 ;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
K1:= EMA(EMA(EMA(K,2),2),2);
D1:= EMA(EMA(EMA(D,2),2),2);
J1:= EMA(EMA(EMA(J,2),2),2);
Y:= J1>REF(J1,1) ;
预警:=X AND Y ;
上:=EMA(C,3);
MM:=上>REF(上,1) AND REF(上,1)<REF(上,2) ;
VAR03:=CLOSE=LLV(C,4) AND (REF(C,1)<REF(C,2) OR REF(C,1)<REF(C,3)) OR
REF(C,1)=LLV(C,4) AND C<REF(C,2) OR REF(C,2)=LLV(C,4) AND
REF(C,1)=HHV(C,4) AND C<REF(C,1) OR REF(C,3)=LLV(C,4) AND
C<REF(C,1) AND C<REF(C,2);
{收盘价=4日内收盘价的最低值 AND (昨收<2日前的收盘价}
VAR04:=REF(C,1)=LLV(C,4) AND C>=REF(C,2) OR REF(C,2)=LLV(C,4) AND
REF(C,1)<=REF(C,3) AND REF(C,2)<REF(C,4) AND C>=REF(C,1);
{涨停}
STICKLINE(CLOSE>REF(CLOSE,1)*1.0985 AND CLOSE=HIGH,CLOSE,OPEN,3.5,-1),
COLOR00FFFF;
{跌停}
STICKLINE(CLOSE<REF(CLOSE,1)*0.9015 AND CLOSE=LOW,CLOSE,OPEN,3.5,-1),
COLORGREEN;
〓铁底〓: LLV(LOW,60)*1.02,DOTLINE,LINETHICK1,COLORLIGREEN;
VL:=REF(LOW,1);
VAR102:=(SMA(ABS(LOW-VL),13,1))/(SMA(MAX(LOW-VL,0),13,1))*100;
VAR104:=MA(VAR102,13);
VAR105:=LLV(LOW,34);
VAR108:=EMA(IF(LOW<=VAR105,VAR104,0),3);
VAR88:=SMA(SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,7,1),5,1);
VAR89:=SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,7,1)*16.18-VAR88*10.9;
DRAWTEXT(ISLASTBAR,〓铁底〓,'〓铁底〓'),COLORLIGREEN;
〓顶部〓: HHV(HIGH,60)*0.98,DOTLINE,LINETHICK1,COLORWHITE;
VV2:=REF(CLOSE,1);
VV3:=SMA((CLOSE-VV2),6,1)/SMA(ABS(CLOSE-VV2),6,1)*100;
DRAWICON(REF(VV3,1)>81 AND VV3<80,HIGH,2);
DRAWTEXT(ISLASTBAR,〓顶部〓,' 〓顶部〓'),COLORWHITE;
VARR1:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100;
DRAWICON(CROSS(82,VARR1),HIGH,10);
DRAWTEXT(CROSS(82,VARR1),〓顶部〓,'预警卖★'),COLORGREEN;
DRAWICON(预警,(LOW * 0.98),11);
DRAWTEXT(预警,(LOW * 0.93),'→预警买'),COLORYELLOW;
VAR15:MA(CLOSE,5);
VAR16:MA(CLOSE,10);
VAR17:MA(CLOSE,20);
VAR18:MA(CLOSE,30);
VAR19:MA(CLOSE,60);
VAR20:=MA(CLOSE,120);
VAR21:=MA(CLOSE,250);
WW5:=RANGE(VAR15 ,O,C);
QQ10:=RANGE(VAR16 ,O,C);
GG20:=RANGE(VAR17 ,O,C);
DD30:=RANGE(VAR18 ,O,C);
WW60:=RANGE(VAR19 ,O,C);
TT120:=RANGE(VAR20 ,O,C);
GG250:=RANGE(VAR21 ,O,C);
JJBB:=WW5+QQ10+GG20+DD30+WW60+TT120+GG250;
STICKLINE(JJBB>=3,O,C,0.8,0), COLOR42426F ;
DRAWTEXT(JJBB=3,H*1.02,'3'),COLORWHITE;
DRAWTEXT(JJBB=4,H*1.02,'4'),COLORWHITE;
DRAWTEXT(JJBB=5,H*1.02,'5'),COLORWHITE;
DRAWTEXT(JJBB=6,H*1.02,'6'),COLORWHITE;
DRAWTEXT(JJBB=7,H*1.02,'7'),COLORWHITE;
周J:=MA("KDJ.J#WEEK"(9,3,3),5);
周J1:=MA("KDJ.J#WEEK"(9,3,3) ,5);
XG:=REF(周J1,1)>=REF(周J1,2) AND 周J1<=REF(周J1,1);
DRAWICON(XG=1,H*1.009,35),COLORGREEN;
筹码价位低:=COST(0.1);
筹码价位1:=COST(0.1)+(COST(99.999)-COST(0.1))/10;
筹码价位2:=COST(0.1)+(COST(99.999)-COST(0.1))/10*2;
筹码价位3:=COST(0.1)+(COST(99.999)-COST(0.1))/10*3;
筹码价位4:=COST(0.1)+(COST(99.999)-COST(0.1))/10*4;
筹码价位5:=COST(0.1)+(COST(99.999)-COST(0.1))/10*5;
筹码价位6:=COST(0.1)+(COST(99.999)-COST(0.1))/10*6;
筹码价位7:=COST(0.1)+(COST(99.999)-COST(0.1))/10*7;
筹码价位8:=COST(0.1)+(COST(99.999)-COST(0.1))/10*8;
筹码价位9:=COST(0.1)+(COST(99.999)-COST(0.1))/10*9;
筹码价位高:=COST(99.999);
区间最大筹码:=MAX(MAX(MAX(MAX(WINNER(筹码价位1)-WINNER(筹码价位低),WINNER(筹码价位2)-WINNER(筹码价位1)),MAX(WINNER(筹码价位3)-WINNER(筹码价位2),WINNER(筹码价位4)-WINNER(筹码价位3))),MAX(MAX(WINNER(筹码价位5)-WINNER(筹码价位4),WINNER(筹码价位6)-WINNER(筹码价位5)),MAX(WINNER(筹码价位7)-WINNER(筹码价位6),WINNER(筹码价位8)-WINNER(筹码价位7)))),MAX(WINNER(筹码价位9)-WINNER(筹码价位8),WINNER(筹码价位高)-WINNER(筹码价位9)));
筹码密集均价:=IF(区间最大筹码=WINNER(筹码价位1)-WINNER(筹码价位低),(筹码价位1+筹码价位低)/2,IF(区间最大筹码=WINNER(筹码价位2)-WINNER(筹码价位1),(筹码价位2+筹码价位1)/2,IF(区间最大筹码=WINNER(筹码价位3)-WINNER(筹码价位2),(筹码价位3+筹码价位2)/2,IF(区间最大筹码=WINNER(筹码价位4)-WINNER(筹码价位3),(筹码价位4+筹码价位3)/2,IF(区间最大筹码=WINNER(筹码价位5)-WINNER(筹码价位4),(筹码价位5+筹码价位4)/2,IF(区间最大筹码=WINNER(筹码价位6)-WINNER(筹码价位5),(筹码价位6+筹码价位5)/2,IF(区间最大筹码=WINNER(筹码价位7)-WINNER(筹码价位6),(筹码价位7+筹码价位6)/2,IF(区间最大筹码=WINNER(筹码价位8)-WINNER(筹码价位7),(筹码价位8+筹码价位7)/2,IF(区间最大筹码=WINNER(筹码价位9)-WINNER(筹码价位8),(筹码价位9+筹码价位8)/2,(筹码价位高+筹码价位9)/2)))))))));
强势指导线:MA(筹码密集均价,1),COLORYELLOW,LINETHICK1;
筹码密集度:=WINNER(筹码密集均价*1.1)-WINNER(筹码密集均价*0.9);
上穿强势指导线:=IF(REF(C,1)<MA(筹码密集均价,1) AND C>MA(筹码密集均价,1),1,0);
下穿强势指导线:=IF(REF(C,1)>MA(筹码密集均价,1) AND C<MA(筹码密集均价,1),1,0);
DRAWICON(上穿强势指导线>0,L,1);
DRAWICON(下穿强势指导线>0,H,2);
超B:=L2_AMO(0,2)/10000.0;
大B:=L2_AMO(1,2)/10000.0;
中B:=L2_AMO(2,2)/10000.0;
小B:=L2_AMO(3,2)/10000.0;
超S:=L2_AMO(0,3)/10000.0;
大S:=L2_AMO(1,3)/10000.0;
中S:=L2_AMO(2,3)/10000.0;
小S:=L2_AMO(3,3)/10000.0;
净流入:=(超B+大B+中B+小B)-(超S+大S+中S+小S),NODRAW;
超大单:=(超B)-(超S),NODRAW;
大单:=(大B)-(大S),NODRAW;
中单:=(中B)-(中S),NODRAW;
小单:=(小B)-(小S),NODRAW;
DAZHI:=CONST(MAX(ABS(净流入),MAX(ABS(超大单),MAX(ABS(大单),MAX(ABS(中单),ABS(小单)))))),NODRAW;
DRAWRECTREL(0,300,180,999.4,IF(120,RGB(10,0,0),0));
DRAWRECTREL(0,CONST(830-(ABS(净流入)*500/DAZHI)),30,935,IF(CONST(净流入)>0,RGB(100,0,0{255,0,255}),RGB(0,100,100)));
DRAWRECTREL(35,CONST(830-(ABS(超大单)*500/DAZHI)),65,935,IF(CONST(超大单)>0,RGB(100,0,0),RGB(0,50,0)));
DRAWRECTREL(70,CONST(830-(ABS(大单)*500/DAZHI)),100,935,IF(CONST(大单)>0,RGB(100,0,0),RGB(0,50,0)));
DRAWRECTREL(105,CONST(830-(ABS(中单)*500/DAZHI)),135,935,IF(CONST(中单)>0,RGB(100,0,0),RGB(0,50,0)));
DRAWRECTREL(140,CONST(830-(ABS(小单)*500/DAZHI)),170,935,IF(CONST(小单)>0,RGB(100,0,0),RGB(0,50,0)));
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.002,0.98,0,'净流 超大 大单 中单 小单'),COLORYELLOW;
{DRAWTEXT_FIX(CURRBARSCOUNT=1,0,0,0,'资金搏弈 (万元)'),COLORYELLOW;}
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.002,0.55,0,INTPART(净流入)),COLORWHITE;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.036,0.30,0,INTPART(超大单)),COLORWHITE;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.070,0.55,0,INTPART(大单)),COLORWHITE;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.106,0.30,0,INTPART(中单)),COLORWHITE;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.145,0.55,0,INTPART(小单)),COLORWHITE; |