安全线:= MA(CLOSE,30);
FILLRGN(安全线,N,安全线>N,RGB(204,234,251));
ZC:=IF(C=INDEXC,(INDEXC+INDEXH+INDEXL+INDEXO)/4,AMOUNT/(V)/100);
重心:=IF(VOL>0,ZC,C);
A:=重心;
多空线:(20*a+19*REF(a,1)+18*REF(a,2)+17*REF(a,3)+16*REF(a,4)+15*REF(a,5)+14*REF(a,6)
+13*REF(a,7)+12*REF(a,8)+11*REF(a,9)+10*REF(a,10)+9*REF(a,11)+8*REF(a,12)
+7*REF(a,13)+6*REF(a,14)+5*REF(a,15)+4*REF(a,16)+3*REF(a,17)+2*REF(a,18)+
REF(a,20))/210,linethick2,COLORFF8080;
M5:=EMA(多空线,5);
回调认同线:EMA(多空线,13),colorFF00FF,linethick2;
X:=重心>=M5;
休息起飞线:EMA(C,62),colorAAC032,linethick2;
STICKLINE(x,H,L,0,1),COLOR0000FF;
STICKLINE(x AND C>=O,O,C,5,0),COLOR0000FF;
STICKLINE(x AND C
STICKLINE(NOT(x),H,L,1,0),COLORFFBB00;
STICKLINE(NOT(x) AND C
STICKLINE(NOT(x) AND C>=O,O,C,5,1),COLORFFBB00;
买进价:=((C-REF(MA(C,6),1))/6+MA(C,6))*1.004;
买进条件:=CROSS(C,买进价) AND 买进价>REF(买进价,1);
STICKLINE(买进条件,H,L,0.5,1),colorwhite;
STICKLINE(买进条件,O,C,8,0),colorwhite;
加码价:=((C-REF(MA(C,18),1))/18+MA(C,18))*1.004;
加码条件:=CROSS(C,加码价) AND 加码价>REF(加码价,1);
STICKLINE(加码条件,H,L,0.5,1),coloryellow;
STICKLINE(加码条件,O,C,8,0),coloryellow;
Var3:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),5);
Var4:=(CLOSE-LLV(CLOSE,126))/(HHV(CLOSE,126)-LLV(CLOSE,126))*100;
Var5:=EMA(CLOSE,2)-EMA(CLOSE,120);
Var6:=EMA(Var5,68);
var55:(EMA(CLOSE,2)-EMA(CLOSE,120))+M,coloryellow;
Var61:=EMA(Var5,34);
Var62:(EMA(Var5,14))+M,coloryellow;
{FILLRGN(var62,var55,var55>var62,RGB(255,85,255));
FILLRGN(var55,var62,var55;