VAR1:=REF((LOW+OPEN+C+HIGH)/4,1),nodraw; VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),10,1),nodraw;
VAR3:=EMA(VAR2,10),nodraw;
VAR4:=LLV(LOW,33),nodraw;
VAR5:=EMA(IF(LOW<=VAR4,VAR3,0),3),nodraw;
N:=9;M1:=3;M2:=3;
RSV:=(C-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:SMA(RSV,M1,1),nodraw;
D:SMA(K,M2,1),nodraw;
J:3*K-2*D,nodraw;
Zero:0,colorwhite;
LOW0:0.2,nodraw;
HIGH0:5,nodraw;
//www.fxjgsw.com
HIGH_KDJ:98,nodraw;
主力进场:IF(VAR5>REF(VAR5,1),VAR5,0),colorred,NODRAW;
洗盘:IF(VAR5<REF(VAR5,1),VAR5,0),colorgreen,NODRAW;
STICKLINE(VAR5<REF(VAR5,1),0,VAR5,3,0),colorgreen;
洗盘结束:VAR5 > LOW0 AND VAR5 < HIGH0,nodraw;
HEIGHT=VAR5;
IF VAR5>HIGHEST THEN HEIGHT = HIGHEST;
IF VAR5<-HIGHEST THEN HEIGHT = -HIGHEST;
//HEIGHT=IF(VAR5>HIGHEST,HIGHEST,VAR5);
STICKLINE(VAR5>REF(VAR5,1),0,HEIGHT,3,0 ),COLOR000055;
STICKLINE(VAR5>REF(VAR5,1),0,HEIGHT,2.6,0 ),COLOR000077;
STICKLINE(VAR5>REF(VAR5,1),0,HEIGHT,2.1,0 ),COLOR000099;
STICKLINE(VAR5>REF(VAR5,1),0,HEIGHT,1.5,0 ),COLOR0000BB;
STICKLINE(VAR5>REF(VAR5,1),0,HEIGHT,0.9,0 ),COLOR0000DD;
STICKLINE(VAR5>REF(VAR5,1),0,HEIGHT,0.3,0 ),COLOR0000FF;
STICKLINE(VAR5<REF(VAR5,1),0,HEIGHT,3,0),COLOR005500;
STICKLINE(VAR5<REF(VAR5,1),0,HEIGHT,2.6,0),COLOR007700;
STICKLINE(VAR5<REF(VAR5,1),0,HEIGHT,2.1,0),COLOR009900;
STICKLINE(VAR5<REF(VAR5,1),0,HEIGHT,1.5,0),COLOR00BB00;
STICKLINE(VAR5<REF(VAR5,1),0,HEIGHT,0.9,0),COLOR00DD00;
STICKLINE(VAR5<REF(VAR5,1),0,HEIGHT,0.3,0),COLOR00FF00;
VAR21:=SMA(ABS(HIGH-VAR1),13,1)/SMA(MIN(HIGH-VAR1,0),10,1);
VAR31:=EMA(VAR21,10);
VAR41:=HHV(HIGH,33);
VAR51:=EMA(IF(HIGH>=VAR41,VAR31,0),3);
HEIGHT51=VAR51;
IF VAR51>HIGHEST THEN HEIGHT51 = HIGHEST;
IF VAR51<-HIGHEST THEN HEIGHT51 = -HIGHEST;
主力拉高:IF(VAR51<REF(VAR51,1),VAR51,0),coloryellow,NODRAW;
STICKLINE(VAR51<REF(VAR51,1),0,HEIGHT51,3,0),coloryellow;
出货:IF(VAR51>REF(VAR51,1),VAR51,0),colorcyan,NODRAW;
STICKLINE(VAR51>REF(VAR51,1),0,HEIGHT51,3,0 ),colorcyan;
KDJ升:= (K>REF(K,1) AND D >REF(D,1) AND J>REF(J,1));
/*
买:=IF(O=C AND (C-REF(C,1))/REF(C,1)*100>9.8,AMOUNT,AMOUNT/((H-L)*2-ABS(O-C))*(C-L));
买:买/AMOUNT*100,colorred,NODRAW;
流入亿元:AMOUNT*买/10000000000,colormagenta,NODRAW;
流出亿元:AMOUNT/100000000-流入亿元,colorgreen,NODRAW;
净流亿元:流入亿元-流出亿元,colorcyan,NODRAW;
净流亿元5:SUM(流入亿元-流出亿元,5),colorcyan,NODRAW;
SSA:=IF(C>REF(C,1),AMOUNT,0);
SSB:=IF(C<REF(C,1),AMOUNT,0);
净流入:SUM(SSA,0)-SUM(SSB,0),nodraw;
总额:=SUM(AMOUNT,0);
流入比:(净流入)/总额*100,nodraw
AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
买量:IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE<OPEN,AA*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),nodraw; //LINETHICK0,colorred;
卖量:IF(CLOSE>OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-AA*(HIGH-LOW),0-VOL/2)),nodraw; //LINETHICK0,colorcyan;
进出量:买量+卖量,COLOR00FFFF,nodraw;
*/
//启动拉升:(主力拉高 < 0 AND REF(主力拉高,1) = 0 ), ColorD9D919,nodraw; //AND C>OPEN AND VOL>1.2*REF(VOL,1) AND KDJ升>0
上涨:CLOSE > REF(CLOSE,1),nodraw;
放量拉升启动:(ABS(主力拉高) > 0 AND REF(主力拉高,1) = 0 AND CLOSE> (PriceIncRatio*REF(CLOSE,1)) AND VOL>VOLIncRatio*REF(VOL,1)), colorlired,nodraw;
暴涨启动:(ABS(主力拉高) > 0 AND REF(主力拉高,1)= 0 AND CLOSE>((PriceIncRatio+0.02)*REF(CLOSE,1)) ) ,colorred,nodraw;
启动拉升:(放量拉升启动 OR 暴涨启动) AND 上涨, ColorD9D919,nodraw;
启动上涨期:COUNT(主力拉高<0,PASTDAYS),nodraw;
启动拉升期:COUNT(启动拉升,PASTDAYS),nodraw;
连续拉升:( 主力拉高<0 AND REF(主力拉高,1) <0 ),nodraw;
最佳进场点:REF(主力进场,2) > 0 AND REF(洗盘,1) >0 AND 洗盘>0 ,nodraw;
DRAWTEXT(最佳进场点,-20,'潜'),coloryellow;
DRAWICON(最佳进场点,0,'buy');
// MACD //
DIFF:=EMA(C,SHORT)-EMA(C,LONG),colorwhite;
DEA:=EMA(DIFF,8),COLOrffaa00;
MACD:=2*(DIFF-DEA);
DIFF上穿0轴:=CROSS(DIFF,0),nodraw;
MACD金叉:=CROSS(DIFF,DEA),nodraw;
MACD金叉期:=COUNT(MACD金叉,PASTDAYS),nodraw;
///// KDJ //////
N:=9;M1:=3;M2:=3;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K=SMA(RSV,M1,1),coloryellow,LINETHICK1;
D=SMA(K,M2,1),colorcyan,LINETHICK1;
J=3*K-2*D,colormagenta,LINETHICK1;
KDJ势增:J>REF(J,1),nodraw;
高安全区=0,colorred;
安全区=20,colorcyan;
风险区=100,colorgreen;
KDJ金叉=CROSS(J,K),nodraw;
KDJ死叉=CROSS(K,J),nodraw;
KDJ买点=KDJ金叉 ;
KDJ卖点=KDJ死叉;
KDJ买点期:=COUNT(KDJ买点,PASTDAYS),nodraw;
通:=MA(C,LONG),nodraw,NOText;
最佳买点:(主力进场 OR 洗盘) AND (KDJ金叉 OR MACD金叉),nodraw;
DRAWICON(最佳买点,0,'buy');
DRAWTEXT(最佳买点,-20,'买'),colorred;
|
评论内容只代表网友观点,与本站立场无关!
本网提供的公式文件说明:
* alg格式飞狐股票公式,可以用飞狐交易师或者交易师软件导入;
* fnc格式大智慧新一代公式指标,可以用大智慧股票软件使用,少部分可以用分析家股票软件引入使用;
* exp格式大智慧经典版股票公式,仅可以用大智慧经典版股票软件引入使用;
* tni和tnc格式通达信股票公式,仅可以用通达信新引入使用,例如可以用通达信股票软件引入使用;
* tne,tn6格式通达信公式,可以用通达信公式编辑器5.0版导入,推荐通达信金融终端版本;
* hxf格式同花顺股票公式,仅可以用同花顺股票软件引入使用。
以上的各种软件都可以在本网股票软件栏目找到!
* 关于股票公式时间限制,如果在引入大智慧公式,交易师公式或者飞狐公式的时候,发现公式名称栏是空白的,这时候调整电脑时间到1997年,又能出现公式名称,并且能正常显示,可能是公式使用期限已过。
* 关于还原公式源码如果你忘记了自己编写的大智慧公式,通达信公式,同花顺公式,操盘手公式,飞狐公式,博易大师公式,金字塔公式,文华公式和交易师公式等等公式的密码,本网可帮恢复源码,有.偿.服.务无意勿扰,点击在线咨询联系我。
* 关于股票公式源码编辑
本网提供的源码,一般都可以编辑成公式,如果不明白公式的编辑,在本页右侧教程录像可参考,或者找公式教程资料学习,请搜索:教程
* 如果您发现软件内容或者链接错误,请点击报告错误谢谢!
* 站内提供的所有软件包含源码均是由网上搜集,若侵犯了你的版权利益,请联系通知我们!