VAR1:=REF(LOW,1);
VAR2:=SMA(ABS(LOW-VAR1),3,1)/SMA(MAX(LOW-VAR1,0),3,1)*100;
VAR3:=EMA(IF(CLOSE*1.2,VAR2*10,VAR2/10),3);
VAR4:=LLV(LOW,38);
VAR5:=HHV(VAR3,38);
VAR6:=IF(LLV(LOW,90),1,0);
VAR7:=EMA(IF(LOW =VAR4,(VAR3+VAR5*2)/2,0),3)/618*VAR6;
VAR8:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;
STICKLINE(VAR7,0,VAR7,6,0),COLOR0000FF;
STICKLINE(VAR7,0,VAR7,5,0),COLOR6600FF;
STICKLINE(VAR7,0,VAR7,4,0),COLORBB00FF;
STICKLINE(VAR7,0,VAR7,3,0),COLORFF00FF;
STICKLINE(VAR7,0,VAR7,2,0),COLORFF33FF;
STICKLINE(VAR7,0,VAR7,1,0),COLORFF66FF;
STICKLINE(VAR7,0,VAR7,0,0),COLORFF99FF;
MA60:=MA(C,60);
MAI60:=MA(INDEXC,60);
LS:=REF(MA60,1) MA60 AND REF(MAI60,1) MAI60;
JE:=/10;
JJ:=(HIGH+LOW+CLOSE)/3;
QJ0:=VOL/IF(HIGH=LOW,4,HIGH-LOW);
主买:=(QJ0*(JJ-MIN(CLOSE,OPEN)));
主卖:=(QJ0*(MIN(OPEN,CLOSE)-LOW));
散买:=(QJ0*(HIGH-MAX(OPEN,CLOSE)));
散卖:=(QJ0*(MAX(CLOSE,OPEN)-JJ));
庄净入:IF((主买-主卖) 0,主买-主卖,0),COLORRED,NODRAW;
庄净出:IF((主买-主卖) 0,主买-主卖,0),COLORGREEN,NODRAW;
散净入:IF((散买-散卖) 0,散买-散卖,0),COLORMAGENTA,NODRAW;
散净出:IF((散买-散卖) 0,散买-散卖,0),COLORBLUE,NODRAW;