马上注册,享用更多功能,让你轻松玩转本论坛。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
EMA13:=EMA(C,13),COLORWHITE;
EMA21:=EMA(C,21),COLORYELLOW;
EMA34:=EMA(C,34),COLORFF00FF;
EMA60:=MA(C,60),COLORFFCC66;
VAR2:=(2*CLOSE+HIGH+LOW)/4;
{VAR3:=IF(YEAR>=2099 AND MONTH>2,0,1);}
VAR4:=LLV(LOW,5);
VAR5:=HHV(HIGH,4);
散户:=EMA((VAR2-VAR4)/(VAR5-VAR4)*100,4);
庄家:=EMA(0.667*REF(散户,1)+0.333*散户,2);
DRAWTEXT(CROSS(散户,庄家) AND 散户<30,L-0.005,'←低吸'),COLORLIRED;
DRAWTEXT(CROSS(庄家,散户) AND 散户>70,H+0.005,'←高抛'),COLORGREEN;
DRAWICON(CROSS(散户,庄家) AND 散户<30,L-0.005,1);
DRAWICON(CROSS(庄家,散户) AND 散户>70,H+0.005,2);
VAR9:=CLOSE-REF(CLOSE,5);
VARA:=EMA(EMA(VAR9,5),5)/EMA(EMA(ABS(VAR9),5),5);
VARC:=EMA(EMA(VAR9,20),20)/EMA(EMA(ABS(VAR9),20),20);
卖出:=IF(VARA>0 AND CROSS(VARC,VARA),90,100);
DRAWICON(卖出<0,H+0.005,2); 买线:=EMA(CLOSE,2);
卖线:=EMA(SLOPE(CLOSE,21)*20+CLOSE,42);
B1:IF(CROSS(买线,卖线),L-0.002,DRAWNULL),CROSSDOT,LINETHICK3,COLORMAGENTA;
S1:IF(CROSS(80,RSI)*30,H+0.002,DRAWNULL),CROSSDOT,LINETHICK3,COLORYELLOW;
VC:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CLOSE-MA (CLOSE,32))/MA(CLOSE,32)*100)/3;
S2:=IF(VC>20 AND FILTER(VC< REF(VC,1),5),H+0.002,DRAWNULL),CIRCLEDOT,LINETHICK3,COLORGREEN;
A0:=(L+H+C*2)/4;
A1:EMA(A0,14)COLORBLUE,LINETHICK2;
A2:=EMA(A0,25)COLORLIBLUE,LINETHICK2;
A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW;
A2X:=(A2-REF(A2,1))/REF(A2,1)*100,NODRAW;
看多:IF(A1X>=0 AND BARSLAST(CROSS(A1X,0))>0,REF((C+O)/2,BARSLAST(CROSS(A1X,0))),DRAWNULL),COLORMAGENTA{,LINETHICK2};
逃顶:IF(A1X<0 AND BARSLAST(CROSS(0,A1X))>0,REF((C+O)/2,BARSLAST(CROSS(0,A1X))),DRAWNULL),COLORCYAN,{LINETHICK2};
买入持股:IF(A1X>=0,A1,DRAWNULL)COLORRED,LINETHICK3;
卖出空仓:IF(A1X<0 AND A2X<0,A1,DRAWNULL)COLORGREEN,LINETHICK3;
STICKLINE(CROSS(A1X,0),C,O,3,0 ),COLOR0000CC;
STICKLINE(CROSS(A1X,0),H,L,0.01,0 ),COLOR00FFFF;
STICKLINE(CROSS(0,A1X),L,H,0.01,0 ),COLORFFFFFF;
CO1:=(C-O)/2;
CO2:=O+CO1;
CO3:=O+2*CO1;
ZZ:=(HHV(H,5)+LLV(L,5))/2;
AZ:=IF(C>ZZ,VOL,0);
BZ:=IF(C<ZZ,VOL,0);
总0:=(AZ-BZ);
BBD:=XMA(总0,2)/SUM(VOL,5)*100,LINETHICK0;
STICKLINE(BBD>=0,O,C,3.0,0),COLOR000077;
STICKLINE(BBD>=0,O,C,2.1,0),COLOR0000AA;
STICKLINE(BBD<0,O,C,3.0,0),COLOR666600;
STICKLINE(BBD<0,O,C,2.1,0),COLOR999900;
OO:=IF(CAPITAL=0,5000000,CAPITAL);
AAX:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
买盘:=IF(CLOSE>OPEN,AAX*(HIGH-LOW),IF(CLOSE<OPEN,AAX*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));
卖盘:=IF(CLOSE>OPEN,0-AAX*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-AAX*(HIGH-LOW),0-VOL/2));
主动买盘:=SUM(买盘,1)/OO*100,LINETHICK0,COLORRED;
主动卖盘:=SUM(卖盘,1)/OO*100,LINETHICK0,COLORGREEN;
买卖差率:=((主动买盘+主动卖盘)/(主动买盘-主动卖盘)),LINETHICK0;
STICKLINE(买卖差率>0{主动买盘>ABS(主动卖盘)},O,CO2,1.2,0),COLOR0000DD;
STICKLINE(买卖差率>0{主动买盘>ABS(主动卖盘)},O,CO2,0.4,0),COLORCC55FF;
{STICKLINE(主动买盘>ABS(主动卖盘),O,CO2,0.4,0),COLOR00FFFF;}
STICKLINE(买卖差率<0{主动买盘<ABS(主动卖盘)},O,CO2,0.4,0),COLOR00BB00;
{STICKLINE(主动买盘<ABS(主动卖盘),O,CO2,0.4,0),COLOR00FF00;}
LC:=REF(CLOSE,1);
RSI5:=(SMA(MAX(CLOSE-LC,0),3,1))/(SMA(ABS(CLOSE-LC),3,1))*100;
WR10:=(HHV(HIGH,3)-CLOSE)/(HHV(HIGH,3)-LLV(LOW,3))*100;
活跃度:=(RSI5-WR10),LINETHICK0,COLORFFFF00;
STICKLINE(活跃度>0,C,CO2,1.2,0),COLORFF00AA;
STICKLINE(活跃度>0,C,CO2,0.4,0),COLORFF00DD;
{STICKLINE(活跃度>0,C,CO2,0.4,0),COLORFF00FF;}
STICKLINE(活跃度<0,C,CO2,1.2,0),COLORAAAAAA;
{STICKLINE(活跃度<0,C,CO2,0.4,0),COLORDDDDDD;}
STICKLINE(活跃度<0,C,CO2,0.4,0),COLORFFFFFF;
{STICKLINE(活跃度>60,C,CO2,0,0),COLOR00BBFF;}
DRAWTEXT(REF(BBD,1)<0 AND REF(活跃度,1)<0 AND BBD>0 AND 买卖差率>0,L*0.999,'买'),COLORRED;
DRAWTEXT(REF(BBD,1)<0 AND REF(买卖差率,1)<0 AND REF(活跃度,1)<0 AND REF("KDJ.J",1)<20 AND BBD<0 AND 买卖差率>0 AND 活跃度>0 AND "KDJ.J">REF("KDJ.J",1),L*0.999,'低买'),COLORRED;
DRAWTEXT(REF(BBD,1)<0 AND REF(买卖差率,1)<0 AND REF(活跃度,1)<0 AND REF("KDJ.J",1)<0 AND BBD<0 AND 活跃度<0 AND 买卖差率>0 AND "KDJ.J">REF("KDJ.J",1),L*0.999,'关注'),COLORYELLOW;
DRAWTEXT(REF(BBD,1)>0 AND REF(活跃度,1)>0 AND REF(买卖差率,1)>0 AND BBD<0 AND 买卖差率<0 AND 活跃度<0,H*1.001,'卖'),COLORRED;
DRAWTEXT(REF(BBD,1)>0 AND REF(活跃度,1)>0 AND REF(买卖差率,1)>0 AND BBD>0 AND 买卖差率<0 AND 活跃度<0{AND ("KDJ.J"<REF("KDJ.J",1) OR "KDJ.J">=95)},H*1.001,'减'),COLORGREEN;
DRAWTEXT(REF(BBD,1)>0 AND REF(活跃度,1)>0 AND REF(买卖差率,1)>0 AND BBD>0 AND 买卖差率<0 AND (("KDJ.J"<REF("KDJ.J",1) AND "KDJ.J">=50) OR "KDJ.J">=80),H*1.001,'减'),COLORCYAN;
DRAWTEXT(REF(BBD,1)>0 AND REF(活跃度,1)>0 AND REF(买卖差率,1)<0 AND BBD<0 AND 买卖差率<0 AND 活跃度<0 ,H*1.001,'空仓'),COLORWHITE;
|