均价:=(H+L+O+C)/4;
分水岭:MA(3*均价-2*SMA(均价,2,1),12)LINETHICK;
做多趋势:IF(均价>分水岭,均价,分水岭),COLORYELLOW;
支撑:REVERSE(做多趋势)+2*分水岭,COLORMAGENTA;
下跌:IF(均价<分水岭,均价,分水岭),COLORGRAY;
XG1:=NOT(做多趋势=支撑);
XG2:=做多趋势=支撑;
DRAWICON(crOSS(XG2,0.5),支撑,43);
DRAWICON(CROSS(XG1,0.5),支撑,42);