生命长线趋势副图指标公式源码[同花顺公式]
相关标签:
原理解析:
来源:程序化99( WWW.CXH99.COM )
源码:
VARTIME:=IF(YEAR>=2050 AND MONTH>=11 AND DAY>=07,0,1);
VARDTIME:=IF(YEAR=2050 AND MONTH=11 AND DAY=06,1,0);
RSV:=(C*H)/(C*L);
RV:=(C*L)/(C*H);
RS:=(C*O);
DI:=(EMA(RV,2) - EMA(RSV,10))*100/RS;
DE:=EMA(RS,10);
MAC:=2*(DI+DE)/2;
RK7:EMA(MAC,1),Color0000FF,linethick1;
生命线:EMA(RK7,5), coloryellow;
生命线1:EMA(RK7,10),colorgray,linethick1;
生命线2:EMA(RK7,20),colorblue,linethick1;
STICKLINE(RK7<REF(RK7,1)*VARTIME,RK7,MA(RK7,3),0,0 ),COLOR007700;
STICKLINE(RK7<REF(RK7,1)*VARTIME,RK7,MA(RK7,3),8,0 ),COLOR008800;
STICKLINE(RK7<REF(RK7,1)*VARTIME,RK7,MA(RK7,3),7,0 ),COLOR009900;
STICKLINE(RK7<REF(RK7,1)*VARTIME,RK7,MA(RK7,3),6,0 ),COLOR00AA00;
STICKLINE(RK7<REF(RK7,1)*VARTIME,RK7,MA(RK7,3),5,0 ),COLOR00BB00;
STICKLINE(RK7<REF(RK7,1)*VARTIME,RK7,MA(RK7,3),4,0 ),COLOR00CC00;
STICKLINE(RK7<REF(RK7,1)*VARTIME,RK7,MA(RK7,3),3,0 ),COLOR00DD00;
STICKLINE(RK7<REF(RK7,1)*VARTIME,RK7,MA(RK7,3),2,0 ),COLOR00EE00;
STICKLINE(RK7<REF(RK7,1)*VARTIME,RK7,MA(RK7,3),1,0 ),COLOR00FF00;
STICKLINE(RK7> REF(RK7,1),RK7,EMA(RK7,3),0,0) ,COLOR00BBFF;
STICKLINE(RK7> REF(RK7,1),RK7,EMA(RK7,3),8,0) ,COLOR0011FF;
STICKLINE(RK7> REF(RK7,1),RK7,EMA(RK7,3),7,0) ,COLOR0022FF;
STICKLINE(RK7> REF(RK7,1),RK7,EMA(RK7,3),6,0) ,COLOR0044FF;
STICKLINE(RK7> REF(RK7,1),RK7,EMA(RK7,3),5,0) ,COLOR0066FF;
STICKLINE(RK7> REF(RK7,1),RK7,EMA(RK7,3),4,0) ,COLOR0088FF;
STICKLINE(RK7> REF(RK7,1),RK7,EMA(RK7,3),3,0) ,COLOR0099FF;
STICKLINE(RK7> REF(RK7,1),RK7,EMA(RK7,3),2,0) ,COLOR00AAFF;
STICKLINE(RK7> REF(RK7,1),RK7,EMA(RK7,3),1,0) ,COLOR00BBFF;TIPTEXT(ISNULL(REFX(&CLOSE,1)),0,' WWW.CXH99.COM '),colorred;
TIPTEXT(ISNULL(REF(CLOSE,1)),0,'同花顺程序化交易');
公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程】
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 1145508240 进行 有偿 编写!(不贵!点击查看价格!)
相关文章
-
没有相关内容