beyond202104 发表于 2023-8-28 16:40:29

新人气指标(通达信公式 副图 源码 测试图)


{公式名称: 新人气指标
公式描述: 新人气指标参数数量: 1参数1: M, 最小: 2, 最大: 100, 缺省: 30画线方法: 副图公式版本: 2公式源码:}XA_1:=NOT(DATE=MAX(DATE,116071899));XA_2:=90;XA_3:=COST(XA_2+(100-XA_2)/2);XA_4:=COST((100-XA_2)/2);XA_5:=(XA_3-XA_4)/(XA_3+XA_4)*50;XA_6:=2;XA_7:=EVERY(REF(XA_5,1)>=XA_5,XA_6);XA_8:=REF(XA_5,XA_6)>=XA_5;XA_9:=XA_7 AND XA_8;XA_10:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);XA_11:=SUM(IF(CLOSE=REF(CLOSE,1),0,XA_10),0);XA_12:=MA(XA_11,M);人气A:XA_11*XA_1,NODRAW,COLORWHITE;人气B:XA_12*XA_1,NODRAW,COLORYELLOW;做多:IF(XA_5>=REF(XA_5,1) AND XA_12>REF(XA_12,1) AND XA_1,XA_11/10000,DRAWNULL),NODRAW,COLORRED;XA_13:=IF(XA_5>=REF(XA_5,1) AND XA_12>REF(XA_12,1),XA_11,XA_12);XA_14:=IF(XA_5<REF(XA_5,1) AND XA_12<REF(XA_12,1),XA_12,XA_11);DRAWBAND(XA_11,RGB(58,58,58),XA_12,RGB(58,58,58));DRAWBAND(XA_13,RGB(158,0,0),XA_12,RGB(158,0,0));DRAWBAND(XA_14,RGB(48,128,20),XA_11,RGB(48,128,20));NOTEXT人气A:XA_11,COLORWHITE,LINETHICK2;NOTEXT人气B:XA_12,COLORYELLOW,LINETHICK2;
DRAWGBK(NOT(XA_1),RGB(8,0,0),RGB(0,0,8),1,2,1);




漂浮的囚徒富 发表于 2024-3-10 10:44:31

沙发!沙发!
页: [1]
查看完整版本: 新人气指标(通达信公式 副图 源码 测试图)