通达信谦穗主图
原版的在通达信显示K线粗细不一,现在我略微修改了下,在原图基础上补加60、120日均线。
千钧指导线:(MA((H+L+C+O)/4,3)+MA((H+L+C+O)/4,6)+MA((H+L+C+O)/4,12)+MA((H+L+C+O)/4,24))/4,LINETHICK2,COLOR8080FF;
谦穗临界点: MA((H+L+C+O)/4,27),LINETHICK2,COLORGREEN;
苦力线:MA(CLOSE,60),LINETHICK1,COLORYELLOW;
没钱线:MA(CLOSE,120),LINETHICK2,COLORCYAN;
LC:=REF(CLOSE,1);
RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);
FF:=EMA(CLOSE,3);
MA15:=EMA(CLOSE,21);
IF(MA15 REF(MA15,1),MA15,DRAWNULL),COLORWHITE,LINETHICK2,CROSSDOT;
IF(MA15 REF(MA15,1),MA15,DRAWNULL),COLORCYAN,LINETHICK2,CROSSDOT;
DRAWTEXT(CROSS(FF,MA15),(LOW * 0.99),'底背离'),COLORWHITE;
DRAWTEXT(CROSS(88,RSI),(HIGH * 1.02),'顶背离'),COLOR00FFFF;
买线:=EMA(C,2);
卖线:=EMA(SLOPE(C,21)*20+C,42);
BU:=CROSS(买线,卖线);
SEL:=CROSS(卖线,买线);
STICKLINE(买线 =卖线,LOW,HIGH,0,0),COLORLIMAGENTA;
STICKLINE(买线 =卖线,CLOSE,OPEN,2,0),COLORLIMAGENTA;
STICKLINE(买线 =卖线,CLOSE,OPEN,0.5,0),COLORLIMAGENTA;
STICKLINE(买线 =卖线,CLOSE,OPEN,2,0),COLORLIMAGENTA;
STICKLINE(买线 =卖线,CLOSE,OPEN,1.8,0),COLORLIMAGENTA;
STICKLINE(买线 卖线,CLOSE,OPEN,2,0),COLORCYAN;
STICKLINE(买线 卖线,CLOSE,OPEN,0.5,0),COLORCYAN;
STICKLINE(买线 卖线,CLOSE,OPEN,2,0),COLORCYAN;
STICKLINE(买线 卖线,CLOSE,OPEN,1.8,0),COLORCYAN;
STICKLINE(买线 卖线,LOW,HIGH,0,0),COLORCYAN;
STICKLINE(CROSS(买线,卖线) OR CROSS(卖线,买线),OPEN,CLOSE,2,0),COLORWHITE;
{涨跌停K线}
STICKLINE((C-REF(C,1))*100/REF(C,1) =(10-0.01*100/REF(C,1)),OPEN,CLOSE,2.8,0),COLORYELLOW;
STICKLINE((REF(C,1)-C)*100/REF(C,1) =(10-0.01*100/REF(C,1)),OPEN,CLOSE,2.8,0),COLORWHITE;
DRAWICON(IF(HHV(SUM(IF(C WMA(C,2),V,0),4)/SUM(IF(C WMA(C,2),V,0),4),5) 4 AND CROSS(2,SUM(IF(C WMA(C,2),V,0),4)/SUM(IF(C WMA(C,2),V,0),4)) AND C =O,1,0),L*0.98,11);