资源描述:
《精典股票买卖技术指标----指标spx2》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、MA5:MA(CLOSE,5)LINETHICK0;工作线17:EMA(CLOSE,17),COLORFFCC00,LINETHICK1;QQ:(工作线17-REF(工作线17,1))/REF(工作线17,1)*100,NODRAW;IF(QQ>=0,工作线17,DRAWNULL),COLORRED,LINETHICK1;{工作线50:EMA(CLOSE,50),COLORYELLOW,LINETHICK2;}GJ:=(C+H+L+O)/4;明日阻力:=L+(GJ-L)+(C-L);明日支撑:=L+(C-GJ);今阻力:REF(明日阻力,1
2、),NODRAW,COLORRED;今支撑:REF(明日支撑,1),NODRAW,COLORYELLOW;STICKLINE(ISLASTBARANDC>=今阻力,今阻力,今阻力,10,1),COLORRED;STICKLINE(ISLASTBARANDC<今阻力,今阻力,今阻力,10,1),COLORYELLOW;STICKLINE(ISLASTBARANDC>=今支撑,今支撑,今支撑,10,1),COLORMAGENTA;STICKLINE(ISLASTBARANDC<今支撑,今支撑,今支撑,10,1),COLORMAGENTA;{划画
3、指标}A1:=REF(H,8)=HHV(H,2*8+1);B1:=FILTER(A1,8);C1:=BACKSET(B1,8+1);D1:=FILTER(C1,8);{高点}压力:=REF(HIGH,BARSLAST(D1)),COLORFF00FF,POINTDOT,LINETHICK4;R11:=BACKSET(ISLASTBAR,BARSLAST(D1)+1);S11:=R11>REF(R11,1);测顶压力轨:DRAWLINE(D1,H,S11,H,1),COLORYELLOW;A2:=REF(L,8)=LLV(L,2*8+1);B
4、2:=FILTER(A2,8);C2:=BACKSET(B2,8+1);D2:=FILTER(C2,8);{低点}支撑:=REF(LOW,BARSLAST(D2)),COLOR00FF00,POINTDOT,LINETHICK4;T11:=BACKSET(ISLASTBAR,BARSLAST(D2)+1);U11:=T11>REF(T11,1);测低支撑轨:DRAWLINE(D2,L,U11,L,1),COLORWHITE;中轨:(测顶压力轨+测低支撑轨)/2,COLORLIRED;M:=INTPART(3*8/5);A12:=REF(H,
5、M)=HHV(H,2*M+1);B12:=FILTER(A12,M);C12:=BACKSET(B12,M+1);D12:=FILTER(C12,M);{高点}R112:=BACKSET(ISLASTBAR,BARSLAST(D12)+1);S112:=R112>REF(R112,1);压力1:DRAWLINE(D12,H,S112,H,1),COLORRED;A22:=REF(L,M)=LLV(L,2*M+1);B22:=FILTER(A22,M);C22:=BACKSET(B22,M+1);D22:=FILTER(C22,M);{低点}
6、T112:=BACKSET(ISLASTBAR,BARSLAST(D22)+1);U112:=T112>REF(T112,1);支撑1:DRAWLINE(D22,L,U112,L,1),COLORRED;DRAWTEXT(C=CANDCURRBARSCOUNT=5,支撑1+0.02,'支撑'),COLORYELLOW;DRAWTEXT(C=CANDCURRBARSCOUNT=30,测低支撑轨+0.02,'测低支撑轨'),COLORYELLOW;DRAWTEXT(C=CANDCURRBARSCOUNT=30,测顶压力轨+0.02,'测顶压力轨
7、'),COLORYELLOW;DRAWTEXT(C=CANDCURRBARSCOUNT=5,压力1+0.02,'压力'),COLORYELLOW;{虚线指标}VAR1111:=BACKSET(REF(HIGH,2)=HHV(HIGH,5),3);VAR2222:=CROSS(VAR1111,0.9);VAR3333:=BACKSET(REF(LOW,2)=LLV(LOW,5),3);VAR4444:=CROSS(VAR3333,0.9);压力0:=REF(HIGH,BARSLAST(VAR2222));STICKLINE(CLOSE,REF
8、(HIGH,BARSLAST(VAR2222)),REF(HIGH,BARSLAST(VAR2222)),0.5,1),COLORFFCC00,LINETHICK3;支撑0:=R