源码
va:=EMA(C,2);
va1:=EMA(REF(C,3),5);
vok:=IF(CROSS(va,va1),1,0);
vok1:=IF(REF(C,1)<REF(C,2) AND O>REF(C,1) AND L>REF(L,1) AND C>REF(C,1) OR REF(C,1)<REF(O,1) AND O>REF(C,1) AND L>REF(L,1) AND C>REF(C,1),1,0);
vsj1:=BARSLAST(vok=1 OR vok1=1);
mma2:=SUM(AMOUNT/100,2)/SUM(VOL,2);
zs:IF(vok=1 OR vok1=1,L,REF(L,vsj1)),colorred,LINETHICK3;
Var4:=(LOW+HIGH+CLOSE)/3;
操作:MA(Var4,5),colorred,linethick2;
拉升买:=HHV(操作,13);
f0:=EMA(C,5),linethick0;
f1:=SMA(f0,3,1);
f2:=SMA(f0,5,1);
DRAWTEXT(f0>f2,f2,'@'),colorred;
STICKLINE(操作<ZS,操作,ZS,1,0),colorgreen;
STICKLINE(操作>REF(操作,1),操作,操作+0.05,3,0),coloryellow,linethick4;
STICKLINE(拉升买>REF(拉升买,1),拉升买,拉升买+0.05,3,0),coloryellow,linethick4;
STICKLINE(F0<F2,H,L,1,1),colorgreen;
STICKLINE(F0<F2,O,C,6,1),colorgreen;