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1)/EMA(EMA(ABS(MTM),N2),N1);
MMM:=100*EMA(EMA(MTM,N4),N3)/EMA(EMA(ABS(MTM),N4),N3);
DRAWICON(MMS>MMM,1.5,34);
DRAWICON(MMS<MMM,1.5,35);
{DRAWTEXT(ISLASTBAR=1,1.5,'.ZLMM'),COLORFFFFFF;}
A6:=MMS>MMM;
BIAS:=(C-MA(C,N2))/MA(C,N2);
DIF:=(BIAS-REF(BIAS,16));
DBCD:=SMA(DIF,76,1);
MM:=MA(DBCD,5);
DRAWICON(DBCD>MM ,1.6,34);
DRAWICON(DBCD<MM,1.6,35);
{DRAWTEXT(ISLASTBAR=1,1.6,'.DBCD'),COLORFFFFFF;}
A7:=DBCD>MM;
持股:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE
-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),LINETHICK0,COLORRED;
支撑:=LLV(持股,3),LINETHICK0,COLOR00FFFF;
下跌:=MA(持股,12),COLOR6B8E23,LINETHICK0;
转向:=CROSS(持股,下跌){ AND 下跌<30};
MA1:=MA(持股,5);
向下:=CROSS(MA1,持股) AND MA1>80;
DRAWICON(持股>下跌 ,1.7,34);
DRAWICON(持股<下跌,1.7,35);
{DRAWTEXT(ISLASTBAR=1,1.7,'.CGZ'),COLORFFFFFF;}
A8:=持股>下跌;
MT:=C-REF(C,1);
ZLGJ:=100*EMA(EMA(MT,N3),N3)/EMA(EMA(ABS(MT),N3),N3);
MAZL:=MA(ZLGJ,5);
DRAWICON(ZLGJ>MAZL,1.8,34);
DRAWICON(ZLGJ<MAZL,1.8,35);
A9:=ZLGJ>MAZL;
{DRAWTEXT(ISLASTBAR=1,1.8,'.ZLGJ'),COLORFFFFFF;}
PJJ:=DMA((HIGH+LOW+CLOSE*2)/4,0.9);
JJ:=REF(EMA(PJJ,3),1);
QJJ:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
XVL:=IF(CLOSE>OPEN,QJJ*(HIGH-LOW),IF(CLOSE<OPEN,QJJ*(HIGH-OPEN+CLOSE-LOW),VOL/2))+IF
(CLOSE>OPEN,0-QJJ*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE<OPEN,0-QJJ*(HIGH-LOW),0-VOL/2));
HSL:=(XVL/20)/1.15;
攻击流量:=((HSL*0.55+(REF(HSL,1)*0.33))+(REF(HSL,2)*0.22));
GJJ:=EMA(攻击流量,8);
LLJX:=EMA(攻击流量,3);
资金流量:=LLJX,LINETHICK0,COLOR0000FF;
DRAWICON(资金流量>0,1.95,34);
DRAWICON(资金流量<0,1.95,35);
A10:=资金流量>0;
{DRAWTEXT(ISLASTBAR=1,1.89,'.ZJL'),COLORFFFFFF;}
指导线:=(A1+A2+A3+A4+A5+A6+A7+A8+A9+A10),LINETHICK0,COLORFFFF00;
操作:IF(指导线 >1 ,2.38,1),LINETHICK1,COLOR00FFFF;
MID := MA(CLOSE,N);
UPPER:= MID+S*STD(CLOSE,N);
LOWER:= MID-S*STD(CLOSE,N);
个股资金线:=MA(C,1)/MA(REF(C,18),18)*100;
资金生命线:=MA(FORCAST(个股资金线,20),6);
红箭头持股:个股资金线>资金生命线,NODRAW,COLOR8080FF;
DRAWICON(红箭头持股>0,红箭头持股,1 );
布林买:CROSS(CLOSE,LOWER),COLOR464646,STICK,LINETHICK1;
DRAWTEXT(布林买>0,0.3,'布林买'),COLORFFFFFF;
DRAWICON(布林买>0,布林买,1 );
N:=5;
AA:=LLV(L,34);
XD:=SMA(ABS(L-REF(L,1)),34,1);
CD:=SMA(MAX(L-REF(L,1),0),34,2);
VAR1:=4*SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1)-
3*SMA(SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1),3.2,1);
VAR2:=8;
RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);
减:CROSS(88,RSI),STICK,LINETHICK1,COLOR464646;
DRAWTEXT(减>0,0.1,'减'),COLORFFFF00;
DRAWICON(减>0,减,22 );
加:CROSS(VAR1,VAR2),COLOR464646,STICK,LINETHICK1;
DRAWTEXT(加>0,0.1,'加'),COLOR8080FF;
DRAWICON(加>0,加,1 );
A0:=(L+H+C*2)/4;
A1X:=(A1-REF(A1,1))/REF(A1,1)*100;
清:IF(A1X<0 AND REF(A1X,1)>=0 ,1,0),COLOR464646,STICK,LINETHICK1;
DRAWTEXT(清>0,0.3,'清'),COLORFFFF15;
DRAWICON(清>0,清,6);
SJ:=WMA(((2*C+H+L)/4-LLV(L,5))/(HHV(H,5)-LLV(L,5))*100,2);
ZJ:=WMA(0.618*REF(SJ,1)+0.382*SJ,2);
卖:CROSS(88,RSI),STICK,LINETHICK1,COLOR464646;
DRAWTEXT( 卖>0,0.6,' 卖'),COLORFFFF00;
DRAWICON( 卖>0, 卖,22 );
买:CROSS(VAR1,VAR2),COLOR464646,STICK,LINETHICK1;
DRAWTEXT(买>0,0.6,'买'),COLOR8080FF;
DRAWICON(买>0,买,23 );
TN4:=CONST(HHVBARS(V,40));
N4日内评台:=IF(CURRBARSCOUNT<=40+3,CONST(IF(TN4=0,C,REF(C,TN4))),DRAWNULL);
量能买:CROSS(C,N4日内评台),COLOR464646,STICK,LINETHICK1;
DRAWTEXT(量能买>0,0.6,'量能买'),COLOR8080FF;
DRAWICON(量能买>0,量能买,13 ); |