九毛八公式指标
公式模块:
烦请老师把下面的量能平台指标改成突破平台选股(参数是分别是10日20日30日40日)如果麻烦就改一个40日的就好了,谢谢:
(通达信的)
TN1:=CONST(HHVBARS(V,N1));
N1日内平台:IF(CURRBARSCOUNT<=N1+3,CONST(IF(TN1=0,C,REF(C,TN1))),DRAWNULL),COLOR4171FE;
TN2:=CONST(HHVBARS(V,N2));
N2日内平台:IF(CURRBARSCOUNT<=N2+3,CONST(IF(TN2=0,C,REF(C,TN2))),DRAWNULL),COLOR00ECEC;
TN3:=CONST(HHVBARS(V,N3));
N3日内平台:IF(CURRBARSCOUNT<=N3+3,CONST(IF(TN3=0,C,REF(C,TN3))),DRAWNULL),COLOR40FF00;
TN4:=CONST(HHVBARS(V,N4));
N4日内平台:IF(CURRBARSCOUNT<=N4+3,CONST(IF(TN4=0,C,REF(C,TN4))),DRAWNULL),COLORFEFEFE;
IF(CURRBARSCOUNT=TN1+1,N1日内平台,DRAWNULL),CIRCLEDOT,COLOR4171FE;
IF(CURRBARSCOUNT=TN2+1,N2日内平台,DRAWNULL),CIRCLEDOT,COLOR00ECEC;
IF(CURRBARSCOUNT=TN3+1,N3日内平台,DRAWNULL),CIRCLEDOT,COLOR40FF00;
IF(CURRBARSCOUNT=TN4+1,N4日内平台,DRAWNULL),CIRCLEDOT,COLORFEFEFE;
DRAWTEXT(CURRBARSCOUNT=N1+3,N1日内平台,'N1'),COLOR4171FE;
DRAWTEXT(CURRBARSCOUNT=N2+3,N2日内平台,'N2'),COLOR00ECEC;
DRAWTEXT(CURRBARSCOUNT=N3+3,N3日内平台,'N3'),COLOR40FF00;
DRAWTEXT(CURRBARSCOUNT=N4+3,N4日内平台,'N4'),COLORFEFEFE;
MA1:MA(CLOSE,M1);
MA2:MA(CLOSE,M2);
MA3:MA(CLOSE,M3);
MA4:MA(CLOSE,M4);