XA_1:=STRCAT(HYBLOCK,1);
XA_2:=STRCAT(XA_1,DYBLOCK);
XA_3:=STRCAT(XA_2,1);
DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(XA_3,GNBLOCK)),COLORRED;
短上轨:EMA(HIGH,T),COLORRED;
短下轨:EMA(LOW,T),COLORGREEN;
NOTEXT短下轨0:IF(CLOSE>短下轨,短下轨,DRAWNULL),COLORRED;
NOTEXT短上轨0:IF(CLOSE>短上轨,短上轨,DRAWNULL),COLORRED;
NOTEXT短下轨1:IF(CLOSE<短下轨,短下轨,DRAWNULL),COLORGREEN;
NOTEXT短上轨1:IF(CLOSE<短上轨,短上轨,DRAWNULL),COLORGREEN;
STICKLINE(CLOSE>短上轨,短上轨,短下轨,0,0),COLORRED;
STICKLINE(CLOSE<短下轨,短上轨,短下轨,0,0),COLORGREEN;
XA_4:=短上轨-短下轨;{www.70822.com}
长上轨:EMA(HIGH,TT),COLORMAGENTA;
长下轨:EMA(LOW,TT),COLORBLUE;
NOTEXT长上轨0:IF(CLOSE>长上轨,长上轨,DRAWNULL),COLORMAGENTA;
NOTEXT长下轨0:IF(CLOSE>长下轨,长下轨,DRAWNULL),COLORMAGENTA;
NOTEXT长下轨1:IF(CLOSE<长下轨,长下轨,DRAWNULL),COLORBLUE;
NOTEXT长上轨1:IF(CLOSE<长上轨,长上轨,DRAWNULL),COLORBLUE;
STICKLINE(CLOSE>长上轨,长上轨,长下轨,0,0),COLORMAGENTA;
STICKLINE(CLOSE<长下轨,长上轨,长下轨,0,0),COLORBLUE;
XA_5:=长上轨-长下轨;
DRAWTEXT(REF(CLOSE,3)<REF(短下轨,3) OR REF(CLOSE,3)<REF(短上轨,3) AND (REF(CLOSE,2)<REF(短下轨,2) OR REF(CLOSE,2)<REF(短上轨,2)) AND (REF(CLOSE,1)<REF(短下轨,1) OR REF(CLOSE,1)<REF(短上轨,1)) AND CLOSE>短上轨 AND 短上轨<长下轨 AND COUNT(CLOSE<短下轨,6)>0,LOW*0.96,37),COLORMAGENTA;
DRAWTEXT(REF(CLOSE,3)<REF(短下轨,3) OR REF(CLOSE,3)<REF(短上轨,3) AND (REF(CLOSE,2)<REF(短下轨,2) OR REF(CLOSE,2)<REF(短上轨,2)) AND (REF(CLOSE,1)<REF(短下轨,1) OR REF(CLOSE,1)<REF(短上轨,1)) AND CLOSE>短上轨 AND CLOSE>长上轨 AND COUNT(CLOSE<短下轨,6)>0,LOW*0.96,38),COLORMAGENTA;
DRAWTEXT(REF(CLOSE,3)<REF(长下轨,3) OR REF(CLOSE,3)<REF(长上轨,3) AND (REF(CLOSE,2)<REF(长下轨,2) OR REF(CLOSE,2)<REF(长上轨,2)) AND (REF(CLOSE,1)<REF(长下轨,1) OR REF(CLOSE,1)<REF(长上轨,1)) AND CLOSE>长上轨 AND CLOSE>短上轨 AND COUNT(CLOSE<长下轨,6)>0,LOW*0.96,38),COLORMAGENTA;
DRAWTEXT(REF(CLOSE,3)>REF(短上轨,3) OR REF(CLOSE,3)>REF(短下轨,3) AND (REF(CLOSE,2)>REF(短上轨,2) OR REF(CLOSE,2)>REF(短下轨,2)) AND (REF(CLOSE,1)>REF(短上轨,1) OR REF(CLOSE,1)>REF(短下轨,1)) AND CLOSE<短下轨 AND 短上轨>长上轨 AND CLOSE>长下轨 AND COUNT(CLOSE>短上轨,6)>0,HIGH*1.04,39),COLORMAGENTA;
DRAWTEXT(REF(CLOSE,3)>REF(短上轨,3) OR REF(CLOSE,3)>REF(短下轨,3) AND (REF(CLOSE,2)>REF(短上轨,2) OR REF(CLOSE,2)>REF(短下轨,2)) AND (REF(CLOSE,1)>REF(短上轨,1) OR REF(CLOSE,1)>REF(短下轨,1)) AND CLOSE<短下轨 AND 短下轨<长下轨 AND COUNT(CLOSE>短上轨,6)>0,HIGH*1.04,40),COLORMAGENTA;
DRAWTEXT(REF(CLOSE,3)>REF(长上轨,3) OR REF(CLOSE,3)>REF(长下轨,3) AND (REF(CLOSE,2)>REF(长上轨,2) OR REF(CLOSE,2)>REF(长下轨,2)) AND (REF(CLOSE,1)>REF(长上轨,1) OR REF(CLOSE,1)>REF(长下轨,1)) AND CLOSE<长下轨 AND CLOSE<短下轨 AND COUNT(CLOSE>长上轨,6)>0,HIGH*1.04,40),COLORMAGENTA;
XA_6:=CLOSE>REF(CLOSE,4);
XA_7:=BARSLASTCOUNT(XA_6);
XA_8:=XA_7=9;{www.70822.com}
XA_9:=ISLASTBAR AND BETWEEN(XA_7,1,8);
XA_10:=(BACKSET(XA_8>0,9) OR BACKSET(XA_9>0,XA_7))*XA_7;
DRAWTEXT(XA_10>0,HIGH*1.001,VAR2STR(XA_10,0)),COLORWHITE;
DRAWTEXT(XA_7=9,HIGH*1.001,6),COLORMAGENTA;
XA_11:=CLOSE<REF(CLOSE,4);
XA_12:=BARSLASTCOUNT(XA_11);
XA_13:=XA_12=9;
XA_14:=ISLASTBAR AND BETWEEN(XA_12,1,8);
XA_15:=(BACKSET(XA_13>0,9) OR BACKSET(XA_14>0,XA_12))*XA_12;
DRAWTEXT(XA_15>0,LOW*0.998,VAR2STR(XA_15,0)),COLORWHITE;
DRAWTEXT(XA_12=9,LOW*0.998,6),COLORMAGENTA;
XA_16:=TOPRANGE(HIGH);
XA_17:=LOWRANGE(LOW);
XA_18:=LLVBARS(HIGH,XA_16);
XA_19:=LLVBARS(LOW,XA_16);
XA_20:=HHVBARS(LOW,XA_17);
XA_21:=HHVBARS(HIGH,XA_17);
XA_22:=HHV(LOW,XA_18+1)>LLV(HIGH,XA_18+1);
XA_23:=HHV(LOW,XA_20+1)>LLV(HIGH,XA_20+1);
XA_24:=COUNT(LOW>=REF(LOW,1),XA_19)>2 AND COUNT(HIGH>=REF(HIGH,1),XA_18)>2;
XA_25:=COUNT(HIGH<=REF(HIGH,1),XA_21)>2 AND COUNT(LOW<=REF(LOW,1),XA_20)>2;
XA_26:=XA_16 AND XA_22 AND XA_24 AND XA_19>3;
XA_27:=XA_17 AND XA_23 AND XA_25 AND XA_21>3;
XA_28:=BARSLAST(XA_26);
XA_29:=BARSLAST(XA_27);
XA_30:=IF(XA_28=0,XA_29,XA_28)>=3;
XA_31:=XA_26 AND XA_30 AND HIGH=HHV(HIGH,BARSLAST(XA_27));
XA_32:=XA_27 AND XA_30 AND LOW=LLV(LOW,BARSLAST(XA_26));
NOTEXT上笔划线:DRAWLINE(XA_32,LOW,XA_31,HIGH,0),DOTLINE,COLORYELLOW;
NOTEXT下笔划线:DRAWLINE(XA_31,HIGH,XA_32,LOW,0),DOTLINE,COLORYELLOW;
XA_33:=NOTEXT上笔划线 AND NOTEXT下笔划线;
XA_34:=IF(PERIOD=11,0.02,IF(PERIOD=10,0.02,IF(PERIOD=9,0.02,IF(PERIOD=8,0.001,IF(PERIOD=7,0.02,IF(PERIOD=6,0.01,IF(PERIOD=5,0.005,IF(PERIOD=4,0.002,IF(PERIOD=3,0.001,IF(PERIOD=2,0.001,IF(PERIOD=1,0.0003,IF(PERIOD=0,0.0002,0))))))))))));
涨家数:INDEXADV,NODRAW,COLOR0080FF;
跌家数:INDEXDEC,NODRAW,COLORGREEN;
XA_35:=(HIGH+LOW+CLOSE)/3;
XA_36:=IF(HIGH=LOW,1,HIGH-MAX(OPEN,CLOSE));
XA_37:=IF(HIGH=LOW,1,MAX(CLOSE,OPEN)-XA_35);
XA_38:=IF(HIGH=LOW,1,MIN(OPEN,CLOSE)-LOW);
XA_39:=IF(HIGH=LOW,1,XA_35-MIN(CLOSE,OPEN));
XA_40:=VOL/IF(HIGH=LOW,4,HIGH-LOW);
XA_41:=XA_36*XA_40+XA_37*XA_40;
XA_42:=XA_38*XA_40+XA_39*XA_40;
XA_43:=DYNAINFO(23);
XA_44:=DYNAINFO(22);
XA_45:=IF(ISLASTBAR,XA_42*240/FROMOPEN,XA_42);
XA_46:=IF(ISLASTBAR,XA_41*240/FROMOPEN,XA_41);
XA_47:=IF(ISLASTBAR AND PERIOD=5,XA_43,XA_45);
XA_48:=IF(ISLASTBAR AND PERIOD=5,XA_44,XA_46);
日净买量:XA_47-XA_48,NODRAW,COLORRED;
p201841315205554161.jpg
|