MACD整合 DRAWGBK(CLOSE>OPEN,RGB(25,25,112),RGB(47,79,79),1,2,1); DIF:EMA(CLOSE,12)-EMA(CLOSE,26); DEA:EMA(DIF,9),COLOR888888; NOTEXT5:IF(DIF>=DEA,DIF,DRAWNULL),COLORRED; NOTEXT6:IF(DIF<DEA,DIF,DRAWNULL),COLORWHITE; XA_1:=BARSLAST(REF(CROSS(DIF,DEA),1)); XA_2:=REF(CLOSE,XA_1+1)>CLOSE AND REF(DIF,XA_1+1)<DIF AND CROSS(DIF,DEA); XA_3:=BARSLAST(REF(CROSS(KDJ.K(9,3,3),KDJ.D(9,3,3)),1)); XA_4:=BARSLAST(REF(CROSS(DEA,DIF),1)); XA_5:=REF(CLOSE,XA_4+1)<CLOSE AND REF(DIF,XA_4+1)>DIF AND CROSS(DEA,DIF); MACD底背:IF(XA_2>0,(-0.1),0),COLORRED; MACD顶背:IF(XA_5>0,0.1,0),COLORGREEN; STICKLINE(XA_2>0,0.5*DIF,0,2,0),COLORRED; STICKLINE(XA_5>0,0.5*DIF,0,2,0),COLORGREEN; MACD:(DIF-DEA)*2,COLORSTICK; STICKLINE(MACD<REF(MACD,1) AND MACD>0,0,MACD,0,0),COLOR44FF00; STICKLINE(MACD>REF(MACD,1) AND MACD<0,0,MACD,0,0),COLOR0066FF; XA_6:=13; XA_7:=13; XA_8:=REF(DIF,XA_6)=HHV(DIF,2*XA_6+1); XA_9:=FILTER(XA_8,XA_6); XA_10:=BACKSET(XA_9,XA_6+1); XA_11:=FILTER(XA_10,XA_6); XA_12:=BACKSET(ISLASTBAR,BARSLAST(XA_11)+1); XA_13:=XA_12>REF(XA_12,1); XA_14:=REF(DIF,XA_7)=LLV(DIF,2*XA_7+1); XA_15:=FILTER(XA_14,XA_7); XA_16:=BACKSET(XA_15,XA_7+1); XA_17:=FILTER(XA_16,XA_7); XA_18:=BACKSET(ISLASTBAR,BARSLAST(XA_17)+1); XA_19:=XA_18>REF(XA_18,1); 压力线:DRAWLINE(XA_11,DIF,XA_13,DIF,0),DOTLINE,COLORCYAN; 支撑线:DRAWLINE(XA_17,DIF,XA_19,DIF,0),DOTLINE,COLOR00AAFF; XA_20:=FILTERX(支撑线>REF(支撑线,1) AND DIF>支撑线 AND REF(支撑线,1)=REF(DIF,1),2); 底抬高:DRAWLINE(XA_17,DIF,XA_20,支撑线,0),DOTLINE,COLORYELLOW; XA_21:=INTPART(3*10/5); XA_22:=REF(DIF,XA_21)=HHV(DIF,2*XA_21+1); XA_23:=FILTER(XA_22,XA_21); XA_24:=BACKSET(XA_23,XA_21+1); XA_25:=FILTER(XA_24,XA_21); XA_26:=BACKSET(ISLASTBAR,BARSLAST(XA_25)+1); XA_27:=XA_26>REF(XA_26,1); XA_28:=REF(DIF,XA_21)=LLV(DIF,2*XA_21+1); XA_29:=FILTER(XA_28,XA_21); XA_30:=BACKSET(XA_29,XA_21+1); XA_31:=FILTER(XA_30,XA_21); XA_32:=BACKSET(ISLASTBAR,BARSLAST(XA_31)+1); XA_33:=XA_32>REF(XA_32,1); 短压线:DRAWLINE(XA_25,DIF,XA_27,DIF,0),DOTLINE,COLOR99FF00; 短撑线:DRAWLINE(XA_31,DIF,XA_33,DIF,0),DOTLINE,COLOR0055FF; XA_34:=LLV(DEA,43); XA_35:=DEA-(DIF-DEA); XA_36:=IF(DIF<XA_34 AND DEA=XA_34,MIN(HHV(XA_34,10),XA_35),XA_34); XA_37:=REF(LOW,1); XA_38:=SMA(ABS(LOW-XA_37),13,1)/SMA(MAX(LOW-XA_37,0),13,1)*100; XA_39:=MA(XA_38,13); XA_40:=LLV(LOW,34); XA_41:=EMA(IF(LOW<=XA_40,XA_39,0),3); XA_42:=SMA(SMA((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,7,1),5,1); XA_43:=SMA((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,8,1)*15-XA_42*10.38; XA_44:=FILTER(IF(XA_43<=XA_42 AND XA_41>0,XA_41*8,0),5); 止跌:DRAWTEXT(XA_44 AND DIF<XA_36,DIF-11.01,101),COLORYELLOW; XA_45:=CROSS(DIF,DEA) AND DIF<(-0.1); STICKLINE(XA_45,0,(-0.18),6,0),COLORYELLOW; DRAWTEXT(XA_45,(-7.05),102),COLORYELLOW; XA_46:=IF(CROSS(0,DEA),1,0); XA_47:=IF(DIF<0 AND CROSS(DIF,DEA),1,0); XA_48:=IF(XA_46,SUM(XA_47,0),0); XA_49:=HHV(XA_48,0); XA_50:=SUM(XA_47,0); XA_51:=XA_50-XA_49=2 AND XA_50>REF(XA_50,1); DRAWTEXT(XA_51,DIF-15.05,103),COLOR0080FF; XA_52:=CROSS(MACD,DIF) AND MACD>=0-0.05 AND MACD<=0.02; DRAWTEXT(XA_52,MACD,104),COLORYELLOW; XA_53:=CROSS(DIF,DEA) AND DIF<(-0.1); XA_54:=COUNT(CROSS(DIF,DEA),BARSLAST(DEA>=0)); XA_55:=CROSS(DIF,DEA) AND DEA<0 AND COUNT(XA_54=2,21)=1; STICKLINE(XA_55,0,(-0.58),6,0),COLORMAGENTA; DRAWTEXT(XA_55,0.1,105),COLOR5500FF; XA_56:=BARSLAST(REF(CROSS(DIF,DEA),1)); XA_57:=REF(CLOSE,XA_56+1)>CLOSE AND DIF>REF(DIF,XA_56+1) AND CROSS(DIF,DEA); 底背:DRAWLINE(XA_56=0,DIF,XA_57,DIF,0),COLORYELLOW,LINETHICK2; XA_58:=BARSLAST(REF(CROSS(DEA,DIF),1)); XA_59:=REF(CLOSE,XA_58+1)<CLOSE AND REF(DIF,XA_58+1)>DIF AND CROSS(DEA,DIF); 顶背:DRAWLINE(XA_58=0,DIF,XA_59,DIF,0),COLORGREEN,LINETHICK2; DRAWTEXT(XA_57,DIF-30.5,106),COLOR0055FF; DRAWTEXT(XA_59,DIF*0.5,107),COLOR99FF00; XA_60:=3; XA_61:=EMA(CLOSE,3)-(EMA(CLOSE,6)+EMA(CLOSE,7))/2; XA_62:=EMA(XA_61,3)+EMA(0,2); XA_63:=REF(XA_61,XA_60)=HHV(XA_61,2*XA_60+1); XA_64:=FILTER(BB,XA_60) AND XA_61=HHV(XA_61,XA_60+1); XA_65:=BARSLAST(REF(XA_64,1)); XA_66:=REF(CLOSE,XA_65+1)<CLOSE AND REF(XA_61,XA_65+1)>XA_61 AND XA_64; DRAWTEXT(XA_66,XA_61*1.2,108),COLORGREEN; DRAWICON(XA_66>0,XA_61*1.2,2); XA_67:=REF(XA_61,XA_60)=LLV(XA_61,2*XA_60+1); XA_68:=BACKSET(XA_67,XA_60+1); XA_69:=FILTER(XA_68,XA_60) AND XA_61=LLV(XA_61,XA_60+1); XA_70:=BARSLAST(REF(XA_69,1)); XA_71:=REF(CLOSE,XA_70+1)>CLOSE AND REF(XA_61,XA_70+1)<XA_61; XA_72:=HHVBARS(MACD,BARSLAST(MACD<0)+1); XA_73:=CROSS(BACKSET(CROSS(0,MACD),REF(XA_72,1)+2),0.5); XA_74:=CROSS(BACKSET(CROSS(0,MACD) OR (ISLASTBAR AND MACD>0),REF(XA_72,1)+2),0.5); XA_75:=DRAWLINE(XA_73,MACD,REF(XA_73,1),REF(MACD,1),1); XA_76:=LLVBARS(MACD,BARSLAST(MACD>0)+1); XA_77:=CROSS(BACKSET(CROSS(MACD,0),REF(XA_76,1)+2),0.5); XA_78:=DRAWLINE(XA_77,MACD,REF(XA_77,1),REF(MACD,1),1); XA_79:=BARSLAST(FILTERX(CROSS(0,MACD),BARSCOUNT(CLOSE))); XA_80:=IF(MACD<0,FILTERX(MACD=LLV(MACD,BARSLAST(MACD>0)),BARSCOUNT(CLOSE)),DRAWNULL); XA_81:=BARSLAST(XA_80); XA_82:=FILTERX(MACD<CONST(LLV(MACD,XA_79+1)),BARSCOUNT(CLOSE)); XA_83:=BARSLAST(XA_82); XA_84:=IF(XA_79+1>=1,CONST(LLV(MACD,XA_79+1)),DRAWNULL); XA_85:=CROSS(COUNT(CROSS(MACD>XA_84/2 AND MACD<0,0.5),XA_81)=1,0.5) AND XA_81>=0; XA_86:=IF(ISLASTBAR AND MACD>0 AND MACD=HHV(MACD,BARSLAST(MACD<0)),1,IF(FILTERX(XA_74,BARSCOUNT(CLOSE)),2,DRAWNULL)); XA_87:=XA_86=1 OR XA_86=2 AND MACD>0; XA_88:=FILTERX(XA_87,BARSCOUNT(CLOSE)); XA_89:=DRAWLINE(XA_88,MACD,REF(XA_88,1),REF(MACD,1),1); XA_90:=CROSS(COUNT(CROSS(MACD<XA_89/2 AND MACD>0,0.5),XA_88)=1,0.5) AND XA_88>=0; STICKLINE(MACD>XA_75,MACD,XA_75,0,0),COLORWHITE; STICKLINE(MACD<0 AND MACD<XA_78 AND XA_78<0,MACD,XA_78,0,0),COLORWHITE; DRAWICON(CROSS(DIF,DEA),DEA,1); DRAWICON(CROSS(DEA,DIF),DEA,2); 底:ABS((CROSS(MACD.DIF,MACD.DEA) AND MACD.DEA<=(-0.07))*MACD.DIF)*1.5,COLORLIMAGENTA; DRAWTEXT(ABS(底)>0,底-25,109),COLORYELLOW; XA_91:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; K:SMA(XA_91,3,1),COLORWHITE; D:SMA(K,3,1),COLOR00DDDD; J:3*K-2*D,COLOR800080; DIFF:EMA(CLOSE,12)-EMA(CLOSE,26),COLORWHITE; XA_92:=IF(CLOSE=INDEXC,(INDEXC+INDEXH+INDEXL+INDEXO)/4,AMOUNT/(VOL+0.01)/100); XA_93:=IF(CLOSE=INDEXC,XA_92+INDEXC-INDEXL,XA_92+(CLOSE-LOW)); XA_94:=IF(CLOSE=INDEXC,INDEXL+INDEXC-XA_92,LOW+(CLOSE-XA_92)); 今压:REF(XA_93,1),COLORAA11BB,LINETHICK0; 今撑:REF(XA_94,1),COLOR009900,LINETHICK0; 明压:XA_93,LINETHICK0; 明撑:XA_94,LINETHICK0; XA_95:=(HHV(HIGH,9.8)-CLOSE)/(HHV(HIGH,9.8)-LLV(LOW,9.8))*101; XA_96:=SMA(XA_95,3,1); XA_97:=SMA(XA_96,3,1); XA_98:=3*XA_96-2*XA_97; XA_99:=IF(XA_98>=100,100,IF(XA_98<=0,0,XA_98)); 明天买:IF(XA_99=100,0-10,0),COLOR00CCCC; 明天卖:IF(XA_99=0,90,100),COLORGREEN; XA_100:=250; XA_101:=HHV(K,XA_100); XA_102:=HHV(D,XA_100); XA_103:=HHV(J,XA_100); XA_10 |
评论内容只代表网友观点,与本站立场无关!
本网提供的公式文件说明:
* alg格式飞狐股票公式,可以用飞狐交易师或者交易师软件导入;
* fnc格式大智慧新一代公式指标,可以用大智慧股票软件使用,少部分可以用分析家股票软件引入使用;
* exp格式大智慧经典版股票公式,仅可以用大智慧经典版股票软件引入使用;
* tni和tnc格式通达信股票公式,仅可以用通达信新引入使用,例如可以用通达信股票软件引入使用;
* tne,tn6格式通达信公式,可以用通达信公式编辑器5.0版导入,推荐通达信金融终端版本;
* hxf格式同花顺股票公式,仅可以用同花顺股票软件引入使用。
以上的各种软件都可以在本网股票软件栏目找到!
* 关于股票公式时间限制,如果在引入大智慧公式,交易师公式或者飞狐公式的时候,发现公式名称栏是空白的,这时候调整电脑时间到1997年,又能出现公式名称,并且能正常显示,可能是公式使用期限已过。
* 关于还原公式源码如果你忘记了自己编写的大智慧公式,通达信公式,同花顺公式,操盘手公式,飞狐公式,博易大师公式,金字塔公式,文华公式和交易师公式等等公式的密码,本网可帮恢复源码,有.偿.服.务无意勿扰,点击在线咨询联系我。
* 关于股票公式源码编辑
本网提供的源码,一般都可以编辑成公式,如果不明白公式的编辑,在本页右侧教程录像可参考,或者找公式教程资料学习,请搜索:教程
* 如果您发现软件内容或者链接错误,请点击报告错误谢谢!
* 站内提供的所有软件包含源码均是由网上搜集,若侵犯了你的版权利益,请联系通知我们!