以下是通达信中线趋势短线趋势源码
短线趋势
N:=IF(BARSCOUNT(C)>=13,13,BARSCOUNT(C));
STICKLINE(C>=MA(C,N),MA(C,N),MA(C,N*0.7),WIDTH,0),COLORMAGENTA;
STICKLINE(C<MA(C,N),MA(C,N),MA(C,N*0.7),WIDTH,0),COLORBLUE;
KLINE(H,O,L,C,0);
中线趋势
N:=IF(BARSCOUNT(C)>=34,34,BARSCOUNT(C));
STICKLINE(C>=MA(C,N),MA(C,N),MA(C,N*0.78),WIDTH,0),COLORMAGENTA;
STICKLINE(C<MA(C,N),MA(C,N),MA(C,N*0.78),WIDTH,0),COLORBLUE;
KLINE(H,O,L,C,0);