支撑
{支撑}
高幅:=(H-REF(C,1))/REF(C,1)*100,LINETHICK;
高跌:=(C-H)/H*100,LINETHICK;
低幅:=(L-REF(C,1))/REF(C,1)*100,LINETHICK;
低涨:=(C-L)/L*100,LINETHICK,COLORYELLOW;
均价A:=(O+2*H+2*L+3*C)/8;
上影线:=H-MAX(O,C);
下影线:=MIN(O,C)-L;
价能:=(下影线-上影线)+(H-REF(C,1)+C-H+L-REF(C,1)+C-L)/4;
均价B:=(O+H+L+C)/4+价能;
均价:=(均价A+均价B)/2;
支撑A:=(REF((高幅+高跌+低幅+低涨)/4,1)+(高幅+高跌+低幅+低涨)/4)/2*REF(均价,1),LINETHICK1,COLORMAGENTA;
支撑:MA(支撑A,3),COLORSTICK;
强弱线A:=MA(支撑A,21);
FILLRGN(强弱线A>0,0,强弱线A),COLORBROWN;
STICKLINE(支撑>=0 AND 支撑>=REF(支撑,1),0,支撑,2,0),COLORRED;
STICKLINE(支撑>=0 AND 支撑<=REF(支撑,1),0,支撑,2,0),COLORGREEN;
STICKLINE(支撑<=0 AND 支撑>=REF(支撑,1),0,支撑,2,0),COLORFF00FF;
STICKLINE(支撑<=0 AND 支撑<=REF(支撑,1),0,支撑,2,0),COLORCYAN;
强弱线:MA(支撑A,21);
PARTLINE(支撑<=强弱线,强弱线),LINETHICK2,ColorFF9B00;