同花顺小猪短趋势线公式
源码
短趋势线:MA(CLOSE,13),colorred,LINETHICK1;
涨:IF(短趋势线>REF(短趋势线,1),短趋势线,DRAWNULL),colorred,LINETHICK2;
平:=IF(短趋势线=REF(短趋势线,1),短趋势线,DRAWNULL),COLOR00FFFF,LINETHICK2;
跌:IF(短趋势线<REF(短趋势线,1),短趋势线,DRAWNULL),colorgreen,LINETHICK2;
短线生命线:MA(CLOSE,13),COLORFFFFFF ,LINETHICK1;
中线生命线:MA(CLOSE,25),COLORCD7F32,colorred,LINETHICK1;
长线生命线:MA(CLOSE,60), COLORDBDB70 ,LINETHICK2;
牛熊生命线:MA(CLOSE,233),COLORFF00C0,LINETHICK3;
涨:IF(中线生命线>REF(中线生命线,1),中线生命线,DRAWNULL), colorred ,LINETHICK2;
平:=IF(中线生命线=REF(中线生命线,1),中线生命线,DRAWNULL),COLOR00FFFF,LINETHICK2;
跌:IF(中线生命线<REF(中线生命线,1),中线生命线,DRAWNULL), colorgreen ,LINETHICK2;