您现在的位置:程序化交易>> 股票公式>> 大智慧>> 大智慧公式>>正文内容

大智慧区域背离指标公式源码[大智慧公式]

相关标签: 大智慧macd背离指标 、 大智慧l2一目了然指标 、 大智慧l2 、 免费使用大智慧l2行情 、 大智慧l2免费版下载 、 大智慧l2破解版下载 、 大智慧l2软件下载 、 大智慧l2下载 、 大智慧l2账号和密码 、

 

 

{区域背离}


POLYLINE(1,"KDJ.D"),colorred;
RSI1:SMA(MAX(CLOSE-ref(CLOSE,1),0),6,1)/SMA(ABS(CLOSE-ref(CLOSE,1)),6,1)*100;
短高:IF(BETWEEN("KDJ.K",100,80),88,100);
短低:IF(BETWEEN("KDJ.K",20,0),12,0);
波低:IF(BETWEEN("KDJ.K#week",10,0),30,0);
波高:IF(BETWEEN("KDJ.K#week",100,90),70,100);
中低:IF(BETWEEN("KDJ.K#MONTH",20,0),30,0);
中高:IF(BETWEEN("KDJ.K#MONTH",100,75),70,100);
POLYLINE(1,0);
A1:=BARSLAST(ref(cross("MAcd.diff","MAcd.dea"),1));
CXH:=STRTONUM(STRRIGHT(DATESTR(CURRENTDATE),1));
WARNING('http://www.cxh99.com',CURRENTTIME>180000 and (CXH=3 OR CXH=8));
DRAWTEXTREL(10 ,10 ,'指标公式');
B1:=ref(c,A1+1)>c and ref("MAcd.diff",A1+1)<"MAcd.diff" and cross("MAcd.diff","MAcd.dea");
v1:=STICKLINE(FILTER((B1 > 0),5),0,45,3,0);
DRAWTEXT(FILTER((B1 > 0),5),45,'MACD底背离');
A2:=BARSLAST(ref(cross("kdj.k","kdj.d"),1));
B2:=ref(c,A2+1)>c and ref("kdj.k",A2+1)<"kdj.k" and
cross("kdj.k","kdj.d"); {本文来至程序化交易网 cxh99.com}
v2:=STICKLINE(FILTER((B2 > 0),5),0,15,3,0);
DRAWTEXT(FILTER((B2 > 0),5),15,'KDJ底背离');
A3:=BARSLAST(ref(cross("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1));
B3:=ref(c,A3+1)>c and ref("RSI.RSI1"(6,12,24),A3+1)<"RSI.RSI1"(6,12,24) and
cross("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));
v3:=STICKLINE(FILTER((B3 > 0),5),0,30,3,0);
DRAWTEXT(FILTER((B3 > 0),5),30,'RSI底背离'),colorFFFF00;

 

C1:=BARSLAST(ref(cross("MAcd.dea","MAcd.diff"),1));
D1:=ref(c,C1+1)<c and ref("MAcd.diff",C1+1)>"MAcd.diff" and cross("MAcd.dea","MAcd.diff");
v1:=STICKLINE(FILTER((D1 > 0),5),100,55,3,0);
DRAWTEXT(FILTER((D1 > 0),5),55,'MACD顶背离');
C2:=BARSLAST(ref(cross("kdj.d","kdj.k"),1));
D2:=ref(c,C2+1)<c and ref("kdj.k",C2+1)>"kdj.k" and cross("kdj.d","kdj.k");
v2:=STICKLINE(FILTER((D2 > 0),5),100,85,3,0);
DRAWTEXT(FILTER((D2 > 0),5),85,'KDJ顶背离');
C3:=BARSLAST(ref(cross("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24)),1));
D3:=ref(c,C3+1)<c and ref("RSI.RSI1"(6,12,24),C3+1)>"RSI.RSI1"(6,12,24) and cross("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24));
v3:=STICKLINE(FILTER((D3 > 0),5),100,70,3,0);
DRAWTEXT(FILTER((D3 > 0),5),70,'RSI顶背离'),colorFF00FF;
Var1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; {文章来至程序化交易网 cxh99.com}
Var2:=SMA(Var1,8,1);
Var3:=SMA(Var2,5,1);
Var4:="KDJ.K#WEEK";
Var5:="KDJ.D#WEEK";
Var6:="KDJ.K#MONTH";
Var7:="KDJ.D#MONTH";
日金叉: IF(CROSS(Var2,Var3),0.5,0)*20,colorwhite;
周金叉: IF(CROSS(Var4,Var5),0.9,0)*25,colore000e0;
月金叉: IF(CROSS(Var6,Var7),1,0)*30,colorred,linethick3;

 

 

有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友

可联系技术人员 QQ: 262069696  点击在线交流进行 有偿 编写!不贵!点击查看价格!

 


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

相关文章

    没有相关内容