通达信缠论趋势指标公式

2024-05-31 18:58发布

SHORT:=7;LONG:=19;T:=PERIOD;D:=IF(T=0,30,{1F}IF(T=1,25,{5F}IF(T=8,25,{多分钟}IF(T=2,20,{15F}IF(T=3,20,{30F}IF(T=4,20,{60F}IF(T=5,10,{日}IF(T=6,10,{周}IF(T=7,10,{月}IF(T=9,10,{多日}IF(T=10,10{季},10{年})))))))))));RMA:EMA(CLOSE,SHORT),COLORLIGRAY;NMA:EMA(CLOSE,LONG),COLORMAGENTA;多:DRAWLINE(L=LLV(L,BARSLAST(OSS(NMA,RMA))+1) AND L=LLV(L,D) AND RMA<=NMA,L,H=HHV(H,BARSLAST(CROSS(RMA,NMA))+1) AND H=HHV(H,D) AND RMA>=NMA,H,0),COLOR0000FF,LINETHICK2;空:DRAWLINE(H=HHV(H,BARSLAST(CROSS(RMA,NMA))+1) AND H=HHV(H,D)
 解锁全文需 1  财富值,免费注册即送20财富值!