神龙经典新 RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K0:=SMA(RSV,3,1);
D0:=SMA(K0,3,1);
J0:=3*K0-2*D0;
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26),colorgreen,NODRAW;
DEA:=EMA(DIFF,9),colorlired,NODRAW;
MACD:2*(DIFF-DEA),colormagenta,NODRAW;
RSV1:=(HHV(H,9.8)-C)/(HHV(H,9.8)-LLV(L,9.8))*101;
KK:=SMA(RSV1,3,1);
DD:=SMA(KK,3,1);
JJ:=3*KK-2*DD;
KX:=250;
KH:=HHV(K0,KX);
DH:=HHV(D0,KX);
JH:=HHV(J0,KX);
KL:=LLV(K0,KX);
DL:=LLV(D0,KX);
JL:=LLV(J0,KX);
HKMAX:=MAX(KH,MAX(DH,JH));
LKMIN:=MIN(KL,MIN(DL,JL));
KHLB:=(HKMAX+LKMIN)/2;
KHLC:=HKMAX-LKMIN;
MHF:=HHV(DIFF,KX);
MHD:=HHV(DEA,KX);
MHM:=HHV(MACD,KX);
MLF:=LLV(DIFF,KX);
MLD:=LLV(DEA,KX);
MLM:=LLV(MACD,KX);
HMAX:=MAX(MHF,MAX(MHD,MHM));
LMIN:=MIN(MLF,MIN(MLD,MLM));
FHLB:=(HMAX-LMIN)/100;
FHLC:=HMAX-LMIN;
SH:(0-FHLB)*(KHLC/FHLC)+KHLB,COLOR00AAAA;
DIFFA:=(DIFF-FHLB)*(KHLC/FHLC)+KHLB;
DEAA:=(DEA-FHLB)*(KHLC/FHLC)+KHLB;
//DRAWTEXT(ISLASTBAR=1,SH,' 0 轴'),COLOR00AAAA;
K:K0,LINETHICK2,COLORFF6600;
D:D0,LINETHICK2,COLOR99FF00;
J:J0,LINETHICK2,colorred;
bb1:=CROSS(J,D);
bb2:=CROSS(D,J);
DRAWICON(BB1,10,1);
DRAWICON(BB2,95,2);
//DRAWTEXT(BB1,D,"金叉"),colorred;
//DRAWTEXT(BB2,D,"死叉"),colorgreen;
MACDA:(MACD-FHLB)*(KHLC/FHLC)+KHLB,COLORFF0000;
CDA:=MACD<REF(MACD,1) AND MACD>0;
CDB:=MACD>=REF(MACD,1) AND MACD>0;
CDC:=MACD>REF(MACD,1) AND MACD<0;
CDD:=MACD<=REF(MACD,1) AND MACD<0;
STICKLINE(CDA,SH,MACDA,6,0),COLOR0066FF;//黄色段
STICKLINE(CDA,SH,MACDA,4,0),COLOR0077FF;
STICKLINE(CDA,SH,MACDA,3,0),COLOR0088FF;
STICKLINE(CDA,SH,MACDA,3,0),COLOR0099FF;
STICKLINE(CDA,SH,MACDA,2,0),COLOR00AAFF;
STICKLINE(CDA,SH,MACDA,1.5,0),COLOR00EEFF;
STICKLINE(CDB,SH,MACDA,6,0),COLOR0000AA; //红色段
STICKLINE(CDB,SH,MACDA,4,0),COLOR0011BB;
STICKLINE(CDB,SH,MACDA,3,0),COLOR0022CC;
STICKLINE(CDB,SH,MACDA,3,0),COLOR0033DD;
STICKLINE(CDB,SH,MACDA,2,0),COLOR0044EE;
STICKLINE(CDB,SH,MACDA,1.5,0),COLOR0055FF;
STICKLINE(CDC,SH,MACDA,6,0),COLORAA00BB;//向上粉红
STICKLINE(CDC,SH,MACDA,4,0),COLORBB11BB;
STICKLINE(CDC,SH,MACDA,3,0),COLORCC22BB;
STICKLINE(CDC,SH,MACDA,3,0),COLORDD33BB;
STICKLINE(CDC,SH,MACDA,2,0),COLOREE44BB;
STICKLINE(CDC,SH,MACDA,1.5,0),COLORFF55BB;
STICKLINE(CDD,SH,MACDA,6,0),COLOR007700;//青色
STICKLINE(CDD,SH,MACDA,4,0),COLOR008811;
STICKLINE(CDD,SH,MACDA,3,0),COLOR00AA22;
STICKLINE(CDD,SH,MACDA,3,0),COLOR00BB33;
STICKLINE(CDD,SH,MACDA,2,0),COLOR00DD44;
STICKLINE(CDD,SH,MACDA,1.5,0),COLOR00DD55;
//顶底信号
VAR51:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;
VAR52:=SMA(VAR51,4,1);
VAR53:=SMA(VAR52,6,1);
VAR54:=VOL/CAPITAL*34;
VAR55:=REF(VAR54,1);
STICKLINE(VAR53<7 AND VAR52<11,-3,0,6,0),LINETHICK2,coloryellow;
STICKLINE(VAR53>89.5 AND VAR52>91,100,97,6,0),LINETHICK1,COLORFF8888;
STICKLINE(VAR53>88.5 AND VAR52>94.6,100,95,8,0),colorred;
VAR2:=REF(L,1);
VAR3:=SMA(ABS(L-VAR2),3,1)/SMA(MAX(L-VAR2,0),3,1)*100;
VAR4:=EMA(VAR3*10,3);
VAR5:=LLV(L,N);
VAR6:=HHV(VAR4,N);
VAR7:=EMA(IF(L<=VAR5,(VAR4+VAR6*2)/2,0),3)/618;
VAR8:IF(VAR7>500,500,VAR7),NODRAW;
VAR02:=REF(H,1);
VAR03:=SMA(ABS(H-VAR02),3,1)/SMA(MAX(H-VAR02,0),3,1)*100;
VAR04:=EMA(VAR03*10,3);
VAR05:=HHV(H,M);
VAR06:=LLV(VAR04,M);
VAR07:=EMA(IF(H>=VAR05,(VAR04+VAR06*2)/2,0),3)/618;
VAR08:IF(VAR07>500,500,VAR07),NODRAW;
STICKLINE(VAR8>-120 OR VAR08>-120,0,0+0.5,1.5,-1),colorgray;
STICKLINE(VAR8>1 AND J>REF(J,1) AND REF(J,1)<REF(J,2),SH,MACDA,5,0),colorred;
STICKLINE(VAR8>0.1 AND VAR8<1 AND J>REF(J,1) AND REF(J,1)<REF(J,2),SH,MACDA,5,0),coloryellow;
STICKLINE(VAR08>1 AND J<REF(J,1) AND REF(J,1)>REF(J,2),SH,MACDA,5,0),colorgreen;
STICKLINE(VAR08>0.1 AND VAR08<1 AND J<REF(J,1) AND REF(J,1)>REF(J,2),SH,MACDA,5,0),colorcyan;
//柱子
DIF1:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA1:=EMA(DIF1,MID);
MACDD:=(DIF1-DEA1)*2,COLORSTICK;
MACCOLORD:= ABS(MACDD)+0.5;
VAR22:=REF(L,1);
VAR33:=SMA(ABS(L-VAR22),3,1)/SMA(MAX(L-VAR22,0),3,1)*100;
VAR44:=EMA(VAR33*10,3);
VAR555:=LLV(L,N);
VAR66:=HHV(VAR44,N);
VAR77:=EMA(IF(L<=VAR555,(VAR44+VAR66*2)/2,0),3)/618;
VAR88:IF(VAR77>500,500,VAR77),NODRAW;
VAR022:=REF(H,1);
VAR033:=SMA(ABS(H-VAR022),3,1)/SMA(MAX(H-VAR022,0),3,1)*100;
VAR044:=EMA(VAR033*10,3);
VAR055:=HHV(H,M);
VAR066:=LLV(VAR044,M);
VAR077:=EMA(IF(H>=VAR055,(VAR044+VAR066*2)/2,0),3)/618;
VAR088:IF(VAR077>500,500,VAR077),NODRAW;
STICKLINE(VAR8>1 AND J>REF(J,1) AND REF(J,1)<REF(J,2),SH,MACDA,2,0),colorred;
STICKLINE(VAR8>0.1 AND VAR8<1 AND J>REF(J,1) AND REF(J,1)<REF(J,2),SH,MACDA,5,0),coloryellow;
STICKLINE(VAR08>1 AND J<REF(J,1) AND REF(J,1)>REF(J,2),SH,MACDA,5,0),colorgreen;
STICKLINE(VAR08>0.1 AND VAR088<1 AND J<REF(J,1) AND REF(J,1)>REF(J,2),SH,MACDA,5,0),colorcyan;
|
评论内容只代表网友观点,与本站立场无关!
本网提供的公式文件说明:
* alg格式飞狐股票公式,可以用飞狐交易师或者交易师软件导入;
* fnc格式大智慧新一代公式指标,可以用大智慧股票软件使用,少部分可以用分析家股票软件引入使用;
* exp格式大智慧经典版股票公式,仅可以用大智慧经典版股票软件引入使用;
* tni和tnc格式通达信股票公式,仅可以用通达信新引入使用,例如可以用通达信股票软件引入使用;
* tne,tn6格式通达信公式,可以用通达信公式编辑器5.0版导入,推荐通达信金融终端版本;
* hxf格式同花顺股票公式,仅可以用同花顺股票软件引入使用。
以上的各种软件都可以在本网股票软件栏目找到!
* 关于股票公式时间限制,如果在引入大智慧公式,交易师公式或者飞狐公式的时候,发现公式名称栏是空白的,这时候调整电脑时间到1997年,又能出现公式名称,并且能正常显示,可能是公式使用期限已过。
* 关于还原公式源码如果你忘记了自己编写的大智慧公式,通达信公式,同花顺公式,操盘手公式,飞狐公式,博易大师公式,金字塔公式,文华公式和交易师公式等等公式的密码,本网可帮恢复源码,有.偿.服.务无意勿扰,点击在线咨询联系我。
* 关于股票公式源码编辑
本网提供的源码,一般都可以编辑成公式,如果不明白公式的编辑,在本页右侧教程录像可参考,或者找公式教程资料学习,请搜索:教程
* 如果您发现软件内容或者链接错误,请点击报告错误谢谢!
* 站内提供的所有软件包含源码均是由网上搜集,若侵犯了你的版权利益,请联系通知我们!