同花顺机构投资趋势公式
机构投资线站稳30日均线买入,机构投资线跌破30日均线卖出。
源码
VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
主买:=IF(CLOSE OPEN,VAR1*(HIGH-LOW),IF(CLOSE OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));
主卖:=IF(CLOSE OPEN,VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE OPEN,VAR1*(HIGH-LOW),VOL/2));
主力买入量:=(主买-主卖)/10000000;///www.9m8.cn
Cb1:=SUM(主力买入量,60);
Cb2:=SUM(主力买入量,180);
cb:=(Cb1+Cb2)/2;
机构投资:Cb,colorred,LINETHICK2;
均线3:=MA(Cb,3);
均线10:MA(Cb,10);
均线30:MA(Cb,30);
均线60:MA(Cb,60);
dt:=Cb-REF(Cb,1);
STICKLINE(DT 0,Cb,Cb+DT,1,0),colorred;
STICKLINE(DT 0,Cb+DT,Cb,1,0),colorgreen;
DRAWICON( CROSS(均线10,均线30),Cb,1);
DRAWICON( CROSS(均线30,均线10),Cb,2);