通达信新趋势关系副图指标公式
S1:=SMA((CLOSE-LLV(LOW,3))/(HHV(HIGH,3)-LLV(LOW,3))*100,5,1); {www.qill.cn波动: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; {www.qill.cnDRAWBAND(1.7*K,RGB(205,20,20),1.7*D,RGB(150,150,150));};
移动端首页 | PC端
© by Gszb.com Mobile Web
通达信新趋势关系副图指标公式
S1:=SMA((CLOSE-LLV(LOW,3))/(HHV(HIGH,3)-LLV(LOW,3))*100,5,1);
{www.qill.cn波动: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;
{www.qill.cnDRAWBAND(1.7*K,RGB(205,20,20),1.7*D,RGB(150,150,150));};