JE:=VOL/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;
主力资金线:SUM((主买-主卖)*10000/FINANCE(7),0),COLORBROWN,LINETHICK2;
MA1:MA(主力资金线,N),COLORRED; |