STICKLINE(ZTB,OPEN,CLOSE,1,0),COLORYELLOW;
工作线:EMA(CLOSE,55),COLORGREEN,LINETHICK2;
工作线2:EMA(CLOSE,17),LINETHICK1;
IF(工作线 REF(工作线,1),工作线,DRAWNULL),LINETHICK2,COLORRED;
IF(工作线2 REF(工作线2,1),工作线2,DRAWNULL),LINETHICK1,COLORRED;
A11:=REF(H,5)=HHV(H,2*5+1);
B11:=FILTER(A11,10);
C11:=BACKSET(B11,5+1);
HDD:=FILTER(C11,10);
前期高位:=REF(H,BARSLAST(HDD));
STICKLINE(H,前期高位,前期高位+0.015,15,0),COLOR0000AA,LINETHICK4;
A111:=REF(L,5)=LLV(L,2*5+1);
B111:=FILTER(A111,10);
C111:=BACKSET(B111,5+1);
HDD1:=FILTER(C111,10);
前期低位:REF(L,BARSLAST(HDD1)),LINETHICK0;
STICKLINE(L,前期低位,前期低位-0.015,15,0),COLOR00AA00,LINETHICK4;
VAR1:=LLV(LOW,21);
VAR2:=HHV(HIGH,21);
AK1:=EMA((((CLOSE - VAR1) / (VAR2 - VAR1)) * 100),5);
AK:=EMA((((CLOSE - VAR1) / (VAR2 - VAR1)) * 50),13);
AB:=CROSS(AK1,AK);
DRAWTEXT((AB = 1),(LOW * 0.99),'○牛窝'),COLORYELLOW;
总股本:=STRCAT(STRCAT('总股本: ',CON2STR(TOTALCAPITAL/1000000,2)),'亿');
流通盘:=STRCAT(STRCAT(' 流通盘: ',CON2STR(CAPITAL/1000000,2)),'亿');
全流通:=STRCAT(' 全流通: ',CON2STR((CAPITAL/1000000)/(TOTALCAPITAL/1000000),2));
市值:=STRCAT(STRCAT(' 流通市值: ',CON2STR((CAPITAL/1000000)*C,2)),'亿');
上市日期:=STRCAT(' 上市日期: ',CON2STR(FINANCE(42),0));
股本市值:=STRCAT('股本市值: ',STRCAT(STRCAT(STRCAT(STRCAT(总股本,流通盘),全流通),市值),上市日期));
{}
市盈率:=STRCAT('市盈率: ',CON2STR(C/FINANCE(33),2));
市销率:=STRCAT(' 市销率: ',CON2STR(C/(FINANCE(20)/FINANCE(1)),2));
市净率:=STRCAT(' 市净率: ',CON2STR(C/FINANCE(34),2));
净资收益率:=STRCAT(' 净资收益率: ',CON2STR(FINANCE(33)/FINANCE(34)*100,2));
毛利率:=STRCAT(' 毛利率: ',CON2STR((FINANCE(20)-FINANCE(21))/FINANCE(20)*100,2));
净利润率:=STRCAT(' 净利润率 ',CON2STR(FINANCE(30)/FINANCE(20)*100,2));
主营利润率:=STRCAT(' 主营利润率 ',CON2STR(FINANCE(23)/FINANCE(20)*100,2));
当前业绩:=STRCAT('当前业绩: ',STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(市盈率,市销率),市净率),净资收益率),毛利率),净利润率),主营利润率));
{}
X1:=(FINANCE(11)-FINANCE(15))/FINANCE(10)*1.2;
X2:=(FINANCE(31)+FINANCE(17))/FINANCE(10)*1.4;{盈余公积用资本公积金代替};
X3:=FINANCE(23)/FINANCE(10)*3.3;
X4:=FINANCE(19)/FINANCE(15)*0.6;{缺长期负债或负债总额}
X5:=FINANCE(20)/FINANCE(15)*0.999;
Z值:=X1+X2+X3+X4+X5;
预警:=IF(Z值 1.2,'重警',IF(Z值 =1.2 AND Z值 2.6,'轻警','无警'));
财务预警:=STRCAT('财务预警: ',STRCAT(预警,STRCAT('-Z值: ',CON2STR(Z值,3))));
优质资产率:=STRCAT(' 优质资产率: ',CON2STR((FINANCE(19)-FINANCE(22)-FINANCE(27))/FINANCE(19),2));{理论上越大越好但不同行业有不同标准};
现金负债比:=STRCAT(' 现金负债比: ',CON2STR(FINANCE(25)/FINANCE(15),3));{缺长期负债或负债总额 理论上越大越好但不同行业有不同标准};
财务系数:=STRCAT('风险系数: ',STRCAT(STRCAT(财务预警,优质资产率),现金负债比));
{}
DRAWTEXT_FIX(ISLASTBAR,0.005,0.01,0,财务系数),COLORBLUE;
DRAWTEXT_FIX(ISLASTBAR,0.005,0.06,0,当前业绩),COLORRED ;
DRAWTEXT_FIX(ISLASTBAR,0.005,0.115,0,股本市值),COLORYELLOW;
A7:=C-REF(C,1);
A81:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);
买:=LLV(A81,2)=LLV(A81,7) AND COUNT(A81 0,2) AND CROSS(A81,MA(A81,2));
DRAWTEXT(FILTER(买=1,5),LOW-0.05,'↖买进'),COLORYELLOW;
STICKLINE(买,OPEN,CLOSE,2,0),COLORWHITE;
VAR100:=IF(DATE 1530730 AND DATE 900101,1,0);
N:=5;
M1:=6;
M2:=6;
M3:=8;
R:=IF(DATE 1910612,1,0);
EE:=(H+MAX(C,O))/2;
EE1:=MA(EE,3);
EE2:=(L+MIN(C,O))/2;
EE3:=MA(EE2,3);
FF:=(H+L+C+O)/4,COLORWHITE;
FF1:=MA(FF,3),COLORGREEN;
FF3:=REF((C+O)/2,1) REF((C+O)/2,2) AND REF(MIN(C,O),1) REF(MAX(C,O),2);
实际乖离:=(MAX(FF,FF1)-MIN(FF,FF1))/MIN(FF,FF1)*100,LINETHICK;
FF4:=(((FF1-(REF(FF1,1)-FF1))-L)/L)*100;
FF5:=(((EE1+(EE1-REF(EE1,1)))-L)/L)*100;
FF6:=FF1-(REF(FF1,1)-FF1);
FF7:=EE1+(EE1-REF(EE1,1));
期望获利率:=IF(FF3,FF5,FF4),LINETHICK;
YY1:=REF(EVERY(C =O,4),1) AND REF(EVERY((C+O)/2 FF1,4),1) AND (C+O)/2
YY2:=NOT(YY1) AND (FF1-O)/O*1000 5 AND O REF(MIN(C,O),1);
A:=SMA(L,4,3);
B:=SMA(H,4,3);
BB1:=REF(L,1)-HHV((MAX(REF(L,2),REF(L,1))-MIN(REF(L,2),REF(L,1))),2);
BB2:=REF((C+O)/2,1) REF((C+O)/2,2);
BB3:=L =BB1+BB1*0.01 AND O REF(O,2) AND O =REF(L,3) AND COUNT(C O,7)
BB6:=(BB1-L)/L*100;
BB7:=(REF(L,1)-BB1)/BB1*100;
A1:=(A-L)/L N/1000 ;
A8:=A1;
A9:=(REF(H,1)-O)/O*100-(REF(MAX(C,O),2)-REF(MAX(C,O),1))/REF(MAX(C,O),1)*100;
A10:=IF(BB2,BB6,A9);
BB4:=BB6+A10
BB5:=IF(BB2,BB3,BB4) AND 期望获利率
准备:=R AND A8 AND BB5;
STICKLINE(准备,A*0.995,A*0.992,4,0)COLORYELLOW;
DRAWICON(R AND (REF((准备),1)) AND (L REF((L/0.995),1)),L*0.97,11);
AA1:=AMOUNT/V;
BB11:=L AA1*0.9;
CC1:=(C-REF(C,1))/REF(C,1)*100
DD1:=L MA(C,5)*0.921;
EE11:=V MA(V,5)*1.5;
FF11:=BB1 AND CC1 AND DD1 AND EE1;
DRAWTEXT(FF11,(LOW* 0.97),'老鼠仓'),COLOR4080FF;
A7:=C-REF(C,1);
A81:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);
买:=LLV(A81,2)=LLV(A81,7) AND COUNT(A81 0,2) AND CROSS(A81,MA(A81,2));
买进:FILTER(买=1,5);