通達信逍遙主力資金波段指標公式
- 指標類別: 通達信指標公式
- 授權(quán)方式: 免費版
- 指標評級: ★★★★★
- 指標分類: 趨勢
- 畫線方法: 副圖
- 日期:2020-07-15 來源:互聯(lián)網(wǎng)
通達信逍遙主力資金波段指標公式:
Z_J1:=EMA(C,2)-EMA(C,150);
Z_J2:=EMA(Z_J1,100);
Z_J3:=2*(Z_J1-Z_J2);
Z_J4:=POW(Z_J3,3)*0.1+POW(Z_J3,1);
主力資金: IF(Z_J3>0.1,Z_J4,0)*10,COLORGREEN;
G_J1:=EMA(C,2)-EMA(C,89);
G_J2:=EMA(G_J1,30);
G_J3:=2*(G_J1-G_J2)*9.8;
G_J4:=POW(G_J3,3)*0.1+POW(G_J3,2);
攻擊資金:IF(G_J3>0.015,G_J4,0)/28,COLORRED;
{中長趨勢}
V8:=600*(EMA(C,3)-EMA(L,30))/EMA(L,30);
V9:=EMA(V8,7);
VA:=(WINNER(120*C/100)-WINNER(100*C/100))*100;
VB:=(-100)*(WINNER(120*C/100)-WINNER(100*C/100))+5;
VC:=(2*C+H+L)/4;
VD:=LLV(L,34);
VE:=HHV(H,34);
VF:=LLV(L,21);
V10:=HHV(H,21);
V11:=EMA((VC-VF)/(V10-VD)*100,5);
V12:=EMA((VC-VD)/(VE-VD)*100,8);
X:V11,COLORWHITE;
頂區(qū):V12,COLORMAGENTA;
V13:=EMA(V12,5);
STICKLINE((V12>V13),V12,V13,6,0),COLOR0000A8;
STICKLINE((V12>V13),V12,V13,5,0),COLOR0000C0;
STICKLINE((V12>V13),V12,V13,4,0),COLOR0000E0;
STICKLINE((V12>V13),V12,V13,3,0),COLOR0000F0;
STICKLINE((V12>V13),V12,V13,2,0),COLOR0000D0;
STICKLINE((V12>V13),V12,V13,1,0),COLOR8080FF;
DRAWTEXT(CROSS(X,頂區(qū)),(X,頂區(qū)),'★曙光現(xiàn)'),COLOR00FFFF;
RSV2:=(CLOSE-LLV(LOW,65))/(HHV(HIGH,65)-LLV(LOW,65))*100;
K2:=SMA(RSV2,12,1);
D2:=SMA(K2,12,1);
STICKLINE(EMA(D2,6)>REF(EMA(D2,6),1) ,EMA(D2,6) ,REF(EMA(D2,6),1) ,3 ,0),COLORMAGENTA;
STICKLINE(EMA(D2,6)<REF(EMA(D2,6),1) ,EMA(D2,6) ,REF(EMA(D2,6),1) ,3 ,0 ),COLORGREEN;
{主要部分}
趨勢:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),LINETHICK2,COLORWHITE;
買警: IF(趨勢<=30,-20,-6),LINETHICK1,COLORGREEN;
買警1: IF(趨勢<=25,-16,-4),LINETHICK2,COLORYELLOW;
買警2: IF(趨勢<=15,-12,-2),LINETHICK2,COLORMAGENTA;
買警3: IF(趨勢<=10,-10,0),LINETHICK3,COLORRED;
賣1: IF(趨勢>=95,100,110),LINETHICK2,COLORRED;
賣2: IF(趨勢>=88,95,107),LINETHICK2,COLORLIMAGENTA;
賣3: IF(趨勢>=81,90,104),LINETHICK2,COLORMAGENTA;
賣4: IF(趨勢>=74,85,101),LINETHICK2,COLORBLUE;
{短中長牛}
N1:=5;N2:=10;
LC:=REF(CLOSE,1);
RSI5:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*10,COLORFF00FF,LINETHICK1;
RSI10:=SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*10,COLOR00FFFF;
VAR1:=C-REF(C,1);
VAR2:=100*EMA(EMA(VAR1,6),6)/EMA(EMA(ABS(VAR1),6),6);
MA5:=EMA(C,5);
MA13:=EMA(C,13);
UP:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS
(MA13,MA5))+1),H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS
(MA5,MA13))+1),0),COLOR0000FF;
DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS
(MA5,MA13))+1),L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS
(MA13,MA5))+1),0),COLOR00FF00;
BT:(LLV(VAR2,2)=LLV(VAR2,7) AND COUNT(VAR2<0,2) AND CROSS(VAR2,MA(VAR2,2))) AND
REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1);
STICKLINE(UP,-50,-45,3,0),COLOR0000FF;
STICKLINE(DOWN,-50,-45,3,0),COLOR00FF00;
STICKLINE(BT,-50,-20,2,0),COLOR000088;
STICKLINE(BT,-50,-20,1,0),COLOR0000CC;
STICKLINE(BT,-50,-20,0.22,0),COLOR0000FF;
DRAWTEXT(BT,-21,'短牛'),COLOR0000FF;
TJ1:=REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1) AND C<HHV(H,21)*0.82;
STICKLINE(TJ1,-50,-30,4,0),COLOR880088;
STICKLINE(TJ1,-50,-30,2.5,0),COLORAA00AA;
STICKLINE(TJ1,-50,-30,1.8,0),COLORCC00CC;
STICKLINE(TJ1,-50,-30,0.8,0),COLORFF00FF;
DRAWTEXT(TJ1,-31,'中牛'),COLORFF00FF;
HR:=HHV(HIGH,55);
HRY:=LLV(LOW,55);
HRY11:=HR*HRY;
HRY33:=SQRT(HRY11);
TJ2:=REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1) AND C<HRY33;
STICKLINE(TJ2,-50,-40,6,0),COLOR008888;
STICKLINE(TJ2,-50,-40,3,0),COLOR00AAAA;
STICKLINE(TJ2,-50,-40,2,0),COLOR00CCCC;
STICKLINE(TJ2,-50,-40,0.5,0),COLOR00FFFF;
DRAWTEXT(TJ2,-41,'大牛'),COLOR00FFFF;
ST:=REF(UP,1)>REF(UP,2) AND DOWN<REF(UP,1);
STICKLINE(ST,130,121,5,0),COLOR008800;
STICKLINE(ST,130,121,2,0),COLOR00AA00;
STICKLINE(ST,130,121,1,0),COLOR00CC00;
STICKLINE(ST,130,121,0.2,0),COLOR00FF00;
DRAWTEXT(ST,115,'別貪了!'),COLOR00FF00;
DRAWTEXT(CURRBARSCOUNT=130,-65,'★抄底及波段特征明顯個股,暴跌
慎用,結(jié)合RSI低位時用更加可靠!!★'),COLOR00FF00;
通達信逍遙主力資金波段指標公式實例圖解:
通達信逍遙主力資金波段指標公式