新趋势关系指标 (源码)

2012-12-02 10:58:00来源:本站整理浏览:212

S1:=SMA((CLOSE-LLV(LOW,3))/(HHV(HIGH,3)-LLV(LOW,3))*100,5,1);
{波动:MA(3*S1-2*SMA(S1,3,1),3),COLORBROWN,LINETHICK2;
IF(波动-REF(波动,1)>0,波动,DRAWNULL),COLORYELLOW,LINETHICK2;
IF(波动-REF(波动,1)<0,波动,DRAWNULL),COLORBLUE,LINETHICK2;
异动:CROSS(波动,REF(波动,1)),NODRAW;}
趋势线:SMA(EMA(((C+L)/2-LLV(L,21))/(HHV((H+C)/2,21)-LLV(L,21))*100,3),7,1)*1.2,LINETHICK2,COLORFFFF00;
IF(趋势线-REF(趋势线,1)>0,趋势线,DRAWNULL),COLORFF00FF,LINETHICK2;
IF(趋势线-REF(趋势线,1)<0,趋势线,DRAWNULL),COLOR333333,LINETHICK2;
转势:CROSS(趋势线,REF(趋势线,1)),NODRAW,COLORFF00FF;
LOWV:=LLV(LOW,5);
HIGHV:=HHV(HIGH,5);
RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,2);
K:1.7*EMA(RSV,2),COLORWHITE;
D:=MA(K,2);
IF(K>REF(K,1),K,DRAWNULL),COLORRED,LINETHICK2;
IF(K<REF(K,1),K,DRAWNULL),COLORGREEN,LINETHICK2;
IF(K=REF(K,1),K,DRAWNULL),COLORWHITE,LINETHICK2;
{DRAWBAND(1.7*K,RGB(205,20,20),1.7*D,RGB(150,150,150));};

通达信新趋势关系指标公式

股票公式栏目导航

精品指标推荐

最新热门

本类随机推荐

相关公式