MA1:EMA(EMA(CLOSE,7),3);
PARTLINE(MA1,MA1>ref(MA1,1),rgb(250,250,250),MA1
AM2:EMA(EMA(CLOSE,10),5);
PARTLINE(AM2,MA1>ref(AM2,1),rgb(200,30,180),AM2
AM3:EMA(EMA(CLOSE,14),7);
PARTLINE(AM3,AM3>ref(AM3,1),rgb(250,0,0),AM3
JJ:=(3*C+H+L+O)/6;
VAR1:=(8*JJ+7*REF(JJ,1)+6*REF(JJ,2)+5*REF(JJ,3)+4*REF(JJ,4)+3*REF(JJ,5)+2*REF(JJ,6)+REF(JJ,8))/36;
TJ1:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>VAR1 AND C>REF(C,1);
LJL:=FILTER(TJ1,5);
A3:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
A4:=SMA(A3,3,1);
A5:=SMA(A4,3,1);
A6:=3*A4-2*A5;
A7:=C-REF(C,1);
A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);
买:=LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2));
DRAWTEXT(FILTER(买=1,5),LOW-0.05,'↖短买'),COLORYELLOW;
N日:=5;
TODAY:="ddx.ddx"=0;
主单买:=IF(TODAY,"DDEDATA@BIGORDER"(1,2),bigorder(1,2))*amount/10000;
主单卖:=IF(TODAY,"DDEDATA@BIGORDER"(2,2),bigorder(2,2))*amount/10000;
主净:=主单买-主单卖;
主力资金:sum(主净,N日),LINETHICK0;
VARV:=(2*C+H+L)/4;
VARU:=LLV(LOW,30);
VARA1:=HHV(HIGH,30);
B:=EMA((VARV-VARU)/(VARA1-VARU)*100,8);
B1:=EMA(B,5);
建仓:=主力资金>0 and ref(主力资金,1)<0 and b1<50;
DRAWTEXT(建仓,L * 0.99,'●建仓'),ColorFF00FF;