===========本公式在2009年就发布了,发现少了一个引用公式,现在来补充。
这么好的指标大家破大家都可以用
{公式名称:操作系统(主图)赠送版}
input:N2(5,1,11111),N3(5,1,1111);
DRAWTEXT(SYSPARAM(2)=BARPOS,CLOSE,'版块:'+BLKNAME),ALIGN4,colorFFFF;
明日空间买卖点:"操作系统(主图).明日空间买卖点",LINETHICK0;
M1:=明日空间买卖点;
M2:=REF(M1,1);
STICKLINE(CLOSE>0,M2,M2,8,0),colorFFFFFF;
成本线:(MA(AMOUNT/VOL/100,VOL/CAPITAL),LINETHICK2,colorFF;
A1:="操作系统(主图).短买入";
短买入:A1,LINETHICK0;
A2:="操作系统(主图).短卖出";
短卖出:A2,LINETHICK0;
短持股:"操作系统(主图).短持股",LINETHICK0;
A3:="操作系统(主图).短操盘状态";
DRAWTEXT(A1,LOW*0.98,'▲'),colorFF;
DRAWTEXT(A2,HIGH*1.02,'▼'),colorFF00;
短操盘状态:A3,LINETHICK0;
HH:=HIGH;
LL:=LOW;
区域之源上限:HH[1],LINETHICK1,colorFF;
区域之源下限:LL[1],LINETHICK1,colorFF00;
龙线:MA(CLOSE,344),CIRCLEDOT,LINETHICK1,colorFF0000;
凤线:MA(CLOSE,89),LINETHICK2,colorFFFF;
MA1:MA(CLOSE,N2);
MA2:MA(CLOSE,N3),colorFF00;
STICKLINE(A3,CLOSE,OPEN,8,0),colorFF00FF;
STICKLINE(A3,CLOSE,OPEN,7,0),colorFF22FF;
STICKLINE(A3,CLOSE,OPEN,6,0),colorFF44FF;
STICKLINE(A3,CLOSE,OPEN,5,0),colorFF66FF;
STICKLINE(A3,CLOSE,OPEN,4,0),colorFF88FF;
STICKLINE(A3,CLOSE,OPEN,3,0),colorFF99FF;
STICKLINE(A3,CLOSE,OPEN,2,0),colorFFAAFF;
STICKLINE(A3,CLOSE,OPEN,1,0),colorFFBBFF;
STICKLINE(A2,CLOSE,OPEN,8,0),color8800;
STICKLINE(A2,CLOSE,OPEN,7,0),color9900;
STICKLINE(A2,CLOSE,OPEN,6,0),colorAA00;
STICKLINE(A2,CLOSE,OPEN,5,0),colorBB00;
STICKLINE(A2,CLOSE,OPEN,4,0),colorCC00;
STICKLINE(A2,CLOSE,OPEN,3,0),colorDD00;
STICKLINE(A2,CLOSE,OPEN,2,0),colorEE00;
STICKLINE(A2,CLOSE,OPEN,1,0),colorFF00;
STICKLINE(A1,CLOSE,OPEN,8,0),colorFF;
STICKLINE(A1,CLOSE,OPEN,4,0),colorB0B0FF;
STICKLINE(A1,CLOSE,OPEN,2,0),colorFFFF;
STICKLINE(A1,HIGH,LOW,0,0),colorFFFF;
DRAWTEXT(CLOSE>0 AND ISLASTBAR,明日空间买卖点,'━━━明日空间买卖点1'),colorFF00;
DRAWTEXT(CLOSE>0 AND ISLASTBAR,REF(明日空间买卖点,1),'━━━今日空间买卖点1'),colorFF;
上市天数:=BARSLAST(BARSCOUNT(CLOSE)=1)+1;
发行价:=FINANCE(51);
DRAWTEXT(BARPOS=SYSPARAM(2),CLOSE,'五域股龄: '+NUMTOSTR(上市天数[SYSPARAM(1)],0)+'〈每股收益〉'+NUMTOSTR(FINANCE(33),3)+'〈每股净资〉'+NUMTOSTR(FINANCE(34),2)+'市净率'+NUMTOSTR(CLOSE/FINANCE(34),2)+'市盈率'+NUMTOSTR(DYNAINFO(39),3)+'〈市值〉'+NUMTOSTR(FINANCE(7)*CLOSE/10000,4)+'〈流通盘〉'+NUMTOSTR(CAPITAL/100,2)+'〈获利盘〉'+NUMTOSTR(WINNER(CLOSE)*100,2)+' 发行价:'+NUMTOSTR(发行价,2)+'%'),ALIGN5,colorFF00;
{公式名称:大盘副图K线赠送版}
A2:=INDEXO;
A3:=INDEXH;
A4:=INDEXL;
A1:=INDEXC;
STICKLINE(A1>A2,A1,A2,8,1),colorFF;
STICKLINE(A1>A2,A3,MAX(A1,A2),0,1),colorFF;
STICKLINE(A1>A2,MIN(A1,A2),A4,0,1),colorFF;
STICKLINE(A1<A2,A1,A2,8,0),colorFFFF00;
STICKLINE(A1<A2,A3,MAX(A1,A2),0,1),colorFFFF00;
STICKLINE(A1<A2,MIN(A1,A2),A4,0,1),colorFFFF00;
开盘:A2,LINETHICK0;
最高:A3,LINETHICK0;
最低:A4,LINETHICK0;
收盘:A1,LINETHICK0;
大盘量能:INDEXV/1000000,LINETHICK0;
涨幅:(A1/REF(A1,1)-1)*100,LINETHICK0;
操作系统(主图)
YF_DDI:=(AMOUNT / VOL);
YF_JJ:=((OPEN + CLOSE) / 2);
YF_PJJ:=0;
YF_DDING:=EMA(CLOSE,6);
YF_MMD:=MA(YF_DDING,1);
YF_XXD:=EMA(CLOSE,18);
YF_YYZ:=REF(YF_MMD,1);
YF_XXD1:=REF(YF_XXD,1);
YF_YYZ1:=BARSCOUNT(CLOSE);
YF_TDCG:=IF((YF_YYZ1 = 1),0,(((YF_MMD - YF_YYZ) / YF_YYZ) * 100));
YF_ZFD:=IF((YF_YYZ1 = 1),0,(((YF_XXD - YF_XXD1) / YF_XXD1) * 100));
YF_JSD2:=REF(CLOSE,1);
CLOSE1:=IF((YF_YYZ1 = 1),0,(((CLOSE - YF_JSD2) / YF_JSD2) * 100));
YF_JZDF:=IF((YF_YYZ1 = 1),((CLOSE + OPEN) / 2),YF_YYZ);
YF_DCGJ:=YF_MMD;
JJ0:=YF_YYZ;
JJ1:=REF(YF_MMD,2);
JJ2:=(((YF_DCGJ + JJ0) + JJ1) / 3);
JJ02:=(((ABS((YF_DCGJ - JJ2)) + ABS((JJ0 - JJ2))) + ABS((JJ1 - JJ2))) / 3);
SS:=REF(YF_TDCG,1);
YF_ZFD1:=REF(YF_TDCG,2);
YF_ZFD2:=IF((YF_YYZ1 < 3),0,((JJ02 / YF_DCGJ) * 100));
YF_DHPXS:=IF((YF_YYZ1 < 3),0,IF((((YF_TDCG < 0) AND (SS < 0)) AND (YF_ZFD1 < 0)),(0 - 1),1));
SSB:=REF(YF_TDCG,1);
YF_YZFZ:=IF((((YF_YYZ1 > 11) AND (SSB < 0)) AND (YF_TDCG > 0)),1,0);
YF_JSD21:=BARSLAST((YF_YZFZ = 1));
YF_JSD:=REF(YF_JSD21,1);
A:=IF((((YF_YYZ1 > 11) AND (SS < 0)) AND (YF_TDCG > 0)),(YF_JSD + 1),YF_JSD);
YF_JSD11:=YF_JZDF;
DMRJ:=YF_JZDF;
DMCJ:=IF(((YF_YYZ1 > 11) AND (YF_JSD11 < OPEN)),OPEN,YF_JZDF);
YF_DMRJ:=IF(((YF_YYZ1 > 11) AND (DMRJ > OPEN)),OPEN,YF_JZDF);
YF_DMCJ:=0;
YF_DCG1:=REF(YF_JZDF,1);
YF_BDF5:=IF(((((YF_TDCG > 0.5) AND ((YF_ZFD2 > 0.215) OR (LOW > YF_JZDF))) AND (CLOSE >= OPEN)) AND ((CLOSE >= 200) OR ((CLOSE < 200) AND (CLOSE1 < 11)))),1,0);
YF_DMR:=IF((((YF_TDCG < (0 - 0.3)) AND ((YF_ZFD2 > 0.2) OR (HIGH < YF_JZDF))) AND ((OPEN >= CLOSE) OR (CLOSE1 < (0 - 1)))),1,0);
YF_DKS1:=BARSSINCE(YF_BDF5);
YF_TDMR:=BARSSINCE(YF_DMR);
YF_DMRB:=(YF_DMR OR (ISLASTBAR= 1));
YF_DCGJ1:=((COUNT(YF_BDF5,BARSLAST(YF_DMRB)) = 1) AND YF_BDF5);
YF_DMRBUY:=((COUNT(YF_DMRB,BARSLAST(YF_BDF5)) = 1) AND YF_DMRB);
YF_DMCSELL:=BARSLAST(YF_DMRBUY);
YF_DCG10:=BARSLAST(YF_DCGJ1);
YF_DCG11:=((SUM(YF_DMRBUY,YF_DCG10) = 0) * YF_DCG10);
YF_DCGREAL:=REF(DMCJ,YF_DCG11);
YF_DMRJ11:=REF(YF_DCGREAL,1);
YF_DMRJ1:=IF((YF_DCGJ1 = 1),(((CLOSE - DMCJ) / DMCJ) * 100),(((YF_DMRJ - YF_DMRJ11) / YF_DMRJ11) * 100));
YF_DCG:=IF((((YF_DCG11 = 0) AND (YF_DCGJ1 = 0)) AND (YF_DMRBUY = 0)),0,YF_DMRJ1);
短买入:=YF_DCGJ1,LINETHICK0;
短卖出:=YF_DMRBUY,LINETHICK0;
短持股:=YF_DCG11,LINETHICK0;
短持股1:=YF_DCG;
短本次收益:=IF((短买入=1),YF_DCGREAL,IF(((短持股>0) OR (短卖出=1)),YF_DMRJ11,0));
短买价:=IF((短卖出 = 1),YF_DMRJ,0);
STICKLINE((短买入 = 1),OPEN,CLOSE,3,0),COLOR0000FF;
STICKLINE((短持股 > 0),OPEN,CLOSE,0,0),COLORFFBBFF;
STICKLINE((短持股 > 0),OPEN,CLOSE,3,0),COLORFF99FF;
STICKLINE((短持股 > 0),OPEN,CLOSE,2,0),COLORFFAAFF;
STICKLINE((短持股 > 0),OPEN,CLOSE,1,0),COLORFFBBFF;
STICKLINE((短卖出 = 1),OPEN,CLOSE,0,0),COLOR00FF00;
STICKLINE((短卖出 = 1),OPEN,CLOSE,3,0),COLOR00DD00;
STICKLINE((短卖出 = 1),OPEN,CLOSE,2,0),COLOR00EE00;
STICKLINE((短卖出 = 1),OPEN,CLOSE,1,0),COLOR00FF00;
DRAWICON((短买入 = 1),LOW,1);
DRAWICON((短卖出 = 1),HIGH,2);
明日空间买卖点:EMA(CLOSE,6),LINETHICK1;
大盘副图K线赠送版
A2:=INDEXO;
A3:=INDEXH;
A4:=INDEXL;
A1:=INDEXC;
STICKLINE(A1>A2,A1,A2,8,1),colorFF;
STICKLINE(A1>A2,A3,MAX(A1,A2),0,1),colorFF;
STICKLINE(A1>A2,MIN(A1,A2),A4,0,1),colorFF;
STICKLINE(A1<A2,A1,A2,8,0),colorFFFF00;
STICKLINE(A1<A2,A3,MAX(A1,A2),0,1),colorFFFF00;
STICKLINE(A1<A2,MIN(A1,A2),A4,0,1),colorFFFF00;
开盘:A2,LINETHICK0;
最高:A3,LINETHICK0;
最低:A4,LINETHICK0;
收盘:A1,LINETHICK0;
大盘量能:INDEXV/1000000,LINETHICK0;
涨幅:(A1/REF(A1,1)-1)*100,LINETHICK0; |