崔氏MDKD共振指標公式源碼[同花順公式]
相關標簽:
?
1、綠色柱子是持幣區域,空頭行情,在空頭行情中kdj返多是若反彈,不參與;2、macd剛剛金叉就出現紅色空心柱子是持幣區域,不參與,這個情況是macdhe kdj沒有出現共振返多,多空激烈爭奪區域,大幅震蕩,短線高手可以做t。3、macd剛剛金叉就出現紅色實心柱子,這是macd和kdj共振返多信號,積極做多;隨后出現的紅色空心柱子,是短線kdj走弱跡象,可以減倉,在后出現的藍色柱子,是多頭行情中macd和kdj共振走弱。在10日均線下方持幣,強勢股在10日均線上方震蕩可以做t,否則不掙錢
?
?
原理解析:
?
?來源:程序化99( www.kzuj.com.cn )
源碼:
?
?
RSV1:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;RSV2:=(CLOSE-LLV(LOW,37))/(HHV(HIGH,37)-LLV(LOW,37))*100;短線:=SMA(SMA(RSV1,3,1),3,1)+3*STD(CLOSE,21);中線:=SMA(RSV2,5,1)+2*STD(CLOSE,37);RSV3:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100;長線:=SMA(RSV3,5,1);///www..com黃金坑:短線<20 AND 中線<20 AND 長線<20,coloryellow,nodraw;STICKLINE(黃金坑>0 AND 黃金坑>=REF(黃金坑,1),0,黃金坑,2,0),coloryellow;RSV=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;k:=SMA(RSV,3,1),colorwhite;D:=SMA(K,3,1),coloryellow;K2:=k-50,colorwhite;D2:=D-50,coloryellow;MD:=2*(K2-D2),nodraw;DF : EMA(CLOSE,12) - EMA(CLOSE,26),colorred;DA : EMA(DF,9),colorliblue;MACD:=2*(DF-DA),nodraw;Zero := 0;gj:=MAX(C,O);STICKLINE(MACD>0 AND MACD>=REF(MACD,1) AND MD>0 AND MD>=REF(MD,1),0,MACD,8,0),colorred;STICKLINE(MACD>0 AND MACD>=REF(MACD,1) AND MD>0 AND MD<=REF(MD,1),0,MACD,8,1),colorred;STICKLINE(MACD>0 AND MACD<=REF(MACD,1) AND MD>0 AND MD<=REF(MD,1),0,MACD,4,0),colorliblue;STICKLINE(MACD>0 AND MACD>=REF(MACD,1) AND MD<0 AND MD>=REF(MD,1),0,MACD,8,0),colorred;STICKLINE(MACD>0 AND MACD<=REF(MACD,1) AND MD<0 AND MD<=REF(MD,1),0,MACD,4,0),colorliblue;STICKLINE(MACD>0 AND MACD<=REF(MACD,1) AND MD<0 AND MD>=REF(MD,1),0,MACD,4,0),colorliblue;STICKLINE(MACD>0 AND MACD>=REF(MACD,1) AND MD<0 AND MD<=REF(MD,1),0,MACD,4,0),colorliblue;STICKLINE(MACD<0 AND MACD<=REF(MACD,1) AND MD>0 AND MD>=REF(MD,1),0,MACD,4,0),colormagenta;STICKLINE(MACD<0 AND MACD<=REF(MACD,1) AND MD>0 AND MD<=REF(MD,1),0,MACD,4,0),colorgreen;STICKLINE(MACD>0 AND MACD>=REF(MACD,1) AND MD<0 AND MD<=REF(MD,1),0,MACD,4,0),colorliblue;STICKLINE(MACD>0 AND MACD<=REF(MACD,1) AND MD>0 AND MD>=REF(MD,1),0,MACD,4,0),colorliblue;STICKLINE(MACD<0 ,0,MACD,4,0),colorgreen;STICKLINE(MACD<0 AND MACD>=REF(MACD,1) AND MD>0 AND MD<=REF(MD,1),0,MACD,4,0),colorgreen;共振買:MACD>0 AND MACD>=REF(MACD,1) AND MD>0 AND MD>=REF(MD,1),nodraw,colorred;震蕩出貨:MACD>0 AND MACD>=REF(MACD,1) AND MD>0 AND MD<=REF(MD,1),nodraw,colorred;DF火:= BARSLAST(EMA(CLOSE,5)<REF(EMA(CLOSE,5),1));DF山:= COUNT(EMA(CLOSE,5)>REF(EMA(CLOSE,5),1),12);天王賣:=REF(DF火,4)>0 AND REF(DF火,3)>0 AND REF(DF火,2)>0 AND REF(DF火,1)>0 AND DF火=0 AND REF(DF火,1)>DF山,colorgreen,linethick2,nodraw;STICKLINE(天王賣>0 AND 天王賣>=REF(天王賣,1),0,天王賣,2,0),colorgreen;DRAWTEXT(天王賣,-MACD,"天王賣"),colorgreen;RSV1:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;RSV2:=(CLOSE-LLV(LOW,37))/(HHV(HIGH,37)-LLV(LOW,37))*100;短線:=SMA(SMA(RSV1,3,1),3,1)+3*STD(CLOSE,21),COLOR00FF00;中線:=SMA(RSV2,5,1)+2*STD(CLOSE,37),colorred;RSV3:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100;長線:=SMA(RSV3,5,1),coloryellow;中線2:=-100*(HHV(HIGH,40)-CLOSE)/(HHV(HIGH,40)-LLV(LOW,40));大底:=CROSS(中線2,-90) AND (長線<中線 AND 長線>REF(長線,1)OR 短線<20 AND 中線<20 AND 長線<20),colormagenta,nodraw;STICKLINE(大底>0 AND 大底>=REF(大底,1),0,大底,2,0),colormagenta;DRAWTEXT(大底,大底,"抄底"),colormagenta;IF(PERIODNAME<>"日線"){統計:"該指標只在日線周期下有效。";RETURN;}b:=(ZDMRJE[-1]+BDMRJE[-1]);s:=(ZDMCJE[-1]+BDMCJE[-1]);r:=(b-s)/100000000;大單億元:r,nodraw,coloryellow;
?
公式導入教程: 【通達信公式源碼導入方法教程】 【同花順公式源碼導入方法教程】 【大智慧新一代公式源碼導入方法教程】
?
有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友
可聯系技術人員 QQ: 1145508240 進行 有償 編寫!(不貴!點擊查看價格!)
相關文章
-
沒有相關內容