以下是通达信资金强度源码副图

精品通达信指标:资金强度

X_1:=(CLOSE/REF(CLOSE,1)-1)*100;
 X_2:=(CLOSE/OPEN-1)*100;
 X_3:=IF(X_1>=0 OR X_2>0,MAX(X_1,X_2),MIN(X_1,X_2));
 X_4:=(LARGEINTRDVOL-LARGEOUTTRDVOL)/10;
 X_5:=(L2_VOL(0,0)-L2_VOL(0,1))/10;
 X_6:=MAX(X_4,X_5);
 X_7:=SUM(X_6,0)*1.1;
 X_8:=SMA(X_7,3,1);
 X_9:=SMA(X_8,6,1);
 X_10:=SMA(X_9,6,1);
 X_11:=SMA(X_10,6,1);
 X_12:=SMA(X_11,12,1);
 X_13:=MAX(X_8,MAX(X_9,MAX(X_10,MAX(X_11,X_12))));
 X_14:=IF(CROSS(X_7,X_13),10,IF(CROSS(X_7,X_11),8,IF(CROSS(X_7,X_10),6,IF(CROSS(X_7,X_9),4,IF(CROSS(X_7,X_8),2,IF(X_7>X_13,9,IF(X_7>X_11,7,IF(X_7>X_10,5,IF(X_7>X_9,3,IF(X_7>X_8,1,0))))))))));
 X_15:=SUM(X_6,16)*1.1;
 X_16:=SMA(X_15,3,1);
 X_17:=SMA(X_16,6,1);
 X_18:=SMA(X_17,6,1);
 X_19:=SMA(X_18,6,1);
 X_20:=MAX(X_16,MAX(X_17,MAX(X_18,X_19)));
 X_21:=IF(CROSS(X_15,X_20),10,IF(CROSS(X_15,X_19),8,IF(CROSS(X_15,X_18),6,IF(CROSS(X_15,X_17),4,IF(CROSS(X_15,X_16),2,IF(X_15>X_20,9,IF(X_15>X_19,7,IF(X_15>X_18,5,IF(X_15>X_17,3,IF(X_15>X_16,1,0))))))))));
 X_22:=IF(DATE<1180101,1,DRAWNULL);
资金强度:X_22*(X_14+X_21),COLORWHITE;
 

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。