源码
高幅:=(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;