资源描述:
《通达信指标公式源码软件运用自动趋势线抓暴涨临界点.doc》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、运用自动趋势线抓暴涨临界点LQLMADRAWBAND(MA(C,60)zRGB(200,0z0)zMA(C,120)zRGB(0,90,0));MA1:MA(CLOSE,5);MA2:MA(CLOSE,10);MA3:MA(CLOSE,20);MA4:MA(CLOSE,30);MA5:MA(CLOSE,60),LINETHICK3;MA6:MA(CLOSE,120),LINETHICK4;MA7:MA(CLOSE,250),LINETHICK5;Nl:=20;N2:=10;N3:=5;AA:=REF(H,N1)=HHV(
2、HZ2*N1+1);QY:=BACKSET(AA,N1+1);CC:=FILTER(QY,N1)ANDH=HHV(H,N1+1);DDD:=BARSLAST(CC);GDTS:=IF(CC,CURRBARSCOUNT,0);DINGBU:=IF(DDD,REF(H,DDD),H);{顶部}DINGBUTS:=IF(DDD,REF(GDTS,DDD)/GDTS);DINGBU1:=REF(DINGBU,DDD+1);GDCS1:=CONST(DINGBUTS);DINGBUTS1:=REF(DINGBUTS,DDD+1);
3、GDCS2:=CONST(DINGBUTS1);DINGBU2:=REF(DINGBU1,DDD+1);MM:=IF(CURRBARSCOUNT>GDCS2,0,1);高点压力:DRAWLINE(CURRBARSC0UNT=GDCS2,H,CURRBARSC0UNT二GDCS1,H,1)COLORRED;DRAWLINE(CURRBARSCOUNT=GDCS2ZH,ISLASTBAR,REF(HZGDCS2-1)Z1)ZCOLOR0055FF,POINTDOT丄INETHICK2;DRAWLINE(CURRBARSCOU
4、NT=GDCS1/H,ISLASTBAR,REF(H,GDCS1-1)Z1)ZCOLORYELLOW,POINTDOT,LINETHICK2;AA1:=REF(LZN1)=LLV(L,2*N1+1);QY1:=BACKSET(AA1,N14-1);CC1:=FILTER(QY1,N1)ANDL=LLV(L,N1+1);DD1:=BARSLAST(CC1);DDTS:=IF(CC1,CURRBARSCOUNT,0);YDB:=IF(DD1,REF(L,DD1),L);DDTS1:=IF(DD1,REF(DDTS,DD1),
5、DDTS);DDCS1:=CONST(DDTS1);ZDB:=REF(YDB,DD1+1);DDTS2:=REF(DDTS1,DD1+1);DDCS2:=CONST(DDTS2);低点支撑:DRAWLINE(CURRBARSCOUNT=DDCS21CURRBARSCOUNT=DDCS1丄,1)COLORRED;DRAWLINE(CURRBARSCOUNT=DDCS2,L,ISLASTBAR,REF(LZDDCS2-1),1)ZCOLOR0055FF,POINTDOT丄INETHICK2;DRAWLINE(CURRBARS
6、COUNT二DDCS1丄,ISLASTBAR/REF(LQDCS1・1),1)/COLORYELLOW,POINTDOT,LINETHICK2;LAA:=REF(H,N2)=HHV(H,2*N2+1);LQY:=BACKSET(LAA,N2+1);LCC:=FILTER(LQY,N2)ANDH=HHV(H,N2+1);LDDD:=BARSLAST(LCC);LGDTS:=IF(LCC,CURRBARSCOUNT,0);LDINGBU:=IF(LDDD,REF(H丄DDD),H);{顶部}LDINGBUTS:=IF(LDD
7、D,REF(LGDTS丄DDD)丄GDTS);LDINGBU1:=REF(LDINGBU丄DDD+1);LGDCS1:=CONST(LDINGBUTS);LDINGBUTS1:=REF(LDINGBUTS,LDDD+1);LGDCS2:=CONST(LDINGBUTS1);LDINGBU2:=REF(LDINGBU1丄DDD+1);LMM:=IF(CURRBARSCOUNT>LGDCS2Q1);压力:DRAWLINE(CURRBARSCOUNT=LGDCS2,H,CURRBARSCOUNT=LGDCS1,H,1)COLO
8、RWHITE;DRAWLINE(CURRBARSCOUNT=LGDCS2ZHZISLASTBAR,REF(HZLGDCS2-1)Z1)/COLOR0055FF,POINTDOT;DRAWLINE(CURRBARSCOUNT=LGDCS1/H,ISLASTBAR,REF(HZLGDCS1-1),1)/COLORYELL