找回密码
 立即注册

QQ登录

只需一步,快速开始

广告载入中...
查看: 729|回复: 3

同花顺公式4

[复制链接]
发表于 2017-1-6 21:18 | 显示全部楼层 |阅读模式

马上注册,享用更多功能,让你轻松玩转本论坛。

您需要 登录 才可以下载或查看,没有账号?立即注册

×
132,昨天的量为阴量,或昨天量比前天量要小(缩量)
SL:REF(VOL,1)<REF(VOL,2) AND REF(CLOSE,1)<REF(OPEN,1);


  133,只要交换金叉时均线前后的位置,就变成死叉的写法了:
死叉:CROSS(MA(C,10),MA(C,5));
  134,macd后金叉高于前金叉:
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
JC:=CROSS(DIFF,DEA)AND DEA<0;
JJ:=BARSLAST(JC);
QC:=CROSS(DIFF,DEA)AND COUNT(JC,30)=2;
REF(DEA>REF(DEA,JJ),1)AND QC;
REF(DEA<REF(DEA,JJ),1) AND QC;

135,计算N日均线斜率:
JX:=REF(EMA(C,N),1);
斜率EMA(C,N)-JX)/JX*100;

136,开盘N小时内,股价一直大于均价:
IF(OPENMINUTES(HOUR<N),C>DYNAINFO(11),0);

137,N天内跌幅超过X:
N:=20;X:=30;
IF(SUM((1-C/REF(C,1))*100,N)>X,1,0);

138,macd二次金叉:
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
JC:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));//首先界定金叉条件:
选股:CROSS(DIFF,DEA) AND DEA<0 AND JC=2; //定位金叉的次数:

139,M天内、曾经N次涨停:
连续涨停:=COUNT(C/REF(C,1)>1.099,N)=N;
所有个股:COUNT(连续涨停,M)=1;

140,N天内跌幅超过X:
N:=20;X:=30;
IF(SUM((1-C/REF(C,1))*100,N)>X,1,0);
141,2阳夹1阴
REF(C,2)>REF(O,2) AND REF(C,1)<REF(O,1) AND
  C>O AND C>=REF(O,1);
142,昨天大涨今收阴十字星大于昨收盘:
昨天大涨:=REF(C,1)/REF(C,2)>1.05;
阴十字星:=H/L>1.015 AND O>C AND H>O AND C>L AND O/C<1.005;
大于昨收盘:=C>REF(C,1);
选股:昨天大涨 AND 阴十字星 AND 大于昨收盘;
143,全天涨停:
全天涨停LOW>REF(HIGH,1)) AND (HIGH=LOW);



144,跳空高开的选股公式

o>ref(h,1);

  145,{靠近年线}
a1c-ma(c,250))/ma(c,250);
0;
  146,10日内的K线实体的幅度(不管是阴是阳)全部小于3%的选股公式:
选:count((abs(c-o)/min(c,o)*100)<3,10)=10;

147,公式条件:
1.换手率大于3%;
2.量比大于2倍;
3.现价小于10元;
4.流通盘小于2亿股;
5.每股收益大于0.1元;
6.涨幅大于3%;
7.MACD的DIFF上穿DEA,金叉;



X1:=DYNAINFO(37)>0.03;
X2:=DYNAINFO(17)>2;
X3:=C<10;
X4:=CAPITAL/1000000<2;
X5:=FINANCE(33)>0.1;
X6:=(C-REF(C,1))/REF(C,1)>0.03;
X7:=CROSS(MACD.DIF,MACD.DEA);
XG:X1 AND X2 AND X3 AND X4 AND X5 AND X6 AND X7;



148,股价涨停.在K线图上画黄色
STICKLINE(C/REF(C,1)>=1.099,O,C,1,0),COLORYELLOW;

149,今收盘对于N日内最低收盘价的涨幅(%)
  
  (C-LLV(C,N))/LLV(C,N)*100;
  


150,今收盘对于N日内最高收盘价的跌幅(%)
  
  (HHV(C,N)-C)/HHV(C,N)*100;
  

151,股价在过去N日内运行空间的相对位置
  
  (C-LLV(L,N))/(HHV(H,N)-LLV(L,N))*100;
  

152,股价上方N1%至N2%处的筹码(%)
  
  AA:=WINNER(C+C*N2/100)*100;
  BB:=WINNER(C+C*N1/100)*100;
  AA-BB
  
153,股价下方N1%至N2%处的筹码(%)
  
  (WINNER(C-C*N1/100)-WINNER(C-C*N2/100))*100;
  

154,收盘价N%处的套牢盘
  
  100-(WINNER(C*N/100))*100;



155,收盘价N%处的获利盘
  
  WINNER(C*N/100)*100;

156下影线
  
  (MIN(C,O)-L)/(H-L);

157,上影线
  
  (H-MAX(C,O))/(H-L)

158,本周期的涨跌幅
  
  (C-REF(C,1))/REF(C,1)*100;

159,振幅
  
  (H-L)/L*100;

160,均线金叉
  
  CROSS(MA(C,N),MA(C,M));{N< M}
  

161,均线死叉
  
  CROSS(MA(C,M),MA(C,N));{N< M}



162,均线多头排列
  
  A1:=MA(C,N1);
  A2:=MA(C,N2);
  A3:=MA(C,N3);
  A4:=MA(C,N4);
  COUNT(A1>A2 AND A2>A3 AND A3>A4,3);
  

163,均线空头排列
  A1:=MA(C,N1);
  A2:=MA(C,N2);
  A3:=MA(C,N3);
  A4:=MA(C,N4);
  COUNT(A1< A2 AND A2< A3 AND A3< A4,3);

164,N日均线向下
  
  AA:=MA(C,N);
  BB:=REF(AA,1);
  AA< BB

165,N日均线向上
  
  AA:=MA(C,N);
  BB:=REF(AA,1);
  AA>BB



166,N日均线走平
  
  AA:=MA(C,N);
  BB:=REF(AA,1);
  AA=BB

167,向前N日至M日出现过均线死叉(P1< P2)
  
  AA:=MA(C,P1);
  BB:=MA(C,P2);
  CC:=REF(CROSS(BB,AA),N);
  COUNT(CC,M);

168,今日成交量大于N日以来的均量
  
  VOL>MA(VOL,N);



169,低位密集
  
  A1:=COST(85);
  A2:=COST(15);
  A3:=A1-A2;
  A4:=(A1+A2)/2;
  A5:=A3/A4*100<10;
  B1:=HHV(H,120);
  B2:=LLV(L,120);
  B3:=B1-B2;
  B4:=(A4-B2)< B3/2;
  A5 AND B4;

170,换手率
  
  VOL/CAPITAL*100;



171,N日盈亏
  
  V1:=VOL/SUM(VOL,N);
  V2:=DMA(CLOSE,V1);
  V3CLOSE-V2)/V2*100;



172,均线粘合:

设均线为a1,a2,a3

ff:=max(max(a1,a2),a3);
bb:=min(min(a1,a2),a3);
zz:=(ff/bb-1)*100<1;
count(zz,3)=3;


173,连续3涨停

COUNT(c/ref(c,1)>1.094 ,4)=4;
  174,大智慧公式短语
1间隔点:
20,colorred,pointdot,linethick2;
80,colorred,pointdot,linethick2;
50,colorred,pointdot,linethick2;

2间隔线
20,colorred,linethick2;

80,colorred,linethick2;

50,colorred,linethick2;

3信号字
DRAWTEXT(RSI1<10,RSI1,'买'),Colorlime;
DRAWTEXT(RSI1>85,RSI1,'卖'),Colorlime;

4笑哭脸
DRAWICON(VR24<25,VR24,1),ColorFF0000;
DRAWICON(VR24>350,VR24,2),ColorFF0000;

5一线提示
cross("kdj.j"(9,3,3),"kdj.d"(9,3,3)) and "kdj.j"(9,3,3)<20,colorred

6一柱顶天
IF(VAR4=50,50,0),stick,linethick2;

7小人作怪
多头卒:Var3,LINETHICK2, COLORf00ff0;
空头卒:Var4,LINETHICK2, COLORYELLOW;
DRAWICON(Var9,Var9,1);
DRAWICON(Var10,Var10,2);

8小人
买入:Var1 AND Var2,stick,linethick2,colorred;
卖出:CROSS(80,Var4),stick,linethick2,colorgreen;
drawicon(卖出,1.1,2);
drawicon(买入,1.1,1);
发表于 2017-2-5 04:13 | 显示全部楼层
谢谢楼主分享
回复

使用道具 举报

发表于 2017-2-13 16:04 | 显示全部楼层
一楼的位置好啊..
回复

使用道具 举报

发表于 2017-2-13 16:17 | 显示全部楼层
谢谢楼主分享!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|股海明灯官网 ( 京ICP备18020431号 )

GMT+8, 2024-11-15 15:18 , Processed in 0.092350 second(s), Total 12, Slave 11 queries , Gzip On, MemCached On.

Powered by Discuz! X3.5

Copyright © 2001-2024 Tencent Cloud.

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