通達(dá)信趨勢跟蹤買賣指標(biāo)公式
- 指標(biāo)類別: 通達(dá)信指標(biāo)公式
- 授權(quán)方式: 免費(fèi)版
- 指標(biāo)評級: ★★★★★
- 指標(biāo)分類: 趨勢
- 畫線方法: 副圖
- 日期:2020-03-20 來源:互聯(lián)網(wǎng)
通達(dá)信趨勢跟蹤買賣指標(biāo)公式:
MA5:=MA(CLOSE,5);
MA10:=MA(CLOSE,10);
MA20:=MA(CLOSE,20);
A1:=IF(C>=MA5,1,-1);
A2:=IF(C>=MA10,1,-1);
A3:=IF(C>=MA20,1,-1);
A4:=IF(MA5>=REF(MA5,1),1,-1);
A5:=IF(MA10>=REF(MA10,1),1,-1);
A6:=IF(MA20>=REF(MA20,1),1,-1);
趨勢:(A1+A2+A3+A4+A5+A6)/6*100,COLOR00FF00;
主升浪:趨勢>=50,COLOR0000FF,POINTDOT,NODRAW;
↓:趨勢<50,COLORFFFFFF,POINTDOT,NODRAW;
周期:IF(主升浪,BARSLAST(CROSS(主升浪,0.1))+1,0),COLORFF00FF,POINTDOT,NODRAW;
臨界:IF(CROSS(98,趨勢),1,0),COLOR00FF00,POINTDOT,NODRAW;
WKQY:=BARSLAST(CROSS(50,趨勢))<MIN(BARSLAST(CROSS(趨勢,1)),BARSLAST(CROSS(趨勢,-1)));
挖坑:BETWEEN(趨勢,-1,50) AND WKQY,COLOR00FFFF,POINTDOT,NODRAW;
{以下設(shè)置副圖顯示方式}
DRAWBAND(趨勢,RGB(250,0,0),50,RGB(0,0,0));
AA:=IF(挖坑,趨勢,50);
DRAWBAND(50,RGB(250,250,0),AA,RGB(0,0,0));
STICKLINE(主升浪,周期*0.8,周期*0.95,3,0),COLOR0000FF;
STICKLINE(主升浪,周期*1.05,周期*1.2,3,0),COLOR0000FF;
STICKLINE(主升浪 AND C<REF(C,1),周期*0.9,周期*1.1,3,1),COLORFFFFFF;
STICKLINE(CROSS(主升浪,0.1),0,100,0,-1),COLOR0000FF;
DRAWTEXT(臨界,90,'☆'),COLOR00FF00;
平:0,COLORFFFFFF;
STICKLINE(C>0,50,50,1,0),COLOR000000;
%:趨勢,COLOR00FF00;
{以下設(shè)置文字提示部分}
DRAWTEXT(CURRBARSCOUNT=60,20,'====★趨勢為王.順勢而為!★===='),COLOR0000FF;
DRAWTEXT(CURRBARSCOUNT=58,-30,'■只做主升, 挖坑低吸!'),COLORFFFFFF;
DRAWTEXT(CURRBARSCOUNT=58,-60,'●臨界不漲, 逢高離場!'),COLOR00FFFF;
通達(dá)信趨勢跟蹤買賣指標(biāo)公式實(shí)例圖解 :
通達(dá)信趨勢跟蹤買賣指標(biāo)公式