通达信玩股线上买主图公式
如标题:红线以上买,绿线以下卖
{玩股线上买}
VC:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
M2:((EMA(VC,7)+EMA(VC,9))/2+EMA(VC,8))/2,COLORRED,LINETHICK2;
KM2:IF(M2<REF(M2,1),M2,DRAWNULL),COLORGREEN,LINETHICK2;
M1:((EMA(VC,5)+EMA(VC,7))/2+EMA(VC,6))/2,COLORWHITE,DOTLINE;
AA:IF(C>=M1,M1,DRAWNULL);
BB:IF(C<M1,M1,DRAWNULL);
DRAWBAND(H,RGB(204,153,102),AA,DRAWNULL);
DRAWBAND(BB,RGB(51,153,102),L,DRAWNULL);
DRAWKLINE(H,O,L,C);