大财女变线副图-精品通达信指标公式源码分享
XA_1:=IF(CURRBARSCOUNT=1,VOL*240/FROMOPEN,VOL);
XA_2:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>=0.096 AND CLOSE=HIGH;
XA_3:=XA_1>=REF(VOL,1)*1.9 AND (CLOSE>REF(CLOSE,1) OR CLOSE>OPEN);
XA_4:=XA_1<REF(XA_1,1);
XA_5:=EVERY(XA_4,3);
XA_6:=XA_1=HHV(XA_1,10) AND XA_1>1.7*REF(VOL,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE>=OPEN AND HIGH-CLOSE<CLOSE-OPEN;
换手:XA_1*10000/FINANCE(7),VOLSTICK;
五日换手:SUM(换手,5),NODRAW;
十日换手:SUM(换手,10),NODRAW;
二十日换手:SUM(换手,20),NODRAW;
XA_7:=SUM(换手,60);
XA_8:=SUM(换手,120);
XA_9:=MA(换手,5);
平均换手5日:XA_9,NODRAW;
XA_10:=MA(换手,10);
平均换手10日:XA_10,NODRAW;
XA_11:=MA(换手,120);
平均换手120日:XA_11;
XA_12:=AMOUNT/VOL/100;
XA_13:=MA(CLOSE,5);
XA_14:=MA(CLOSE,6);
XA_15:=MA(CLOSE,7);
XA_16:=MA(CLOSE,8);
XA_17:=MA(CLOSE,9);
XA_18:=MA(CLOSE,10);
XA_19:=MA(CLOSE,11);
XA_20:=MA(CLOSE,12);
XA_21:=MA(CLOSE,13);
XA_22:=MA(CLOSE,14);
XA_23:=MA(CLOSE,15);
XA_24:=MA(CLOSE,16);
XA_25:=MA(CLOSE,17);
XA_26:=MA(CLOSE,18);
XA_27:=MA(CLOSE,19);
XA_28:=MA(CLOSE,20);
XA_29:=MA(CLOSE,21);
XA_30:=MA(CLOSE,22);
XA_31:=MA(CLOSE,23);
XA_32:=MA(CLOSE,24);
XA_33:=MA(CLOSE,25);
XA_34:=MA(CLOSE,26);
XA_35:=MA(CLOSE,27);
XA_36:=MA(CLOSE,28);
XA_37:=MA(CLOSE,29);
XA_38:=MA(CLOSE,30);
XA_39:=MA(CLOSE,31);
XA_40:=MAX(MAX(MAX(MAX(XA_13,XA_14),XA_15),XA_16),XA_17);
XA_41:=MAX(MAX(MAX(MAX(XA_18,XA_19),XA_20),XA_21),XA_22);
XA_42:=MAX(MAX(MAX(MAX(XA_23,XA_24),XA_25),XA_26),XA_27);
XA_43:=MAX(MAX(MAX(MAX(MAX(XA_28,XA_29),XA_30),XA_31),XA_32),XA_33);
XA_44:=MAX(MAX(MAX(MAX(MAX(XA_34,XA_35),XA_36),XA_37),XA_38),XA_39);
XA_45:=MAX(MAX(MAX(MAX(XA_40,XA_41),XA_42),XA_43),XA_44);
XA_46:=IF(XA_45=XA_13,5,IF(XA_45=XA_14,6,IF(XA_45=XA_15,7,IF(XA_45=XA_16,8,IF(XA_45=XA_17,9,IF(XA_45=XA_18,10,IF(XA_45=XA_19,11,IF(XA_45=XA_20,12,IF(XA_45=XA_21,13,IF(XA_45=XA_22,14,IF(XA_45=XA_23,15,IF(XA_45=XA_24,16,IF(XA_45=XA_25,17,IF(XA_45=XA_26,18,IF(XA_45=XA_27,19,IF(XA_45=XA_28,20,IF(XA_45=XA_29,21,IF(XA_45=XA_30,22,IF(XA_45=XA_31,23,IF(XA_45=XA_32,24,IF(XA_45=XA_33,25,DRAWNULL)))))))))))))))))))));
XA_47:=IF(XA_45=MA(CLOSE,XA_46),XA_46,IF(XA_45=XA_34,26,IF(XA_45=XA_35,27,IF(XA_45=XA_36,28,IF(XA_45=XA_37,29,IF(XA_45=XA_38,30,IF(XA_45=XA_39,31,DRAWNULL)))))));
XA_48:=IF(BARSCOUNT(CLOSE)>=31,(XA_45*3+MA(CLOSE,31))/4,MAX(MA(CLOSE,5),MA(CLOSE,BARSCOUNT(CLOSE))));
XA_49:=XA_48;
XA_50:=XA_1=HHV(XA_1,XA_47);
XA_51:=XA_1=LLV(XA_1,XA_47);
STICKLINE(XA_50 AND CLOSE<=OPEN,XA_1*10000/FINANCE(7),0,1.5,0),COLORGREEN;
STICKLINE(XA_50 AND CLOSE>OPEN,XA_1*10000/FINANCE(7),0,1.5,0),COLORRED;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,VOL*10000/FINANCE(7),0,0.5,(-1)),COLOR00C0C0;
DRAWNUMBER(XA_1>MA(XA_1,120)*3,换手,ROUND(XA_1/MA(XA_1,120)));
IF(EVERY(换手<=XA_11,30),XA_11,DRAWNULL),COLORBLUE,LINETHICK4;
STICKLINE(REF(EVERY(换手<=XA_11,30),1) AND XA_3 AND 换手>XA_11,0,0,5,0),COLORYELLOW;
量顶:REF(REF(换手,BARSLAST(换手=HHV(换手,XA_47))),1),DOTLINE,COLORGRAY;
XA_52:=MA(换手,XA_47);
STICKLINE(量顶<XA_11,换手,量顶,3,0),COLORBLUE;
STICKLINE(换手>量顶,换手,量顶,1.5,0),COLORYELLOW;
版权声明
本文版权归掌上指标所有。
未经许可,不得转载,转载请注明出处!