美人眼KD,通达信版(源码)
{牛牛指标网提供:www.tdx001.com}
就是在KD上面画一直线,加上转折信号的。
复制内容到剪贴板
- {INPUT:N(14,2,99,1),M1(3,2,50,1),M2(3,2,50,1),Y1(25,0,50),Y2(75,50,100); }{通达信删除这一行后另行设置}
- RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
- %K:MA(RSV,M1);
- %D:MA(%K,M2),COLORAA00DD;
- Y1,COLOR007A00;
- Y2,COLOR007A00;
- DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
- DEA:=EMA(DIF,9);
- VAR1:=HHV(DEA,53);
- VAR2:=LLV(DEA,55);
- VAR3:=DEA-(DIF-DEA);
- UP:=IF(DIF>VAR1 AND DEA=VAR1,MAX(LLV(VAR1,10),VAR3),VAR1);
- DN:=IF(DIF<VAR2 AND DEA=VAR2,MIN(HHV(VAR2,10),VAR3),VAR2);
- DRAWICON(CROSS(%D,%K) AND %D>74,100,2);
- DRAWICON(CROSS(%K,%D) AND %D<26,0,1);
- STICKLINE(DIF<DN,-5,-4,5,0),LINETHICK3,COLORRED;
- STICKLINE(DIF>UP,104,103,5,0),LINETHICK3,COLORRED;
FB63646376.gif
|