{量能分析法 源码} 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;
|
评论内容只代表网友观点,与本站立场无关!
本网提供的公式文件说明:
* alg格式飞狐股票公式,可以用飞狐交易师或者交易师软件导入;
* fnc格式大智慧新一代公式指标,可以用大智慧股票软件使用,少部分可以用分析家股票软件引入使用;
* exp格式大智慧经典版股票公式,仅可以用大智慧经典版股票软件引入使用;
* tni和tnc格式通达信股票公式,仅可以用通达信新引入使用,例如可以用通达信股票软件引入使用;
* tne,tn6格式通达信公式,可以用通达信公式编辑器5.0版导入,推荐通达信金融终端版本;
* hxf格式同花顺股票公式,仅可以用同花顺股票软件引入使用。
以上的各种软件都可以在本网股票软件栏目找到!
* 关于股票公式时间限制,如果在引入大智慧公式,交易师公式或者飞狐公式的时候,发现公式名称栏是空白的,这时候调整电脑时间到1997年,又能出现公式名称,并且能正常显示,可能是公式使用期限已过。
* 关于还原公式源码如果你忘记了自己编写的大智慧公式,通达信公式,同花顺公式,操盘手公式,飞狐公式,博易大师公式,金字塔公式,文华公式和交易师公式等等公式的密码,本网可帮恢复源码,有.偿.服.务无意勿扰,点击在线咨询联系我。
* 关于股票公式源码编辑
本网提供的源码,一般都可以编辑成公式,如果不明白公式的编辑,在本页右侧教程录像可参考,或者找公式教程资料学习,请搜索:教程
* 如果您发现软件内容或者链接错误,请点击报告错误谢谢!
* 站内提供的所有软件包含源码均是由网上搜集,若侵犯了你的版权利益,请联系通知我们!