DRAWTEXT_FIX(ISLASTBAR,0,0,0,GNBLOCK),COLORlired; //E7:EXPMA(CLOSE,7); //E12:EXPMA(CLOSE,12); MA20:ma(CLOSE, 20); E60:MA(CLOSE, 60); //M1=5,M2=10,M3=20,M4=60 //必要时可以添加MA120、MA250帮助判断走势。 //在K线图上,按中枢理论以MA20的6个以上K线找高低点,画出波段帮助判断走势是涨或还是跌。
DRAWLINE(HIGH>=HHV(HIGH,20),HIGH,LOW<=LLV(LOW,20),LOW,1),COLORLIGREEN,LINETHICK2; DRAWLINE(LOW<=LLV(LOW,20),LOW,HIGH>=HHV(HIGH,20),HIGH,1),COLORLired,LINETHICK2; //高低点之间的连线
DRAWLINE(HIGH>=HHV(HIGH,100),HIGH,LOW<=LLV(LOW,100),LOW,1),COLORBLUE,LINETHICK2; DRAWLINE(LOW<=LLV(LOW,100),LOW,HIGH>=HHV(HIGH,100),HIGH,1),COLORwhite,LINETHICK2; //高低点之间的连线
通达信:
DRAWTEXT_FIX(ISLASTBAR,0,0,0,GNBLOCK),COLORLIRED;
M10:MA(CLOSE,10),COLORGREEN; M20:MA(CLOSE,20),COLORMAGENTA; M94:MA(CLOSE,94),COLORYELLOW;
A1:=HIGH>=HHV(HIGH,20); A2:=LOW<=LLV(LOW,20); DRAWLINE(A1,HIGH,A2,LOW,0); B1:=DRAWLINE(A2,LOW,A1,HIGH,0); B1,COLORRED,LINETHICK2;
A3:=HIGH>=HHV(HIGH,94); A4:=LOW<=LLV(LOW,94); DRAWLINE(A3,HIGH,A4,LOW,0); DRAWLINE(A4,LOW,A3,HIGH,0),DOTLINE;
|