Q2:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100;Q3:=SMA(Q2,9,1);Q4:=SMA(Q3,3,1);短期趋势:3*Q3-2*Q4,COLORWHITE,HICK3;中期趋势:EMA(Q3,3),COLORRED,HICK3;DRAWTEXT(CROSS(中期趋势,短期趋势)ANDREF(短期趋势,1)>80,REF(短期趋势,3),'▼逢高派发'),COLOR00FF00,HICK5;▲逢低关注:DRAWTEXT(REF(CROSS(中期趋势,短期趋势),82)AND中期趋势>*短期趋势,短期趋势,'▲逢低关注'),COLOR00FFFF,HICK1;▲抄底:DRAWTEXT(REF(CROSS(短期趋势,中期趋势),1)AND短期趋势>*中期趋势,中期趋势,'▲抄底'),COLORBLUE,HICK1;VAR3:=PEAKBARS(3,5,1)<10;VAR5:=IF(VAR3=1,2,0);顶:=IF(VAR5=2,2,0);顶A:IF(顶>REF(顶,1),50,0),REEN,HICK2;DRAWTEXT(顶A=50,45,'小心'),COLOR00FF00;发现未来函数PEAKBARS!
通达信指标公式源码短期趋势 中期趋势 副图指标 来自淘豆网m.daumloan.com转载请标明出处.