知守背离 0;
100;
VARC:=LOW;
VARD:=REF(LOW,1);
VARE:=SMA(ABS(VARC-VARD),3,1)/SMA(MAX(VARC-VARD,0),3,1)*100;
VARF:=MA(VARE/10,3);
VAR10:=LLV(LOW,30);
VAR11:=HHV(VARF,30);
MA(IF(LOW<=VAR10,(VARF+VAR11*2)/2,0),3);
N1:=21;//70822点com
VAR1A:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;
VAR2A:=SMA(VAR1A,9,1)+100;
VAR3A:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR4A:=SMA(VAR3A,3,1);
VAR5A:=SMA(VAR4A,3,1)+100;
VAR6A:=VAR5A-VAR2A;
端庄窝:=IF(VAR6A>N1,VAR6A-N1,0),colorwhite;
果断出击:IF(CROSS(端庄窝,0.01),100,0),STICK,colorgreen,LINETHICK2;
DRAWICON(果断出击>0,100,1),colorgreen;
LC:=REF(CLOSE,1);
RSI:=((SMA(MAX(CLOSE - LC,0),4.1,1))/(SMA(ABS(CLOSE - LC),4.1,1)))*(100);
瞄准底部:(CROSS(RSI,11))*(50),colorred;
DRAWTEXT(瞄准底部,60,'瞄准底部'),COLOR66FFCC;
RSV:=(((CLOSE - LLV(LOW,29)) / (HHV(HIGH,29) - LLV(LOW,29))) * 100);
K:=MA(RSV,5);
D:=MA(K,2);
J:=((3 * K) - (2 * D));
顶天立地:IF((J < 5),50,0),COLORFFFF00;
N:=60;
DD:=C==LLV(C,N);//{60日最低点}
DDSJ:=BARSLAST(REF(DD,1));//{上一低点时间}
DDGJ:=REF(CLOSE,DDSJ+1)>CLOSE;//{股价趋势}
GD:=C==HHV(C,N);//{60日最高点}
GDSJ:=BARSLAST(REF(GD,1));//{上一高点时间}
GDGJ:=REF(CLOSE,GDSJ+1)<CLOSE;//{股价趋势}
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K值:=SMA(RSV,3,1);
KDZB:=REF(K值,3+1)<K值;//{KDJ.K指标趋势}
K底背离:=K值<30 AND C<REF(C,3) AND KDZB;
KGZB:=REF(K值,3+1)>K值;
K顶背离:=K值>70 AND C>REF(C,3) AND KGZB;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD1:=(DIF-DEA)*2;
MDZB:=REF(MACD1,9+1)<MACD1;//{MACD指标趋势}
M底背离:=MACD1<0 AND C<REF(C,9) AND MDZB;
MGZB:=REF(MACD1,9+1)>MACD1;
M顶背离:=MACD1>0 AND C>REF(C,9) AND MGZB;
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
RDZB:=REF(RSI1,6+1)<RSI1;//{RSI指标趋势}
R底背离:=RSI1<30 AND C<REF(C,6) AND RDZB;
RGZB:=REF(RSI1,6+1)>RSI1;
R顶背离:=RSI1>70 AND C>REF(C,6) AND RGZB;
TYP:=(HIGH + LOW + CLOSE)/3;
CCI1:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
CDZB:=REF(CCI1,14+1)<CCI1;//{CCI指标趋势}
C底背离:=CCI1<30 AND C<REF(C,14) AND CDZB;
CGZB:=REF(CCI1,14+1)>CCI1;
C顶背离:=CCI1>70 AND C<REF(C,14) AND CGZB;
STICKLINE(C底背离,60,75,8,0),colorred,LINETHICK2;
STICKLINE(C顶背离,60,75,8,0),colorgreen,LINETHICK2;
STICKLINE(R底背离,40,55,8,0),colorred,LINETHICK2;
STICKLINE(R顶背离,40,55,8,0),colorgreen,LINETHICK2;
STICKLINE(M底背离,20,35,8,0),colorred,LINETHICK2;
STICKLINE(M顶背离,20,35,8,0),colorgreen,LINETHICK2;
STICKLINE(K底背离,0,15,8,0),colorred,LINETHICK2;
STICKLINE(K顶背离,0,15,8,0),colorgreen,LINETHICK2;
C2:=REF(C,1);
zt:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);
dt:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0);
IF(zt==0 AND dt==0 )
{
地量:=-10*(LLV(VOL,60)=VOL),colorred,LINETHICK3;
DRAWTEXT(地量,-20,'地'),colorred;
}
DRAWTEXT_FIX(ISLASTBAR,0,0,0,45),colorred;
VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
VAR2:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*(HIGH-OPEN+(CLOSE-LOW)),VOL/2));
VAR3:=IF(CLOSE>OPEN,0-VAR1*(HIGH-CLOSE+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0-VOL/2));
VAR4:=(VAR2+VAR3)*10000/FINANCE(7);
VAR5:=SUM(VAR4,5);
VAR6:=(2*CLOSE+HIGH+LOW+OPEN)/5;
VAR7:=EMA(EMA(EMA(VAR6,4),4),4);
VAR8:=(VAR7-REF(VAR7,1))/REF(VAR7,1)*100;
VAR9:=MA(VAR8,2);
VAR10:=MA(VAR8,1);
VAR11:=VAR8-VAR9;
VAR12:=(OPEN+HIGH+LOW+CLOSE)/4;
VAR13:=IF(IF(CLOSE>MIN(VAR12,HIGH) AND CLOSE<MAX(VAR12,HIGH),1,0) OR CLOSE=OPEN,VOL,0);
VAR14:=IF(IF(CLOSE>MIN(VAR12,LOW) AND CLOSE<MAX(VAR12,LOW),1,0),VOL,0);
VAR15:=IF(VAR13 AND VAR14,0,VOL/3);
VAR16:=10*(VAR13-(VAR14+VAR15))/IF(CAPITAL<1,SUM(VOL,13),CAPITAL);
VAR17:=VAR16;
VAR18:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
VAR19:=IF(CLOSE>OPEN,VAR18*(HIGH-LOW),IF(CLOSE<OPEN,VAR18*(HIGH-OPEN+(CLOSE-LOW)),VOL/2));
VAR20:=IF(CLOSE>OPEN,0-VAR18*(HIGH-CLOSE+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR18*(HIGH-LOW),0-VOL/2));
VAR21:=VAR19+VAR20;
VAR22:=VAR5>0 OR VAR11>0 OR VAR17>0 OR VAR21>0;
VAR23:=REF(CLOSE,1);
VAR24:=SMA(MAX(CLOSE-VAR23,0),3,1)/SMA(ABS(CLOSE-VAR23),3,1)*100;
VAR25:=SMA(MAX(CLOSE-VAR23,0),5,1)/SMA(ABS(CLOSE-VAR23),5,1)*100;
VAR26:=SMA(MAX(CLOSE-VAR23,0),8,1)/SMA(ABS(CLOSE-VAR23),8,1)*100;
VAR27:=0.5*VAR24+0.31*VAR25+0.19*VAR26;
VAR28:=SMA(100*(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8)),3,1);
VAR29:=SMA(100*(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8)),5,1);
VAR30:=SMA(100*(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8)),8,1);
VAR31:=0.5*VAR28+0.31*VAR29+0.19*VAR30;
超跌:=EMA(VAR31,7),colorgreen,LINETHICK2;
VAR32:=0.5*VAR27+0.5*VAR31;
起爆:=EMA(VAR32,3),colorred,LINETHICK2;
VAR33:=IF(VAR32<20 AND CLOSE>OPEN AND VAR22>0,1,0);
VAR34:=IF(VAR32<20 AND LOW>=REF(LOW,1) AND CLOSE>LOW AND VAR22>0,1,0);
VAR35:=IF(REF(VAR32,1)<20 AND VAR32>REF(VAR32,1),1,0);
VAR36:=VAR33=1 OR VAR34=1 OR VAR35=1;
超跌起爆:=VAR36 AND COUNT(VAR36,3)=1,NODRAW;
STICKLINE(超跌起爆,20,80,2,0),coloryellow;
LC := REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),3,1)/SMA(ABS(CLOSE-LC),3,1)*100;
RSI2:=SMA(MAX(CLOSE-LC,0),5,1)/SMA(ABS(CLOSE-LC),5,1)*100;
RSI3:=SMA(MAX(CLOSE-LC,0),8,1)/SMA(ABS(CLOSE-LC),8,1)*100;
相对强弱:=0.5*RSI1+0.31*RSI2+0.19*RSI3;
WAVE1:=SMA(100*(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8)),3,1);
WAVE2:=SMA(100*(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8)),5,1);
WAVE3:=SMA(100*(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8)),8,1);
短线波段:=0.5*WAVE1+0.31*WAVE2+0.19*WAVE3;
机会区:=20,POINTDOT,colorred;
风险区:=80,POINTDOT,colorgreen;
风险系数:0.5*相对强弱+0.5*短线波段,coloryellow;
CD1:=IF(风险系数<20 AND CLOSE>OPEN ,1,0);
CD2:=IF(风险系数<20 AND LOW>=REF(LOW,1) AND CLOSE>LOW ,1,0);
CD3:=IF(REF(风险系数,1)<20 AND 风险系数>REF(风险系数,1),1,0);
LBUY:=(CD1=1 OR CD2=1 OR CD3=1);
X:=100*(LBUY AND COUNT(LBUY,3)=1);
STICKLINE(X,0,100,6,0),coloryellow;
STICKLINE(风险系数>机会区 AND REF(风险系数,1)<机会区,0,100,6,0),colorred;
|
评论内容只代表网友观点,与本站立场无关!
本网提供的公式文件说明:
* alg格式飞狐股票公式,可以用飞狐交易师或者交易师软件导入;
* fnc格式大智慧新一代公式指标,可以用大智慧股票软件使用,少部分可以用分析家股票软件引入使用;
* exp格式大智慧经典版股票公式,仅可以用大智慧经典版股票软件引入使用;
* tni和tnc格式通达信股票公式,仅可以用通达信新引入使用,例如可以用通达信股票软件引入使用;
* tne,tn6格式通达信公式,可以用通达信公式编辑器5.0版导入,推荐通达信金融终端版本;
* hxf格式同花顺股票公式,仅可以用同花顺股票软件引入使用。
以上的各种软件都可以在本网股票软件栏目找到!
* 关于股票公式时间限制,如果在引入大智慧公式,交易师公式或者飞狐公式的时候,发现公式名称栏是空白的,这时候调整电脑时间到1997年,又能出现公式名称,并且能正常显示,可能是公式使用期限已过。
* 关于还原公式源码如果你忘记了自己编写的大智慧公式,通达信公式,同花顺公式,操盘手公式,飞狐公式,博易大师公式,金字塔公式,文华公式和交易师公式等等公式的密码,本网可帮恢复源码,有.偿.服.务无意勿扰,点击在线咨询联系我。
* 关于股票公式源码编辑
本网提供的源码,一般都可以编辑成公式,如果不明白公式的编辑,在本页右侧教程录像可参考,或者找公式教程资料学习,请搜索:教程
* 如果您发现软件内容或者链接错误,请点击报告错误谢谢!
* 站内提供的所有软件包含源码均是由网上搜集,若侵犯了你的版权利益,请联系通知我们!