主图
X_1:=5;
X_2:=13;
X_3:=34;
X_4:=34;
X_5:=233;
X_6:=IF(DYNAINFO(8)>0.01,0.01*DYNAINFO(10)/DYNAINFO(8),DYNAINFO(3));
X_7:=DYNAINFO(5)<0.01 OR DYNAINFO(6)<0.01;
X_8:=IF(X_7,1,X_6<DYNAINFO(5)+0.01 AND X_6>DYNAINFO(6)-0.01);
X_9:=IF(X_8,0.01*EMA(AMOUNT,X_1)/EMA(VOL,X_1),EMA((HIGH+LOW+CLOSE)/3,X_1));
X_10:=IF(X_8,0.01*EMA(AMOUNT,X_2)/EMA(VOL,X_2),EMA((HIGH+LOW+CLOSE)/3,X_2));
X_11:=IF(X_8,0.01*EMA(AMOUNT,X_3)/EMA(VOL,X_3),EMA((HIGH+LOW+CLOSE)/3,X_3));
HX1:IF(X_8,DMA(AMOUNT/(100*VOL),100*VOL/FINANCE(7)),EMA((HIGH+LOW+CLOSE)/3,120)),DOTLINE;
IF(HX1>=REF(HX1,1),HX1,DRAWNULL),LINETHICK2;
HX2:DMA(AMOUNT/(100*VOL),VOL/CAPITAL),DOTLINE;
IF(HX2>=REF(HX2,1),HX2,DRAWNULL),COLORYELLOW,LINETHICK2;
LX1:MA(CLOSE,X_4),COLORFFFF80;
LX2:MA(CLOSE,X_5),LINETHICK2;
IF(MA(CLOSE,233)>=REF(MA(CLOSE,233),1),MA(CLOSE,233),DRAWNULL),COLORRED,LINETHICK2;
X_12:=CROSS(LX1,LX2);
DRAWICON(X_12,LX2,9);
X_13:=CROSS(CLOSE,LX2);
DRAWICON(X_13,LOW,5);
幅图1
X_1:=25;
X_2:=(X_1-HHVBARS(HIGH,X_1))/X_1*100;
X_3:=(X_1-LLVBARS(HIGH,X_1))/X_1*100;
X_4:=(CLOSE*2+HIGH+LOW)/4;
X_5:=EMA(X_4,13)-EMA(X_4,34);
X_6:=EMA(X_5,5);
X_7:=2*(X_5-X_6)*3.8;
X_8:=(-2)*(X_5-X_6)*3.8;
X_9:=DMA(AMOUNT/(100*VOL),VOL/CAPITAL);
SZ1:80,COLORYELLOW;
SZ2:90,DOTLINE;
SZ3:70,DOTLINE,COLORYELLOW;
X_10:=CROSS(X_2,X_3);
X_11:=CROSS(X_2,80);
X_12:=CROSS(X_3,X_2);
X_13:=CROSS(X_8,X_7);
XG1:DRAWICON(X_10,115,18);
X_14:=DRAWICON(X_11,80,9);
DRAWICON(X_12,115,15);
X_15:=X_2>REF(X_2,1) AND REF(X_2,1)=80 AND REF(X_2,2)>80 AND CROSS(CLOSE,X_9);
X_16:=DRAWICON(X_15,98,23);
STICKLINE(X_2>X_3,X_2,0,1,0),COLORRED;
STICKLINE(X_2>X_3 AND MACD.DIF<0,X_2,0,1,0),COLORLIGRAY;
STICKLINE(X_2<X_3,X_3,0,1,0),COLORGREEN;
STICKLINE(X_2<X_3 AND MACD.DIF>0,X_3,0,1,0),COLORLIGRAY;
STICKLINE(X_2>X_3 AND X_7<X_8,X_2,0,1,0),COLORLIGRAY;
STICKLINE(X_2<X_3 AND X_7>X_8,X_3,0,1,0),COLORLIGRAY;
副图2用了DLL函数不影响使用
X_1:=MAX(DYNAINFO(3),DYNAINFO(5));
X_2:=MIN(DYNAINFO(3),DYNAINFO(6));
X_3:=X_1-X_2;
X_4:=X_2+X_3*7/8;
X_5:=X_2+X_3*0.5/8;
X_6:=(X_5+X_4)/2;
X_7:=3*SMA((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,5,1),3,1);
X_8:=EMA(X_7,3);
X_9:=BARSCOUNT(CLOSE)>10;
X_10:=IF(NAMELIKE(2),0,1);
X_11:=IF(NAMELIKE(3),0,1);
X_12:=DYNAINFO(17)>0;
X_13:=IF(CODELIKE(1),0,1);
抄地天板信号:REF(X_8,1)<11 AND CROSS(X_8,11) AND CLOSE<X_6 AND X_9 AND X_13 AND X_10 AND X_11 AND X_12;
X_14:=FROMOPEN;
X_15:=MA(CLOSE,5);
X_16:=MA(CLOSE,10);
X_17:=PERIOD=0;
X_18:=PERIOD=1;
X_19:=PERIOD=2;
X_20:=PERIOD=3;
X_21:=PERIOD=4;
X_22:=PERIOD=5;
COND1:X_17 AND EXIST(抄地天板信号,1),STICK,LINETHICK8;
X_23:=X_18 AND 抄地天板信号;
X_24:=X_19 AND 抄地天板信号;
X_25:=X_20 AND 抄地天板信号;
X_26:=X_21 AND 抄地天板信号;
X_27:=X_22 AND 抄地天板信号;
TDXDLL3(1,STR2CON(CODE),64,COND1),NODRAW;
副图3
X_1:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);
X_2:=SUM(IF(CLOSE=REF(CLOSE,1),0,X_1),0);
X_3:=MA(X_2,30);
X_4:=(EMA(CLOSE,12)-EMA(CLOSE,26))*1;
X_5:=EMA(X_4,9)*1;
X_6:=(X_4-X_5)*2;
X_7:=CROSS(X_4,X_5);
X_8:=(3*CLOSE+HIGH+LOW+OPEN)/6;
X_9:=(8*X_8+7*REF(X_8,1)+6*REF(X_8,2)+5*REF(X_8,3)+4*REF(X_8,4)+3*REF(X_8,5)+2*REF(X_8,6)+REF(X_8,8))/36;
X_10:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>X_9 AND CLOSE>OPEN;
X_11:=FILTER(X_10,5);
X_12:=COUNT(X_11,6)=1;
X_13:=MA(CLOSE,60);
X_14:=MA(CLOSE,5);
X_15:=MA(VOL,5);
X_16:=MA(VOL,35);
X_17:=MA(VOL,135);
X_18:=CROSS(X_15,X_17) OR CROSS(X_15,X_16) AND X_2>X_3;
X_19:=CROSS(CLOSE,X_13);
X_20:=EMA(CLOSE,13);
X_21:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
X_22:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
X_23:=X_21<REF(X_22,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
X_24:=X_23 AND COUNT(X_23,30)=1;
STICKLINE(X_24,0,0.15,3,0),COLORFF80FF;
STICKLINE(X_24,0.15,0.35,2,0),COLOR3000FF;
STICKLINE(X_24,0.35,0.51,1,0),COLORYELLOW;
DRAWTEXT(X_24,0.55,2286),COLORMAGENTA;
X_25:=VOL>REF(VOL,1)*1.9;
X_26:=VOL<REF(LLV(VOL,13),1);
X_27:=VOL<REF(LLV(VOL,55),1);
X_28:=X_25 AND REF(X_25,1);
X_29:=CONST(DATE);
X_30:=IF(DATE<X_29,240,FROMOPEN);
X_31:=BARSCOUNT(CLOSE);
X_32:=IF(VOL/X_30*240=CONST(LLV(VOL,60)) AND VOL/X_30*240>CONST(LLV(VOL,X_31)),6,0);
X_33:=IF(VOL/X_30*240=CONST(LLV(VOL,60)) AND VOL/X_30*240=CONST(LLV(VOL,X_31)),6,0);
DL:X_33 OR X_32;
DRAWTEXT(DL,0.4,1424),COLORYELLOW;