笑尘 2006-3-25 09:58
送这条单线变色《止损线》——管用!!!
stickline(c>0,-10,110,100,0),color000033;
tr:= MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));
a:=ema(tr,20)*2;
b:=hhv(c-a,20);
if((c>b or c=b),c,b),color00ff00;
if(c<b,c,b),color0000ff;
aa:c,color000033;{注意:背景是什么颜色,AA就换成什么颜色。}
STICKLINE(C>=O,C,O,7,0),COLORRED;
STICKLINE(C>=O,C,O,4,0),COLOR0000ff;
STICKLINE(C>=O,C,O,2,0),COLORYELLOW;
STICKLINE(C>=O,H,L,0,0),COLORYELLOW;
STICKLINE(C<=O,C,O,7,0),COLORFF2020;
STICKLINE(C<=O,C,O,4,0),COLORFF6600;
STICKLINE(C<=O,C,O,2,0),COLORWHITE;
STICKLINE(C<=O,H,L,0,0),COLORWHITE;
fcgfan2004 2006-4-22 22:32
什么软件的公式
tjfmk 2008-7-5 15:03
改了个tdx版 :
TR:= MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));
A:=EMA(TR,20)*2;
B:=HHV(C-A,20);
IF((C>B OR C=B),C,B),COLOR00FF00;
IF(C<B,C,B),COLOR0000FF,LINETHICK3;
{AA:C,COLOR000033;}
STICKLINE(C>=O,C,O,3,0),COLORRED;
STICKLINE(C>=O,C,O,2.5,0),COLOR0000FF;
STICKLINE(C>=O,C,O,1.5,0),COLORYELLOW;
STICKLINE(C>=O,H,L,0,0),COLORYELLOW;
STICKLINE(C<=O,C,O,3,0),COLORFF2020;
STICKLINE(C<=O,C,O,2.5,0),COLORFF6600;
STICKLINE(C<=O,C,O,1.5,0),COLORWHITE;
STICKLINE(C<=O,H,L,0,0),COLORWHITE;