当前位置:分析家公式网 → 股票公式 → 同花顺公式 → 一键转帖:知守背离(同花顺公式 副图 源码 测试图)
软件名称:[B]知守背离(同花顺公式 副图 源码 测试图)[/B]
软件类型:国产软件
运行环境:Win10/Win9X/Win8/Win2000/WinXP/Win2003/Win7/
软件语言:简体中文
授权方式:免费版
软件大小:12.0 KB
官方主页:Home Page
更新时间:2021-12-21 00:12:25
软件简介:
知守背离
含有2个未来函数
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;
[url=http://www.70822.com/soft/sort013/sort036/down-159803.html]知守背离(同花顺公式 副图 源码 测试图)[/url]