以下是通达信仿指南针的趋势TBT 副图/选股 指标
N:=10;
个股线:SLOPE(C,N)/MA(C,N)*10,COLORRED,LINETHICK2;
IF(个股线<=0,个股线,DRAWNULL),COLORGREEN,LINETHICK2;
行业线:SLOPE(HY_INDEXC,N)/MA(HY_INDEXC,N)*10,LINETHICK1;
大盘线:SLOPE(INDEXC,N)/MA(INDEXC,N)*10,COLORCYAN,LINETHICK1;
0,POINTDOT;
1、龙头板块:行业线>大盘线 AND 行业线>0;
行业线:=SLOPE(HY_INDEXC,N)/MA(HY_INDEXC,N)*10,LINETHICK1;
大盘线:=SLOPE(INDEXC,N)/MA(INDEXC,N)*10,COLORCYAN,LINETHICK1;
2、龙头板块龙头个股:个股线>行业线 AND 行业线>大盘线 AND 行业线>0;
个股线:=SLOPE(C,N)/MA(C,N)*10;
行业线:=SLOPE(HY_INDEXC,N)/MA(HY_INDEXC,N)*10;
大盘线:=SLOPE(INDEXC,N)/MA(INDEXC,N)*10;
3、强势股:个股线>行业线 AND 个股线>大盘线 AND 个股线>0;
个股线:=SLOPE(C,N)/MA(C,N)*10;
行业线:=SLOPE(HY_INDEXC,N)/MA(HY_INDEXC,N)*10;
大盘线:=SLOPE(INDEXC,N)/MA(INDEXC,N)*10;