源碼---
Var1:=(HIGH+LOW+CLOSE)/3;
Var2:=IF(HIGH=LOW,1,HIGH-MAX(OPEN,CLOSE));
Var3:=IF(HIGH=LOW,1,MAX(CLOSE,OPEN)-Var1);
Var4:=IF(HIGH=LOW,1,MIN(OPEN,CLOSE)-LOW);
Var5:=IF(HIGH=LOW,1,Var1-MIN(CLOSE,OPEN));
Var6:=VOL/IF(HIGH=LOW,4,HIGH-LOW);
Var7:=Var2*Var6;
Var8:=Var3*Var6;
Var9:=Var4*Var6;
VarA:=Var5*Var6;
STICKLINE(CLOSE>0,0,Var7+VarA,8,1), , COLORred;
買入量: Var7+VarA,LINETHICK0;
STICKLINE(CLOSE>0,(Var8+Var9)*(-1),0,8,1), , COLORblue;
賣出量:(Var8+Var9)*(-1),LINETHICK0;
買入10:MA((Var7+VarA),10),LINETHICK0;
賣出10:MA((Var8+Var9)*(-1),10),LINETHICK0;
買入30:MA((Var7+VarA),30),LINETHICK0;
賣出30:MA((Var8+Var9)*(-1),30),LINETHICK0;
VarF:=TROUGHBARS(3,15,1)<4;
升跌:=EMA((C/MA((2*C+H+L)/4,30)-1)*100,3);
STICKLINE(FILTER(VarF=1,5),vol*2,0,5,0),colorblue;
DRAWICON(FILTER(VarF=1,5),vol*2.2,1);
DRAWTEXT(FILTER(VarF=1,5),vol*2.2,'-->出擊'),colorwhite;