INPUT:m(14,1,100,10),n(33,1,100,10),ss(1,1,100,10),w(55,1,100,5);A:dma(c,n/100);b:dma(c,m/100);j:=wma(c,w);STICKLINE(a>=b,a,b,6,0,COLORYELLOW),stick;STICKLINE(a<=b,a,b,6,0,16711935),stick;舵手:j,LINETHICK2,COLORGREEN;PARTLINE(j>ref(j,5),j,255.2.0),LINETHICK2;a,LINEDOT,COLORGRAY;b,LINEDOT,COLORGRAY;开空条件:=CROSS(ref(j,5),j);开多条件:=CROSS(j,ref(j,5));if 开空条件 thenbeginsell(1,holding,market);buyshort(holding=0,1,market); endif 开多条件 thenbeginsellshort(1,holding,market);buy(holding=0,1,market); end
|
|