通達信趨勢盯盤主圖指標(biāo)公式
- 指標(biāo)類別: 通達信指標(biāo)公式
- 授權(quán)方式: 免費版
- 指標(biāo)評級: ★★★★★
- 指標(biāo)分類: 趨勢
- 畫線方法: 主圖
- 日期:2024-10-14 來源:互聯(lián)網(wǎng)
通達信趨勢盯盤主圖指標(biāo)公式:
MD:MA(C,20),POINTDOT;
BL1:=POW((C-MD),2);
BL2:=MA(BL1,20);
BL3:=SQRT(BL2);
上軌:MD+2*BL3,COLORYELLOW;
下軌:MD-2*BL3,COLORMAGENTA;
{紅色K線持股}
VAR1:=C>REF(C,1) AND C>REF(C,2);
VAR2:=REF(VAR1,1) AND C<=REF(C,1) AND C>=REF(C,2);
VAR3:=REF(VAR2,1) AND C>=REF(C,1) AND C<=REF(C,2);
VAR4:=REF(VAR3,1) AND C<=REF(C,1) AND C>=REF(C,2);
VAR5:=REF(VAR4,1) AND C>=REF(C,1) AND C<=REF(C,2);
VAR6:=REF(VAR5,1) AND C<=REF(C,1) AND C>=REF(C,2);
VAR7:=REF(VAR6,1) AND C>=REF(C,1) AND C<=REF(C,2);
VAR8:=REF(VAR7,1) AND C<=REF(C,1) AND C>=REF(C,2);
VAR9:=REF(VAR8,1) AND C>=REF(C,1) AND C<=REF(C,2);
VARA:=REF(VAR9,1) AND C<=REF(C,1) AND C>=REF(C,2);
VARB:=REF(VARA,1) AND C>=REF(C,1) AND C<=REF(C,2);
VARC:=REF(VARB,1) AND C<=REF(C,1) AND C>=REF(C,2);
K紅色:=VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC;
STICKLINE(K紅色,C,REF(C,1),3,1),COLORRED;{K紅色持股}
紅持股:IF(K紅色,C,DRAWNULL),COLORRED,NODRAW;
{青色K線持幣}
VARD:=C<REF(C,1) AND C<REF(C,2);
VARE:=REF(VARD,1) AND C>=REF(C,1) AND C<=REF(C,2);
VARF:=REF(VARE,1) AND C<=REF(C,1) AND C>=REF(C,2);
VAR10:=REF(VARF,1) AND C>=REF(C,1) AND C<=REF(C,2);
VAR11:=REF(VAR10,1) AND C<=REF(C,1) AND C>=REF(C,2);
VAR12:=REF(VAR11,1) AND C>=REF(C,1) AND C<=REF(C,2);
VAR13:=REF(VAR12,1) AND C<=REF(C,1) AND C>=REF(C,2);
VAR14:=REF(VAR13,1) AND C>=REF(C,1) AND C<=REF(C,2);
VAR15:=REF(VAR14,1) AND C<=REF(C,1) AND C>=REF(C,2);
VAR16:=REF(VAR15,1) AND C>=REF(C,1) AND C<=REF(C,2);
VAR17:=REF(VAR16,1) AND C<=REF(C,1) AND C>=REF(C,2);
VAR18:=REF(VAR17,1) AND C>=REF(C,1) AND C<=REF(C,2);
K青色:=VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18;
STICKLINE(K青色,C,REF(C,1),3,1),COLORCYAN;{K青色持幣}
青持幣:IF(K青色,C,DRAWNULL),COLORCYAN,NODRAW;
{K黃色買入---青色K線變紅色K線買入}
VAR19:=REF(K青色,1) AND VAR1;
{STICKLINE(VAR19,C,REF(C,1),2,0),COLORYELLOW;}{K黃色買入}
買入:IF(VAR19,REF(C,1),DRAWNULL),COLORMAGENTA,NODRAW; {青變紅}
{**紅賣出---紅色K線變青色K線賣出};
VAR20:=REF(K紅色,1) AND VARD;
{STICKLINE(VAR20,C,REF(C,1),2,0),COLORMAGENTA;}{**紅賣出};
賣出:IF(VAR20,REF(C,1),DRAWNULL),COLORGREEN,NODRAW;{紅變青};
通達信趨勢盯盤主圖指標(biāo)公式實例圖解:
通達信趨勢盯盤主圖指標(biāo)公式