在线检测未来函数

通达信机构量化分时指标公式

来源:Internet,编辑:股旁网,2024-06-14

X_1:=vol/CLOSE/3;
X_2:=SUM(IF(X_1>0.2 AND CLOSE>REF(CLOSE,1),X_1,0),0);
X_3:=SUM(IF(X_1>0.2 AND CLOSE<REF(CLOSE,1),X_1,0),0);
X_4:=SUM(IF(X_1<0.29 AND CLOSE>REF(CLOSE,1),X_1,0),0);
X_5:=SUM(IF(X_1<0.29 AND CLOSE<REF(CLOSE,1),X_1,0),0);
X_6:=X_2+X_3+X_4+X_5;
X_7:=IF(ISLASTBAR=1,100*X_2/X_6,0);
X_8:=IF(ISLASTBAR=1,100*X_3/X_6,0);
X_9:=IF(ISLASTBAR=1,100*X_4/X_6,0);
X_10:=IF(ISLASTBAR=1,100*X_5/X_6,0);
机构买盘红:X_2,COLORRED,LINETHICK2;
机构卖盘绿:X_3,COLORGREEN,LINETHICK2;
散户买盘黄:X_4,COLORYELLOW,LINETHICK2;
散户卖盘蓝:X_5,COLORBLUE,LINETHICK2;
DRAWTEXT(ISLASTBAR=1,机构买盘红*0.9,17),COLORRED,LINETHICK2;
DRAWTEXT(ISLASTBAR=1,机构卖盘绿*0.9,18),COLORBROWN,LINETHICK2;
DRAWTEXT(ISLASTBAR=1,散户买盘黄*0.9,19),COLORLIGREEN,LINETHICK2;
DRAWTEXT(ISLASTBAR=1,散户卖盘蓝*0.9,20),COLORBLUE,LINETHICK2;
买卖差额:机构买盘红-机构卖盘绿,COLORWHITE,LINETHICK2;
抄底:IF(crOSS(X_2,X_3),10,0),COLORMAGENTA,LINETHICK3;
闪电买入:DRAWTEXT(CROSS(买卖差额,抄底 AND X_3),买卖差额*0.68,21),COLORWHITE,LINETHICK3;

通达信机构量化分时指标公式

相关文章