{主力资金擒牛主图源码如下}
趋势线:=MA(C,21);
牛熊分界:=MA(C,105);
好股网:(MA(CLOSE,3) + MA(CLOSE,6) + MA(CLOSE,12) + MA(CLOSE,24))/4,COLORMAGENTA;
DRAWBAND((MA(CLOSE,3) + MA(CLOSE,6) + MA(CLOSE,12) + MA(CLOSE,24))/4,RGB(60,0,0),MA(C,21),RGB(0,60,0));
牛熊线2:MA(C,21),COLORGREEN,LINETHICK2;
操作线:好股网,COLORWHITE;
公式平台:=C>=O;
STICKLINE(公式平台,H,L,0,0),COLORRED;
STICKLINE(公式平台,O,C,3,1),COLORRED;
公式平台1:=C< O;
STICKLINE(公式平台1,H,L,0,0),COLORCYAN;
STICKLINE(公式平台1,O,C,3,1),COLORCYAN;
操作线2:=MA(操作线,5);
STICKLINE(C/REF(C,1)>1.097,C,O,2.3,0),COLORMAGENTA;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
ZD:=MACD>REF(MACD,1);
STICKLINE(CROSS(操作线,牛熊线2)AND ZD,C,O,2.3,0),COLORYELLOW;
STICKLINE(CROSS(操作线,牛熊线2)AND ZD,C,O,0.6,0),COLORRED;
DRAWTEXT(C/REF(C,1)>1.097,L*0.99,'★牛'),COLORYELLOW;
DRAWICON(CROSS(操作线,牛熊线2)AND ZD,牛熊线2*1.002,9);
{主力资金擒牛副图源码如下}
A:=VOL*CLOSE;
B:=SUM(A,1)/SUM(VOL,1);
B1:=EMA(B,8);
主力资金1:(B-B1)*100/B,NODRAW,COLORRED;
DRAWBAND(主力资金1+35,RGB(250,0,00),35,RGB(0,255,0));
DRAWTEXT(ISLASTBAR,35.5,' 主力资金'),COLORRED;
资金趋势:3*(EMA(C,3)-EMA(C,8)-EMA(EMA(C,3)-EMA(C,8),20))*5,NODRAW,COLORMAGENTA;