超级主图(改编)
-
相关简介:C/C++ Code 复制内容到剪贴板 DRAWGBK(1,COLORRGB(265,0,0),COLORRGB(265,285,0),0); A0:=BARSCOUNT(CLOSE); A3:=SYSPARAM(3); A2:=SYSPARAM(2); A4:=SYSPARAM(4); A5:=SYSPARAM(5); NN0:=A3-A2; NN:=A0-A2; HH1:=(A4-A5)/10; HH2:=HH1/4; LL1:=LLV(LOW,N
-
文章来源:择股网作者:股海网发布时间:2009-09-10浏览次数:
C/C++ Code复制内容到剪贴板
- DRAWGBK(1,COLORRGB(265,0,0),COLORRGB(265,285,0),0);
- A0:=BARSCOUNT(CLOSE);
- A3:=SYSPARAM(3);
- A2:=SYSPARAM(2);
- A4:=SYSPARAM(4);
- A5:=SYSPARAM(5);
- NN0:=A3-A2;
- NN:=A0-A2;
- HH1:=(A4-A5)/10;
- HH2:=HH1/4;
- LL1:=LLV(LOW,NN0);
- LL2:=LL1[A3];
- Y0:=A0>=A2;
- VV0:=IF(Y0=1 AND SYSPARAM(1)>=A0,VOL,0);
- C1:=IF(BETWEEN(CLOSE,A4-0*HH1,A4-1*HH1),VV0,0);
- C2:=IF(BETWEEN(CLOSE,A4-1*HH1,A4-2*HH1),VV0,0);
- C3:=IF(BETWEEN(CLOSE,A4-2*HH1,A4-3*HH1),VV0,0);
- C4:=IF(BETWEEN(CLOSE,A4-3*HH1,A4-4*HH1),VV0,0);
- C5:=IF(BETWEEN(CLOSE,A4-4*HH1,A4-5*HH1),VV0,0);
- C6:=IF(BETWEEN(CLOSE,A4-5*HH1,A4-6*HH1),VV0,0);
- C7:=IF(BETWEEN(CLOSE,A4-6*HH1,A4-7*HH1),VV0,0);
- C8:=IF(BETWEEN(CLOSE,A4-7*HH1,A4-8*HH1),VV0,0);
- C9:=IF(BETWEEN(CLOSE,A4-8*HH1,A4-9*HH1),VV0,0);
- C10:=IF(BETWEEN(CLOSE,A4-9*HH1,A4-10*HH1),VV0,0);
- V1:=STRTONUM(NUMTOSTR(IF(ISLASTBAR,SUM(C1,NN0),0),2));
- V2:=STRTONUM(NUMTOSTR(IF(ISLASTBAR,SUM(C2,NN0),0),2));
- V3:=STRTONUM(NUMTOSTR(IF(ISLASTBAR,SUM(C3,NN0),0),2));
- V4:=STRTONUM(NUMTOSTR(IF(ISLASTBAR,SUM(C4,NN0),0),2));
- V5:=STRTONUM(NUMTOSTR(IF(ISLASTBAR,SUM(C5,NN0),0),2));
- V6:=STRTONUM(NUMTOSTR(IF(ISLASTBAR,SUM(C6,NN0),0),2));
- V7:=STRTONUM(NUMTOSTR(IF(ISLASTBAR,SUM(C7,NN0),0),2));
- V8:=STRTONUM(NUMTOSTR(IF(ISLASTBAR,SUM(C8,NN0),0),2));
- V9:=STRTONUM(NUMTOSTR(IF(ISLASTBAR,SUM(C9,NN0),0),2));
- V10:=STRTONUM(NUMTOSTR(IF(ISLASTBAR,SUM(C10,NN0),0),2));
- AV0:=MAX(V1,MAX(V2,MAX(V3,MAX(V4,MAX(V5,MAX(V6,MAX(V7,MAX(V8,MAX(V9,V10)))))))));
- X1:=V1/AV0>=NN/NN0 AND NN>=0;
- X2:=V2/AV0>=NN/NN0 AND NN>=0;
- X3:=V3/AV0>=NN/NN0 AND NN>=0;
- X4:=V4/AV0>=NN/NN0 AND NN>=0;
- X5:=V5/AV0>=NN/NN0 AND NN>=0;
- X6:=V6/AV0>=NN/NN0 AND NN>=0;
- X7:=V7/AV0>=NN/NN0 AND NN>=0;
- X8:=V8/AV0>=NN/NN0 AND NN>=0;
- X9:=V9/AV0>=NN/NN0 AND NN>=0;
- X10:=V10/AV0>=NN/NN0 AND NN>=0;
- FILLRGN(V1/AV0>=NN/NN0 AND NN>=0,A4-0*HH1,A4-1*HH1+HH1*0.5),color660033;
- FILLRGN(V2/AV0>=NN/NN0 AND NN>=0,A4-1*HH1,A4-2*HH1+HH1*0.5),color990033;
- FILLRGN(V3/AV0>=NN/NN0 AND NN>=0,A4-2*HH1,A4-3*HH1+HH1*0.5),colorCC0033;
- FILLRGN(V4/AV0>=NN/NN0 AND NN>=0,A4-3*HH1,A4-4*HH1+HH1*0.5),colorFF0033;
- FILLRGN(V5/AV0>=NN/NN0 AND NN>=0,A4-4*HH1,A4-5*HH1+HH1*0.5),colorFF0066;
- FILLRGN(V6/AV0>=NN/NN0 AND NN>=0,A4-5*HH1,A4-6*HH1+HH1*0.5),colorCC0066;
- FILLRGN(V7/AV0>=NN/NN0 AND NN>=0,A4-6*HH1,A4-7*HH1+HH1*0.5),color990066;
- FILLRGN(V8/AV0>=NN/NN0 AND NN>=0,A4-7*HH1,A4-8*HH1+HH1*0.5),color660066;
- FILLRGN(V9/AV0>=NN/NN0 AND NN>=0,A4-8*HH1,A4-9*HH1+HH1*0.5),color330066;
- FILLRGN(V10/AV0>=NN/NN0 AND NN>=0,A4-9*HH1,A4-10*HH1+HH1*0.5),color66;
- DRAWNUMBER(FILTER(REFX(X1<REF(X1,1),6) AND V1>0,10),A4-0.05,A4-0*HH1,2),colorFFFF00;
- DRAWNUMBER(FILTER(REFX(X2<REF(X2,1),6) AND V2>0,10),A4-2.25*2*HH2,A4-1*HH1,2),colorFFFF00;
- DRAWNUMBER(FILTER(REFX(X3<REF(X3,1),6) AND V3>0,10),A4-2.85*3*HH2,A4-2*HH1,2),colorFFFF00;
- DRAWNUMBER(FILTER(REFX(X4<REF(X4,1),6) AND V4>0,10),A4-3.12*4*HH2,A4-3*HH1,2),colorFFFF00;
- DRAWNUMBER(FILTER(REFX(X5<REF(X5,1),6) AND V5>0,10),A4-3.32*5*HH2,A4-4*HH1,2),colorFFFF00;
- DRAWNUMBER(FILTER(REFX(X6<REF(X6,1),6) AND V6>0,10),A4-3.42*6*HH2,A4-5*HH1,2),colorFFFF00;
- DRAWNUMBER(FILTER(REFX(X7<REF(X7,1),6) AND V7>0,10),A4-3.52*7*HH2,A4-6*HH1,2),colorFFFF00;
- DRAWNUMBER(FILTER(REFX(X8<REF(X8,1),6) AND V8>0,10),A4-3.55*8*HH2,A4-7*HH1,2),colorFFFF00;
- DRAWNUMBER(FILTER(REFX(X9<REF(X9,1),6) AND V9>0,10),A4-3.61*9*HH2,A4-8*HH1,2),colorFFFF00;
- DRAWNUMBER(FILTER(REFX(X10<REF(X10,1),6) AND V10>0,10),A4-3.65*10*HH2,A4-9*HH1,2),colorFFFF00;
- STICKLINE(CLOSE>=REF(CLOSE,1),LOW,HIGH,1.4,0),color1;
- STICKLINE(CLOSE>=REF(CLOSE,1),LOW,HIGH,1,0),colorFF;
- STICKLINE(CLOSE>=REF(CLOSE,1),LOW,HIGH,0,0),colorCC66FF;
- STICKLINE(CLOSE>=REF(CLOSE,1),OPEN,CLOSE,9.4,0),color1;
- STICKLINE(CLOSE>=REF(CLOSE,1),OPEN,CLOSE,8.8,0),color33;
- STICKLINE(CLOSE>=REF(CLOSE,1),OPEN,CLOSE,8,0),color66;
- STICKLINE(CLOSE>=REF(CLOSE,1),OPEN,CLOSE,7,0),color99;
- STICKLINE(CLOSE>=REF(CLOSE,1),OPEN,CLOSE,5.8,0),colorCC;
- STICKLINE(CLOSE>=REF(CLOSE,1),OPEN,CLOSE,4.4,0),colorFF;
- STICKLINE(CLOSE>=REF(CLOSE,1),OPEN,CLOSE,2.8,0),colorCC66FF;
- STICKLINE(CLOSE>=REF(CLOSE,1),OPEN,CLOSE,1,0),colorFFBBFF;
- STICKLINE(CLOSE<REF(CLOSE,1),LOW,HIGH,1.4,0),color1;
- STICKLINE(CLOSE<REF(CLOSE,1),LOW,HIGH,1,0),colorFF6600;
- STICKLINE(CLOSE<REF(CLOSE,1),LOW,HIGH,0,0),colorFFCC00;
- STICKLINE(CLOSE<REF(CLOSE,1),OPEN,CLOSE,9.4,0),color1;
- STICKLINE(CLOSE<REF(CLOSE,1),OPEN,CLOSE,8.8,0),color550000;
- STICKLINE(CLOSE<REF(CLOSE,1),OPEN,CLOSE,8,0),color990000;
- STICKLINE(CLOSE<REF(CLOSE,1),OPEN,CLOSE,7,0),colorFF0000;
- STICKLINE(CLOSE<REF(CLOSE,1),OPEN,CLOSE,5.8,0),colorFF5500;
- STICKLINE(CLOSE<REF(CLOSE,1),OPEN,CLOSE,4.4,0),colorFF8800;
- STICKLINE(CLOSE<REF(CLOSE,1),OPEN,CLOSE,2.8,0),colorFFCC00;
- STICKLINE(CLOSE<REF(CLOSE,1),OPEN,CLOSE,1,0),colorFFFF33;
- 日:=EMA(CLOSE,7);
- 周:=EMA(日,21);
- 年:=EMA(CLOSE,240);
- DRAWTEXT(CROSS(日,周),周,'<==追'),PXUP6,colorFFFFFF;
- 周K:="KDJ.K#week"(9,3,3);
- 周D:="KDJ.D#week"(9,3,3);
- DRAWICON(CROSS(周K,周D),LOW,1);
- DRAWTEXT(CROSS(周K,周D),LLV(LOW,13)-0.15,'←周K金叉'),ALIGN0,colorFFFFFF;
- 月K:="KDJ.K#MONTH"(9,3,3);
- 月D:="KDJ.D#MONTH"(9,3,3);
- DRAWICON(CROSS(月K,月D),LOW,1);
- DRAWTEXT(CROSS(月K,月D),LLV(LOW,13)-0.15,'←月K金叉'),ALIGN0,colorFFFFFF;
- 价位:=SMA((CLOSE-LLV(LOW,26))/(HHV(HIGH,26)-LLV(LOW,26))*100,8,1);
- 风:=((HIGH+CLOSE)/2+LOW+(CLOSE+LOW)/2)/3;
- 险:=EMA((风-EMA(LLV(风,47),2))/(EMA(HHV(风,21),2)-EMA(LLV(风,47),2)),2)*90;
- 多空:=OPEN;
- STICKLINE(CLOSE>OPEN,CLOSE,OPEN,8,0),colorFF;
- STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0),colorFF;
- STICKLINE(CLOSE>OPEN,HIGH,LOW,1,0),colorFF;
- STICKLINE(CLOSE<=OPEN,CLOSE,OPEN,8,0),color6600;
- STICKLINE(CLOSE<=OPEN,CLOSE,OPEN,3,0),color9900;
- STICKLINE(CLOSE<=OPEN,HIGH,LOW,1,0),colorEE00;
- VAR1:=ZIG(3,10)<REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)>REF(ZIG(3,10),2);
- VAR2:=ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<REF(ZIG(3,10),2);
- STICKLINE(VAR1,CLOSE,OPEN,8,0),colorFFFFFF;
- STICKLINE(VAR1,CLOSE,OPEN,3,0),colorFFFFFF;
- STICKLINE(VAR1,HIGH,LOW,1,0),colorFFFFFF;
- STICKLINE(VAR2,CLOSE,OPEN,8,0),colorFF3399;
- STICKLINE(VAR2,CLOSE,OPEN,3,0),colorFF3399;
- STICKLINE(VAR2,HIGH,LOW,1,0),colorFF3399;
- VARB:=IF(DATE<=1051230,1,0);
- A4:=MA(CLOSE,20);
- A5:=CLOSE>MA(CLOSE,5);
- A6:=MA(CLOSE,5)>MA(CLOSE,10);
- A7:=CLOSE>MA(CLOSE,10);
- A8:=MA(CLOSE,5)>MA(CLOSE,20);
- A9:=CLOSE>MA(CLOSE,20);
- A10:=REF(A4,1);
- A11:=A4>A10;
- AVX:=IF(A5,10,-10)+IF(A6,10,-10)+IF(A7,10,-10)+IF(A8,10,-10)+IF(A9,10,-10)+IF(A11,10,-10);
- DSLX:=CLOSE/INDEXC;
- DSLX1:=MA(DSLX,5);
- DSLX2:=MA(DSLX,10);
- V1:=MA(VOL,5);
- V2:=MA(VOL,10);
- T:=(BARSLAST(BARSTATUS=1))+1;
- HHG:=HHV(HIGH,T);
- DDG:=LLV(LOW,T);
- A001:=BARSTATUS=2 AND CLOSE<200 AND CROSS(AVX,1) AND V1>=V2 AND DSLX>=DSLX1;
- DRAWTEXTEX(A001,0,12,170,'该股的量能理想,有明显走强迹象,可以考虑中线进场参与,仓位在2/3左右。 '),LINETHICK3,colorFF;
- A002:=BARSTATUS=2 AND CLOSE<200 AND CROSS(AVX,1) AND V1<V2 AND DSLX>=DSLX1;
- DRAWTEXTEX(A002,0,12,170,'该股虽然走势趋强,但量能还显不足,可以考虑短线进场,仓位在1/2左右。 '),LINETHICK3,colorFF;
- A003:=BARSTATUS=2 AND CLOSE<200 AND CROSS(AVX,1) AND V1>V2 AND DSLX<DSLX1;
- DRAWTEXTEX(A003,0,12,170,'该股量价配合良好,但相对其它股票并没有明显走强,可以考虑短线进场,仓位1/2左右。 '),LINETHICK3,colorFF;
- A004:=BARSTATUS=2 AND CLOSE<200 AND CROSS(AVX,1) AND V1<=V2 AND DSLX<DSLX1;
- DRAWTEXTEX(A004,0,12,170,'该股形态尚可,但量能不足,股票也未完全走强,可以短线参与,仓位1/3左右。 '),LINETHICK3,colorFF;
- A005:=BARSTATUS=2 AND CLOSE<200 AND CROSS(1,AVX) AND V1>=V2 AND DSLX>=DSLX1;
- DRAWTEXTEX(A005,0,12,170,'该股形态变坏,但走势相对其它股票尚可,重仓者减持大半,清仓者可以观望。 '),LINETHICK3,colorFF00;
- A006:=BARSTATUS=2 AND CLOSE<200 AND CROSS(1,AVX) AND V1<V2 AND DSLX>=DSLX1;
- DRAWTEXTEX(A006,0,12,170,'该股随大盘一起下跌,程明显缩量走势,考虑到大盘风险,减持或清仓。 '),LINETHICK3,colorFF00;
- A007:=BARSTATUS=2 AND CLOSE<200 AND CROSS(1,AVX) AND V1>=V2 AND DSLX<DSLX1;
- DRAWTEXTEX(A007,0,12,170,'该股放量下跌,走势明显偏弱,离场观望。 '),LINETHICK3,colorFF00;
- A0071:=BARSTATUS=2 AND CLOSE<200 AND CROSS(1,AVX) AND V1<V2 AND DSLX<DSLX1;
- DRAWTEXTEX(A0071,0,12,170,'该股缩量下跌,走势偏弱,离场观望。 '),LINETHICK3,colorFF00;
- A008:=BARSTATUS=2 AND CLOSE<200 AND AVX>=1 AND REF(AVX,1)>0 AND V1>=V2 AND DSLX>=DSLX1;
- DRAWTEXTEX(A008,0,12,170,'该股形态良好,强势明显,量能充足,可以继续持有。 '),LINETHICK3,colorFFFF;
- A009:=BARSTATUS=2 AND CLOSE<200 AND AVX>=1 AND REF(AVX,1)>0 AND V1<V2 AND DSLX>=DSLX1;
- DRAWTEXTEX(A009,0,12,170,'该股上行趋势不变,强势依然,但量能开始转弱,注意风险。 '),LINETHICK3,colorFFFF;
- A010:=BARSTATUS=2 AND CLOSE<200 AND AVX>=1 AND REF(AVX,1)>0 AND V1>=V2 AND DSLX<DSLX1;
- DRAWTEXTEX(A010,0,12,170,'该股仍然具备上涨潜力,但股性偏弱,可考虑减仓。 '),LINETHICK3,colorFFFF;
- A011:=BARSTATUS=2 AND CLOSE<200 AND AVX>=1 AND REF(AVX,1)>0 AND V1<V2 AND DSLX<DSLX1;
- DRAWTEXTEX(A011,0,12,170,'该股走势趋弱,量能不足,减持大部分筹码。 '),LINETHICK3,colorFFFF;
- A012:=BARSTATUS=2 AND CLOSE<200 AND AVX<1 AND REF(AVX,1)<0 AND V1>=V2 AND DSLX>=DSLX1;
- DRAWTEXTEX(A012,0,12,170,'该股形态不佳,注意成交量的变化,但目前不适合参与。 '),LINETHICK3,colorFF00;
- A013:=BARSTATUS=2 AND CLOSE<200 AND AVX<1 AND REF(AVX,1)<0 AND V1<V2 AND DSLX>=DSLX1;
- DRAWTEXTEX(A013,0,12,170,'该股趋势不明,股价偏弱,注意量能变化,目前不宜参与。 '),LINETHICK3,colorFF00;
- A014:=BARSTATUS=2 AND CLOSE<200 AND AVX<1 AND REF(AVX,1)<0 AND V1>=V2 AND DSLX<DSLX1;
- DRAWTEXTEX(A014,0,12,170,'该股有走强迹象,但量能不足,趋势不明,不适合操作。 '),LINETHICK3,colorFF00;
- A015:=BARSTATUS=2 AND CLOSE<200 AND AVX<1 AND REF(AVX,1)<0 AND V1<V2 AND DSLX<DSLX1;
- DRAWTEXTEX(A015,0,12,170,'该股走势太弱,没有参与价值。 '),LINETHICK3,colorFF00;
- A016:=BARSTATUS=2 AND CLOSE>200 AND CROSS(AVX,1) AND V1>=V2;
- DRAWTEXTEX(A016,0,12,170,'大盘量能理想,有明显走强迹象,可以考虑中线进场参与,仓位在2/3左右, '),LINETHICK3,colorFF;
- A017:=BARSTATUS=2 AND CLOSE>200 AND CROSS(AVX,1) AND V1>=V2;
- DRAWTEXTEX(A017,0,12,170,'如前期经过一轮下跌,此时为最佳买点,但如果前期有过一段涨幅则介入需谨慎。 '),LINETHICK3,colorFF;
- A018:=BARSTATUS=2 AND CLOSE>200 AND CROSS(AVX,1) AND V1<V2;
- DRAWTEXTEX(A018,0,12,170,'大盘虽然走势趋强,但量能还显不足,如果前期经过一轮下跌, '),LINETHICK3,colorFF;
- A019:=BARSTATUS=2 AND CLOSE>200 AND CROSS(AVX,1) AND V1<V2;
- DRAWTEXTEX(A019,0,12,170,'可以考虑短线进场,仓位在1/2左右,一旦量能放大可以加仓买入。 '),LINETHICK3,colorFF;
- A020:=BARSTATUS=2 AND CLOSE>200 AND CROSS(1,AVX) AND V1>=V2;
- DRAWTEXTEX(A020,0,12,170,'大盘形态走坏,重仓者可以减去大部分仓位。 '),LINETHICK3,colorFF00;
- A021:=BARSTATUS=2 AND CLOSE>200 AND CROSS(1,AVX) AND V1<V2;
- DRAWTEXTEX(A021,0,12,170,'大盘缩量调整,注意风险,短线清仓观望。 '),LINETHICK3,colorFF00;
- A022:=BARSTATUS=2 AND CLOSE>200 AND AVX>=1 AND REF(AVX,1)>0 AND V1>=V2;
- DRAWTEXTEX(A022,0,12,170,'大盘走势良好,量能理想,可以继续持有强势股。 '),LINETHICK3,colorFFFF;
- A023:=BARSTATUS=2 AND CLOSE>200 AND AVX>=1 AND REF(AVX,1)>0 AND V1<V2;
- DRAWTEXTEX(A023,0,12,170,'大盘形态良好,但量能稍显不足,随时准备减仓。 '),LINETHICK3,colorFFFF;
- A024:=BARSTATUS=2 AND CLOSE>200 AND AVX<1 AND REF(AVX,1)<0 AND V1>=V2;
- DRAWTEXTEX(A024,0,12,170,'大盘趋势不明,注意成交量变化,目前不适宜进场。 '),LINETHICK3,colorFF00;
- A025:=BARSTATUS=2 AND CLOSE>200 AND AVX<1 AND REF(AVX,1)<0 AND V1<V2;
- DRAWTEXTEX(A025,0,12,170,'大盘趋势向下,量能萎缩,不适合进场。 '),LINETHICK3,colorFF00;
- NN:=BARSTATUS=2;
- MB1:MA(CLOSE,N),LINETHICK0,colorFF00FF;
- MB2:MA(CLOSE,N1),LINETHICK0,colorFF00;
- MB3:MA(CLOSE,N2),LINETHICK0,color208FFF;
- MB4:MA(CLOSE,N3),LINETHICK0,colorFF00FF;
- VAR3:=HIGH<REF(LOW,1);
- VAR4:=LOW>REF(HIGH,1);
- DRAWTEXT(VAR3,HIGH,'↓QK'),ALIGN1,PXUP6,colorFFFFFF;
- DRAWTEXT(VAR4,LOW,'↑QK'),ALIGN1,PXUP6,colorFFFF;
- DRAWTEXT(NN,MB1,''+NUMTOSTR(MB1,2)+''),ALIGN0,PXUP2,colorFFFFFF;
- DRAWTEXT(NN,MB2,''+NUMTOSTR(MB2,2)+''),ALIGN0,PXUP2,colorFFFF;
- DRAWTEXT(NN,MB3,''+NUMTOSTR(MB3,2)+''),ALIGN0,PXUP2,color208FFF;
- A1:=REF(HIGH,3)=HHV(HIGH,2*3+1);
- B1:=FILTER(A1,3);
- C1:=BACKSET(B1,3+1);
- D1:=FILTER(C1,3);
- A2:=REF(LOW,3)=LLV(LOW,2*3+1);
- B2:=FILTER(A2,3);
- C2:=BACKSET(B2,3+1);
- D2:=FILTER(C2,3);
- E1:=(REF(LLV(LOW,2*3),1)+REF(HHV(HIGH,2*3),1))/2;
- E2:=(HIGH+LOW)/2;
- H1:=D1 AND NOT(D2 AND E1>=E2) OR BARSTATUS OR BARSCOUNT(CLOSE)=1;
- L1:=D2 AND NOT(D1 AND E1<E2);
- H2:=D1 AND NOT(D2 AND E1>=E2);
- X1:=REF(BARSLAST(H1),1)+1;
- F1:=BACKSET(H1 AND COUNT(L1,X1)>0,LLVBARS(IF(L1,LOW,10000),X1));
- G1:=F1>REF(F1,1);
- I1:=BACKSET(G1,2);
- LD:=I1>REF(I1,1);
- L2:=LD OR BARSTATUS OR BARSCOUNT(CLOSE)=1;
- X2:=REF(BARSLAST(L2),1)+1;
- F2:=BACKSET(L2 AND COUNT(H2,X2)>0,HHVBARS(IF(H2,HIGH,0),X2));
- G2:=F2>REF(F2,1);
- I2:=BACKSET(G2,2);
- HD:=I2>REF(I2,1);
- UU:=BACKSET(BARSTATUS,BARSLAST(LD)+1);
- VV:=UU>REF(UU,1);
- WW:=BACKSET(VV,REF(BARSLAST(LD),1)+2);
- XX:=WW>REF(WW,1);
- UU2:=BACKSET(BARSTATUS,BARSLAST(HD)+1);
- VV2:=UU2>REF(UU2,1);
- WW2:=BACKSET(VV2,REF(BARSLAST(HD),1)+2);
- XX2:=WW2>REF(WW2,1);
- 一低:REF(LOW,BARSLAST(VV)),LINEDOT,LINETHICK1,color99FF66;
- 二低:REF(LOW,BARSLAST(XX)),LINEDOT,LINETHICK1,colorFF66FF;
- 一高:REF(HIGH,BARSLAST(VV2)),LINEDOT,LINETHICK1,color99FF66;
- 二高:REF(HIGH,BARSLAST(XX2)),LINEDOT,LINETHICK1,colorFF66FF;
- MC:=REF(CLOSE,1);
- 阻力位:=IF(CLOSE>200,CLOSE*1.01,CLOSE*1.07);
- 阻力位1:=IF(CLOSE<10,CLOSE*1.05,阻力位);
- 止损位:=IF(CLOSE>200,CLOSE*0.99,CLOSE*0.93);
- 止损位1:=IF(CLOSE<10,CLOSE*0.95,止损位);
- 阻力位A:=IF(MC>200,MC*1.01,MC*1.07);
- 阻力位2:=IF(MC<10,MC*1.05,阻力位A);
- 止损位B:=IF(MC>200,MC*0.99,MC*0.93);
- 止损位2:=IF(MC<10,MC*0.95,止损位B);
- DRAWTEXTEX(CLOSE,0,58,80,'[昨/今日 止损位 :'+NUMTOSTR(止损位B,2)+'/'+NUMTOSTR(止损位1,2)+'**]'),LINETHICK1,colorFF00;
- DRAWTEXTEX(CLOSE,0,58,95,'[昨/今日 阻力位 :'+NUMTOSTR(阻力位2,2)+'/'+NUMTOSTR(阻力位1,2)+']'),LINETHICK1,colorFEBAF5;
- PT:=REF(HIGH,1)-REF(LOW,1);
- 重心:=(HIGH+LOW+CLOSE)/3;
- 压力Ⅰ:=2*重心-LOW;
- 压力Ⅱ:=重心+PT;
- 支撑Ⅰ:=2*重心-HIGH;
- 支撑Ⅱ:=重心-PT;
- A1:=REF(HIGH,N)=HHV(HIGH,2*N+1);
- B1:=FILTER(A1,N);
- C1:=BACKSET(B1,N+1);
- D1:=FILTER(C1,N);
- A2:=REF(LOW,N)=LLV(LOW,2*N+1);
- B2:=FILTER(A2,N);
- C2:=BACKSET(B2,N+1);
- D2:=FILTER(C2,N);
- E1:=(REF(LLV(LOW,2*N),1)+REF(HHV(HIGH,2*N),1))/2;
- E2:=(HIGH+LOW)/2;
- H1:=D1 AND NOT(D2 AND E1>=E2) OR ISLASTBAR OR BARSCOUNT(CLOSE)=1;
- L1:=D2 AND NOT(D1 AND E1<E2);
- H2:=D1 AND NOT(D2 AND E1>=E2);
- X1:=REF(BARSLAST(H1),1)+1;
- F1:=BACKSET(H1 AND COUNT(L1,X1)>0,LLVBARS(IF(L1,LOW,10000),X1));
- G1:=F1>REF(F1,1);
- I1:=BACKSET(G1,2);
- LD:=I1>REF(I1,1);
- L2:=LD OR ISLASTBAR OR BARSCOUNT(CLOSE)=1;
- X2:=REF(BARSLAST(L2),1)+1;
- F2:=BACKSET(L2 AND COUNT(H2,X2)>0,HHVBARS(IF(H2,HIGH,0),X2));
- G2:=F2>REF(F2,1);
- I2:=BACKSET(G2,2);
- HD:=I2>REF(I2,1);
- R1:=BACKSET(ISLASTBAR,BARSLAST(HD)+1);
- S1:=R1>REF(R1,1);
- T1:=BACKSET(ISLASTBAR,BARSLAST(LD)+1);
- U1:=T1>REF(T1,1);
- R2:=BACKSET(S1,REF(BARSLAST(HD),1)+2);
- S2:=R2>REF(R2,1);
- T2:=BACKSET(U1,REF(BARSLAST(LD),1)+2);
- U2:=T2>REF(T2,1);
- T3:=BACKSET(U2,REF(BARSLAST(LD),1)+2);
- U3:=T3>REF(T3,1);
- T4:=BACKSET(U3,REF(BARSLAST(LD),1)+2);
- U4:=T4>REF(T4,1);
- R3:=BACKSET(S2,REF(BARSLAST(HD),1)+2);
- S3:=R3>REF(R3,1);
- R4:=BACKSET(S3,REF(BARSLAST(HD),1)+2);
- S4:=R4>REF(R4,1);
- ★压力1:DRAWLINE(S2,HIGH,S1,HIGH,1),color80FFFF;
- ★支撑1:DRAWLINE(U2,LOW,U1,LOW,1),POINTDOT,LINETHICK2,colorFFFF;
- ★压力2:DRAWLINE(S3,HIGH,S2,HIGH,1),colorFF8000;
- ★支撑2:DRAWLINE(U3,LOW,U2,LOW,1),POINTDOT,colorFF8000;
- ★压力3:DRAWLINE(S4,HIGH,S3,HIGH,1),colorFF;
- ★支撑3:DRAWLINE(U4,LOW,U3,LOW,1),POINTDOT,colorFF;
- V1:=MA(HIGH,30)*1.15;
- V2:=MA(HIGH,3)*1.03;
- V3:=MA(LOW,3)*0.97;
- V4:=MA(LOW,30)*0.85;
- L5:=ZIG(3,5);
- EN1:=ZIG(3,5)>REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)<=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)<=REF(ZIG(3,5),3);
- EX1:=ZIG(3,5)<REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)>=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)>=REF(ZIG(3,5),3);
- PL10:=ZIG(3,10);
- EN2:=ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)<=REF(ZIG(3,10),3);
- EX2:=ZIG(3,10)<REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)>=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)>=REF(ZIG(3,10),3);
- PL20:=ZIG(3,20);
- EN3:=ZIG(3,20)>REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)<=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)<=REF(ZIG(3,20),3);
- EX3:=ZIG(3,20)<REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)>=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)>=REF(ZIG(3,20),3);
- PL40:=ZIG(3,40);
- 走强2:=BARSLAST(PL10<REF(PL10,1));
- 走弱2:=BARSLAST(PL10>REF(PL10,1));
- 走强3:=BARSLAST(PL20<REF(PL20,1));
- 走弱3:=BARSLAST(PL20>REF(PL20,1));
- ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走强2),0);
- ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走强2),0);
- DTJZ5:=IF(PL10<REF(PL10,1),COUNT(EN1,走弱2),0);
- DTJD5:=IF(PL10<REF(PL10,1),COUNT(EX1,走弱2),0);
- ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,走强3),0);
- ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走强3),0);
- DTJZ10:=IF(PL20<REF(PL20,1),COUNT(EN2,走弱3),0);
- DTJD10:=IF(PL20<REF(PL20,1),COUNT(EX2,走弱3),0);
- DRAWTEXT(EN1 AND DTJZ5=1,LOW*0.96,'㈠'),colorFF00FF;
- DRAWTEXT(EX1 AND DTJD5=2,HIGH*1.04,'㈡'),colorFF00FF;
- DRAWTEXT(EN2 AND ZTJZ5=1,LOW*0.96,'▲㈢'),colorFF;
- DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJD5=1,HIGH*1,'⑴'),colorFFFF;
- DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2,LOW*0.98,'⑵'),colorFFFF;
- DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJZ5=2,HIGH*1,'⑶'),colorFFFF;
- DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=3,LOW*0.98,'⑷'),colorFFFF;
- DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,HIGH*1,'⑸'),colorFFFF;
- DRAWTEXT(EN2 AND DTJZ10=1,LOW*0.9,'Ⅰ'),colorFF;
- DRAWTEXT(EX2 AND DTJD10=2,HIGH*1.08,'Ⅱ'),colorFF;
- DRAWTEXT(EN3 AND ZTJZ10=1,LOW*0.9,'★Ⅲ'),colorFF;
- DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,HIGH*1.02,'①'),colorFF00;
- DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2,LOW*0.92,'②'),colorFF00;
- DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=2 OR (ZTJD10=0 OR ZTJD10=2) AND EX2,HIGH*1.02,'③'),colorFF00;
- DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=3,LOW*0.92,'④'),colorFF00;
- A:=BARSCOUNT(CLOSE);
- AH:=HHV(HIGH,200);
- AL:=LLV(LOW,200);
- B0:=(AH-AL)/40;
- QS:=ZIG(3,19);
- SS:=HHVBARS(REF(QS,1)<REF(QS,2),0);
- EXPLAIN(SS=1 OR CROSS(ZIG(3,19),REF(ZIG(3,19),1)),'操作时段:操作盲区'),colorFFFF;
- EXPLAIN(SS>=2 AND SS<20 AND REF(QS,1)<QS,'操作时段:短线投机'),colorFF;
- EXPLAIN(SS>=20 AND SS<88 AND REF(QS,1)<QS,'操作时段:中线波段'),colorFF33FF;
- EXPLAIN(SS>=88 AND REF(QS,1)<QS,'操作时段:长线投资'),color66FF;
- XD:=HHVBARS(QS>REF(QS,1),0);
- EXPLAIN(XD=2 OR XD=1,'操作时段:操作盲区'),colorFFFF;
- EXPLAIN(XD>=3 AND XD<21 AND REF(QS,1)>QS,'操作时段:短期回调'),colorFFFF;
- EXPLAIN(XD>=21 AND XD<89 AND REF(QS,1)>QS,'操作时段:中期杀跌'),colorFFFF00;
- EXPLAIN(XD>=89 AND REF(QS,1)>QS,'操作时段:长期盘跌'),colorFF00;
- TC:=IF(CROSS(REF(ZIG(3,19),1),ZIG(3,19)),1,0);
- EXPLAIN(CROSS(ZIG(3,19),REF(ZIG(3,19),1)),'价格拐点:相对底部'),colorFFFF;
- EXPLAINEX(SS>0 AND TC<>1 AND SS<>2 AND SS<>4 AND SS<>7 AND SS<>12 AND SS<>20 AND SS<>33 AND SS<>54 AND SS<>88 AND SS<>143 AND SS<>232,'时间拐点:上涨天数 ',SS+1,0,0),colorCCFFFF;
- EXPLAINEX(SS=2,'时间拐点:时间之窗 ',SS+1,0,0),colorFF;
- EXPLAINEX(SS=4,'时间拐点:时间之窗 ',SS+1,0,0),colorFF00;
- EXPLAINEX(SS=7,'时间拐点:时间之窗 ',SS+1,0,0),colorFF;
- EXPLAINEX(SS=12,'时间拐点:时间之窗 ',SS+1,0,0),colorFF00;
- EXPLAINEX(SS=20,'时间拐点:时间之窗 ',SS+1,0,0),colorFF;
- EXPLAINEX(SS=33,'时间拐点:时间之窗 ',SS+1,0,0),colorFF00;
- EXPLAINEX(SS=54,'时间拐点:时间之窗 ',SS+1,0,0),colorFF;
- EXPLAINEX(SS=88,'时间拐点:时间之窗 ',SS+1,0,0),colorFF00;
- EXPLAINEX(SS=143,'时间拐点:时间之窗 ',SS+1,0,0),colorFF;
- EXPLAINEX(SS=232,'时间拐点:时间之窗 ',SS+1,0,0),colorFF00;
- EXPLAIN(CROSS(REF(ZIG(3,19),1),ZIG(3,19)),'价格拐点:相对顶部'),colorFFFF;
- EXPLAINEX(XD>0 AND TC<>1 AND XD<>3 AND XD<>5 AND XD<>8 AND XD<>13 AND XD<>21 AND XD<>34 AND XD<>55 AND XD<>89 AND XD<>144 AND XD<>233,'时间拐点:下跌天数 ',XD,0,0),colorCCFFFF;
- EXPLAINEX(XD=3,'时间拐点:时间之窗 ',XD,0,0),colorFF;
- EXPLAINEX(XD=5,'时间拐点:时间之窗 ',XD,0,0),colorFF00;
- EXPLAINEX(XD=8,'时间拐点:时间之窗 ',XD,0,0),colorFF;
- EXPLAINEX(XD=13,'时间拐点:时间之窗 ',XD,0,0),colorFF00;
- EXPLAINEX(XD=21,'时间拐点:时间之窗 ',XD,0,0),colorFF;
- EXPLAINEX(XD=34,'时间拐点:时间之窗 ',XD,0,0),colorFF00;
- EXPLAINEX(XD=55,'时间拐点:时间之窗 ',XD,0,0),colorFF;
- EXPLAINEX(XD=89,'时间拐点:时间之窗 ',XD,0,0),colorFF00;
- EXPLAINEX(XD=144,'时间拐点:时间之窗 ',XD,0,0),colorFF;
- EXPLAINEX(XD=233,'时间拐点:时间之窗 ',XD,0,0),colorFF00;
- ZSLIFE:=(EMA(INDEXC,60)+EMA(INDEXC,90))/2;
- ZSBL:=INDEXC/ZSLIFE;
- GGLIFE:=(EMA(CLOSE,60)+EMA(CLOSE,90))/2;
- ZSTB:=ZSBL*GGLIFE;
- EXPLAINEX(ZSTB<CLOSE,'强于大盘系数%:',(CLOSE-ZSTB)/ZSTB*100,2,0),colorFF;
- EXPLAINEX(ZSTB>=CLOSE,'弱于大盘系数%:',(ABS(CLOSE-ZSTB))/ZSTB*100,2,0),colorFFFF00;
- EXPLAINEX(CLOSE>0,'主力成本:',SUM(AMOUNT,13)/SUM(VOL,13)/100,2,0),colorFFFF00;
- EXPLAIN(VOL=HHV(VOL,0),'量能统计:历史天量'),colorFF00FF;
- ZY:=(REF(HIGH,1)-REF(LOW,1))*8/10+CLOSE;
- EXPLAINEX(CLOSE>0,'明日止赢:',ZY,2,0),colorFF;
- ZS:=CLOSE-(REF(HIGH,1)-REF(LOW,1))*8/20;
- EXPLAINEX(CLOSE>0,'明日止损:',ZS,2,0),colorFF00;
- 攻击线:MA(CLOSE,5),LINETHICK0;
- 操盘线:MA(CLOSE,10),LINETHICK0;
- 魔鬼线:MA(CLOSE,20),LINETHICK0;
- 生命线:MA(CLOSE,30),LINETHICK0;
- 决策线:MA(CLOSE,60),LINETHICK0;
- 趋势线:MA(CLOSE,120),LINETHICK0;
- 牛熊线:MA(CLOSE,250),LINETHICK0;
- DIFF:=EMA(CLOSE,3)-EMA(CLOSE,13);
- DEA:=EMA(DIFF,9);
- TJ:=DIFF>DEA;
- TJ1:=DIFF>-0.1;
- MACD:=2*(DIFF-DEA);
- JC:=CROSS(DIFF,DEA);
- SC:=CROSS(DEA,DIFF);
- DCJC:=JC AND DEA>0;
- EXPLAIN(JC AND DEA>0,'MACD在0轴上金叉提示加仓;'),colorFF;
- EXPLAIN(JC AND DEA<0,'MACD在0轴下金叉酌情买入;'),colorFF;
- EXPLAIN(SC AND DEA>0,'MACD在0轴上多次死叉;'),colorFF00;
- EXPLAIN(SC AND DEA<0,'MACD在0轴下多次死叉;'),colorFF00;
- EXPLAIN(MACD<0 AND ABS(MACD)>REF(ABS(MACD),1),'MACD绿柱增长提示卖出;'),colorFF00;
- EXPLAIN(MACD<0 AND ABS(MACD)<REF(ABS(MACD),1),'MACD绿柱缩短提示买入;'),colorFF;
- EXPLAIN(LLV(LOW,60)=LOW AND NOT(LLV("MACD.DEA",60)="MACD.DEA"),'MACD底背离提示示买入;'),colorFF;
- EXPLAIN(HHV(HIGH,60)=HIGH AND NOT(HHV("MACD.DEA",60)="MACD.DEA"),'MACD顶背离提示卖出;'),colorFF00;
- EXPLAIN(CROSS("MACD.DIFF","MACD.DEA") AND BARSLAST(CROSS("MACD.DIFF","MACD.DEA"))>=3,'MACD二次金叉提示买入,股价上涨幅度会较大。'),colorFF;
- EXPLAIN(CROSS("MACD.DEA","MACD.DIFF") AND BARSLAST(CROSS("MACD.DEA","MACD.DIFF"))>=3,'MACD二次死叉提示卖出,股价下跌幅度会较大。'),colorFF00;
- EXPLAIN((COUNT(CLOSE<REF(CLOSE,1),30))>18 AND (COUNT(CLOSE<REF(CLOSE,1),3))=3 AND (COUNT("MACD.MACD">REF("MACD.MACD",1),30))>18,'MACD反转--股价将可能反转向上。'),colorFF;
- EXPLAIN((COUNT(CLOSE>REF(CLOSE,1),30))>18 AND (COUNT(CLOSE>REF(CLOSE,1),3))=3 AND (COUNT("MACD.MACD"<REF("MACD.MACD",1),30))>18,'MACD反转--股价将可能反转向下。'),colorFF00;
- EXPLAIN(COUNT(DCJC,20)=2 AND JC AND DEA>0,'MACD在0轴上2金叉;'),color1;
- EXPLAIN(COUNT(DCJC,20)=3 AND JC AND DEA>0,'MACD在0轴上3金叉;');
- EXPLAIN(COUNT(DCJC,20)=4 AND JC AND DEA>0,'MACD在轴上4金叉;');
- LC:=REF(CLOSE,1);
- RSI1:=(SMA(MAX(CLOSE-LC,0),7,1))/(SMA(ABS(CLOSE-LC),7,1))*100;
- RSI2:=(SMA(MAX(CLOSE-LC,0),14,1))/(SMA(ABS(CLOSE-LC),14,1))*100;
- EXPLAIN("RSI.RSI1"<15 AND (BARSLAST("RSI.RSI1"<15))>=1,'RSI相对强弱指标超卖,属买入信号。'),colorFF;
- EXPLAIN("RSI.RSI1">85 AND (BARSLAST("RSI.RSI1">85))>=1,'RSI相对强弱指标超买,属卖出信号。'),colorFF00;
- EXPLAIN((LLV(LOW,20)=LOW AND NOT(LLV("RSI.RSI1",20)="RSI.RSI1") OR (COUNT(CLOSE<REF(CLOSE,1),30))>18 AND (COUNT("RSI.RSI1">REF("RSI.RSI1",1),30))>18) AND "RSI.RSI1"<20,'RSI相对强弱指标底背离,股价在低位时属买入信号。'),colorFF;
- EXPLAIN((HHV(HIGH,20)=HIGH AND NOT(HHV("RSI.RSI1",20)="RSI.RSI1") OR (COUNT(CLOSE>REF(CLOSE,1),30))>18 AND (COUNT("RSI.RSI1"<REF("RSI.RSI1",1),30))>18) AND "RSI.RSI1">80,'RSI相对强弱指标顶背离,股价在高位时属卖出信号。'),colorFF00;
- EXPLAIN(CROSS("RSI.RSI1","RSI.RSI2") AND "RSI.RSI1"<50,'RSI相对强弱指标金叉属买入信号。'),colorFF;
- EXPLAIN(CROSS("RSI.RSI2","RSI.RSI1") AND "RSI.RSI1">50,'RSI相对强弱指标死叉,属卖出信号。'),colorFF00;
- EXPLAIN("RSI.RSI1"<5,'RSI相对强弱指标极低位,强烈买入信号。'),colorFF;
- EXPLAIN("RSI.RSI1">93,'RSI相对强弱指标极高位,强烈卖出信号。'),colorFF00;
- EXPLAIN(RSI1<35,'RSI顶背离提示买入;'),colorFF;
- EXPLAIN(CROSS(74,RSI1),'RSI顶背离提示卖出;'),colorFF00;
- EXPLAIN("KDJ.K"<=20 AND "KDJ.D"<=20,'KD超卖指示买入;'),colorFF;
- EXPLAIN("KDJ.K">=80 AND "KDJ.D">=80,'KD超买逢高卖出;'),colorFF00;
- EXPLAIN(CROSS("KDJ.K","KDJ.D") AND (COUNT(VOL>REF(VOL,1),30))>3 AND VOL/CAPITAL<=10/100 AND "KDJ.K"<=20 AND "KDJ.D"<=20,'KD金叉买入,低市值或成交清淡个股应忽略此信号。'),colorFF;
- EXPLAIN(CROSS("KDJ.D","KDJ.K") AND "KDJ.K">=60 AND "KDJ.D">=60 AND (BARSLAST(CROSS("KDJ.D","KDJ.K") AND "KDJ.K">=60 AND "KDJ.D">=60))>=1 AND (BARSLAST(CROSS("KDJ.D","KDJ.K") AND "KDJ.K">=60 AND "KDJ.D">=60))<=7,'KD二次死叉提示卖出;'),colorFF00;
- EXPLAIN("KDJ.J"<0,'KDJ异常逢低买入'),colorFF;
- EXPLAIN(HHV(HIGH,20)=HIGH AND (NOT(HHV("KDJ.K",20)="KDJ.K" OR HHV("KDJ.D",20)="KDJ.D")) OR (COUNT(CLOSE>REF(CLOSE,1),30))>18 AND ((COUNT("KDJ.K"<REF("KDJ.K",1),30))>18 OR (COUNT("KDJ.D"<REF("KDJ.D",1),30))>18),'KD顶背离提示卖出;'),colorFF00;
- EXPLAIN(LLV(LOW,20)=LOW AND (NOT(LLV("KDJ.K",20)="KDJ.K" OR LLV("KDJ.D",20)="KDJ.D")) OR (COUNT(CLOSE<REF(CLOSE,1),30))>18 AND ((COUNT("KDJ.K">REF("KDJ.K",1),30))>18 OR (COUNT("KDJ.D">REF("KDJ.D",1),30))>18),'KD底背离提示买入;'),colorFF;
- 日K:="KDJ.K#day";
- 日D:="KDJ.D#day";
- 周K:="KDJ.K#week";
- 周D:="KDJ.D#week";
- EXPLAIN(CROSS(日K,日D),'日KD金叉且底背离买入;'),colorFF;
- EXPLAIN(CROSS(日D,日K),'日KD死叉且顶背离必须卖出;'),colorFF00;
- EXPLAIN(CROSS(周K,周D),'周KD金叉且底背离买入;'),colorFF;
- EXPLAIN(CROSS(周D,周K),'周KD死叉且顶背离必须卖出;'),colorFF00;
- BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
- UPR:=BBI+3*STD(BBI,10);
- DWN:=BBI-3*STD(BBI,10);
- VAR55:=(UPR-DWN)/UPR<0.03;
- VAR56:=(UPR-DWN)/UPR>0.18;
- VAR57:=(MA(CLOSE,60)-MA(CLOSE,5))/MA(CLOSE,60)>0.15;
- VAR58:=(MA(CLOSE,5)-MA(CLOSE,60))/MA(CLOSE,5)>0.15;
- EXPLAIN(VAR55,'布林线收窄可能变盘;'),colorFF00FF;
- EXPLAIN(VAR57 AND VAR56 AND CLOSE>OPEN,'布林上下乖离太大可能反弹;'),colorFF00FF;
- EXPLAIN(VAR58 AND VAR56 AND CLOSE<OPEN,'布林上下乖离太大可能回落;'),colorFF00;
- EXPLAIN(CROSS(CLOSE,"SAR") AND (ABS(CLOSE-"SAR"))/CLOSE>=0.01,'SAR向上突破提示买入;'),colorFF;
- EXPLAIN(CROSS("SAR",CLOSE) AND (ABS(CLOSE-"SAR"))/CLOSE>=0.01,'SAR向下突破提示卖出;'),colorFF00;
- TYP:=(HIGH+LOW+CLOSE)/3;
- CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
- EXPLAIN(CCI<-100,'CCI指标底位,买入机会。'),colorFF;
- EXPLAIN(CCI>100,'CCI指标高位,卖出机会。'),colorFF00;
- EXPLAIN(VOL/CAPITAL>0.075,'换手过大,小心主力出逃,短期头部。'),colorFFFF;
- WR:=-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));
- EXPLAIN(WR>-20,'W&R超买,即将见顶,应及时卖出。'),colorFF00;
- EXPLAIN(WR<-80,'W&R超卖,即将见底,应伺机买进。'),colorFF;
- MTM:=CLOSE-REF(CLOSE,6);
- MTMMA:=MA(MTM,6);
- EXPLAIN(CROSS(MTM,MTMMA),'MTM从下向上突破MTMMA,买入信号。'),colorFF;
- EXPLAIN(CROSS(MTMMA,MTM),'MTM从上向下跌破MTMMA,卖出信号。'),colorFF00;
- EXPLAIN("ARBR.AR"<50,'ARBR人气指标超卖,属买入信号。'),colorFF;
- EXPLAIN("ARBR.AR">200,'ARBR人气指标超买,属卖出信号。'),colorFF00;
- EXPLAIN((HHV("ARBR.AR",10)-"ARBR.AR")/HHV("ARBR.AR",10)>=0.5,'ARBR人气指标异常,若股价从高价下跌,属买入信号。'),colorFF;
- EXPLAIN(("ARBR.AR"-LLV("ARBR.AR",10))/LLV("ARBR.AR",10)>=0.5,'ARBR人气指标异常,若股价从低价上升,属卖出信号。'),colorFF00;
- EXPLAIN("ARBR.BR"<50,'ARBR意愿指标显示股价随时反弹考虑买入。'),colorFF;
- EXPLAIN("ARBR.BR">300,'ARBR意愿指标显示股价随时下挫考虑卖出。'),colorFF00FF;
- EXPLAIN(CROSS("ARBR.AR","ARBR.BR") AND ("ARBR.AR"<50 OR "ARBR.BR"<50),'ARBR人气意愿指标金叉,属买入信号。'),colorFF;
- EXPLAIN(CROSS("ARBR.BR","ARBR.AR") AND ("ARBR.AR">180 OR "ARBR.BR">300),'ARBR人气意愿指标死叉,属卖出信号。'),colorFF00;
- EXPLAIN((COUNT(CLOSE<REF(CLOSE,1),30))>18 AND (COUNT(CLOSE<REF(CLOSE,1),3))=3 AND (COUNT("OBV.OBV">REF("OBV.OBV",1),30))>18 AND (COUNT("OBV.OBV">REF("OBV.OBV",1),3))=3 AND (COUNT(VOL>REF(VOL,1),30))>3 AND VOL/CAPITAL<=10/100,'OBV能量潮显示买盘较强属买入信号。'),colorFF;
- EXPLAIN((COUNT(CLOSE>REF(CLOSE,1),30))>18 AND (COUNT(CLOSE>REF(CLOSE,1),3))=3 AND (COUNT("OBV.OBV">REF("OBV.OBV",1),30))>18 AND (COUNT("OBV.OBV">REF("OBV.OBV",1),3))=3 AND (COUNT(VOL>REF(VOL,1),30))>3 AND VOL/CAPITAL<=10/100,'OBV能量潮显示买盘逐渐加强属买入信号。'),colorFF;
- EXPLAIN((COUNT(CLOSE>REF(CLOSE,1),30))>18 AND (COUNT(CLOSE>REF(CLOSE,1),3))=3 AND ((COUNT("OBV.OBV"<REF("OBV.OBV",1),30))>18 OR (COUNT("OBV.OBV"<REF("OBV.OBV",1),3))=3),'OBV能量潮显示买盘无力属卖出信号。'),colorFF00;
- EXPLAIN(CROSS("OBV.OBV",0) AND (COUNT(REF("OBV.OBV",1)<0,3))=3,'OBV能量潮由负转正属买入信号。'),colorFF;
- EXPLAIN(CROSS(0,"OBV.OBV") AND (COUNT(REF("OBV.OBV",1)>0,3))=3,'OBV能量潮由正转负属卖出信号。'),colorFF00;
- EXPLAIN(HHV(HIGH,20)=HIGH AND NOT(HHV("OBV.OBV",20)="OBV.OBV"),'OBV能量潮顶背离属卖出信号。'),colorFF00;
- EXPLAIN(LLV(LOW,20)=LOW AND NOT(LLV("OBV.OBV",20)="OBV.OBV"),'OBV能量潮底背离属买入信号。'),colorFF;
- EXPLAIN((ABS("OBV.OBV"-REF("OBV.OBV",1)))/ABS(MA("OBV.OBV",5))>0.07 AND "OBV.OBV">REF("OBV.OBV",1),'OBV能量潮异常。若股价在高位属卖出信号,若OBV能量线在低位长时间横向整理后出现,属买入信号。'),colorFF00FF;
- EXPLAIN("CR.CR"<40,'CR能量指标超卖,提示股价形成底部,属买入信号。'),colorFF;
- EXPLAIN("CR.CR"<=400 AND "CR.CR">=300,'CR能量指标超买,属卖出信号。'),colorFF00;
- EXPLAIN(LLV(LOW,20)=LOW AND NOT(LLV("CR.CR",20)="CR.CR"),'CR能量指标底背离,属买入信号。'),colorFF;
- EXPLAIN(HHV(HIGH,20)=HIGH AND NOT(HHV("CR.CR",20)="CR.CR"),'CR能量指标顶背离,属卖出信号。'),colorFF00;
- EXPLAIN(ABS("CR.MA1"-"CR.MA2")<5 AND ABS("CR.MA1"-"CR.MA3")<5 AND ABS("CR.MA2"-"CR.MA3")<5 OR ABS("CR.MA1"-"CR.CR")<5 AND ABS("CR.MA1"-"CR.MA3")<5 AND ABS("CR.CR"-"CR.MA3")<5,'CR能量指标异常,一波或长或短的上升或下跌行情即将展开。'),colorFF00FF;
- EXPLAIN("PSY"<10,'PSY心理线指标低位超卖区,属买入信号。'),colorFF;
- EXPLAIN(BETWEEN("PSY","PSY">10,"PSY"<25),'PSY心理线指标超卖,属买入信号。'),colorFF;
- EXPLAIN("PSY">75,'PSY心理线指标超买,属卖出信号。'),colorFF00;
- EXPLAIN(CROSS("ROC.ROC",0),'ROC变动速率指标向上突破,属买入信号。'),colorFF;
- EXPLAIN(CROSS(0,"ROC.ROC"),'ROC变动速率指标向下突破,属卖出信号。'),colorFF00;
- EXPLAIN(LLV(LOW,20)=LOW AND NOT((COUNT("ROC.ROC"<REF("ROC.ROC",1),30))>18 AND (COUNT("ROC.ROC"<REF("ROC.ROC",1),3))=3),'ROC变动速率指标,显示下跌动力减弱,属买入信号。'),colorFF;
- EXPLAIN(HHV(HIGH,20)=HIGH AND NOT((COUNT("ROC.ROC">REF("ROC.ROC",1),30))>18 AND (COUNT("ROC.ROC">REF("ROC.ROC",1),3))=3),'ROC变动速率指标,显示上涨动力减弱,属卖出信号。'),colorFF00;
- EXPLAIN((COUNT(CLOSE>REF(CLOSE,1),30))>18 AND (COUNT(CLOSE>REF(CLOSE,1),3))=3 AND (COUNT("ROC.ROC">REF("ROC.ROC",1),30))>18 AND (COUNT("ROC.ROC">REF("ROC.ROC",1),3))=3,'ROC变动速率指标显示短期反弹有望,属买入信号。'),colorFF;
- EXPLAIN((COUNT(CLOSE<REF(CLOSE,1),30))>18 AND (COUNT(CLOSE<REF(CLOSE,1),3))=3 AND (COUNT("ROC.ROC"<REF("ROC.ROC",1),30))>18 AND (COUNT("ROC.ROC"<REF("ROC.ROC",1),3))=3,'ROC变动速率指标显示短期警惕回落,属卖出信号。'),colorFF00;
- EXPLAIN("VR"<20,'VR容量比率指标显示股价即将涨升,建议积极买入。'),colorFF;
- EXPLAIN("VR">400,'VR容量比率指标显示后续资金枯竭,股价将可能高位下跌,属卖出信号。'),colorFF00;
- EXPLAIN(("VR"/REF("VR",1)>=2 OR "VR"/REF("VR",2)>=2) AND (COUNT(CLOSE<=REF(CLOSE,1),5))>=3,'VR容量比率指标异常,显示股价即将涨升,属买入信号。'),colorFF;
- EXPLAIN("VR">300 AND (COUNT("VR"<REF("VR",1),5))>=3 AND (COUNT(CLOSE>REF(CLOSE,1),5))>=3,'VR容量比率指标显示涨势耗尽,建议卖出。'),colorFF00;
- VV6:=(2*CLOSE+HIGH+LOW)/4;
- VV7:=LLV(LOW,27);
- VV8:=HHV(HIGH,27);
- 攀:=EMA((VV6-VV7)/(VV8-VV7)*100,13)-50;
- 金:=EMA(0.618*REF(攀,1)+0.382*攀,3);
- 起攀:=CROSS(攀,金) AND CLOSE>OPEN;
- EXPLAIN(CROSS(攀,金) AND CLOSE>OPEN,'起攀指标发出起攀买入信号。'),colorFF;
- EXPLAIN(1=1,'【均线系统分析】'),colorFFFF;
- MA5:=MA(CLOSE,5);
- MA10:=MA(CLOSE,10);
- MA30:=MA(CLOSE,30);
- MA60:=MA(CLOSE,60);
- MA125:=MA(CLOSE,125);
- MA250:=MA(CLOSE,250);
- EXPLAIN(MA5>MA10 AND MA10>MA30 AND MA5>MA30,'短期均线多头排列;'),colorFF;
- EXPLAIN(MA5<MA10 AND MA10<MA30 AND MA5<MA30,'短期均线空头排列;'),colorFF00;
- EXPLAIN(MA30>MA60 AND MA30>MA125 AND MA60>MA125,'中期均线多头排列;'),colorFF;
- EXPLAIN(MA30<MA60 AND MA30<MA125 AND MA60<MA125,'中期均线空头列排;'),colorFF00;
- EXPLAIN(MA60>MA125 AND MA125>MA250 AND MA60>MA250,'长期均线多头排列;'),colorFF;
- EXPLAIN(MA60<MA125 AND MA125<MA250 AND MA60<MA250,'长期均线空头排列;'),colorFF00;
- EXPLAIN(CROSS(MA5,MA10),'短期5日10日均线金叉;'),colorFF;
- EXPLAIN(CROSS(MA10,MA5),'短期5日10日均线死叉;'),colorFF00;
- EXPLAIN(CROSS(CLOSE,MA125),'今日股价上穿半年线;'),colorFF00FF;
- EXPLAIN(CROSS(MA125,CLOSE),'今日股价跌破半年线;'),colorFF00;
- EXPLAIN(CROSS(CLOSE,MA250),'今日股价上穿一年线;'),colorFF00FF;
- EXPLAIN(CROSS(MA250,CLOSE),'今日股价跌破一年线;'),colorFF00;
- EXPLAIN(CROSS(CLOSE,MA60) AND CROSS(CLOSE,MA125) AND CROSS(CLOSE,MA250),'股价一阳穿三线;'),colorFF;
- EXPLAIN(MA30>REF(MA30,1),'30日均线趋势向上;'),colorFF;
- EXPLAIN(MA30>REF(MA30,1) AND MA30<REF(MA30,1)*1.001,'30日均线趋势走平;'),colorFFCC66;
- EXPLAIN(MA30<REF(MA30,1),'30日均线趋势向下;'),colorFF00;
- EXPLAIN(MA5>REF(MA5,1)*1.015,'5日均线强劲向上;'),colorFF;
- EXPLAIN(MA5>REF(MA5,1) AND MA5<REF(MA5,1)*1.005,'5日均线方向不明;'),colorFFFF;
- EXPLAIN(MA5<REF(MA5,1)*0.985,'5日均线快速向下;'),colorFF00;
- SH1:=(EMA(CLOSE,3)-EMA(CLOSE,6))*5;
- XX线:EMA(SH1,7)+EMA(CLOSE,5),LINETHICK0,PRECISION2,colorFF00FF;
- SH3:=REF(XX线,1);
- PARTLINE(XX线>=SH3,XX线),LINETHICK2,colorFF00FF;
- PARTLINE(XX线<=SH3,XX线),LINETHICK2,colorFFFFFF;
- n 5 0 100
- n1 10 0 100
- n2 20 0 100
- n3 30 0 100
下载链接:( 说明:股海资源如需解压密码的请输入本站域名:www.guhai.com.cn请仔细输入!)
|
上一篇:航海家海洋追涨
下一篇:领涨板块中领涨个股前8名