通达信玩股均线之巅副图 源码
Z:=IF(C>=O,(C+O+H)/3,(C+O+L)/3);
AA:=(MA(Z,1)+MA(Z,3)+MA(Z,5)+MA(Z,7)+MA(Z,9))/5;
W:=((C+O)/2+(H+L)/2)/2;
BB:=(MA(W,2)+MA(W,4)+MA(W,6)+MA(W,8)+MA(W,10))/5;
QA:=SMA(FORCAST(AA,2),2,1);
QB:=SMA(FORCAST(BB,2),2,1);
EE:WMA(QB,N1);
FF:WMA(QB,N2);
DRAWBAND(EE,RGB(255,0,0),FF,RGB(53,53,255));
CC:WMA(QA,N3);
DDD:WMA(QA,N4);
DRAWBAND(CC,RGB(255,255,0),DDD,RGB(0,255,0));
DRAWBAND(EE,RGB(0,255,0),DDD,RGB(255,25,0));