千钧ddxddy的15分钟预警代码
更多金钻指标股票技术讨论QQ群:966329692 技术讨论QQ群:220302856 技术讨论QQ群:39652085 如群满可换一个

编写要求:

请老师帮忙编写一段代码,千钧老师的的ddxddy数据的引用实在不会写*_*,所以请老师帮忙修改15分钟周期:ddx或ddy黄色五角星出现时同时股价一阳穿三线,股票预警其实有日线的代码就行,不一定非要求15分钟周期。飞狐的预警设定里有15分钟的小周期。所以老师做一个日线的代码就可以,谢谢各位老师 代码内容:1、一阳穿三线,股价穿ma5. ma10. ma20 l<=ma(c,5) and l0,0,DDX,8,0),COLOR000088;STICKLINE(DDX>0,0,DDX,5,0),COLOR0000aa;STICKLINE(DDX>0,0,DDX,3,0),COLOR0000cc;STICKLINE(DDX>0,0,DDX,1,0),COLOR0000ee;STICKLINE(DDX<0,0,DDX,8,0),COLOR008800;STICKLINE(DDX<0,0,DDX,5,0),COLOR00aa00;STICKLINE(DDX<0,0,DDX,3,0),COLOR00cc00;STICKLINE(DDX<0,0,DDX,1,0),COLOR00ee00;DDX1:sma(DX,3,1),COLORFFFFFF;DDX2:sma(DDX1,3,1),COLOR00FFFF;DDX3:wma(DDX2,5),COLORFF00FF;预警1:DDX>1 and ma(v,5)>ma(ma(v,5),5) and CROSS(DDX1,DDX2),LINETHICK;预警2:DDX<-1 and ma(v,5)0,5),COLORRED;DRAWTEXT(预警1,DDX*1.06,'★'),LINETHICK3,COLOR00FFFF;DRAWTEXTEX(CLOSE,1,180,0,'一周内翻红:'+NUMTOSTR(天,0)+' 天'),Color00EEFF;DRAWTEXTEX(DDX>0,1,10,0,'大单动向:'+'↑'),Color0000FF;DRAWTEXTEX(DDX<0,1,10,0,'大单动向:'+'↓'),Color00FF00;DRAWTEXTEX(CLOSE,1,500,900,'证券代码: '+STKLABEL+' 证券名称: '+STKNAME+''),ColorFFAA00;//3、千钧ddy附图代码N:=22;jj:=(HIGH+LOW+CLOSE)/3;qj0:=vol/IF(HIGH=LOW,4,HIGH-LOW);qj1:=IF(CAPITAL=0,qj0*(jj-MIN(CLOSE,OPEN)),qj0*IF(HIGH=LOW,1,(MIN(OPEN,CLOSE)-LOW)));qj2:=IF(CAPITAL=0,qj0*(MIN(OPEN,CLOSE)-LOW),qj0*IF(HIGH=LOW,1,(jj-MIN(CLOSE,OPEN))));qj3:=IF(CAPITAL=0,qj0*(HIGH-MAX(OPEN,CLOSE)),qj0*IF(HIGH=LOW,1,(HIGH-MAX(OPEN,CLOSE))));qj4:=IF(CAPITAL=0,qj0*(MAX(CLOSE,OPEN)-jj),qj0*IF(HIGH=LOW,1,(MAX(CLOSE,OPEN)-jj)));DDY:((qj2+qj4)-(qj1+qj3))/sum(v,10)*100,COLOR00DD00,LINETHICK;DY:=ma(ddy,5)*N;STICKLINE(DDY<0,0,DDY,8,0),COLORFF8800;STICKLINE(DDY<0,0,DDY,5,0),COLORFFaa00;STICKLINE(DDY<0,0,DDY,3,0),COLORFFcc00;STICKLINE(DDY<0,0,DDY,1,0),COLORFFee00;STICKLINE(DDY>0,0,DDY,8,0),COLOR880088;STICKLINE(DDY>0,0,DDY,5,0),COLORaa00aa;STICKLINE(DDY>0,0,DDY,3,0),COLORcc00CC;STICKLINE(DDY>0,0,DDY,1,0),COLORee00ee;DDY1:sma(DY,3,1),ColorFFFFFF;DDY2:sma(DDY1,3,1),Color00FFFF;DDY3:wma(DDY2,5),ColorFF00FF;预警1:DDy>0 and CROSS(DDy1,DDy2) and ddy1<0,LINETHICK;预警2:DDy<0 and CROSS(DDy3,DDy1) and ddy1>0,LINETHICK;DRAWTEXT(预警1,DDy*1.06,'★'),LINETHICK3,COLOR00BBFF;DRAWTEXTEX(DDY>0,1,10,0,'涨跌动因'+' ↑'),Color0000FF;DRAWTEXTEX(DDY<0,1,10,0,'涨跌动因'+' ↓'),Color00FF00;DRAWTEXTEX(CLOSE,1,600,900,'证券代码: '+STKLABEL+' 证券名称: '+STKNAME+''),Color00BB00;//

解答:

 l<=ma(c,5) and l<ma(c,10) and l<ma(c,20) and cross(c,ma(c,5)) and cross(c,ma(c,10)) and cross(c,ma(c,20)) and ("千钧ddx.预警1" or "千钧ddy.预警1")


选股票看什么指标最好 >股票指标网