《股票-一个选股公式的疑问.docx》由会员分享,可在线阅读,更多相关《股票-一个选股公式的疑问.docx(13页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。
1、一个选股公式的疑问我的指标公式以及选股公式都有了,但是想从选股公式中提纯,提出能选出B点买入以及带钻石的公式。请教师答惑!谢谢。指标公式:日线锁定:=(PERIOD=5)AND(C>0)ANDV>0;引力:=(MA(C,30)+MA(C,72)/2;下轨:=引力*0.73;下轨75:=引力*0.75;下轨71:=引力*0.71;下轨68:=引力*0.68;过滤周期:=1;VAR1:=EMA(EMA(CLOSE,9),9);控盘:=(VAR1-REF(VAR1,1)/REF(VAR1,1)*1000;资金:=EMA(EMA(CLOSE,8),8);资金抬轿:=(资金-REF(资金,1
2、)/REF(资金,1)*1000;有庄控盘:=资金抬轿>0;无庄控盘:=资金抬轿<=0;买线:=EMA(C,3);卖线:=EMA(SLOPE(C,22)*20+C,54);BU1:=CROSS(买线,卖线);SEL1:=CROSS(卖线,买线);BU2:=IFF(BU1AND有庄控盘,1,IFF(COUNT(BU1AND无庄控盘,BARSLAST(SEL1)+1)=1ANDCROSS(资金抬轿,0),1,0);BU:=BU2ANDCOUNT(BU2,BARSLAST(SEL1)+1)=1;SEL:=SEL1ANDCOUNT(SEL1,BARSLAST(BU)+1)=1;BUNEW:
3、=BU;止损条件:=CLOSE/REF(OPEN,BARSLAST(BU)<(1-7/100)ANDCOUNT(BU,BARSLAST(BU)+1)=1ANDCOUNT(SEL,BARSLAST(BU)+1)=0;SELNEW:=IFF(止损条件ANDCOUNT(止损条件,BARSLAST(BU)+1)=1,1,IFF(SELANDCOUNT(止损条件,BARSLAST(BU)+1)=0,1,0);重新买入:=COUNT(止损条件,BARSLAST(BUNEW)+1)>=1ANDCROSS(C,0.965*REF(O,BARSLAST(BUNEW);不在同一天1:=(重新买入AND
4、SELNEW)=0);BUNEW2:=(BUNEWANDCOUNT(SELNEW,过滤周期)=0)OR重新买入)AND不在同一天1;二次止损:=(CLOSE/REF(OPEN,BARSLAST(重新买入)<(1-7/100)ANDCOUNT(重新买入,BARSLAST(重新买入)+1)=1ANDCOUNT(SEL,BARSLAST(重新买入)+1)=0);重新卖出:=(SELANDCOUNT(重新买入,BARSLAST(BUNEW2)+1)=1)OR(二次止损ANDSUM(二次止损,0)=1);不在同一天2:=(重新卖出ANDBUNEW2)=0);SELNEW2:=(SELNEWANDC
5、OUNT(SELNEW,BARSLAST(BUNEW2)+1)=1)OR重新卖出)AND不在同一天2;BUNEW3:=BUNEW2ANDCOUNT(BUNEW2,BARSLAST(SELNEW2)+1)=1;SELNEW3:=SELNEW2ANDCOUNT(SELNEW2,BARSLAST(BUNEW3)+1)=1;D:=BARSLAST(BUNEW3)+1>=1ANDCOUNT(SELNEW3,BARSLAST(BUNEW3)+1)=0;K:=BARSLAST(SELNEW3)+1>=1ANDCOUNT(BUNEW3,BARSLAST(SELNEW3)+1)=0;修正局部定位:=
6、IFF(COUNT(SELNEW3,BARSCOUNT(C)=0ANDCOUNT(BUNEW3,BARSCOUNT(C)=0,1,0);修正局部累计:=SUM(修正局部定位,1000)+1;精准修正累计:=IFF(修正局部累计=REF(修正局部累计,1)ANDREF(修正局部累计,2)<修正局部累计,修正局部累计,0);上市修正B:=修正局部定位ANDCROSS(控盘,0);上市修正S:=修正局部定位ANDCROSS(0,控盘)ANDCOUNT(上市修正B,BARSLAST(C>0)>=1;上市D:=COUNT(上市修正B,BARSLAST(上市修正B)+1)=1ANDCOU
7、NT(上市修正S,BARSLAST(上市修正B)+1)=0ANDCOUNT(SELNEW3,BARSCOUNT (C)=0;上市K:=COUNT(上市修正S,BARSLAST(上市修正S)+1)=1ANDCOUNT(上市修正B,BARSLAST(上市修正S)+1)=0ANDCOUNT (BUNEW3,BARSCOUNT(C)=0;SSXZBZS:=COUNT(上市修正B,BARSCOUNT(C);SSXZSZS:=COUNT(上市修正S,BARSCOUNT(C);QB:=IFF(修正局部定位,上市修正B,BUNEW3);QS:=IFF(修正局部定位,上市修正SAND(SSXZBZS=SSXZS
8、ZSANDSSXZBZS>=0ANDCOUNT(SELNEW3,BARSCOUNT(C)=1ANDCOUNT (BUNEW3,BARSCOUNT(C)=0)=0,SELNEW3AND(SSXZBZS=SSXZSZSANDSSXZBZS>=0ANDCOUNT(SELNEW3,BARSCOUNT(C)=1ANDCOUNT (BUNEW3,BARSCOUNT(C)=0)=0);K补:=(COUNT(上市修正B,BARSLAST(C>0)=0ANDCOUNT(QB,BARSLAST(C>0)=0)=0;定位B68:=QBANDCOUNT(L<下轨68,10)>=1;
9、定位B71:=QBANDCOUNT(L<下轨71,10)>=1;定位B75:=QBANDCOUNT(L<下轨75,10)>=1;定位68B:=EXIST(定位B68,BARSLAST(BUNEW)+1)AND重新买入ANDQB;定位71B:=EXIST(定位B71,BARSLAST(BUNEW)+1)AND重新买入ANDQB;定位75B:=EXIST(定位B75,BARSLAST(BUNEW)+1)AND重新买入ANDQB;概率1:=IFF(定位B68,5,IFF(定位B71,4,IFF(定位B75,3,0);概率2:=IFF(定位68B,5,IFF(定位71B,4,I
10、FF(定位75B,3,0);概率:=IFF(概率1>0,概率1,概率2);STICKLINE(DAND日线锁定)OR(上市DAND日线锁定),H,L,0.00,0),COLOR0000FF;STICKLINE(DAND日线锁定)OR(上市DAND日线锁定),C,O,3.00,0),COLOR0000FF;STICKLINE(KANDK补AND日线锁定)OR(上市KAND日线锁定),H,L,0.00,0),COLORFFFF00;STICKLINE(KANDK补AND日线锁定)OR(上市KAND日线锁定),C,O,3.00,0),COLORFFFF00;STICKLINE(C=OAND(D
11、OR上市D)AND日线锁定,C,C,3,0),COLOR0000FF;STICKLINE(C=OAND(KANDK补)AND日线锁定,C,C,3,0),COLORFFFF00;绘制多头:=(DAND日线锁定)OR(上市DAND日线锁定);绘制空头:=(KANDK补AND日线锁定)OR(上市KAND日线锁定);代修复局部:=绘制多头=0AND绘制空头=0;B修:=BARSLAST(QB);S修:=BARSLAST(QS);补充绘制:=IFF(B修<S修AND代修复局部,1,IFF(B修>S修AND代修复局部,2,0);STICKLINE(日线锁定AND补充绘制=1,H,L,0.00,
12、0),COLOR0000FF;STICKLINE(日线锁定AND补充绘制=1,C,O,3.00,0),COLOR0000FF;STICKLINE(日线锁定AND补充绘制=2,H,L,0.00,0),COLORFFFF00;STICKLINE(日线锁定AND补充绘制=2,C,O,3,0),COLORFFFF00;DRAWICON(QBAND日线锁定,LOW*0.99,1);DRAWICON(QBAND日线锁定,LOW*0.97,7);DRAWICON(QSAND日线锁定,HIGH*1.01,2);DRAWICON(QSAND日线锁定,HIGH*1.04,8);DRAWICON(概率=5AND日线
13、锁定,L*0.95,14);DRAWICON(概率=4AND日线锁定,L*0.95,13);DRAWICON(概率=3AND日线锁定,L*0.95,11);MA5:MA(CLOSE,5),COLORWHITE;MA10:MA(CLOSE,10),COLORYELLOW;MA20:MA(CLOSE,24),COLORMAGENTA;MA60:MA(CLOSE,60),COLORGREEN;选股公式:日线锁定:=(PERIOD=5)AND(C>0)ANDV>0;引力:=(MA(C,30)+MA(C,72)/2;下轨:=引力*0.73;下轨75:=引力*0.75;下轨71:=引力*0.7
14、1;下轨68:=引力*0.68;过滤周期:=1;VAR1:=EMA(EMA(CLOSE,9),9);控盘:=(VAR1-REF(VAR1,1)/REF(VAR1,1)*1000;资金:=EMA(EMA(CLOSE,8),8);资金抬轿:=(资金-REF(资金,1)/REF(资金,1)*1000;有庄控盘:=资金抬轿>0;无庄控盘:=资金抬轿<=0;买线:=EMA(C,3);卖线:=EMA(SLOPE(C,22)*20+C,54);BU1:=CROSS(买线,卖线);SEL1:=CROSS(卖线,买线);BU2:=IFF(BU1AND有庄控盘,1,IFF(COUNT(BU1AND无庄
15、控盘,BARSLAST(SEL1)+1)=1ANDCROSS(资金抬轿,0),1,0);BU:=BU2ANDCOUNT(BU2,BARSLAST(SEL1)+1)=1;SEL:=SEL1ANDCOUNT(SEL1,BARSLAST(BU)+1)=1;BUNEW:=BU;止损条件:=CLOSE/REF(OPEN,BARSLAST(BU)<(1-7/100)ANDCOUNT(BU,BARSLAST(BU)+1)=1ANDCOUNT(SEL,BARSLAST(BU)+1)=0;SELNEW:=IFF(止损条件ANDCOUNT(止损条件,BARSLAST(BU)+1)=1,1,IFF(SELAN
16、DCOUNT(止损条件,BARSLAST(BU)+1)=0,1,0);重新买入:=COUNT(止损条件,BARSLAST(BUNEW)+1)>=1ANDCROSS(C,0.965*REF(O,BARSLAST(BUNEW);不在同一天1:=(重新买入ANDSELNEW)=0);BUNEW2:=(BUNEWANDCOUNT(SELNEW,过滤周期)=0)OR重新买入)AND不在同一天1;二次止损:=(CLOSE/REF(OPEN,BARSLAST(重新买入)<(1-7/100)ANDCOUNT(重新买入,BARSLAST(重新买入)+1)=1ANDCOUNT(SEL,BARSLAST
17、(重新买入)+1)=0);重新卖出:=(SELANDCOUNT(重新买入,BARSLAST(BUNEW2)+1)=1)OR(二次止损ANDSUM(二次止损,0)=1);不在同一天2:=(重新卖出ANDBUNEW2)=0);SELNEW2:=(SELNEWANDCOUNT(SELNEW,BARSLAST(BUNEW2)+1)=1)OR重新卖出)AND不在同一天2;BUNEW3:=BUNEW2ANDCOUNT(BUNEW2,BARSLAST(SELNEW2)+1)=1;SELNEW3:=SELNEW2ANDCOUNT(SELNEW2,BARSLAST(BUNEW3)+1)=1;D:=BARSLAS
18、T(BUNEW3)+1>=1ANDCOUNT(SELNEW3,BARSLAST(BUNEW3)+1)=0;K:=BARSLAST(SELNEW3)+1>=1ANDCOUNT(BUNEW3,BARSLAST(SELNEW3)+1)=0;修正局部定位:=IFF(COUNT(SELNEW3,BARSCOUNT(C)=0ANDCOUNT(BUNEW3,BARSCOUNT(C)=0,1,0);修正局部累计:=SUM(修正局部定位,1000)+1;精准修正累计:=IFF(修正局部累计=REF(修正局部累计,1)ANDREF(修正局部累计,2)<修正局部累计,修正局部累计,0);上市修正B
19、:=修正局部定位ANDCROSS(控盘,0);上市修正S:=修正局部定位ANDCROSS(0,控盘)ANDCOUNT(上市修正B,BARSLAST(C>0)>=1;上市D:=COUNT(上市修正B,BARSLAST(上市修正B)+1)=1ANDCOUNT(上市修正S,BARSLAST(上市修正B)+1)=0ANDCOUNT(SELNEW3,BARSCOUNT (C)=0;上市K:=COUNT(上市修正S,BARSLAST(上市修正S)+1)=1ANDCOUNT(上市修正B,BARSLAST(上市修正S)+1)=0ANDCOUNT (BUNEW3,BARSCOUNT(C)=0;SSXZBZS:=COUNT(上市修正B,BARSCOUNT(C);SSXZSZS:=COUNT(上市修正S,BARSCOUNT(C);QB:=IFF(修正局部定位,上市修正B,BUNEW3);XG:QBAND日线锁定;假如互助答疑不能解决需求,可以到?威客任务?发布有偿悬赏。