通达信原创:牛牛指标建仓预警主图指标公式
建仓预警买:0,NODRAW;
红线上持有:0,NODRAW;
出货试减仓:0,NODRAW;
绿线不操作:0,NODRAW;
重心:=(C+0.618*REF(C,1)+0.382*REF(C,2)+0.236*REF(C,3)+0.146*REF(C,4))/2.382;
A:=IF(DATE<(1121130),1,0);
粗红线: A*EMA(((SLOPE(C,22)*20)+C),55),COLORYELLOW,LINETHICK1;
细红线: A*((MA(C,20)+MA(C,19)+MA(C,18)+MA(C,17)+MA(C,16)+MA(C,15)+MA(C,14)+MA(C,13)+MA(C,12)+MA(C,11)+MA(C,10)+MA(C,9)+MA(C,8)+MA(C,7)+MA(C,6)+MA(C,5)
+MA(C,4)+MA(C,3)+MA(C,2)+C)/20),COLORGREEN;
M1:=L*2-REF(H,27/2);
M2:=REF(H,27/2)*2-L;
{牛牛指标网提供 www.tdx001.com}
M3:=(M1+M2)/2;
IF(重心>=粗红线,粗红线,DRAWNULL),COLORRED,LINETHICK4;
IF(重心<粗红线,粗红线,DRAWNULL),COLORBLUE,LINETHICK4;
IF(重心<粗红线,粗红线,DRAWNULL),COLORRED,LINETHICK4,NODRAW;
IF(细红线>REF(细红线,2),细红线,DRAWNULL), COLORRED, LINETHICK2;
IF(细红线<REF(细红线,2),细红线,DRAWNULL), COLORGREEN, LINETHICK2;
IF(ABS(细红线-REF(细红线,1))/细红线*10000<8,细红线,DRAWNULL), COLORBLUE, LINETHICK1;
{牛牛指标网提供 www.tdx001.com}
IF(细红线>REF(细红线,2),细红线,DRAWNULL), COLORRED, LINETHICK2;
IF(细红线<REF(细红线,2),细红线,DRAWNULL), COLORGREEN, LINETHICK2;
IF(ABS(细红线-REF(细红线,1))/细红线*10000<8,细红线,DRAWNULL), COLORBLUE, LINETHICK2;
DRAWTEXT(CROSS(C,粗红线) AND CROSS(C,细红线)AND C>O,L*0.95,'建仓预警')COLORRED;
DRAWICON(CROSS(C,粗红线) AND CROSS(C,细红线)AND C>O,L*0.98,1)COLORRED;
VAR21:=4*SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1)-
3*SMA(SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1),3.2,1);
VAR22:=8;
QQ:=CROSS(VAR21,VAR22);
DRAWTEXT(QQ AND CROSS(C,粗红线) AND CROSS(C,细红线)AND C>O,L*0.98,'买进!'),COLOR0099FF;
MA18:=MA(CLOSE,18);
MTM:=C-REF(C,1);
DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
买11:=LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2));
M011:=FILTER(买11=1,5);
加1:=MA18>=REF(MA18,3) AND CROSS(CLOSE,MA18);
{DRAWTEXT((M011 AND 加1 )AND CROSS(C,线上阴线买) AND CROSS(C,重心)AND C>O ,L-0.07,'短线追涨'),COLORGREEN;}
{均线:=MA(CLOSE,16);
阻挡:=(SMA(HIGH,21,2) * 1.05);
VARD:=((((OPEN + LOW) + HIGH) + CLOSE) / 4);
支撑:=EMA(VARD,5);
XX1:=(((((3 * CLOSE) + HIGH) + LOW) + OPEN) / 6);
XX2:=EMA(XX1,10);
AA10:=MA(CLOSE,8),COLOR0000FF;
DRAWTEXT(FILTER(((((((((((OPEN < XX2) AND (CLOSE > XX2)) AND ((支撑 - REF(支撑,1)) > 0)) AND ((支撑 - REF(支撑,1)) > 0)) AND (CLOSE < 阻挡)) AND ((均线 - REF(均线,1)) > 0)) AND (CLOSE >= 均线)) AND (HIGH < 阻挡)) AND ((AA10 - REF(AA10,1)) > 0)) AND ((阻挡 - REF(阻挡,2)) > 0)) ,11)AND C>O,(LOW - 0.11),'快马加鞭')COLORYELLOW;}
A0:=(L+H+C*2)/4;
A1:EMA(A0,14)COLORBLUE,LINETHICK0;
A2:=EMA(A0,25)COLORLIBLUE,LINETHICK2;
A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW;
A2X:=(A2-REF(A2,1))/REF(A2,1)*100,NODRAW;
看多:IF(A1X>=0 AND BARSLAST(CROSS(A1X,0))>0,REF((C+O)/2,BARSLAST(CROSS(A1X,0))),DRAWNULL),COLORMAGENTA{,LINETHICK2};
逃顶:IF(A1X<0 AND BARSLAST(CROSS(0,A1X))>0,REF((C+O)/2,BARSLAST(CROSS(0,A1X))),DRAWNULL),COLORCYAN,{LINETHICK2};
买入持股:IF(A1X>=0,A1,DRAWNULL)COLORRED,LINETHICK3;
卖出空仓:IF(A1X<0 AND A2X<0,A1,DRAWNULL)COLORGREEN,LINETHICK3;
STICKLINE(CROSS(A1X,0),H,L,0,0 ),COLOR9933FF;
STICKLINE(CROSS(A1X,0),C,O,3,0 ),COLOR0000CC;
STICKLINE(CROSS(A1X,0),C,O,1,0 ),COLOR0033FF;
STICKLINE(CROSS(0,A1X),L,H,0,0 ),COLOR66CC33;
XL1:=((LLV(LOW,3) = LLV(LOW,60)) AND ((CLOSE / REF(CLOSE,1)) >= 1.04));
XL2:=(((CLOSE - EMA(CLOSE,21)) / EMA(CLOSE,21)) * 100);
XL3:=CROSS(XL2,(0 - 20));
DRAWTEXT(FILTER(((XL1 > 0) AND LOW),5),(LOW - 0.4),'●买点');
DRAWTEXT((XL3 > 0),(LOW - 0.2),'●绝对底部');
X6:=REF(CLOSE,1);
X7:=((SMA(MAX((CLOSE - X6),0),7,1) / SMA(ABS((CLOSE - X6)),7,1)) * 100);
X8:=CROSS(79,X7);
X9:=FILTER(X8,4);
DRAWTEXT(X9,(HIGH * 1.02),'●出货'),COLOR9000F5;
STICKLINE(C>1.098*REF(C,1),C,O,0,0),COLORYELLOW;
2017399489.jpg
|