1.ͬ?同花源码keysyuanm?˳?ʽ?ָ?깫ʽԴ??
2.同花顺主力相对才参与度指标公式
ͬ??˳?ʽ?ָ?깫ʽԴ??
A:=SUBSAMEDAY(&MONEY);IF(FORMATTIME(1)< 1)
RETURN;
b:=SUBSAMEDAY(&NEW);
资金流出:-SUM(IF(b< 0,A,0),0),COLORFFFFFF;
资金流入:SUM(IF(b> 0,A,0),0),COLORFFFF;
资金差:资金流入+资金流出,COLORFFFFFF;
资金差均线:MA(资金差,),COLORFFFF;/*这里的自己可改成你想按多少分钟来计算平均数的分钟数*/
同花顺主力相对才参与度指标公式
不知道这个指标符合要求不? 演示在下面网址里
VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
主力控盘:2*3.8,colorred;
主力持仓:EMA(*(CLOSE- LLV(LOW,))/(HHV(HIGH,)-LLV(LOW,)),3),colormagenta,LINETHICK2;
主动买盘:IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH- OPEN)+(CLOSE-LOW)),VOL/2)),colorred,POINTDOT;
主动卖盘:IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN- LOW)),IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0-VOL/2)),COLORFF,POINTDOT;
STICKLINE(VOL>0,VOL,0,2,1),colorwhite;
平均成本线:COST(),coloryellow,LINETHICK2;
MA1:MA(CLOSE,5);
MA2:MA(CLOSE,);
MA3:MA(CLOSE,);
DRAWICON((ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)<=REF(ZIG(3,5),3)),LOW*0.,1) ;
DRAWICON((ZIG(3,5)=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)>=REF(ZIG(3,5),3)),HIGH*1.,2);
STICKLINE(主动买盘>0,0,主动买盘,2,0),colorred;
STICKLINE(主动卖盘<0,0,主动卖盘,2,0),COLORFF;