{加仓起飞副图源码如下}
{加仓起飞副图,无未来函数}
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
JJ:=(C*3+H+L+O)/6;
SK:=EMA(JJ,13)-EMA(JJ,21);
SD:=EMA(SK,3);
SP:=EMA(SK,10);
A1:=EMA(C,7)-EMA(C,21);
B1:=EMA((0.668*REF(A1,1)+0.333*A1),1);
B1,COLORSTICK;
X1:=V/SUM(V,13);
X2:=DMA(C,X1);
X3:=(C-X2)/X2*40;
L2:=MA(AMOUNT/(100*V),13);
CYS13:=(C-L2)/L2*100;
做多:IF(A1>=B1,A1,B1),LINETHICK2,COLORRED;
做空:IF(B1-A1,B1,A1),COLORGREEN,LINETHICK2;
启动预警:STICKLINE(CYS13>5 AND DIFF>DEA AND C>=EMA(C,5) AND A1-B1>0,0,做空,2,0 ),COLORRED;
DRAWICON(启动预警,启动预警,23);
DRAWTEXT((启动预警 AND REF(A1,1)<=REF(B1,1)AND REF(A1,0)>REF(B1,0)),0.38,'加'),COLORLIBLUE;
主力强度:STICKLINE(X3>0 AND 做多>0,做多+0.1,做多,1,0),COLORYELLOW;
C>MA(C,30),COLORFF80FF,LINETHICK2;
{主力出击主图源码如下}
{主力出击主图指标,无未来函数}
好股网0:=(HY_INDEXC-REF(HY_INDEXC,1))/REF(HY_INDEXC,1)*100;
HGW1:=STRSPACE(VAR2STR(好股网0,2));
好股网1:=(REF(HY_INDEXC,1)-REF(HY_INDEXC,2))/REF(HY_INDEXC,2)*100;
HGW2:=STRSPACE(VAR2STR(好股网1,2));
好股网2:=(REF(HY_INDEXC,2)-REF(HY_INDEXC,3))/REF(HY_INDEXC,3)*100;
HGW3:=STRSPACE(VAR2STR(好股网2,2));
好股网3:=(REF(HY_INDEXC,3)-REF(HY_INDEXC,4))/REF(HY_INDEXC,4)*100;
HGW4:=STRSPACE(VAR2STR(好股网3,2));
好股网4:=(REF(HY_INDEXC,4)-REF(HY_INDEXC,5))/REF(HY_INDEXC,5)*100;
HGW5:=STRSPACE(VAR2STR(好股网4,2));
HGW6:=VARCAT(HGW5,HGW4);
HGW7:=VARCAT(HGW3,HGW2);
HGWA:=VARCAT(HGW6,HGW7);
HGWA0:=VARCAT(HGWA,HGW1);
好股网买线:=EMA(C,2);
好股网卖线:=EMA(SLOPE(C,21)*20+C,42);
买:=CROSS(好股网买线,好股网卖线);
卖:=CROSS(好股网卖线,好股网买线);
STICKLINE(好股网买线>=好股网卖线,L,H,0.0,1),COLORRED;
STICKLINE(好股网买线>=好股网卖线,C,O,3,1),COLORRED;
STICKLINE(好股网买线>=好股网卖线 AND C<O,C,O,3,0),COLORRED;
STICKLINE(好股网买线<好股网卖线,L,H,0.0,1),COLOR228822;
STICKLINE(好股网买线<好股网卖线,C,O,3,1),COLOR228822;
STICKLINE(好股网买线<好股网卖线 AND C<O,C,O,3,0),COLOR228822;
D:=(L+H+C)/3;
CH:=EMA(D,10);
Z:=REF(CH,1);
STICKLINE(CH>Z,CH,Z,-1,0 ),COLOR00AAFF;
STICKLINE(CH<Z,Z,CH,-1,0 ),COLORBLUE;
DRAWTEXT(CH>Z AND C>O AND C>REF(C,1) AND NOT(REF(CH>Z,1)),L*0.97,'主力出击'),COLORLIRED;
DRAWICON(CH>Z AND C>O AND C>REF(C,1) AND NOT(REF(CH>Z,1)),L*0.99,9);
MA5:=MA(C,5);
DR2:=ABS(C-REF(C,30));
VR2:=SUM(ABS(C-REF(C,1)),30);
ER2:=DR2/VR2;WX2:=ER2*(0.8-2/24)+2/24;
WU2:=WX2*WX2;
WS2:=ABS(((3.48*C+H+L)/4-EMA(C,20))/EMA(C,20));
WS3:=DMA(((2.15*C+L+H)/4),WS2);
STICKLINE(C/REF(C,1)>1.095,C,O,2,0),COLORYELLOW;