年基:IF((MA(C,120)-MA(C,250))/MA(C,250)>0,REF(MA(C,250),BARSLAST(CROSS(MA(C,120),MA(C,250)))+1),DRAWNULL), colorred,LINETHICK3;
半年基:IF((MA(C,60)-MA(C,120))/MA(C,120)>0,REF(MA(C,120),BARSLAST(CROSS(MA(C,60),MA(C,120)))+1),DRAWNULL),
colormagenta,LINETHICK2;
季基:IF((MA(C,20)-MA(C,60))/MA(C,60)>0,REF(MA(C,60),BARSLAST(CROSS(MA(C,20),MA(C,60)))+1),DRAWNULL),
coloryellow,LINETHICK1;
月基:IF((MA(C,3)-MA(C,20))/MA(C,20)>0,REF(MA(C,20),BARSLAST(CROSS(MA(C,3),MA(C,20)))+1),DRAWNULL),
colorwhite,LINETHICK1;
///kdj、DPO和rsi指标///
LC := REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
RSI2:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;
RSI3:=SMA(MAX(CLOSE-LC,0),24,1)/SMA(ABS(CLOSE-LC),24,1)*100;
阿金叉1:=CROSS(RSI1,RSI2);
阿金叉2:=CROSS(RSI1,RSI3);
K全:="kdj.k"(9,3,3);
D全:="kdj.d"(9,3,3);
kd1:=k全>REF(k全,1) AND d全>=REF(d全,1);
K金:=CROSS(k全,d全) AND kd1;//
DRAWTEXT((K金 AND (阿金叉1 OR 阿金叉2)),H*1.05,'阿K'),coloryellow;
DPO:=CLOSE-REF(MA(CLOSE,20),10);
MADPO:=MA(DPO,6);
DPO金叉:=CROSS(DPO,MAdpo);
DRAWTEXT(K金 AND DPO金叉, H*1.06,'KDP'),colormagenta;
///短线之王/////www.fxjgsw.com
红线上穿买:=EMA(((2*C+H+L)/4-LLV(L,5))/(HHV(H,5)-LLV(L,5))*27,5),colorred;
红线下穿卖:=EMA(红线上穿买,3),COLORFFFF00;
短线启动:=CROSS(红线上穿买,红线下穿卖) AND 红线上穿买>REF(红线上穿买,1);//
DRAWTEXT(短线启动,H*1.03,'启'),colorwhite;
///花之舞///
花:=EMA(SLOPE(1,1)+C,3);
女:=EMA(SLOPE(1,1)+C,7);
花之舞:=CROSS(花,女) AND CLOSE/REF(CLOSE,1)>1.03;
DRAWTEXT(花之舞,H*1.04,'舞'),colorred;
///macd底背离///
DIFF:=EMA(CLOSE,9)-EMA(CLOSE,17);
DEADD:=EMA(DIFF,8),COLOrffaa00;
MACDD:=2*(DIFF-DEADD);
X1dd:=IF(diff<0,diff,0),COLOR0000FF,LINETHICK2;
X2dd:=IF(diff<0,0,diff),colormagenta,LINETHICK1;
X3dd:=IF(diff<DEAdd,diff,DEAdd),COLOR00ff00,linethick1;
X4dd:=IF(diff>DEAdd,DEAdd,DEAdd),linethick1,COLORffbb11;
低位金叉:=CROSS(DIFF,DEADD) AND DIFF<-0.1;
DRAWTEXT(低位金叉,H*1.07,'低位金叉'),coloryellow;
JCCOUNT:=COUNT(CROSS(DIFF,DEADD),BARSLAST(DEADD>=0));
二次金叉:=CROSS(DIFF,DEADD) AND DEADD<0 AND COUNT(JCCOUNT=2,21)=1;
DRAWTEXT(二次金叉,H*1.08,'二次金叉'),ColorFF00FF;
A1DD:=BARSLAST(REF(CROSS(DIFF,DEADD),1));
macd底背离:=REF(CLOSE,A1DD+1)>CLOSE AND DIFF>REF(DIFF,A1DD+1) AND CROSS(DIFF,DEADD);
DRAWTEXT(macd底背离,H*1.09,'底背驰'),Color6600FF;
A2DD:=BARSLAST(REF(CROSS(DEADD,DIFF),1));
顶背离:=REF(CLOSE,A2DD+1)<CLOSE AND REF(DIFF,A2DD+1)>DIFF AND CROSS(DEADD,DIFF);
DRAWTEXT(顶背离,CLOSE*1.08,'顶背离'),colorblue;
///主升行情主图///
多:EMA(C,3),coloryellow;
空:EMA(C,5),COLOR00FF00;
均衡:EMA(空,5),colorwhite,;
VARF1:=COUNT(CROSS(多,均衡),2)=1;
VARF2:=COUNT(CROSS(空,均衡),2)=1;
ZAI:=FILTER(VARF1 AND VARF2,2);
DRAWTEXT(ZAI,均衡,'主升'),COLORFF00FF;
VV2:=REF(CLOSE,1);//www.fxjgsw.com
VV3:=SMA((CLOSE-VV2),6,1)/SMA(ABS(CLOSE-VV2),6,1)*100;
DRAWICON(REF(VV3,1)>81 AND VV3<80,HIGH,2);
DRAWTEXT(REF(VV3,1)>81 AND VV3<80,HIGH,'沽空'),coloryellow;
VF1:=MA(CLOSE,60)-MA(CLOSE,5)/3.2;
DRAWTEXT(IF(CLOSE<VF1 AND VOL/240>MA(VOL,5)/240 AND CLOSE>=REF(CLOSE,1)*1.08 AND CLOSE<MA(CLOSE,13)*1.3,1,0),LOW,'★底☆'),colorred;
VARA:=(CLOSE-REF(OPEN,29))/REF(OPEN,29)*100;
VARB:=EMA(0.667*REF(VARA,1)+0.333*VARA,5);
DRAWTEXT(IF(VOL>=1.3*MA(VOL,5) AND COUNT(VARA>=VARB AND VARA<-17,3) AND REF(LOW,1)=LLV(LOW,120),1,0),LOW,'★注意买入');
VARR1:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100;
DRAWICON(CROSS(82,VARR1),HIGH,2);
DRAWTEXT(CROSS(82,VARR1),HIGH-0.3,'短空'),coloryellow;
VAR1:=(HIGH+LOW+OPEN+2*CLOSE)/5;
VAR2:=REF(VAR1,1);
VAR3:=SMA(MAX(VAR1-VAR2,0),10,1)/SMA(ABS(VAR1-VAR2),10,1)*100;
HY3:=IF(COUNT(VAR3<20,5)>=1 AND COUNT(VAR1=LLV(VAR1,10),10)>=1 AND CLOSE>=OPEN*1.038 AND VOL>MA(VOL,5)*1.2,1,0);
DRAWTEXT(HY3,LOW,'注意买入'),colorred;
S:=MA(VOL,5)/MA(VOL,60),colorred,,LINETHICK2;
A:=MA(S,5),colorgreen,,LINETHICK2;
BIAS:=(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100;
F:=MA(S,121);
RSV:=(CLOSE-LLV(LOW,45))/(HHV(HIGH,45)-LLV(LOW,45))*100;
K:=SMA(RSV,15,1);
D:=SMA(K,15,1);
J:=3*K-2*D;
//www.fxjgsw.com
LC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
DRAWTEXT(CROSS(84,RSI) , HIGH+0.25,'逃顶'),coloryellow ;
S1:=IF((J<11 AND BIAS>-11 AND CROSS( S,F) AND (S-F)>0.010),2,0),STICK,LINETHICK3,colorgreen;
DRAWTEXT(S1=2, HIGH+0.2,'关注'), colorgreen;
中轨:HHV(MA(H,13),13),colorred,LINETHICK2;
趋势:LLV(MA(H,13),1),colorgreen,LINETHICK2;
转运1:=多>REF(多,1) AND REF(多,1)<=REF(多,2);
转运2:=空>REF(空,1) AND REF(空,1)<=REF(空,2);
转运3:=均衡>REF(均衡,1) AND REF(均衡,1)<=REF(均衡,2);
转运:=转运1 AND 转运2 AND 转运3;
DRAWTEXT(转运,均衡*0.95,'主升'), colorblue;
短平快:=转运1 AND 转运2 AND ((均衡>=趋势 AND 均衡>=中轨) OR (C>=趋势 AND C>=中轨));
DRAWTEXT(短平快,均衡*0.99,'主升'), colorred;
主升浪1:=CROSS(多,趋势) AND C>趋势;
主升浪2:=CROSS(多,中轨) AND C>趋势;
DRAWTEXT(主升浪1,均衡*0.97,'主升'), coloryellow;
DRAWTEXT(主升浪2,多*1.03,'主升'), coloryellow;
DRAWICON(主升浪1,L*0.98,1);
DRAWICON(主升浪2,H*1.01,1);
第一主升:=主升浪1 AND 主升浪2 AND zai;
第二主升:=主升浪1 AND 主升浪2 AND COUNT(REF(ZAI,1)=1,1);
第三主升:=主升浪1 AND zai;
第四主升:=主升浪1 AND COUNT(REF(ZAI,1)=1,1);
第五主升:=短平快 OR ZAI;
有主升浪:=第一主升 OR 第二主升 OR 第三主升 OR 第四主升;
所有主升:=有主升浪 OR 第五主升;
///MA3K指标///
ema55:MA(CLOSE,55),POINTDOT,colorcyan;ema34:=MA(CLOSE,34),POINTDOT,colorgray;
BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
UP:=BBI + 2.58*STD(BBI,10);
LOOW:=BBI - 2.58*STD(BBI,10);
A7:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,21)+EMA((OPEN+HIGH+LOW+CLOSE)/4,34)+EMA((OPEN+HIGH+LOW+CLOSE)/4,68))/3;
VAR7:=FORCAST(A7,6);
MA3K:VAR7,POINTDOT,coloryellow;
STICKLINE(CROSS(MA3k,EMA55) AND MA3k>REF(MA3k,1),H*1.01,H*1.04,5,1),coloryellow;
STICKLINE(CROSS(趋势,MA3k) AND 趋势>REF(趋势,1),H*1.03,H*1.07,5,1),colorred;
STICKLINE(CROSS(趋势,EMA55) AND 趋势>REF(趋势,1),H*1.05,H*1.09,5,1),colorblue;
STICKLINE(CROSS(EMA55,MA3k),L*0.99,L*0.96,5,1),coloryellow;
STICKLINE(CROSS(MA3k,趋势),L*0.97,L*0.93,5,1),colorred;
STICKLINE(CROSS(EMA55,趋势),L*0.95,L*0.91,5,1),colorblue;
|
评论内容只代表网友观点,与本站立场无关!
本网提供的公式文件说明:
* alg格式飞狐股票公式,可以用飞狐交易师或者交易师软件导入;
* fnc格式大智慧新一代公式指标,可以用大智慧股票软件使用,少部分可以用分析家股票软件引入使用;
* exp格式大智慧经典版股票公式,仅可以用大智慧经典版股票软件引入使用;
* tni和tnc格式通达信股票公式,仅可以用通达信新引入使用,例如可以用通达信股票软件引入使用;
* tne,tn6格式通达信公式,可以用通达信公式编辑器5.0版导入,推荐通达信金融终端版本;
* hxf格式同花顺股票公式,仅可以用同花顺股票软件引入使用。
以上的各种软件都可以在本网股票软件栏目找到!
* 关于股票公式时间限制,如果在引入大智慧公式,交易师公式或者飞狐公式的时候,发现公式名称栏是空白的,这时候调整电脑时间到1997年,又能出现公式名称,并且能正常显示,可能是公式使用期限已过。
* 关于还原公式源码如果你忘记了自己编写的大智慧公式,通达信公式,同花顺公式,操盘手公式,飞狐公式,博易大师公式,金字塔公式,文华公式和交易师公式等等公式的密码,本网可帮恢复源码,有.偿.服.务无意勿扰,点击在线咨询联系我。
* 关于股票公式源码编辑
本网提供的源码,一般都可以编辑成公式,如果不明白公式的编辑,在本页右侧教程录像可参考,或者找公式教程资料学习,请搜索:教程
* 如果您发现软件内容或者链接错误,请点击报告错误谢谢!
* 站内提供的所有软件包含源码均是由网上搜集,若侵犯了你的版权利益,请联系通知我们!