通达信铃珑期货分时B指标公式[通达信公式]
参数1: N, 最小: 1, 最大: 30, 缺省: 5
参数2: M, 最小: 1, 最大: 30, 缺省: 15
H1:EMA(C,12),COLORGREEN,LINETHICK6;
IF(H1>REF(H1,1),H1,DRAWNULL),COLORRED,LINETHICK6;
H2:EMA(H1,50),COLORGREEN,LINETHICK6;
IF(H2>REF(H2,1),H2,DRAWNULL),COLORRED,LINETHICK6;
DRAWBAND(H1,RGB(110,11,80),H2,RGB(10,110,10));
BL_1:=C;
BL_2:=ZSTJJ;
BL_3:=SUM(C*V,240)/SUM(V,240);
BL_4:=SUM(C*V,0)/SUM(V,0);
IF(C>0,BL_3,DRAWNULL),COLORYELLOW,LINETHICK2;
IF(C>0,BL_1,DRAWNULL),COLORWHITE;
BL_5:=REF(C,1);
BL_6:=SMA(MAX(C-BL_5,0),14,1)/SMA(ABS(C-BL_5),14,1)*100;
BL_7:=CROSS(80,BL_6);
BL_8:=FILTER(BL_7,40) AND C/BL_4>1.004;
DRAWICON(BL_8,C*1.002,41);
BL_9:=CROSS(BL_6,20);
BL_10:=FILTER(BL_9,40) AND C/BL_4<0.996;
DRAWICON(BL_10,C*0.997,38);
BL_11:=C>REF(C,1) AND C/BL_2>1+N/1000;
BL_12:=C<REF(C,1) AND C/BL_2<1-N/1000;
BL_13:=CROSS(SUM(BL_11,0),0.5);
BL_14:=CROSS(SUM(BL_12,0),0.5);
BL_15:=SUM(BL_13,0)*CROSS(COUNT(C<REF(C,1),BARSLAST(BL_13)),0.5);
BL_16:=SUM(BL_14,0)*CROSS(COUNT(C>REF(C,1),BARSLAST(BL_14)),0.5);
X1:CONST(SUM(IF(BL_15,REF(C,1),DRAWNULL),0)),DOTLINE,COLORWHITE;
Z1:CONST(SUM(IF(BL_16,REF(C,1),DRAWNULL),0)),DOTLINE,COLORGREEN;
BL_17:=CROSS(SUM(BL_11 AND C>X1*1.01,0),0.5);
BL_18:=CROSS(SUM(BL_12 AND C<Z1*0.99,0),0.5);
BL_19:=SUM(BL_17,0)*CROSS(COUNT(C<REF(C,1),BARSLAST(BL_17)),0.5);
BL_20:=SUM(BL_18,0)*CROSS(COUNT(C>REF(C,1),BARSLAST(BL_18)),0.5);
X2:CONST(SUM(IF(BL_19,REF(C,1),DRAWNULL),0)),COLORWHITE;
Z2:CONST(SUM(IF(BL_20,REF(C,1),DRAWNULL),0)),COLORGREEN;
DRAWICON(BL_16,REF(C*0.9995,1),34);
DRAWICON(BL_20,REF(C*0.9995,1),1);
DRAWICON(BL_20,REF(C*0.997,1),44);
DRAWICON(BL_15,REF(C*1.0003,1),35);
DRAWICON(BL_19,REF(C*1.0003,1),2);
DRAWICON(BL_19,REF(C*1.002,1),45);
BL_21:=C>REF(C,1) AND C/BL_2>1+M/1000;
BL_22:=C<REF(C,1) AND C/BL_2<1-M/1000;
BL_23:=CROSS(SUM(BL_21,0),0.5);
BL_24:=CROSS(SUM(BL_22,0),0.5);
BL_25:=SUM(BL_23,0)*CROSS(COUNT(C<REF(C,1),BARSLAST(BL_23)),0.5);
BL_26:=SUM(BL_24,0)*CROSS(COUNT(C>REF(C,1),BARSLAST(BL_24)),0.5);
BL_27:=CONST(SUM(IF(BL_25,REF(C,1),DRAWNULL),0));
BL_28:=CONST(SUM(IF(BL_26,REF(C,1),DRAWNULL),0));
BL_29:=CROSS(SUM(BL_21 AND C>BL_27*1.02,0),0.5);
BL_30:=CROSS(SUM(BL_22 AND C<BL_28*0.98,0),0.5);
BL_31:=SUM(BL_29,0)*CROSS(COUNT(C<REF(C,1),BARSLAST(BL_29)),0.5);
BL_32:=SUM(BL_30,0)*CROSS(COUNT(C>REF(C,1),BARSLAST(BL_30)),0.5);
BL_33:=CONST(SUM(IF(BL_31,REF(C,1),DRAWNULL),0));
BL_34:=CONST(SUM(IF(BL_32,REF(C,1),DRAWNULL),0));
DRAWICON(BL_31,C*1.002,12);
DRAWICON(BL_32,C*0.998,11);
DRAWTEXT_FIX(C>O,0.001,0.001,0,'代编写服务QQ:511411198
微信:CXH99CXH99 公众号:A26206'),COLORWHITE;
BL_35:=C>REF(C,1) AND C/BL_2>1.01;
BL_36:=C<REF(C,1) AND C/BL_2<0.99;
BL_37:=CROSS(SUM(BL_35,0),0.5);
BL_38:=CROSS(SUM(BL_36,0),0.5);
BL_39:=SUM(BL_37,0)*CROSS(COUNT(C<REF(C,1),BARSLAST(BL_37)),0.5);
BL_40:=SUM(BL_38,0)*CROSS(COUNT(C>REF(C,1),BARSLAST(BL_38)),0.5);
BL_41:=CONST(SUM(IF(BL_39,REF(C,1),DRAWNULL),0));
BL_42:=CONST(SUM(IF(BL_40,REF(C,1),DRAWNULL),0));
DRAWICON(BL_39,C*1.002,36);
DRAWICON(BL_40,C*0.9979,37);
公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程】
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信:cxhjy888 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容