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

风口(通达信公式 公式、同花顺源码 K线图)[同花顺公式]

相关标签:

 

YF_DDI:=(AMOUNT / VOL);

YF_JJ:=((OPEN + CLOSE) / 2);
YF_PJJ:=0;
YF_DDING:=EMA(CLOSE,6);
YF_MMD:=MA(YF_DDING,1);
YF_XXD:=EMA(CLOSE,18);
YF_YYZ:=REF(YF_MMD,1);
YF_XXD1:=REF(YF_XXD,1);
YF_YYZ1:=BARSCOUNT(CLOSE);
YF_TDCG:=IF((YF_YYZ1 = 1),0,(((YF_MMD - YF_YYZ) / YF_YYZ) * 100));
YF_ZFD:=IF((YF_YYZ1 = 1),0,(((YF_XXD - YF_XXD1) / YF_XXD1) * 100));
YF_JSD2:=REF(CLOSE,1);
CLOSE1:=IF((YF_YYZ1 = 1),0,(((CLOSE - YF_JSD2) / YF_JSD2) * 100));
YF_JZDF:=IF((YF_YYZ1 = 1),((CLOSE + OPEN) / 2),YF_YYZ);
YF_DCGJ:=YF_MMD;//www.cxh99.com
JJ0:=YF_YYZ;
JJ1:=REF(YF_MMD,2);
JJ2:=(((YF_DCGJ + JJ0) + JJ1) / 3);
JJ02:=(((ABS((YF_DCGJ - JJ2)) + ABS((JJ0 - JJ2))) + ABS((JJ1 - JJ2))) / 3);
SS:=REF(YF_TDCG,1);
YF_ZFD1:=REF(YF_TDCG,2);
YF_ZFD2:=IF((YF_YYZ1 < 3),0,((JJ02 / YF_DCGJ) * 100));
YF_DHPXS:=IF((YF_YYZ1 < 3),0,IF((((YF_TDCG < 0) AND (SS < 0)) AND (YF_ZFD1 < 0)),(0 - 1),1));
SSB:=REF(YF_TDCG,1);
YF_YZFZ:=IF((((YF_YYZ1 > 11) AND (SSB < 0)) AND (YF_TDCG > 0)),1,0);
YF_JSD21:=BARSLAST((YF_YZFZ = 1));
YF_JSD:=REF(YF_JSD21,1);
A:=IF((((YF_YYZ1 > 11) AND (SS < 0)) AND (YF_TDCG > 0)),(YF_JSD + 1),YF_JSD);
YF_JSD11:=YF_JZDF;
DMRJ:=YF_JZDF;
DMCJ:=IF(((YF_YYZ1 > 11) AND (YF_JSD11 < OPEN)),OPEN,YF_JZDF);
YF_DMRJ:=IF(((YF_YYZ1 > 11) AND (DMRJ > OPEN)),OPEN,YF_JZDF);
YF_DMCJ:=0;
YF_DCG1:=REF(YF_JZDF,1);
YF_BDF5:=IF(((((YF_TDCG > 0.5) AND ((YF_ZFD2 > 0.215) OR (LOW > YF_JZDF))) AND (CLOSE >= OPEN)) AND ((CLOSE >= 200) OR ((CLOSE < 200) AND (CLOSE1 < 11)))),1,0);
YF_DMR:=IF((((YF_TDCG < (0 - 0.3)) AND ((YF_ZFD2 > 0.2) OR (HIGH < YF_JZDF))) AND ((OPEN >= CLOSE) OR (CLOSE1 < (0 - 1)))),1,0);
YF_DKS1:=BARSSINCE(YF_BDF5);
YF_TDMR:=BARSSINCE(YF_DMR);
YF_DMRB:=YF_DMR;
//YF_DMRB:=(YF_DMR OR (ISLASTBAR= 1));
YF_DCGJ1:=((COUNT(YF_BDF5,BARSLAST(YF_DMRB)) = 1) AND YF_BDF5);
YF_DMRBUY:=((COUNT(YF_DMRB,BARSLAST(YF_BDF5)) = 1) AND YF_DMRB);
YF_DMCSELL:=BARSLAST(YF_DMRBUY);
YF_DCG10:=BARSLAST(YF_DCGJ1);
YF_DCG11:=((SUM(YF_DMRBUY,YF_DCG10) = 0) * YF_DCG10);
YF_DCGREAL:=REF(DMCJ,YF_DCG11);
YF_DMRJ11:=REF(YF_DCGREAL,1);
YF_DMRJ1:=IF((YF_DCGJ1 = 1),(((CLOSE - DMCJ) / DMCJ) * 100),(((YF_DMRJ - YF_DMRJ11) / YF_DMRJ11) * 100));
YF_DCG:=IF((((YF_DCG11 = 0) AND (YF_DCGJ1 = 0)) AND (YF_DMRBUY = 0)),0,YF_DMRJ1);
sj:=IF(DATE<=20190928,1,0);
ddd=REF(CLOSE,YF_DCG10);
fff=REF(CLOSE,YF_DMCSELL);
IF(YF_DCG10>YF_DMCSELL)风口收益:0;
ELSE 风口收益:(CLOSE-ddd)/ddd*100;
短买入:YF_DCGJ1,LINETHICK0,NoDraw;
短卖出:YF_DMRBUY,LINETHICK0,NoDraw;
风口强度:YF_DCG11,LINETHICK0,NoDraw;
短持股1:=YF_DCG;
短买价:=IF((短卖出 = 1),YF_DMRJ,0);
STICKLINE((短买入 = 1)*sj,OPEN,CLOSE,3,0),COLOR0000FF;
STICKLINE((风口强度 > 0)*sj,OPEN,CLOSE,0,0),COLORFFBBFF;
STICKLINE((风口强度 > 0)*sj,OPEN,CLOSE,3,0),COLORFF99FF;
STICKLINE((风口强度 > 0)*sj,OPEN,CLOSE,2,0),COLORFFAAFF;
STICKLINE((风口强度 > 0)*sj,OPEN,CLOSE,1,0),COLORFFBBFF;
STICKLINE((短卖出 = 1)*sj,OPEN,CLOSE,0,0),COLOR00FF00;
STICKLINE((短卖出 = 1)*sj,OPEN,CLOSE,3,0),COLOR00DD00;
STICKLINE((短卖出 = 1)*sj,OPEN,CLOSE,2,0),COLOR00EE00;
STICKLINE((短卖出 = 1)*sj,OPEN,CLOSE,1,0),COLOR00FF00;
DRAWICON((短买入 > 0)*sj,LOW*0.995,5);
DRAWICON((短卖出 = 1)*sj,HIGH*1.015,4);
YF_MAXDSY:=COUNT(((YF_DMR = 1) AND (YF_DCG <> 0)),0);
YF_GLDSY:=HHV(YF_DCG,0);
YF_DCSLJ:=BARSSINCE(((YF_DMR = 1) AND (YF_DCG <> 0)));
YF_DCSLY:=IF((YF_DMR = 1),YF_DCG,0);
板块追踪:sj*EMA(CLOSE,7);
A:=EMA(C,14),colorwhite,LINETHICK1;
B:=(A-REF(A,1))/REF(A,1)*100,NODRAW;
支撑:IF(B>=0,REF(EMA(C,14),BARSLAST(CROSS(B,0))+1),DRAWNULL),colorred,LINETHICK2;
阻力:IF(B<0,REF(EMA(C,14),BARSLAST(CROSS(0,B))+1),DRAWNULL),colorgreen,LINETHICK2;

 

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

 

 

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

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

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

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

 


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

相关文章

    没有相关内容