股票软件通达信精品指标公式-战略家指标源码通达信公式

2017-11-08    来源:原创    编辑:翔博软件
公式源码: N:=IF(BARSCOUNT(C)=10,10,BARSCOUNT(C)); STICKLINE(C=MA(C,N),MA(C,N),REF(MA(C,N),1),5,0),COLORYELLOW; STICKLINE(CMA(C,N),MA(C,N),REF(MA(C,N),1),5,0),COLOR


公式源码:

N:=IF(BARSCOUNT(C)>=10,10,BARSCOUNT(C));

STICKLINE(C>=MA(C,N),MA(C,N),REF(MA(C,N),1),5,0),COLORYELLOW;

STICKLINE(C<MA(C,N),MA(C,N),REF(MA(C,N),1),5,0),COLORBLUE;

DRAWTEXT(C>=MA(C,N) AND CURRBARSCOUNT=1 AND PERIOD=5,MA(C,N),' 黄色持股 (短线)'),COLORYELLOW;

DRAWTEXT(C<MA(C,N) AND CURRBARSCOUNT=1 AND PERIOD=5,MA(C,N),' 蓝色持币 (短线)'),COLORFF9933;

M:=IF(BARSCOUNT(C)>=45,45,BARSCOUNT(C));

STICKLINE(C>=MA(C,M),MA(C,M),REF(MA(C,M),1),5,0),COLORYELLOW;

STICKLINE(C<MA(C,M),MA(C,M),REF(MA(C,M),1),5,0),COLORBLUE;

DRAWTEXT(C>=MA(C,M) AND CURRBARSCOUNT=1 AND PERIOD=5,MA(C,M),' 黄色持股 (中线)'),COLORYELLOW;

DRAWTEXT(C<MA(C,M) AND CURRBARSCOUNT=1 AND PERIOD=5,MA(C,M),' 蓝色持币 (中线)'),COLORFF9933;

DRAWKLINE(H,O,L,C);

MA5:MA(C,5),COLORMAGENTA;

MA10:MA(C,N),COLORLIRED;

MA25:MA(C,25),LINETHICK2,COLORRED;

MA45:MA(C,M),COLORGREEN;

MA120:MA(C,120),COLORBROWN;

 

特别提示:

选股预警指标编写 ,不同主流行情软件间指标转换。 请联系微信:396950280

1
3
点击进入翔博软件旗下官方微店--指标超市