玲珑股票分时B(通达信分时指标 源码)

[复制链接]
查看53 | 回复0 | 2022-6-27 19:54:05 | 显示全部楼层 |阅读模式
{公式名称: 玲珑股票分时B
公式描述: 
参数数量: 1
参数1: N, 最小: 1, 最大: 50, 缺省: 20
公式类型: 技术指标公式-神系
画线方法: 主图叠加
公式版本: 0
显示小数: 缺省位数
坐标线位置: 自动
额外Y轴分界: 无
 
参数精灵:
请设置计算参数:
N: Param#0 (1.00--50.00)
用法注释:无
公式源码:}
H1:EMA(CLOSE,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));
X_1:=CLOSE;
X_2:=ZSTJJ;
X_3:=SUM(CLOSE*VOL,240)/SUM(VOL,240);
X_4:=SUM(CLOSE*VOL,0)/SUM(VOL,0);
IF(CLOSE>0,X_3,DRAWNULL),COLORYELLOW,LINETHICK2;
IF(CLOSE>0,X_1,DRAWNULL),COLORWHITE;
X_5:=REF(CLOSE,1);
X_6:=SMA(MAX(CLOSE-X_5,0),14,1)/SMA(ABS(CLOSE-X_5),14,1)*100;
X_7:=CROSS(80,X_6);
X_8:=FILTER(X_7,40) AND CLOSE/X_4>1.03;
DRAWICON(X_8,REF(CLOSE*1.0005,1),26);
X_9:=CROSS(X_6,20);
X_10:=FILTER(X_9,40) AND CLOSE/X_4<0.97;
DRAWICON(X_10,CLOSE*0.997,27);
X_11:=CLOSE>REF(CLOSE,1) AND CLOSE/X_2>1+N/1000;
X_12:=CLOSE<REF(CLOSE,1) AND CLOSE/X_2<1-N/1000;
X_13:=CROSS(SUM(X_11,0),0.5);
X_14:=CROSS(SUM(X_12,0),0.5);
X_15:=SUM(X_13,0)*CROSS(COUNT(CLOSE<REF(CLOSE,1),BARSLAST(X_13)),0.5);
X_16:=SUM(X_14,0)*CROSS(COUNT(CLOSE>REF(CLOSE,1),BARSLAST(X_14)),0.5);
X1:CONST(SUM(IF(X_15,REF(CLOSE,1),DRAWNULL),0)),DOTLINE,COLORWHITE;
Z1:CONST(SUM(IF(X_16,REF(CLOSE,1),DRAWNULL),0)),POINTDOT,COLORGREEN;
X_17:=CROSS(SUM(X_11 AND CLOSE>X1*1.02,0),0.5);
X_18:=CROSS(SUM(X_12 AND CLOSE<Z1*0.98,0),0.5);
X_19:=SUM(X_17,0)*CROSS(COUNT(CLOSE<REF(CLOSE,1),BARSLAST(X_17)),0.5);
X_20:=SUM(X_18,0)*CROSS(COUNT(CLOSE>REF(CLOSE,1),BARSLAST(X_18)),0.5);
X2:CONST(SUM(IF(X_19,REF(CLOSE,1),DRAWNULL),0)),COLORWHITE;
Z2:CONST(SUM(IF(X_20,REF(CLOSE,1),DRAWNULL),0)),COLORGREEN;
DRAWICON(X_16,REF(CLOSE*0.999,1),1);
DRAWICON(X_20,REF(CLOSE*0.999,1),9);
DRAWICON(X_20,REF(CLOSE*0.998,1),44);
DRAWICON(X_15,REF(CLOSE*1.001,1),2);
DRAWICON(X_19,REF(CLOSE*1.0005,1),39);
DRAWICON(X_19,REF(CLOSE*1.002,1),45);
X_21:=CLOSE>REF(CLOSE,1) AND CLOSE/X_2>1.03;
X_22:=CLOSE<REF(CLOSE,1) AND CLOSE/X_2<0.97;
X_23:=CROSS(SUM(X_21,0),0.5);
{分析家公式网www.70822.com}
X_24:=CROSS(SUM(X_22,0),0.5);
X_25:=SUM(X_23,0)*CROSS(COUNT(CLOSE<REF(CLOSE,1),BARSLAST(X_23)),0.5);
X_26:=SUM(X_24,0)*CROSS(COUNT(CLOSE>REF(CLOSE,1),BARSLAST(X_24)),0.5);
X_27:=CONST(SUM(IF(X_25,REF(CLOSE,1),DRAWNULL),0));
X_28:=CONST(SUM(IF(X_26,REF(CLOSE,1),DRAWNULL),0));
X_29:=CROSS(SUM(X_21 AND CLOSE>X_27*1.03,0),0.5);
X_30:=CROSS(SUM(X_22 AND CLOSE<X_28*0.97,0),0.5);
X_31:=SUM(X_29,0)*CROSS(COUNT(CLOSE<REF(CLOSE,1),BARSLAST(X_29)),0.5);
X_32:=SUM(X_30,0)*CROSS(COUNT(CLOSE>REF(CLOSE,1),BARSLAST(X_30)),0.5);
X_33:=CONST(SUM(IF(X_31,REF(CLOSE,1),DRAWNULL),0));
X_34:=CONST(SUM(IF(X_32,REF(CLOSE,1),DRAWNULL),0));
DRAWICON(X_31,CLOSE*1.003,36);
DRAWICON(X_32,CLOSE*0.993,37);
 

201962911462134922.rar

12.36 KB, 下载次数: 0

售价: 1 金钱  [记录]  [购买]

201962911462134922.rar

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则