通达信单线变三色副图源码

VAR1:MA(C,240),COLORRED;
上升:IF(VAR1 > REF(VAR1,1),VAR1,DRAWNULL),COLORRED;
走平:IF(VAR1 = REF(VAR1,1),VAR1,DRAWNULL),COLORYELLOW;
下降:IF(VAR1 < REF(VAR1,1),VAR1,DRAWNULL),COLORGREEN;