通達信多空斗指標公式
- 指標類別: 通達信指標公式
- 授權方式: 免費版
- 指標評級: ★★★★★
- 指標分類: 超買超賣
- 畫線方法: 副圖
- 日期:2023-12-18 來源:互聯網
通達信多空斗指標公式:
0,POINTDOT,COLORBLUE,LINETHICK3;
{波段}
買:=IF("KDJ.J"<0,10,0);
條件:=CROSS(9.9,買);
VAR1:=(2*CLOSE+HIGH+LOW)/4;
VAR2:=LLV(LOW,5);
VAR3:=HHV(HIGH,5);
VAR4:=EMA((VAR1-VAR2)/(VAR3-VAR2)*100,5);
MA1:=MA(VAR4,2);
AA:STICKLINE(VAR4>MA1,VAR4,MA1,3,1),COLORRED;
BBB:STICKLINE(VAR4>MA1 AND REF(VAR4,1)<30,VAR4,MA1,3,1),COLORRED;
STICKLINE(VAR4<=MA1,VAR4,MA1,3,1),COLORFFCC66;
STICKLINE(CROSS(9.9,買),VAR4+5,MA1-4,3,1),COLORYELLOW;
XXX:=STICKLINE(BBB,VAR4+5,MA1-4,3,1),COLORYELLOW;
STICKLINE(FILTER(XXX ,5) ,VAR4+5,MA1-4,3,1),COLORYELLOW;
DRAWICON(CROSS(9.9,買),VAR4-12,5);
{抄底}
BIAS1:=(C-MA(C,6))/MA(C,6)*100;
BIAS2:=(C-MA(C,12))/MA(C,12)*100;
BIAS3:=(C-MA(C,24))/MA(C,24)*100;
BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;
乖離:=MA(BIAS,3);
STICKLINE(CROSS(BIAS,乖離) AND 乖離<-9,10,0,5,0),COLOR009999;
STICKLINE(CROSS(BIAS,乖離) AND 乖離<-9,10,0,4,0),COLOR00BBBB;
STICKLINE(CROSS(BIAS,乖離) AND 乖離<-9,10,0,3,0),COLOR00DDDD;
DRAWTEXT(CROSS(BIAS,乖離) AND 乖離<-9,4,'底'),COLOR006600;
多頭:(EMA(CLOSE,5)-EMA(CLOSE,20))/EMA(CLOSE,20)*400,COLORRED,LINETHICK2;
IF(多頭<REF(多頭,1),多頭,DRAWNULL),COLORYELLOW,LINETHICK2;
空頭:(EMA(C,20)-EMA(C,5))/EMA(C,5)*400,COLORGREEN,LINETHICK2;
IF(空頭<REF(空頭,1),空頭,DRAWNULL),COLORBLUE,LINETHICK2;
STICKLINE( 多頭>REF(多頭,1),多頭,0,2,0),COLORFF00FF,LINETHICK2;
通達信多空斗指標公式實例圖解:
通達信多空斗指標公式