通达信TRIX+MA指标

[复制链接]
查看29 | 回复0 | 2022-7-24 08:18:08 | 显示全部楼层 |阅读模式
周期选择:周K线图
指标选择:三重指数平均数指标TRIX(参数10,26)

{M1:2,1000,3; M2:2,1000,55}
MA3:MA(CLOSE,M1);
MA55:MA(CLOSE,M2);
{MA60:MA(CLOSE,M3);
MA120:MA(CLOSE,M4);
MA250:MA(CLOSE,M5),COLORBLUE;}
DRAWTEXT_FIX(1,0.00,0,0,'所属行业:')COLOR0080FF;
DRAWTEXT_FIX(1,0.05,0,0,HYBLOCK)COLOR0080FF;
DRAWTEXT_FIX(1,0.10,0,0,'所属地区:')COLOR00FFFF;
DRAWTEXT_FIX(1,0.15,0,0,DYBLOCK)COLOR00FFFF;
TY:=C;
AA1:=REF(TY,10)=HHV(TY,2*10+1); BB1:=FILTER(AA1,10); C1:=BACKSET(BB1,10+1); HD:=FILTER(C1,10);
AA2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(AA2,10); CC2:=BACKSET(B2,10+1); LD:=FILTER(CC2,10);
前期高位:REF(H,BARSLAST(HD)),COLOR00FF00,POINTDOT,LINETHICK3;
前期低位:REF(L,BARSLAST(LD)),COLORFF00FF,POINTDOT,LINETHICK3;


三重指数指标TRIX


{N:2,100,10;  M:2,100,26}
MTR:=EMA(EMA(EMA(CLOSE,N),N),N);
TRIX:(MTR-REF(MTR,1))/REF(MTR,1)*100;
MATRIX:MA(TRIX,9);
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则