通达信溪下搏牛主图指标公式
通达信布林K线主图指标公式
MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;
牛线: (20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210,COLORYELLOW,LINETHICK1;
马线:MA(牛线,6),COLOR0000FF,LINETHICK1;
{指标网-股票公式网站 www.gupanG.com}
MA05:MA(C,5),LINETHICK2,COLOR0080FF;
TY:=C;
A10:=REF(TY,10)=HHV(TY,2*10+1);
B10:=FILTER(A10,10);
C1:=BacKSET(B10,10+1);
HD:=FILTER(C1,20);
A20:=REF(TY,10)=LLV(TY,2*10+1);
B20:=FILTER(A20,10);
C2:=BACKSET(B20,10+1);
LD:=FILTER(C2,10);
A0:=REF(C,BArslAst(HD));
B0:=REF(C,BARSLAST(LD));
T1:=BARSLAST(HD); T2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);
A:=(3*C+L+O+H)/6;
X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+
14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)
+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+
REF(A,20))/210;
S2:=SMA(C,3,1);
S6:=SMA(C,5,1);
DK:=2*(S2-S6);
主力成本:EMA(X,13),COLORFF00FF,LINETHICK0,LINETHICK2;
MA5:=MA(C,5);
MA10:=MA(C,10);
MA30:=MA(C,30);
FA:=BARSLAST(crOSS(MA10,MA5)) AND CROSS(MA5,MA10);
FB:=FA AND MA5>MA30 AND MA10>MA30 AND MA10>REF(MA10,1);
DRAWTEXT(FB,L-0.58,'红牛'),COLORRED;
V1:=EMA(CLOSE,5);
V2:=EMA(EMA(CLOSE,90)*1.01,10);
DRAWTEXT(CROSS(V1,V2),V1+0.05,'▲牛起步'),COLORMAGENTA;
VAR01:=LLV(LOW,21);
VAR02:=HHV(HIGH,21);
AK1:=EMA((((CLOSE - VAR01) / (VAR02 - VAR01)) * 100),5);
AK:=EMA((((CLOSE - VAR01) / (VAR02 - VAR01)) * 50),13);
AB:=CROSS(AK1,AK);
DRAWTEXT((AB = 1),(LOW * 0.99),'狙击牛窝'),COLORFFCC00;
AA1:=AMOUNT/V;
BB1:=L;
CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;
DD1:=L;
EE1:=V;
老鼠仓:=BB1 AND CC1 AND DD1 AND EE1,LINETHICK0,COLOR0099FF;
{DRAWTEXT(老鼠仓,L*0.99,'山寨老鼠仓'),COLOR0080FF;}
VAR3AA:=IF((CLOSE>REF(CLOSE,1)),88,0);
VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)<1.01) AND (VAR3AA>0),91,0);
DRAWTEXT(FILTER((VAR4AA>90),45),(LOW)*(0.93),'溪下搏牛 '),COLORFFFF00;
DRAWTEXT(FILTER((VAR4AA>90),35),(LOW)*(0.99000001),'加仓'),COLOR00FFFF;
A1AA:=9;
A2AA:=(REF(CLOSE,A1AA+1));
DRAWTEXT(FILTER((A2AA>-0.5),84),(HIGH)*(1.05),'变盘'),COLORFFFFFF;
VAR6:=REF(C,1);
VAR7:=SMA(MAX(C-VAR6,0),6,1)/SMA(Abs(C-VAR6),6,1)*100;
LC1:=REF(CLOSE,1);rsi:=((SMA(MAX((CLOSE -
LC1),0),3,1) / SMA(ABS((CLOSE - LC1)),3,1)) *
100);
VAR13:=LLV(LOW,27);VAR14:=HHV(HIGH,34);VAR15:=EMA((CLOSE-VAR13)/(VAR14-VAR13)*4,4)*25;
注意买:=IF((VAR15<10),80,100);RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;超跌:=IF(J<0,10,0);BDDD:=LLV(J,2)=LLV(J,8);
mtm:=C-REF(C,1);DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
买点:=IF(LLV(DX,2)=LLV(DX,7)
AND COUNT(DX<0,2) AND
CROSS(DX,MA(DX,2)),1,0);
DRAWTEXT(FILTER(买点=1,5),LOW-0.03,'▲牛拉升'),COLORWHITE;
通达信买卖三角主图指标公式