当前位置:分析家公式网 → 股票公式 → 同花顺公式 → 一键转帖:追涨(同花顺公式 副图 源码 测试图)
软件名称:[B]追涨(同花顺公式 副图 源码 测试图)[/B]
软件类型:国产软件
运行环境:Win10/Win9X/Win8/Win2000/WinXP/Win2003/Win7/
软件语言:简体中文
授权方式:免费版
软件大小:0 Bytes
官方主页:Home Page
更新时间:2021-02-26 00:13:30
软件简介:
追涨
//追涨
TYP := (IF(ISNULL(HIGH),CLOSE,HIGH) + IF(ISNULL(LOW),CLOSE,LOW) + CLOSE)/3;
CCI0:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
DIFF : =EMA(CLOSE,12) - EMA(CLOSE,26);//MACD中DIFF的计算
DEA : =EMA(DIFF,9);//MACD中DEA的计算
MACD1 :=2*(DIFF-DEA);//计算MACD的值(当前周期的值)
MACD2:=REF(MACD1,1);//计算MACD的值(当前周期的前一周期的值)
MACD3:=IF((((MACD1/CLOSE)>-0.012)AND ((MACD1/CLOSE)<0.02)),1,0);//计算确认MACD值得范围
MACD4:=IF((MACD1>MACD2),1,0);//计算确认当前MACD值要大于前一周期的值
MACD6:=IF((MACD3=1AND MACD4=1),1,0);//计算MACD3与MACD4均满足时输出1,否则输出0
ZF:=(C-(REF(C,1)))/(REF(C,1))*100;//计算当日涨幅
T0:=VOL/SHGZG*100;//计算当日换手率,SHGZG:流通股
Y1:=REF(T0,1);//计算前一日的换手率
BZ:=(T0/Y1);//计算当日换手与前一日的换手率的比值
JX20:=IF(C>MA(C,20) AND MA(C,20) >=REF(MA(C,20) ,1),1,0);//股价在20日均线上且20日线均线走平或者向上的选股公式
JX30:=IF(C>MA(C,30) AND MA(C,30) >=REF(MA(C,30) ,1),1,0);
RJX20:=IF(C>MA(C,20),1,0);
RJX5:=IF(C>MA(C,5),1,0);//股价在5日均线之上
RJX10:=IF(C>MA(C,10),1,0);//股价在10日均线之上
RJX05:=IF((C>MA(C,5))>(C>MA(C,10))AND(C>MA(C,5))>(C>MA(C,20))AND(C>MA(C,5))>(C>MA(C,30))AND(C>MA(C,5))>(C>MA(C,40)),1,0);
MAVOL$3:=MA(VOL,3);//成交量
MAVOL$5:=MA(VOL,5);
MAVOL$10:=MA(VOL,10);
MAVOL$20:=MA(VOL,20);
MAVOL$40:=MA(VOL,40);
MA5:=MA(AMOUNT,5);//成交额
MA10:=MA(AMOUNT,10);
MA20:=MA(AMOUNT,20);
MA60:=MA(AMOUNT,60);
CJ1:=IF ((MA10>MA20),1,0);//如果近10日平均成交额大于近20日平均成交额,则输出1
CJ2:=IF((MA5<MA20 AND MA5>REF(MA5,1)),0.5,0);
CJ3:=IF((MAVOL$5>REF(MAVOL$5,1)AND (MAVOL$3>MAVOL$5)AND ZF>1),1,0);
CJ6:=CJ1+CJ2+CJ3,LINETHICK1;
WR1=10*(HHV(HIGH,3)-CLOSE)/(HHV(HIGH,3)-LLV(LOW,3)),;//WR指标又叫威廉超买超卖指标,简称威廉指标
WR2=10*(HHV(HIGH,5)-CLOSE)/(HHV(HIGH,5)-LLV(LOW,5)),;
CS=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;
主力线:=(EMA(CS,3)-50)*2;
主力线,COLORSTICK;
JC1:=IF((CCI0>200 AND ZF<9 AND CCI0<300),0.8,0);
JC2:=IF((BZ>1.8AND CCI0>150 AND ZF<9 AND BZ<2.5),0.8,0);
JC3:=IF((BZ<1 AND ZF<2AND 主力线<REF(主力线,1)AND CCI0<150 ),0.5,0);
JC4:=IF((BZ>1AND (CLOSE<OPEN) OR ((HIGH-CLOSE)/PRE)>0.02),0.9,0);
JC5:=IF((BZ<1.2AND (CLOSE<OPEN) AND CCI0>100 AND ZF>0),0.6,0);
JC6:=IF((主力线>80 AND (CLOSE<OPEN) AND CCI0>100 AND ZF>0),0.8,0);
JC7:=IF(BZ>3,0.8,0);
减仓:=-(JC1+JC2+JC3+JC4+JC5+JC6+JC7);
STICKLINE((CROSS(主力线,80)AND (WR1<10AND WR2<10)),0,-2,10,0),colorred;//OK
STICKLINE(CCI0>200,0-2,0-3,8,0),colorred;//OK
STICKLINE( ((CROSS(MAVOL$3 ,MAVOL$10)AND MACD>0 AND (CCI0>REF(CCI0,1))AND(主力线>REF(主力线,1))AND BZ<1.8) AND 减仓=0 AND 主力线<70 AND (CROSS(DIFF,DEA)) ),0+0,0-2,8,0),coloryellow;//3日成交量上穿5日成交量且MACD大于0且CCI大于前一日值且主力线大于前一日主力线 或者
ZT除100:-(BARSLAST((CLOSE/REF(CLOSE,1))>=1.1))/100,colorlired;//表示上一个涨停板到当前的周期数
CCI值:((TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14)))/100,colorwhite;
JX20:=IF(C>MA(C,20) AND MA(C,20) >=REF(MA(C,20) ,1),1,0);//股价在20日均线上且20日线均线走平或者向上的选股公式
JX30:=IF(C>MA(C,30) AND MA(C,30) >=REF(MA(C,30) ,1),1,0);
RJX20:=IF(C>MA(C,20),1,0);
RJX5:=IF(C>MA(C,5),1,0);//股价在5日均线之上
RJX5R:=MA(C,5);
RJX10:=IF(C>MA(C,10),1,0);
RJX10R:=MA(C,10);
RJX05:=IF((C>MA(C,5))>(C>MA(C,10))AND(C>MA(C,5))>(C>MA(C,20))AND(C>MA(C,5))>(C>MA(C,30))AND(C>MA(C,5))>(C>MA(C,40)),1,0);
LC := REF(CLOSE,1);
能量:=SQRT(VOL)*(((C-(H+L)/2))/((H+L)/2));
平滑能量:=EMA(能量,10);
人气:=EMA(平滑能量,10);
A:=VOL*CLOSE;
B:=SUM(A,1)/SUM(VOL,1);
B1:=EMA(B,20);
主力Z:=(B-B1)*500/B;
VR3:=(CLOSE+HIGH+LOW)/3;
VR4:=EMA(VR3,10);
VR5:=REF(VR4,1);
VAR200:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;
VAR300:=SMA(SMA(VAR200,3,1),3,1)/28.57;
VAR400:=EMA(VAR300,5);
主力1:=IF( ( 主力Z <REF(主力Z,1)) AND (REF(主力Z,1)- 主力Z ) >10 AND ( 主力Z <REF(主力Z,2)) ,0,1);
人气0:=IF(人气 <REF(人气,1) AND (REF(人气,1)- 人气 ) >0.5 AND ( 人气 <REF(人气,2)) ,0,1);
ZF005:=(C-(REF(C,5)))/(REF(C,5))*100;//计算近5日涨幅
ZF010:=(C-(REF(C,10)))/(REF(C,10))*100;//计算近10日涨幅
ZF020:=(C-(REF(C,20)))/(REF(C,20))*100;//计算近20日涨幅
ZF030:=(C-(REF(C,30)))/(REF(C,30))*100;//计算近30日涨幅
ZF040:=(C-(REF(C,40)))/(REF(C,40))*100;//计算近40日涨幅
ZF060:=(C-(REF(C,60)))/(REF(C,60))*100;//计算近60日涨幅
ZF099:=(C-(REF(C,99)))/(REF(C,99))*100;//计算近99日涨幅
ZF5D:=IF(ZF005>-3 AND ZF005<10 ,5,0);
ZF10D:=IF(ZF010>-6 AND ZF010<10 ,10,0);
ZF20D:=IF(ZF020>-5 AND ZF020<15 ,20,0);
ZF30D:=IF(ZF030>0 AND ZF030<20 ,30,0);
ZF99D:=IF(ZF099>10 ,0.99,0);
ZF值:=(ZF5D+ZF10D+ZF20D+ZF30D+ZF99D);
CCI001:=REF(CCI0,1);
CCI002:=REF(CCI0,2);
CCI003:=REF(CCI0,3);
CCI004:=REF(CCI0,4);
CCI005:=REF(CCI0,5);
CCI3:=((CCI001+CCI002+CCI003)/3);
CCI参数:=IF (CCI3>30 OR (CCI3>-100 AND CCI3>REF(CCI3,1) AND CCI0>-10),1,0);
十倍值:=(主力1+人气0+CCI参数+减仓)*10;
上影线:=((HIGH-CLOSE)/PRE)*10;
RQZB:=IF(人气>REF(人气,1),0,1);
ZLZZB:=IF(主力Z>REF(主力Z,1),0,1);
CCIZB:=IF(CCI0>REF(CCI0,1),0,1);
SBZZB:=IF(十倍值>REF(十倍值,1),0,1);
DJZB:=IF(RQZB=1 AND ZLZZB=1 AND CCIZB=1 AND SBZZB=1 ,0,1);
关注:=IF( DJZB=1 AND((ZF值>35.9 AND(ZF值>REF(ZF值,1)))OR ZF值>45.9) AND((主力Z>-5 OR ( 主力Z>-20 AND ( 主力Z >REF(主力Z,1)))) AND (人气>-2 OR ( 人气>-6 AND ( 人气 >REF(人气,1)))) OR (主力Z>0 AND 人气 >REF(人气,1))),-80,0);
GZ66:=IF(((CCI001<-100 OR CCI002<-100 OR CCI003<-100 OR CCI004<-100 OR CCI005<-100)AND 关注=-80 AND CCI0>0),1,0);
加仓:=IF((关注=-80 AND 主力1=1 AND 人气0=1 AND CCI参数=1),-100,0);
建仓:IF(((主力线>REF(主力线,1)OR 主力线>REF(主力线,2))AND 主力线<80AND CCI0<100 AND (MAVOL$5>MAVOL$40 OR MAVOL$10>MAVOL$40 OR MAVOL$5>MAVOL$10)AND BZ<2 AND MACD6=1 AND CJ6<2 AND CJ6>0 AND ZF<8 AND (ZF值=35.99 OR ZF值>40) AND (CCI001<-100 OR CCI002<-100 OR CCI003<-100 OR CCI004<-100 OR CCI005<-100) AND (REF(ZF,1)<6)AND (REF(ZF,2)<6) AND (REF(ZF,3)<6)),3,0);//建仓参考信号
STICKLINE(((CCI001<-100 OR CCI002<-100 OR CCI003<-100 OR CCI004<-100 OR CCI005<-100)AND 关注=-80 AND CCI0>0 AND CCI0<100 AND ZF<8 AND REF(ZF,1)<8 AND CCI0>REF(CCI0,1)
AND CLOSE>OPEN AND REF(ZF,2)>-6 AND REF(ZF,3)>-6AND REF(ZF,4)>-6AND REF(ZF,5)>-6AND REF(ZF,6)>-6AND REF(ZF,7)>-6AND REF(ZF,8)>-6AND REF(ZF,9)>-6AND REF(ZF,10)>-6 AND C>MA(C,60) ),0,2,10,0),colorgreen;
STICKLINE(((CCI001<0 OR CCI002<0 OR CCI003<0 OR CCI004<0 OR CCI005<0)AND 关注=-80 AND CCI0>0 AND CCI0<100AND ZF&
[url=http://www.70822.com/soft/sort013/sort036/down-154424.html]追涨(同花顺公式 副图 源码 测试图)[/url]
[url=http://www.70822.com/soft/sort013/sort036/down-154424.html]追涨(同花顺公式 副图 源码 测试图)[/url]