股票论坛

 找回密码
 免费注册
搜索
热搜: 活动 交友 discuz
查看: 3303|回复: 3
打印 上一主题 下一主题

请老师把指标公式改为选股公式,谢谢老师。

[复制链接]

指标研习组

Rank: 11Rank: 11Rank: 11Rank: 11

听众
1
跳转到指定楼层
楼主
发表于 2017-8-16 00:57 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
10爱心果
请老师把公式里出现---大牛来了把握机会布局,小牛到来把握机会,伯乐相马,低风险短线和短线启动的位置做成一个选股公式。谢谢老师。麻烦您了。

EZT:=(CLOSE>=ZTPRICE(REF(CLOSE,1),0.1)) ,NODRAW;
ZT:=REF(COUNT(EZT,66),1)>0 ,NODRAW;
超B:=L2_AMO(0,2)/10000.0;
超S:=L2_AMO(0,3)/10000.0;
大B:=L2_AMO(1,2)/10000.0;
大S:=L2_AMO(1,3)/10000.0;
中B:=L2_AMO(2,2)/10000.0;
中S:=L2_AMO(2,3)/10000.0;
小B:=L2_AMO(3,2)/10000.0;
小S:=L2_AMO(3,3)/10000.0;
CDB:=L2_AMO(0,0)/10000.0;
CDS:=L2_AMO(0,1)/10000.0;
DDB:=L2_AMO(1,0)/10000.0;
DDS:=L2_AMO(1,1)/10000.0;
大单动向:=(LARGEINTRDVOL-LARGEOUTTRDVOL)*10000/FINANCE(7);
涨跌动因:=IF(TRADENUM>0,(TRADEOUTNUM-TRADEINNUM)*100/TRADENUM,0);
大单差分:=IF(TRADENUM>0,(LARGETRDINNUM-LARGETRDOUTNUM)/TRADENUM*100,0);
大单频率:=IF(TRADENUM>0,LARGETRDINNUM*100/TRADENUM,0);
主力主动流入:=(超B+大B+中B+小B)-(超S+大S+中S+小S);
主动大宗流入:=(超B+大B)-(超S+大S);
主力净买:=(CDB+DDB)-(CDS+DDS);
净买:=主力净买>500;
流入:=主力主动流入>500;
主力:=主动大宗流入>主力主动流入;
资金:流入>0 AND 净买>0 AND 主力>0 AND 大单动向>0 AND 涨跌动因>0 AND 大单差分>0.1 AND 大单频率>1 ,COLORRED,NODRAW;
STICKLINE( 资金>0,O,C,3,0),COLORWHITE;
持有:=IF(CLOSE>SAR(4,2,20),SAR(4,2,20),DRAWNULL),COLORWHITE,NODRAW;
观望:=IF(CLOSE<SAR(4,2,20),SAR(4,2,20),DRAWNULL),COLORCYAN,NODRAW;
机会:(观望-CLOSE)/CLOSE*100 ,NODRAW;
生命线:MA(CLOSE,3),COLORRED,LINETHICK2;
IF(1>持有,生命线,DRAWNULL),COLORGREEN,LINETHICK3;
上证:=STRCMP(CODE,'999999'),NODRAW;
深证:=STRCMP(CODE,'399001'),NODRAW;
中小:=STRCMP(CODE,'399005'),NODRAW;
创业:=STRCMP(CODE,'399006'),NODRAW;
成立A:=上证>0 OR 深证>0 OR 中小>0 OR 创业>0 ,NODRAW;
买:=成立A>0 AND 持有>0 AND REF(持有,1)=观望 AND CLOSE>OPEN,NODRAW;
卖A:=成立A>0 AND 观望>0 AND REF(观望,1)=持有 AND OPEN>CLOSE,NODRAW;
DRAWICON(买>0,LOW*0.97,7);
DRAWICON(卖A>0,HIGH*1.03,8);
M5:=MA(C,5);
M10:=MA(C,10);
M20:=MA(C,20);
上穿:=C>M5 AND C>M10 AND C>M20 AND O<M5 AND O<M10 AND O<M20 ,NODRAW;
VAR2:=REF(LOW,1);
VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;
VAR4:=EMA(VAR3*10,3);
VAR5:=LLV(LOW,13);
VAR6:=HHV(VAR4,13);
VAR7:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618;
VAR8:=IF(VAR7>500,500,VAR7);
阶段底部:=VAR8>1 AND "KDJ.J">REF("KDJ.J",1) AND REF("KDJ.J",1)<REF("KDJ.J",2),NODRAW;
底:=REF(阶段底部>0 ,2) OR REF(阶段底部>0 ,1) OR REF(阶段底部>0,0)  ,NODRAW;
X5:=MA(CLOSE,5),NODRAW;
X10:=MA(CLOSE,10),NODRAW;
X20:=MA(CLOSE,20),NODRAW;
最大:=X10*1.03,NODRAW;
最小:=X10*0.97,NODRAW;
五日B:=最大>X5 AND X5>最小,NODRAW;
二十:=最大>X20 AND X20>最小,NODRAW;
十日:=最大>X10 AND X10>最小,NODRAW;
成立:=五日B>0 AND 十日>0 AND 二十>0 ,NODRAW;

个股:=(CLOSE-REF(CLOSE,21))/REF(CLOSE,21)*100;
大盘:=(INDEXC-REF(INDEXC,21))/REF(INDEXC,21)*100;
强势成立:=CROSS(个股,大盘);

RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
周K:="KDJ.K#WEEK"(9,3,3);
周D:="KDJ.D#WEEK"(9,3,3);
周J:="KDJ.J#WEEK"(9,3,3);

JLW:=REF(MA(VOL,5),2);
ZRL:=REF(VOL,1);
CYZ:=IF(ZRL>JLW,ZRL,JLW);
YDC:=VOL/CYZ>FROMOPEN/240+1;

ZGJ:=CLOSE>HHV(HIGH,22)*0.85;
ZGJA:=HHV(HIGH,22)*1.1>CLOSE;
MAW:=CLOSE>MA(CLOSE,5);
MAS:=CLOSE>MA(CLOSE,10);
MAE:=CLOSE>MA(CLOSE,20);
JXC:=MAW>0 AND MAS>0 AND MAE>0 ;
GDS:=HHVBARS(HIGH,22)>5;
ZZK:=REF(周D,5)>REF(周K,5) AND REF(周D,10)>REF(周K,10) AND REF(周D,15)>REF(周J,15);
BZ周金叉:=CROSS(周K,周D) AND ZZK>0;
BZZJC:=REF(COUNT(BZ周金叉,WEEKDAY),0)>0;
RZK:=REF(D,2)>REF(K,2) AND REF(D,3)>REF(K,3) AND REF(D,4)>REF(J,4);
BZRJC:=CROSS(K,D) AND RZK>0;

YBJC:=CROSS(K,D)>0;
肖裕喜提示买入:=ZT>0 AND 上穿>0 AND 底>0  AND C>OPEN AND 成立>0 AND YBJC>0,NODRAW;
STICKLINE( 肖裕喜提示买入>0,O,C,3,0),COLORRED;
DRAWTEXT(  肖裕喜提示买入>0,LOW,'↖波段启动'),COLORRED;
标准短线:=ZT>0 AND CLOSE>OPEN AND 70>周D AND BZZJC>0 AND BZRJC>0 AND 80>K AND 强势成立>0;
STICKLINE(标准短线>0,O,C,3,0),COLORRED;
DRAWTEXT( 标准短线>0,LOW*0.97,'↖标准短线'),COLORRED;
安全短线:=ZT>0 AND CLOSE>OPEN AND BZZJC>0 AND BZRJC>0 AND 30>周K AND 40>K;
STICKLINE( 安全短线>0,O,C,3,0),COLORRED;
DRAWTEXT(  安全短线>0,LOW*0.98,'↖低风险短线'),COLORRED;

JLWA:=REF(MA(VOL,5),2);
ZRLA:=REF(VOL,1);
CYZA:=IF(ZRL>JLWA,ZRLA,JLWA);
YDCA:=VOL/CYZA>2;{量能出现倍增}

ZGJB:=HHV(HIGH,22)*0.85;
ZGJAA:=HHV(HIGH,22)*1.1;
JGQH:=RANGE(CLOSE,ZGJB,ZGJAA);{收盘价在22天新高价附近}


MAWA:=CLOSE>MA(CLOSE,5);
MASA:=CLOSE>MA(CLOSE,10);
MAEA:=CLOSE>MA(CLOSE,20);
JXCA:=MAWA>0 AND MASA>0 AND MAEA>0 ;{收盘价形成多头}

GDSA:=HHVBARS(REF(HIGH,1),22)>5;{最高价距离今日过去5天以上}

ZF:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>6 ;{涨幅大于6个点}

周金叉:=LONGCROSS(周K,周D,20);
ZTA:=REF(COUNT(周金叉,5),0)>0;{周线低位金叉}
最高:=HHV(HIGH,22);
最低:=LLV(LOW,22);
振幅A:=35>REF((最高-最低)/最低*100,1);
黑马战法:=ZT>0 AND YDCA>0 AND JGQH>0 AND JXCA>0 AND GDSA>0 AND ZF>0 AND ZTA>0 AND 40>周K AND 振幅A>0 ;
STICKLINE( 黑马战法>0,O,C,3,0),COLORMAGENTA;
DRAWTEXT(  黑马战法>0,LOW*0.99,'↖强势黑马'),COLORMAGENTA;
伯乐相马:=BZZJC>0 AND CROSS(K,D)>0 AND 标准短线<>1 AND 安全短线<>1 AND 黑马战法<>1;
STICKLINE( 伯乐相马>0 ,O,C,3,0),COLORYELLOW;
DRAWTEXT(  伯乐相马>0 ,LOW*0.96,'↖伯乐相马'),COLORYELLOW;
QTBCL:=伯乐相马<>1 AND 标准短线<>1 AND 安全短线<>1 AND 黑马战法<>1;
短线启动:=CROSS(K,D)>0 AND QTBCL>0 AND REF(COUNT(CROSS(周K,周D),WEEKDAY),0)>0;
STICKLINE( 短线启动>0 ,O,C,3,0),COLORMAGENTA;
DRAWTEXT(  短线启动>0 ,LOW*0.96,'↖短线启动'),COLORMAGENTA;



周线:="SAR.SAR#WEEK"(4,2,20);
周收:=CLOSE#WEEK;
月线:="SAR.SAR#MONTH"(4,2,20);
月收:=CLOSE#MONTH;
Z买点:=REF(周线,1)>REF(周收,1) AND 周收>周线;
Z卖点:=REF(周收,1)>REF(周线,1) AND 周线>周收;
Y买点:=REF(月线,1)>REF(月收,1) AND 月收>月线;
Y卖点:=REF(月收,1)>REF(月线,1) AND 月线>月收;
DRAWTEXT(Y买点>0 ,LOW*0.975,'↖大牛来了把握机会布局'),COLORLIMAGENTA;
DRAWTEXT(Y卖点>0 ,HIGH,'↖大熊来了规避风险'),COLORGREEN;
DRAWTEXT(Z买点>0 ,LOW*0.965,'↖小牛到来把握机会'),COLORBROWN;
DRAWTEXT(Z卖点>0 ,HIGH,'↖小熊来了注意风险'),COLORGREEN;


TSCL:=10>LLVBARS(LOW,100);
ZGZL:=VOL=HHV(VOL,100);
机构建仓:=TSCL>0 AND ZGZL>0 AND CLOSE>OPEN;
STICKLINE( 机构建仓>0,O,C,3,0),COLORMAGENTA;
DRAWTEXT( 机构建仓>0,LOW*0.95,'↖机构建仓'), COLORMAGENTA;
XAX:=EVERY(REF(VOL,2)>REF(VOL,3),2);
YTQ:=REF(VOL,2)*0.6>REF(VOL,1) AND VOL>REF(VOL,2);
SYX:=COUNT(CLOSE>OPEN,5)>3;
机构拉升:=XAX>0 AND YTQ>0 AND SYX>0;
STICKLINE(机构拉升,O,C,3,0),COLORGREEN;
DRAWTEXT(机构拉升>0,LOW*0.94,'↖机构拉升'),COLORGREEN;
机构异动:=V>REF(V,1)*2 AND C>OPEN AND VOL>JLW*2 , NODRAW;
机会买入:= COUNT(REF(机构异动,1),3)>0  AND 机构异动>0;
DRAWTEXT( 机会买入>0  ,LOW*0.93,'↖机会买入'),COLORWHITE;
STICKLINE(肖裕喜提示买入<>1  AND 机构异动>0 ,O,C,3,0),COLORYELLOW;
DRAWTEXT(机会买入<>1 AND 机构异动>0 ,LOW*0.93,'↖机构异动'),COLORYELLOW;
振幅:=(HIGH-LOW)/LOW*100>0;
ZTTS:=BARSLAST(EZT);
WRJL:=REF(MA(VOL,5),2)*2;
ZRLN:=REF(VOL,1)*2;
BCLN:=IF(WRJL>ZRLN,WRJL,ZRLN);
ZFCL:=EVERY(振幅,ZTTS+2);
倍量:=ZFCL>0 AND VOL>ZRLN ;
缩量:=ZFCL>0 AND EVERY(REF(VOL,1)*0.9>VOL,3);
涨停量:=REF(VOL,ZTTS)>REF(VOL,ZTTS+1)*2 AND REF(振幅,ZTTS+1)>0;
涨停低价:=REF(CLOSE,ZTTS)*0.95;
最低价:=REF(LLV(LOW,ZTTS),1);
最高价:=REF(HHV(CLOSE,ZTTS),1);
涨幅限制:=10>(最高价-REF(CLOSE,ZTTS))/REF(CLOSE,ZTTS)*100;
统计缩量:=COUNT(缩量,2)>0 AND VOL>REF(VOL,1);
机构增仓:=涨幅限制>0 AND 最低价>涨停低价 AND CLOSE>最高价*0.98 AND  统计缩量>0 AND 10>ZTTS AND 涨停量>0 AND ZFCL>0;
STICKLINE(机构增仓>0,O,C,3,0),COLORLIMAGENTA;
DRAWTEXT(机构增仓>0,LOW*0.985,'↖机构增仓'),COLORLIMAGENTA;
SPZGJ:=HHV(HIGH,100)=HIGH AND HHV(VOL,100)=VOL;
GWDF:=(-6)>(CLOSE-OPEN)/OPEN*100;
阶段高位:=GWDF>0 AND SPZGJ>0  ;
STICKLINE(阶段高位>0 ,O,C,3,0),COLORGREEN;
DRAWTEXT(阶段高位>0 ,HIGH,'离场观望'),COLORGREEN;
MJ:=EVERY(J>100,3);
MD:=EVERY(D>80,2);
MK:=EVERY(K>80,2);
卖出:=成立A>0 AND MJ>0 AND MK>0 AND MD>0 ;
买入:=成立A>0 AND 0>J AND 阶段底部>0;

DRAWTEXT(卖出>0,HIGH*1.02,'顶部背离'),COLORGREEN;
DRAWTEXT(买入>0,LOW*0.98,'底部背离'),COLORMAGENTA;

指标研习组

Rank: 11Rank: 11Rank: 11Rank: 11

听众
1
沙发
 楼主| 发表于 2017-8-16 01:18 | 只看该作者
老师,把“机会买入”出现的位置也加到选股公式里。谢谢老师。
回复

使用道具 举报

指标研习组

Rank: 11Rank: 11Rank: 11Rank: 11

听众
1
板凳
发表于 2017-9-9 12:36 | 只看该作者
指标指导意义不大
回复

使用道具 举报

爵★★★

Rank: 21Rank: 21Rank: 21Rank: 21Rank: 21Rank: 21

听众
1
地板
发表于 2018-1-3 20:16 | 只看该作者
EZT:=(CLOSE>=ZTPRICE(REF(CLOSE,1),0.1));
ZT:=REF(COUNT(EZT,66),1)>0 ;
个股:=(CLOSE-REF(CLOSE,21))/REF(CLOSE,21)*100;
大盘:=(INDEXC-REF(INDEXC,21))/REF(INDEXC,21)*100;
强势成立:=CROSS(个股,大盘);
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
周K:="KDJ.K#WEEK"(9,3,3);
周D:="KDJ.D#WEEK"(9,3,3);
周J:="KDJ.J#WEEK"(9,3,3);
ZRL:=REF(VOL,1);
ZZK:=REF(周D,5)>REF(周K,5) AND REF(周D,10)>REF(周K,10) AND REF(周D,15)>REF(周J,15);
BZ周金叉:=CROSS(周K,周D) AND ZZK>0;
BZZJC:=REF(COUNT(BZ周金叉,WEEKDAY),0)>0;
RZK:=REF(D,2)>REF(K,2) AND REF(D,3)>REF(K,3) AND REF(D,4)>REF(J,4);
BZRJC:=CROSS(K,D) AND RZK>0;
标准短线:=ZT>0 AND CLOSE>OPEN AND 70>周D AND BZZJC>0 AND BZRJC>0 AND 80>K AND 强势成立>0;
安全短线:=ZT>0 AND CLOSE>OPEN AND BZZJC>0 AND BZRJC>0 AND 30>周K AND 40>K;
JLWA:=REF(MA(VOL,5),2);
ZRLA:=REF(VOL,1);
CYZA:=IF(ZRL>JLWA,ZRLA,JLWA);
YDCA:=VOL/CYZA>2;
ZGJB:=HHV(HIGH,22)*0.85;
ZGJAA:=HHV(HIGH,22)*1.1;
JGQH:=RANGE(CLOSE,ZGJB,ZGJAA);
MAWA:=CLOSE>MA(CLOSE,5);
MASA:=CLOSE>MA(CLOSE,10);
MAEA:=CLOSE>MA(CLOSE,20);
JXCA:=MAWA>0 AND MASA>0 AND MAEA>0;
GDSA:=HHVBARS(REF(HIGH,1),22)>5;
ZF:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>6;
周金叉:=LONGCROSS(周K,周D,20);
ZTA:=REF(COUNT(周金叉,5),0)>0;
最高:=HHV(HIGH,22);
最低:=LLV(LOW,22);
振幅A:=35>REF((最高-最低)/最低*100,1);
黑马战法:=ZT>0 AND YDCA>0 AND JGQH>0 AND JXCA>0 AND GDSA>0 AND ZF>0 AND ZTA>0 AND 40>周K AND 振幅A>0;
伯乐相马:=BZZJC>0 AND CROSS(K,D)>0 AND 标准短线<>1 AND 安全短线<>1 AND 黑马战法<>1;
QTBCL:=伯乐相马<>1 AND 标准短线<>1 AND 安全短线<>1 AND 黑马战法<>1;
短线启动:=CROSS(K,D)>0 AND QTBCL>0 AND REF(COUNT(CROSS(周K,周D),WEEKDAY),0)>0;
周线:="SAR.SAR#WEEK"(4,2,20);
周收:=CLOSE#WEEK;
Z买点:=REF(周线,1)>REF(周收,1) AND 周收>周线;
XG:Z买点>0 OR 伯乐相马>0 OR 安全短线>0 OR 短线启动>0;
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 免费注册

本版积分规则

QQ|站点首页|手机版|小黑屋|帮助中心|桂ICP备14001964号

GMT+8, 2024-11-23 22:11 , Processed in 0.151086 second(s), 19 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表