通达信趋势判断指标
源码
来势线: EMA(CLOSE,7)-EMA(CLOSE,21),COLORYELLOW;
福星: EMA(来势线,7), COLORSTICK,COLORRED;
VAR1:=CLOSE/REF(LLV(LOW,35),5)< 1;
决策: IF(VAR1,0.5,0), STICK,COLORBLUE;
必买: IF(TROUGHBARS(3,15,1)=0 AND HIGH>LOW+0.01,1,-1),COLORYELLOW ,LINETHICK1 ;
必卖: IF(PEAKBARS(3,15,1)=1,1,2),COLORWHITE,LINETHICK1;
趋势线: (EMA(WINNER(CLOSE),7)-EMA(WINNER(CLOSE),35))*5,COLORRED;
逃顶线: EMA(CLOSE/REF(HHV(CLOSE,7),50),1),COLOR007000 ,LINETHICK1 ;
STICKLINE(趋势线>=逃顶线,趋势线,逃顶线,0.05,0),COLORRED,LINETHICK2;
STICKLINE(趋势线<=必买,趋势线,必买,0.05,0),COLORGREEN,LINETHICK2;
DRAWICON(CROSS(趋势线,来势线),来势线+0,1);
DRAWICON(CROSS(来势线,趋势线),来势线+0,2);