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

均线5(关于均线 公式、源码)[大智慧公式]

相关标签:

 

参数自己设定

a4:ma(c,4);a12:ma(c,12);a20:ma(c,20),COLORRED;a40:ma(c,40);a80:ma(c,80);a120:ma(c,120);ma240:ema(c,240);
dk:=a20;
STICKLINE(DK<=C AND CLOSE>=OPEN,HIGH,LOW,0.1,1),colorred;
STICKLINE(DK<=C AND CLOSE>=OPEN,CLOSE,OPEN,8,1),colorred;
STICKLINE(DK<=C AND CLOSE<OPEN,HIGH,LOW,0.1,0),colorred;
STICKLINE(DK<=C AND CLOSE<OPEN,CLOSE,OPEN,8,0),colorred;
STICKLINE(DK>C AND CLOSE>=OPEN,HIGH,LOW,0.1,1),COLORGREEN;{http://www.cxh99.com}
STICKLINE(DK>C AND CLOSE>=OPEN,CLOSE,OPEN,8,1),COLORGREEN;{http://www.cxh99.com}
STICKLINE(DK>C AND CLOSE<OPEN,HIGH,LOW,0.1,0),COLORGREEN;{http://www.cxh99.com}
STICKLINE(DK>C AND CLOSE<OPEN,CLOSE,OPEN,8,0),COLORGREEN;{http://www.cxh99.com}

ma24:ma(c,24),LINETHICK0;
A2:=REF(ma24,1);J1:=(ma24-A2)/A2*100;MJ1:=ma(J1,3);
ma30:ma(c,30),LINETHICK0;
ma61:ma(c,61),COLORMAGENTA,LINETHICK0;
乖离2:=(ma24-ma30)/ma30*100;
cxh1:=if(between(乖离2,-2,m),2,0);
max1:=max(ma24,ma30);
max2:=max(max1,ma61);
min1:=min(ma24,ma30);
min2:=min(min1,ma61);
k1:=(max2/min2-1)*100;{粘合度符合条件}
cxh2:=IF(K1<=p,1,0);
drawtext(cross("kdj.k"(5,2,3),"kdj.d"(5,2,3)) and "kdj.D"(5,2,3)<30 andj1>mj1 and ma61>ref(ma61,1) andcount(J1<1,3)>=1 ,l*0.995,'←买入');
XL1:=((LLV(LOW,3) = LLV(LOW,60)) AND ((CLOSE / REF(CLOSE,1)) >= 1.04));
XL2:=(((CLOSE - EMA(CLOSE,21)) / EMA(CLOSE,21)) * 100);
XL3:=CROSS(XL2,(0 - 20));
X6:=REF(CLOSE,1);
X7:=((SMA(MAX((CLOSE - X6),0),7,1) / SMA(ABS((CLOSE - X6)),7,1)) * 100);
X8:=CROSS(79,X7);
X9:=FILTER(X8,4);
stickline(C>1.098*ref(c,1),c,o,8,0),COLORWHITE;


DK:=MA(((SLOPE(C,20)*5)+C),20);
DRAWTEXT(CROSS(C,DK),LOW*0.99,'B'),COLORMAGENTA;
DRAWTEXT(CROSS(DK,C),H*1.01,'S'),COLORYELLOW;{程序化交易 www.cxh99.com }

 

公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程

 

 

有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友

可联系技术人员 QQ: 262069696  点击在线交流或微信:cxhjy888 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)

怎么收费,代编流程等详情请点击查阅!

(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)

 


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

相关文章

    没有相关内容