通達信量學(xué)主圖指標公式
基本概況:
- 指標類別: 通達信指標
- 授權(quán)方式: 免費版
- 指標評級: ★★★★★
- 指標語言: 簡體中文
- 指標來源: 互聯(lián)網(wǎng)
- 指標日期: 2017-08-10 00:00:00
內(nèi)容介紹:
通達信量學(xué)主圖指標公式:
周期以內(nèi):=100;
大陰跌幅:=3;
允許穿越:=0;
大陰周期:=1;
虛線寬度:=3;
N日最高:=60;
N日最低:=60;
N:=20;
M:=32;
P1:=80;
P2:=100;
實體上三分之一:(MAX(O,C)-MIN(O,C))*2/3+MIN(O,C),COLORGREEN,NODRAW;
實體下三分之一:(MAX(O,C)-MIN(O,C))/3+MIN(O,C),NODRAW;
實體二分之一:(O+C)/2,NODRAW;
整體上三分之一:(MAX(H,L)-MIN(H,L))*2/3+MIN(H,L),NODRAW;
整體下三分之一:(MAX(H,L)-MIN(H,L))/3+MIN(H,L),COLORYELLOW,NODRAW;
整體二分之一:(H+L)/2,COLORLIMAGENTA,NODRAW;
STICKLINE(O<>C,實體上三分之一,實體下三分之一,2,0),COLOR824173;
STICKLINE(O<>C,實體二分之一,實體二分之一,2,0),COLORGREEN;
最高:=HHV(MAX(O,C),N日最高);
最低:=LLV(MIN(O,C),N日最低);
上漲:BARSSINCE(BACKSET(ISLASTBAR,BARSLAST(L=最低)+1)),COLOR0000FF,NODRAW;
↑空間%:(C/REF(L,上漲)-1)*100,COLOR00FFFF,NODRAW;
最高%:(最高/REF(L,上漲)-1)*100,COLORFF00FF,NODRAW;
下跌:BARSSINCE(BACKSET(ISLASTBAR,BARSLAST(H=最高)+1)),COLOR00FF00,NODRAW;
↓空間%:(C/REF(H,下跌)-1)*100,COLOR888899,NODRAW;
最低%:(最低/REF(H,下跌)-1)*100,COLORFF0000,NODRAW;
天線:REFDATE(REF(H,下跌),DATE),POINTDOT,LINETHICK3,COLORYELLOW;
地線:REFDATE(REF(L,上漲),DATE),POINTDOT,LINETHICK3,COLORYELLOW;
中線:REFDATE((天線-地線)*0.5+地線,DATE),POINTDOT,LINETHICK3,COLORYELLOW;
STICKLINE(上漲=0,天線,地線,0,-1),COLORYELLOW;
STICKLINE(下跌=0,天線,地線,0,-1),COLORYELLOW;
DRAWTEXT(ISLASTBAR,天線,VAR2STR(天線,2)),COLORYELLOW;
DRAWTEXT(ISLASTBAR,中線,VAR2STR(中線,2)),COLORYELLOW;
DRAWTEXT(ISLASTBAR,地線,VAR2STR(地線,2)),COLORYELLOW;
{2}
高:=天線;
低:=地線;
H2:=高-(高-低)*0.333;
H3:=高-(高-低)*0.5;
H4:=高-(高-低)*0.666;
DRAWTEXT(上漲=0,天線,'-最高'),COLOR0000FF;
DRAWTEXT(上漲=0,低,'-最低'),COLORRED;
DRAWTEXT(下跌=0,高,'-高'),COLORGREEN;
DRAWTEXT(下跌=0,地線,'-低'),COLOR00FF00;
DRAWTEXT(下跌=0,H2,'-0.666'),COLORGRAY;
DRAWTEXT(下跌=0,H3,'-中'),COLORYELLOW;
DRAWTEXT(下跌=0,H4,'-0.333'),COLORLIRED;
DRAWTEXT(上漲=0,H2,'-上三一位'),COLORGRAY;
DRAWTEXT(上漲=0,H3,'-中'),COLORYELLOW;
DRAWTEXT(上漲=0,H4,'-下三一位'),COLORLIRED;
周期:CURRBARSCOUNT,NODRAW,COLORGREEN;
X_1:=REFX(HHV(MAX(OPEN,CLOSE),周期以內(nèi)),周期-1);
X_2:=REFX(LLV(LOW,周期以內(nèi)),周期-1);
X_3:=CLOSE/REF(CLOSE,1)<=1-大陰跌幅/100 AND OPEN>CLOSE AND DATE<=1181101;
X_4:=IF(周期以內(nèi)=1,0.5,IF(周期以內(nèi)=2,1,IF(周期以內(nèi)=3,(-1),IF(周期以內(nèi)=4,3,4))));
X_5:=0;
X_6:=REFX(REF(OPEN,BARSLAST(X_3 AND OPEN<X_1)),周期-1);
X_7:=REFX(REF(OPEN,BARSLAST(X_3 AND OPEN<X_1 AND OPEN>X_6)),周期-1);
X_8:=REFX(REF(OPEN,BARSLAST(X_3 AND OPEN<X_1 AND OPEN>X_7)),周期-1);
X_9:=REFX(REF(OPEN,BARSLAST(X_3 AND OPEN<X_1 AND OPEN>X_8)),周期-1);
X_10:=REFX(REF(OPEN,BARSLAST(X_3 AND OPEN<X_1 AND OPEN>X_9)),周期-1);
X_11:=REFX(REF(OPEN,BARSLAST(X_3 AND OPEN<X_1 AND OPEN>X_10)),周期-1);
X_12:=REFX(REF(OPEN,BARSLAST(X_3 AND OPEN<X_1 AND OPEN>X_11)),周期-1);
X_13:=REFX(REF(OPEN,BARSLAST(X_3 AND OPEN<X_1 AND OPEN>X_12)),周期-1);
X_14:=REFX(REF(OPEN,BARSLAST(X_3 AND OPEN<X_1 AND OPEN>X_13)),周期-1);
X_15:=REFX(BARSLAST(X_3 AND OPEN<X_1),周期-1)+1;
相關(guān)推薦: