您现在的位置:程序化交易>> 股票公式>> 同花顺>> 同花顺公式>>正文内容

崔氏MDKD共振指标公式源码[同花顺公式]

相关标签:

 

1、绿色柱子是持币区域,空头行情,在空头行情中kdj返多是若反弹,不参与;2、macd刚刚金叉就出现红色空心柱子是持币区域,不参与,这个情况是macdhe kdj没有出现共振返多,多空激烈争夺区域,大幅震荡,短线高手可以做t。3、macd刚刚金叉就出现红色实心柱子,这是macd和kdj共振返多信号,积极做多;随后出现的红色空心柱子,是短线kdj走弱迹象,可以减仓,在后出现的蓝色柱子,是多头行情中macd和kdj共振走弱。在10日均线下方持币,强势股在10日均线上方震荡可以做t,否则不挣钱

 

 

原理解析:


 

 来源:程序化99( WWW.CXH99.COM )

源码:

 

 

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  点击这里给我发消息进行 有偿 编写!不贵!点击查看价格!

 


【字体: 】【打印文章】【查看评论

相关文章

    没有相关内容