鉴定师鉴m 发表于 2022-2-8 10:05:44

通达信指标公式源码智能操盘源码



DRAWTEXT_FIX(1,0.0,0.00,0,EXTERNSTR(0,1))COLOR0077FF;

N8:=STRCAT(CON2STR(YEAR,0),' 年 ');

Y8:=STRCAT(CON2STR(MONTH,0),' 月 ');

R8:=STRCAT(CON2STR(DAY,0),' 日 ');

买线:=EMA(C,2);

卖线:=EMA(SLOPE(C,21)*20+C,42);

STICKLINE(买线>=卖线,REFDATE(HHV(H,130),DATE),REFDATE(LLV(L,130),DATE),5,0),COLOR000055;

STICKLINE(买线<卖线,REFDATE(HHV(H,130),DATE),REFDATE(LLV(L,130),DATE),5,0),COLOR663300;

DRAWNUMBER(ISLASTBAR ,C,C),COLORMAGENTA;

VAR1:=(100 - ((90 * (HHV(HIGH,14) - CLOSE)) / (HHV(HIGH,14) - LLV(LOW,14))));

VAR2:=(100 - ((90 * (HHV(HIGH,14) - CLOSE)) / (HHV(HIGH,14) - LLV(LOW,14))));

VAR3:=(100 - MA(((100 * (HHV(HIGH,6) - CLOSE)) / (HHV(HIGH,6) - LLV(LOW,6))),34));

SJTJ:=DATE<1590301;

X1:=(C+L+H)/3;

X2:=EMA(X1,6);

X3:=EMA(X2,5);

SJ8:=STRCAT(STRCAT(N8,Y8), R8);

STICKLINE(X2>=X3 AND SJTJ,LOW,HIGH,0,1),COLORRED;

STICKLINE(X2>=X3 AND SJTJ,CLOSE,OPEN,3.2,2),COLORRED;

STICKLINE(X2<X3 AND SJTJ,LOW,HIGH,0,1),COLORCYAN;

STICKLINE(X2<X3 AND SJTJ,CLOSE,OPEN,3.2,2),COLORCYAN;

STICKLINE(CROSS(X3,X2) AND SJTJ,OPEN,CLOSE,3.2,0),COLORCYAN;

STICKLINE(CROSS(X2,X3) AND SJTJ,OPEN,CLOSE,3.2,0),COLORRED;

STICKLINE((CLOSE>OPEN) AND (X2<X3) AND SJTJ,CLOSE,OPEN,3.2,2)COLORCYAN;

STICKLINE((CLOSE>OPEN) AND (X2>=X3) AND SJTJ,CLOSE,OPEN,3.2,2)COLORRED;

STICKLINE((CLOSE<OPEN) AND (X2<X3) AND SJTJ,CLOSE,OPEN,3.2,0)COLORCYAN;

STICKLINE((CLOSE<OPEN) AND (X2>=X3) AND SJTJ,CLOSE,OPEN,3.2,0)COLORRED;

做空:IF(SAR(10,2,20)>=H,SAR(10,2,20),DRAWNULL),CIRCLEDOT,COLORBLUE;

做多:IF(SAR(10,2,20)<=L,SAR(10,2,20),DRAWNULL),CIRCLEDOT,COLORRED;

操盘线:=EMA(EMA(EMA(CLOSE,2),2),2);

趋势线:(MA(操盘线,5)),COLORCYAN,LINETHICK2;

IF(趋势线>REF(趋势线,1),趋势线,DRAWNULL),COLORRED,LINETHICK2;

IF(趋势线<REF(趋势线,1),趋势线,DRAWNULL),COLORGREEN,LINETHICK2;

最新价:IF(SJTJ, C,DRAWNULL),LINETHICK0,COLORYELLOW;

DRAWTEXT_FIX(C>0,0.88,0,0,SJ8),COLOR00FFFF;

DRAWBMP(CROSS(VAR2,MA(VAR3,6)),(LOW - (LOW*0.01)),'BUY1');

DRAWBMP(CROSS(MA(VAR3,6),VAR1),(HIGH+(HIGH*0.03)),'SELL1');

风险提示:本指标公式仅作为知识分享,不构成任何投资建议,不作投资依据。





街角386 发表于 2022-2-18 00:27:54

thanks

123458242 发表于 2022-3-5 18:22:01

好人一生平安!

小乖欢颜僮 发表于 2022-3-7 13:06:40

非常好,赞一个!

安i吉i拉 发表于 2022-3-19 13:20:21

过来看看的

尘埃416 发表于 2022-3-19 21:46:24

帮帮顶顶!!

睿智奔腾小马 发表于 2022-3-20 16:38:18

感谢分享好资源

家乡的老榆树 发表于 2022-3-30 13:38:38

好好 学习了 确实不错

小泡阿飞志 发表于 2022-3-31 14:48:26

帮顶!

了看允侥 发表于 2022-4-2 13:35:34

沙发!沙发!
页: [1] 2
查看完整版本: 通达信指标公式源码智能操盘源码