量能分析法线上买入通达信公式 副图 源码附图

X_1:=OBV-MA(OBV,30);
W1:STICKLINE(X_1>0,X_1,0,3,1),COLORRED;
W2:STICKLINE(X_1<0,X_1,0,3,1),COLORCYAN;
X_2:=HHVBARS(X_1,BARSLAST(X_1<0)+1);
X_3:=CROSS(BACKSET(CROSS(0,X_1),REF(X_2,1)+2),0.5);
X_4:=CROSS(BACKSET(CROSS(0,X_1) OR (ISLASTBAR AND X_1>0),REF(X_2,1)+2),0.5);
前高:DRAWLINE(X_3,X_1,REF(X_3,1),REF(X_1,1),1),COLORMAGENTA;
X_5:=LLVBARS(X_1,BARSLAST(X_1>0)+1);
X_6:=CROSS(BACKSET(CROSS(X_1,0),REF(X_5,1)+2),0.5);
X_7:=BARSLAST(FILTERX(CROSS(0,X_1),BARSCOUNT(CLOSE)));
前低:DRAWLINE(X_6,X_1,REF(X_6,1),REF(X_1,1),1);
X_8:=IF(X_1<0,FILTERX(X_1=LLV(X_1,BARSLAST(X_1>0)),BARSCOUNT(CLOSE)),DRAWNULL);
X_9:=BARSLAST(X_8);
X_10:=FILTERX(X_1<CONST(LLV(X_1,X_7+1)),BARSCOUNT(CLOSE));
X_11:=BARSLAST(X_10);
本低:IF(X_7+1>=1,CONST(LLV(X_1,X_7+1)),DRAWNULL);
X_12:=CROSS(COUNT(CROSS(X_1>本低/2 AND X_1<0,0.5),X_9)=1,0.5) AND X_9>=0;
X_13:=IF(ISLASTBAR AND X_1>0 AND X_1=HHV(X_1,BARSLAST(X_1<0)),1,IF(FILTERX(X_4,BARSCOUNT(CLOSE)),2,DRAWNULL));
X_14:=X_13=1 OR X_13=2 AND X_1>0;
X_15:=FILTERX(X_14,BARSCOUNT(CLOSE));
本高:DRAWLINE(X_15,X_1,REF(X_15,1),REF(X_1,1),1),COLORWHITE;
X_16:=CONST(REF(X_1,BARSLAST(X_15)));
X_17:=X_1>X_16;
X_18:=FILTERX(REFX(BARSLAST(X_17),1)=1,BARSCOUNT(CLOSE));
X_19:=BARSLAST(X_18);
X_20:=DRAWLINE(X_18,X_16,X_15,X_16,0);
X_21:=DRAWLINE(X_10,CONST(LLV(X_1,X_7+1)),X_8=1,X_1,0);
TDXSTEP1219:DRAWNUMBER(X_8,CONST(LLV(X_1,X_7+1))*0.9,X_11);
TDXSTEP1220:DRAWNUMBER(X_15,X_20*1.1,X_19);
X_22:=IF(X_18,BARSNEXT(X_15),DRAWNULL);
X_23:=IF(X_19>0 AND X_19<=REF(X_22,X_19),SUM(X_1>0,X_19),DRAWNULL);
X_24:=REF(CLOSE,X_19);
X_25:=(X_24-CLOSE)/CLOSE*100;
X_26:=BARSLAST(X_15);
X_27:=CROSS(COUNT(CROSS(X_1<本高/2 AND X_1>0,0.5),X_15)=1,0.5) AND X_15>=0;
TDXSTEP1221:STICKLINE(X_1>前高 AND 本高>前高 AND BARSLAST(CROSS(X_1<本高/2,0.5))>0 AND X_1>(前高+本高)/2,X_1,前高,1,0),COLORYELLOW;
前高本高二分位:IF(X_1>0 AND 本高!=前高,DRAWLINE(X_27,(前高+本高)/2,REF(X_27,1),REF((前高+本高)/2,1),1),DRAWNULL),DOTLINE,COLORLIBLUE;DRAWTEXT_FIX(1,0.980,20,1,'★股票指标网'),COLOR444444;
X_28:=STRCAT(STRCAT(STRCAT(53,54),55),CON2STR(IF(X_25,X_25,DRAWNULL),2));
TDXSTEP1222:STICKLINE(X_1>前高,X_1,前高,1,0),COLORYELLOW;
TDXSTEP1223:STICKLINE(X_27,X_1,0,1,0),COLORGREEN;
TDXSTEP1224:STICKLINE(X_1<0 AND X_1<前低 AND 前低<0,X_1,前低,1,0),COLORBLUE;
X_29:=IF(CROSS(X_1<0,0.5),BARSNEXT(X_8),DRAWNULL);
X_30:=BARSLAST(X_1>0)-1;
TDXSTEP1225:STICKLINE(BARSLAST(X_12)>=0 AND X_1<前低 AND X_1<0,X_1,前低,1,0),COLORGREEN;
TDXSTEP1226:STICKLINE(X_12,X_1,0,1,0),COLORWHITE;
TDXSTEP1227:STICKLINE(X_1>前高 AND 本高>前高 AND BARSLAST(X_27)>0,X_1,前高,1,0),COLORRED;
TDXSTEP1228:DRAWTEXT(X_3 AND X_3!=X_14,X_1/10*9,56);
TDXSTEP1229:DRAWTEXT(X_3 AND X_3!=X_14,X_1/10,57);
TDXSTEP1230:DRAWTEXT(X_15,X_1/10*7,58),COLORBLUE;
TDXSTEP1231:DRAWTEXT(X_15,X_1/10,57),COLORBLUE;
TDXSTEP1232:DRAWTEXT(X_8,X_1/10*9,59),COLORRED;
TDXSTEP1233:DRAWTEXT(X_8,X_1/10,58),COLORRED;
TDXSTEP1234:IF(BARSLAST(X_12)>=0,本低/2,DRAWNULL),DOTLINE,COLORRED;
X_31:=EMA(CLOSE,14)-EMA(CLOSE,28);
X_32:=EMA(X_31,9);
X_33:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
X_34:=SMA(X_33,3,1);
X_35:=SMA(X_34,3,1);
X_36:=X_31;
X_37:=X_32;
X_38:=X_34;
X_39:=X_35;
X_40:=REF(LOW,1);
X_41:=REF(HIGH,1);
X_42:=SMA(ABS(HIGH-X_41),14,1)/SMA(MAX(HIGH-X_41,0),14,1)*100;
X_43:=SMA(ABS(LOW-X_40),14,1)/SMA(MAX(LOW-X_40,0),14,1)*100;
X_44:=REF(CLOSE,1);
X_45:=MA(X_43,13);
X_46:=LLV(LOW,34);
X_47:=SMA(MAX(CLOSE-X_44,0),6,1)/SMA(ABS(CLOSE-X_44),6,1)*100;
X_48:=CROSS(93,X_47);
X_49:=EMA(IF(LOW<=X_46,X_45,0),3);
X_50:=HIGH>LLV(LOW,0)*7;
X_51:=SMA(SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,7,1),5,1);
X_52:=SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,7,1)*16.18-X_51*10.9;
X_53:=FILTER(IF(X_52<=X_51 AND X_49>REF(X_49,1),X_49*8,0),20);
洗盘结束:IF(X_52<=X_51 AND X_49>REF(X_49,1),100000,0),COLORMAGENTA,LINETHICK2;
T0:FILTER(IF(CROSS(X_39,X_38) AND SUM(X_36>REF(X_36,1),3)>3,CROSS(X_39,X_38) AND CROSS(X_37,X_36),0),13),STICK,COLOR5E8262,LINETHICK3;
T1:FILTER(CROSS(X_36,X_37) AND VOL>REF(SUM(VOL,5),1),3),STICK,COLORYELLOW,LINETHICK3;
T2:FILTER(X_48 AND CLOSE/(REF(CLOSE,1)-1)*100!=5 AND X_50 AND VOL>REF(SUM(VOL,3),1),5),STICK,COLORCYAN,LINETHICK3;
T3:FILTER(X_50 AND CROSS(X_39,X_38) AND CLOSE/(REF(CLOSE,1)-1)*100!=5,24),STICK,COLORGREEN,LINETHICK3;
TDXSTEP1235:DRAWTEXT(T0,T0,23),COLOR5E8262;
TDXSTEP1237:DRAWTEXT(T1,T1*0.9,25),COLORYELLOW;
TDXSTEP1238:DRAWTEXT(T2,T2*0.9,26),COLORMAGENTA;
TDXSTEP1239:DRAWTEXT(T3,T3*0.9,27),COLORGREEN;
 


未来函数检测结果如下:
该公式包含未来函数:BACKSET
该公式包含未来函数:BARSNEXT
该公式包含未来函数:REFX
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  股票指标网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 粤ICP备2023063687号-2 股票指标网别名指标网仅为互联网文章,所有股票指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。股票指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图