网友求助:
将此TDX主图指标改成DZH用。
VAR1:=(3*C+O+H+L)/6;
慢牛线:EMA(3*VAR1-2*SMA(VAR1,2,1),8),COLORBLUE;
慢牛走牛:IF(慢牛线>REF(慢牛线,1),慢牛线,DRAWNULL),LINETHICK2,COLORYELLOW;
STICKLINE(C>=慢牛线,L,H,0,1),COLORRED;
STICKLINE(C>=慢牛线,C,O,3.2,2),COLORRED;
STICKLINE(C<慢牛线,L,H,0,1),COLORGREEN;
STICKLINE(C<慢牛线,C,O,3.2,2),COLORGREEN;
STICKLINE(CROSS(C,慢牛线),O,C,3.2,0),COLORGREEN;
STICKLINE(CROSS(慢牛线,C),O,C,3.2,0),COLORRED;
STICKLINE((C>O) AND (C<慢牛线),C,O,3.2,2),COLORGREEN;
STICKLINE((C>O) AND (C>=慢牛线),C,O,3.2,2),COLORRED;
STICKLINE((C<=O) AND (C<慢牛线),C,O,3.2,0),COLORGREEN;
STICKLINE((C<=O) AND (C>=慢牛线),C,O,3.2,0),COLORRED;
DRAWICON(C>=慢牛线 AND REF(C,1)<REF(慢牛线,1),L*0.98,7);
DRAWICON(C<慢牛线 AND REF(C,1)>=REF(慢牛线,1),H*1.02,8);
解答如下:
VAR1:=(3*C+O+H+L)/6;
慢牛线:EMA(3*VAR1-2*SMA(VAR1,2,1),8),COLORBLUE;
PARTLINE(慢牛线,慢牛线>REF(慢牛线,1),RGB(235,235,0)),LINETHICK2;
STICKLINE(C>=慢牛线,L,H,0,1),COLORRED;
STICKLINE(C>=慢牛线,C,O,3.2,2),COLORRED;
STICKLINE(C<慢牛线,L,H,0,1),COLORGREEN;
STICKLINE(C<慢牛线,C,O,3.2,2),COLORGREEN;
STICKLINE(CROSS(C,慢牛线),O,C,3.2,0),COLORGREEN;
STICKLINE(CROSS(慢牛线,C),O,C,3.2,0),COLORRED;
STICKLINE((C>O) AND (C<慢牛线),C,O,3.2,2),COLORGREEN;
STICKLINE((C>O) AND (C>=慢牛线),C,O,3.2,2),COLORRED;
STICKLINE((C<=O) AND (C<慢牛线),C,O,3.2,0),COLORGREEN;
STICKLINE((C<=O) AND (C>=慢牛线),C,O,3.2,0),COLORRED;
DRAWICON(C>=慢牛线 AND REF(C,1)<REF(慢牛线,1),L*0.98,1),ALIGN1;
DRAWICON(C<慢牛线 AND REF(C,1)>=REF(慢牛线,1),H*1.02,2),ALIGN1;