大智慧公式源代码【共172个】 下载本文

内容发布更新时间 : 2024/11/8 17:06:34星期一 下面是文章的全部内容请认真阅读。

A:=C/REF(C,1)>1.095; XG:EVERY(A,3);

126、30日线开始上翘 MA30:MA(C,30);

(MA30>REF(MA30,1)) AND (REF(MA30,1)<=REF (MA30,2)); 127、当收盘价大于10均线时,主图背景是黄色的,小于的时候是绿色的 ma10:=ma(c,10);

DRAWGBK(c>=ma10),colorred; DRAWGBK(c

128、日涨幅小于3%

C>0 AND C/REF(C,1) >1.03;

129、股价创30个交易日的新高 H>ref(H,30)

130、3根阳线,并且第二根阳线的量比第一根小,第三根的量比第二根小 EY:=CLOSE>OPEN; ZL:=VOL

XG:SUM(EY,3)=3 AND SUM(ZL,3)=3; ------------------------------ 或者这样: EY:=CLOSE>OPEN; ZL:=VOL

XG:COUNT(EY,3)=3 AND COUNT(ZL,3)=3;

131、昨天的量为阴量,或昨天量比前天量要小(缩量)

SL:REF(VOL,1)

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

134、计算N日均线斜率: JX:=REF(EMA(C,N),1); 斜率:(EMA(C,N)-JX)/JX*100; 135、开盘N小时内,股价一直大于均价: IF(OPENMINUTES(HOURDYNAINFO(11),0); 136、N天内跌幅超过X: N:=20;X:=30;

IF(SUM((1-C/REF(C,1))*100,N)>X,1,0); 137、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; //定位金叉的次数: 138、M天内、曾经N次涨停:

连续涨停:=COUNT(C/REF(C,1)>1.099,N)=N; 所有个股:COUNT(连续涨停,M)=1; 139、N天内跌幅超过X: N:=20;X:=30;

IF(SUM((1-C/REF(C,1))*100,N)>X,1,0); 140、2阳夹1阴

REF(C,2)>REF(O,2) AND REF(C,1)O AND C>=REF(O,1);

141、昨天大涨今收阴十字星大于昨收盘: 昨天大涨:=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 大于昨收盘;

142、全天涨停:

全天涨停:(LOW>REF(HIGH,1)) AND (HIGH=LOW); 143、跳空高开的选股公式 o>ref(h,1); 144、靠近年线

a1:(c-ma(c,250))/ma(c,250);

0;

145、10日内的K线实体的幅度(不管是阴是阳)全部小于3%的选股公式: 选:count((abs(c-o)/min(c,o)*100)<3,10)=10; 146、公式条件: 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; 147、股价涨停.在K线图上画黄色

STICKLINE(C/REF(C,1)>=1.099,O,C,1,0),COLORYELLOW;

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

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

150、股价在过去N日内运行空间的相对位置 (C-LLV(L,N))/(HHV(H,N)-LLV(L,N))*100; 151、股价上方N1%至N2%处的筹码(%) AA:=WINNER(C+C*N2/100)*100; BB:=WINNER(C+C*N1/100)*100; AA-BB

152、股价下方N1%至N2%处的筹码(%)

(WINNER(C-C*N1/100)-WINNER(C-C*N2/100))*100;

153、收盘价N%处的套牢盘 100-(WINNER(C*N/100))*100; 154、收盘价N%处的获利盘 WINNER(C*N/100)*100; 155、下影线

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

(H-MAX(C,O))/(H-L) 157、本周期的涨跌幅

(C-REF(C,1))/REF(C,1)*100; 158、振幅 (H-L)/L*100;

159、均线金叉

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

CROSS(MA(C,M),MA(C,N));{N< M} 161、均线多头排列 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); 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、N日均线向下 AA:=MA(C,N); BB:=REF(AA,1); AA< BB 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日至M日出现过均线死叉(P1< P2) AA:=MA(C,P1); BB:=MA(C,P2);

CC:=REF(CROSS(BB,AA),N); COUNT(CC,M);

167、今日成交量大于N日以来的均量 VOL>MA(VOL,N); 168、低位密集 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;

169、换手率 VOL/CAPITAL*100; 170、N日盈亏

V1:=VOL/SUM(VOL,N); V2:=DMA(CLOSE,V1); V3:(CLOSE-V2)/V2*100; 171、均线粘合: 设均线为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;

172、连续3涨停

COUNT(c/ref(c,1)>1.094 ,4)=4;

大智慧公式短语 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(\ 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);