通达信趋势线源码
低线:25,DOTLINE;
中线:55,DOTLINE;
高线:85,DOTLINE;
LOWV:=LLV(LOW,9);
HIGHV:=HHV(HIGH,9);
RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,3);
K:=EMA(RSV,3);
趋势线:MA(K,3);
DBA:=K-趋势线;
XG:BARSLASTCOUNT(DBA>=0)=1,COLORRED,NODRAW;
STICKLINE(DBA>=0,(K-DBA*0.1),(K-DBA*0.75),2,0),COLORRED;
STICKLINE(DBA<0,(趋势线+DBA*0.1),(趋势线+DBA*0.75),2,0),COLORGREEN;