通达信趋势公式-副图 源码
2011-02-25 19:08:00来源:本站整理浏览:124
通达信趋势公式:
RSV:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100;
K:=SMA(RSV,9,1);
D:=SMA(K,3,1);
趋势J1:3*K-2*D;
趋势J2:EMA(K,3);
STICKLINE(D>=HHV(D,21) AND REF(D,1)<REF(HHV(D,21),1),趋势J1,趋势J2,2,0);
WH:DRAWLINE(D>=HHV(D,21),D,D<=LLV(D,21),D,1);
买:IF(CROSS(趋势J1,WH) AND CROSS(趋势J2,WH),20,0);
WL:DRAWLINE(REF(D,1)<=REF(LLV(D,21),1),D,D>=HHV(D,21),D,1);
卖:IF(CROSS(WL,趋势J1) AND CROSS(WL,趋势J2),80,100);