最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 操盘参考(自用公式 主图 九毛八公式指标网)

    正文概述    2024-04-08 00:23:41  

    操盘参考(自用公式 主图 源码)

    重心:=(C+0.618*REF(C,1)+0.382*REF(C,2)+0.236*REF(C,3)+0.146*REF(C,4))/2.382;
    趋势线:=EMA(((SLOPE(C,22)*20)+C),55),COLORYELLOW,LINETHICK2;
    DRAWICON(重心 =趋势线,趋势线,10),COLORRED,LINETHICK2;
    DRAWICON(重心 趋势线,趋势线,11),COLORBLUE,LINETHICK2;
    ma5:ma(c,5);
    ma13:ma(c,13);
    ma34:ma(c,34);
    MA60:MA(C,60);
    乖离:(C/MA60-1)*100,COLORFF00FF,linethick0;
    MA120:MA(C,120),COLORblue,linethick0;
    MA240:MA(C,240),COLORred,linethick0;
    STICKLINE((OPEN = CLOSE),CLOSE,OPEN,9,0),colorFF5B00;
    STICKLINE((OPEN = CLOSE),CLOSE,OPEN,8,0),colorFF6C00;
    STICKLINE((OPEN = CLOSE),CLOSE,OPEN,7,0),colorFF7B00;
    STICKLINE((OPEN = CLOSE),CLOSE,OPEN,6,0),colorFF9C00;
    STICKLINE((OPEN = CLOSE),CLOSE,OPEN,5,0),colorFFBE00;
    STICKLINE((OPEN = CLOSE),CLOSE,OPEN,3.5,0),colorFFCC00;
    STICKLINE((OPEN = CLOSE),CLOSE,OPEN,1.5,0),colorFFFF00;
    STICKLINE((CLOSE = OPEN),CLOSE,OPEN,9,0),color070084;
    STICKLINE((CLOSE = OPEN),CLOSE,OPEN,8,0),color0000A3;
    STICKLINE((CLOSE = OPEN),CLOSE,OPEN,7,0),color0000B7;
    STICKLINE((CLOSE = OPEN),CLOSE,OPEN,6,0),color0000CD;
    STICKLINE((CLOSE = OPEN),CLOSE,OPEN,5,0),color0000E9;
    STICKLINE((CLOSE = OPEN),CLOSE,OPEN,3,0),color0754E9;
    STICKLINE((CLOSE = OPEN),CLOSE,OPEN,1.5,0),color076EF3;
    STICKLINE((CLOSE = OPEN),CLOSE,OPEN,1,0),color077BF3;
    STICKLINE((CLOSE OPEN),OPEN,LOW,1,0),color0726CA;
    STICKLINE((CLOSE OPEN),CLOSE,HIGH,1,0),color0726CA;
    STICKLINE((OPEN CLOSE),CLOSE,LOW,1,0),colorDE9100;
    STICKLINE((OPEN CLOSE),OPEN,HIGH,1,0),colorDE9100;

    VAR1:=((((HHV((((EMA(CLOSE,12)-EMA(CLOSE,26))-(EMA((EMA(CLOSE,12)-EMA(CLOSE,26)),9)))*2),4) 0) AND ((((EMA(CLOSE,12)-EMA(CLOSE,26))-(EMA((EMA(CLOSE,12)-EMA(CLOSE,26)),9)))*2) REF((((EMA(CLOSE,12)-EMA(CLOSE,26))-(EMA((EMA(CLOSE,12)-EMA(CLOSE,26)),9)))*2),1))) AND (REF((((EMA(CLOSE,12)-EMA(CLOSE,26))-(EMA((EMA(CLOSE,12)-EMA(CLOSE,26)),9)))*2),1) REF((((EMA(CLOSE,12)-EMA(CLOSE,26))-(EMA((EMA(CLOSE,12)-EMA(CLOSE,26)),9)))*2),2))) AND (REF((((EMA(CLOSE,12)-EMA(CLOSE,26))-(EMA((EMA(CLOSE,12)-EMA(CLOSE,26)),9)))*2),2) REF((((EMA(CLOSE,12)-EMA(CLOSE,26))-(EMA((EMA(CLOSE,12)-EMA(CLOSE,26)),9)))*2),3)));
    DRAWICON(VAR1,L*0.98,6);
    DRAWTEXT(VAR1,L*0.97,'短买'),COLORYELLOW;
    DRAWICON(CROSS(MA(C,3),MA(C,9)) AND C =REF(C,1) AND C O,L*0.98,7);
    DRAWTEXT(CROSS(MA(C,3),MA(C,9)) AND C =REF(C,1) AND C O,L*0.97,'加仓'),COLORred;

    {X:=(BARSLAST((SYSPARAM(2)=BARPOS))+1);
    NS:=IF((HHV(ABS(((HHV(CLOSE,6)/LLV(CLOSE,6))-1)),6) (10/100)),3,6);
    N1:=IF((DATATYPE=2),(NS*48),IF((DATATYPE=3),(NS*16),IF((DATATYPE=4),(NS*8),IF((DATATYPE=5),(NS*4),NS))));
    MM:=IF((((STKTYPE=0) OR (P=0)) OR (VOL=0)),MA(CLOSE,N1),((SUM(AMOUNT,N1)/SUM(VOL,N1))/100));
    M1:=REF(MM,1);
    买入:=IF(CROSS(CLOSE,M1),M1,0);
    卖出:=IF(CROSS(M1,CLOSE),M1,0);
    DW:=BARSLAST((卖出
    EX10:=HHV((买入 0),(DW+1));
    BJ:=IF((EX10 REF(EX10,1)),买入,0);
    DRAWICON(BJ 0,LOW*0.97,6);}

    VAR82:=((((2*CLOSE)+HIGH)+LOW) / 4);
    VAR84:=LLV(LOW,5);
    VAR85:=HHV(HIGH,4);
    C1:=(EMA((((VAR82-VAR84)/(VAR85-VAR84))*100),4)),COLORFF00FF,LINETHICK2;
    C2:=(EMA(((0.667*REF(C1,1))+(0.333*C1)),2)),COLORFFFFFF,LINETHICK2;

    TJ3:=CROSS(C1,C2) AND REF(C1,1)
    DRAWTEXT(TJ3,L*0.96,'底'),COLORFF00FF;

    X1:=(3*CLOSE+HIGH+LOW+OPEN)/6;
    X2:=EMA(X1,10);
    X3:=REF(X2,1);
    X4:=(REF(HIGH,1)+REF(LOW,1))/2;
    X5:=MA(CLOSE,21)+2*STD(CLOSE,21);
    X6:=REF(CLOSE,1);
    X7:=(SMA(MAX(CLOSE-X6,0),7,1))/(SMA(ABS(CLOSE-X6),7,1))*100;
    X8:=CROSS(79,X7);
    X9:=FILTER(X8,4);
    WZ1:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);
    WZ2:=POW(MA(LOW,5),2)+MA(LOW,5);
    WZ3:=POW(MA(HIGH,5),2)+MA(HIGH,5);
    WZ4:=(WZ1-LLV(WZ2,9))/(HHV(WZ3,9)-LLV(WZ2,9))*150+65;
    DK:=SMA(WZ4,3,1)*1.5;
    DD:=SMA(DK,3,1);
    DJ:=3*DK-2*DD;
    WZ5:=EMA(CLOSE,12)-EMA(CLOSE,26);
    WZ6:=EMA(WZ5,9);
    WZ7:=2*(WZ5-WZ6);
    WZ8:=REF(WZ7,1);
    WZ9:=CROSS(WZ8,WZ7) AND WZ8
    VAR1T:=EMA(CLOSE,8);
    VAR2T:=EMA(VAR1T,20);
    VAR3T:=CROSS(VAR1T,VAR2T);
    VAR4T:=VAR1T MA(CLOSE,120);
    VAR5T:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;
    VAR6T:=SMA(VAR5T,5,1);
    VAR7T:=SMA(VAR6T,8,1);
    VAR8T:=CROSS(VAR6T,VAR7T) AND VAR7T
    VAR9T:=CLOSE LLV(CLOSE,60)+0.3*LLV(CLOSE,60) AND VAR8T;
    VARA:=IF(CLOSE 1000,VAR8T,VAR9T);
    起步:=VAR3T AND VAR4T;
    逃遁:=VARA;
    XL1:=EMA(CLOSE,10)/100;
    XL2:=MA((XL1-REF(XL1,10))/REF(XL1,10),3)*100;
    XL3:=MA(XL2,3);
    XL4:=SMA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,3,1);
    {DRAWTEXT(IF(CROSS(3*XL4-2*SMA(XL4,3,1),8),87,0) AND X2 X3,LOW-0.1,' 反弹'),colorFF00;
    DRAWTEXT(IF(CROSS((VAR1T-LLV(VAR1T,4))/(HHV(VAR1T,4)-LLV(VAR1T,4))*4*25,87.5) AND VAR1T 40,87,0) AND X2 X3,LOW,' 短买'),colorFFFF00;}
    AA05:=MA(C,3),LINETHICK3,COLOR00CCFF;
    五日乖离率:=(C-AA05)/AA05*100;
    BB05:=ATAN((AA05/REF(AA05,1)-1)*100)*180/3.1416;
    速度5:=SMA(EMA((AA05-REF(AA05,1))/REF(AA05,1),3)*100,3,1);
    加速度5:=EMA((速度5-REF(速度5,1)),3),LINETHICK0;
    {AA10:=MA(C,10);AA20:=MA(C,20);
    AA30:=MA(C,30);
    三拾日乖离率:=(C-AA30)/AA30*100,LINETHICK0;
    加仓:=FILTER(COUNT(CROSS(BB05,30),5) =1 AND AA05 REF(AA05,1) AND 三拾日乖离率 REF(三拾日乖离率,1) AND AA10 REF(AA10,1)
    AND 加速度5 REF(加速度5,1) AND 速度5 REF(速度5,1) ,10) ;

    DRAWTEXT(加仓 and 重心 =趋势线 ,LOW*0.98,' 加仓'),COLORred;}
    {DRAWTEXT(IF(CROSS(2*(EMA((CLOSE*2+HIGH+LOW)/4,12)-EMA((CLOSE*2+HIGH+LOW)/4,26)-(EMA(EMA((CLOSE*2+HIGH+LOW)/4,12)-EMA((CLOSE*2+HIGH+LOW)/4,26),2)))*5.8,0.47),LOW,0) AND X2 X3,LOW-0.2,' 加仓'),colorFF5ED8;}
    DRAWTEXT(CROSS(X4,X5),HIGH*1.0,' 减'),colorB4FF;
    DRAWTEXT(FILTER((WZ9 AND DJ 250) OR X9 ,5),HIGH*1.05,' 跑'),colorBCFF8B;
    {STICKLINE(起步 0,HIGH,LOW,0.8,0),color00FFFF;
    STICKLINE(起步 0,OPEN,CLOSE,5,0),color00FFFF;
    DRAWTEXT(逃遁 0,HIGH*1.04,'● 逃'),color7FFFD6;}
    X1:=(C+L+H)/3;
    BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10;
    EMA8:=EMA(C,8);
    DRAWTEXT(FILTER(BB13 1 AND EMA(X1,13) REF(EMA(X1,8),1),10),
    EMA8,' 45上升'),COLORWHITE;
    VAR3aa:=IF((CLOSE REF(CLOSE,1)),88,0);
    VAR4aa:=IF(((CLOSE)/(REF(CLOSE,1)) 1.05) AND ((HIGH)/(CLOSE) 1.01) AND (VAR3aa 0),91,0);
    DRAWTEXT(FILTER((VAR4aa 90),45),(LOW)*(0.94999998),'★大胆搏 '),ColorFF00FF;
    L23:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
    L24:=(HIGH+LOW+CLOSE)/3;
    L25:=(L24-MA(L24,14))/(0.015*AVEDEV(L24,14));
    L26:=(L24-MA(L24,70))/(0.015*AVEDEV(L24,70));
    L27:=IF(L25 =150 AND L25 200 AND L26 =150 AND L26 200,10,0);
    L28:=IF(L25 =-150 AND L25 -200 AND L26 =-150 AND L26 -200,-10,L27);
    L29:=100-ABS((CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100);
    L30:=IF(L29 90,L29,100);
    L31:=IF(L23 0,L23,0);
    XL1:=(IF(L28 =200 AND L25 =150,15,IF(L26 =-200 AND L25 =-150,-15,L28)))+60;
    XL2:=L31 48 AND XL1 60 AND L30
    DRAWTEXT(XL2 AND COUNT(XL2,30)=1,l,'大笔成交'),colorFF00FF;
    AAA:=(3*C+H+L+O)/6;
    VAR1:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36;

    TJ1:=VOL=HHV(VOL,10) AND VOL 2*REF(VOL,1) AND CLOSE VAR1;
    立桩量:=FILTER(TJ1,5);
    TJ2:=IF(BARSLAST(立桩量)=1 AND CLOSE REF(HIGH,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE REF(HIGH,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE REF(HIGH,3),1,0)));
    突破:=TJ2=1;

    TJ3:=IF(BARSLAST(立桩量)=1 AND CLOSE REF(LOW,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE REF(LOW,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE REF(LOW,3),1,0)));
    三天法则:=TJ3=1;
    成立:=三天法则 AND 突破;
    条件成立:=FILTER(成立,3);
    DRAWTEXT(条件成立,h*1.08,'★立桩量'),COLORYELLOW;

    {阳光普照解盘原码}
    INDEXC= 1a0001$close ,linethick0;
    B1:=(CLOSE / INDEXC);
    B2:=MA(B1,5);
    B3:=MA(B1,10);
    B4:=MA(CLOSE,20);
    B5:=(CLOSE MA(CLOSE,5));
    B6:=(MA(CLOSE,5) MA(CLOSE,10));
    B7:=(CLOSE MA(CLOSE,10));
    B8:=(MA(CLOSE,5) MA(CLOSE,20));
    B9:=(CLOSE MA(CLOSE,20));
    B10:=REF(B4,1);
    B11:=(B4 B10);
    B12:=(((((IF(B5,10,(0 - 10)) + IF(B6,10,(0 - 10))) + IF(B7,10,(0 - 10))) + IF(B8,10,(0 - 10))) + IF(B9,10,(0 - 10))) + IF(B11,10,(0 - 10)));
    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,(0 - 10)) + IF(A6,10,(0 - 10))) + IF(A7,10,(0 - 10))) + IF(A8,10,(0 - 10))) + IF(A9,10,(0 - 10))) + IF(A11,10,(0 - 10)));
    DSLX:=(CLOSE / INDEXC);
    DSLX1:=MA(DSLX,5);
    DSLX2:=MA(DSLX,10);
    V1:=MA(VOL,5);
    V2:=MA(VOL,10);
    阻力位:=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),止损位);
    情况1:=((CROSS(AVX,1) AND (V1 = V2)) AND (DSLX = DSLX1));
    情况2:=((CROSS(AVX,1) AND (V1 V2)) AND (DSLX = DSLX1));
    情况3:=((CROSS(AVX,1) AND (V1 V2)) AND (DSLX DSLX1));
    情况4:=((CROSS(AVX,1) AND (V1 = V2)) AND (DSLX DSLX1));
    情况5:=((CROSS(1,AVX) AND (V1 = V2)) AND (DSLX = DSLX1));
    情况6:=((CROSS(1,AVX) AND (V1 V2)) AND (DSLX = DSLX1));
    情况7:=((CROSS(1,AVX) AND (V1 = V2)) AND (DSLX DSLX1));
    情况8:=((CROSS(1,AVX) AND (V1 V2)) AND (DSLX DSLX1));
    情况9:=((((AVX = 1) AND (REF(AVX,1) 0)) AND (V1 = V2)) AND (DSLX = DSLX1));
    情况10:=((((AVX = 1) AND (REF(AVX,1) 0)) AND (V1 V2)) AND (DSLX = DSLX1));
    情况11:=((((AVX = 1) AND (REF(AVX,1) 0)) AND (V1 = V2)) AND (DSLX DSLX1));
    情况12:=((((AVX = 1) AND (REF(AVX,1) 0)) AND (V1 V2)) AND (DSLX DSLX1));
    情况13:=((((AVX 1) AND (REF(AVX,1) 0)) AND (V1 = V2)) AND (DSLX = DSLX1));
    情况14:=((((AVX 1) AND (REF(AVX,1) 0)) AND (V1 V2)) AND (DSLX = DSLX1));
    情况15:=((((AVX 1) AND (REF(AVX,1) 0)) AND (V1 = V2)) AND (DSLX DSLX1));
    情况16:=((((AVX 1) AND (REF(AVX,1) 0)) AND (V1 V2)) AND (DSLX DSLX1));
    大盘1:=(CROSS(AVX,1) AND (V1 = V2));
    大盘2:=(CROSS(AVX,1) AND (V1 V2));
    大盘3:=(CROSS(1,AVX) AND (V1 = V2));
    大盘4:=(CROSS(1,AVX) AND (V1 V2));
    大盘5:=(((AVX = 1) AND (REF(AVX,1) 0)) AND (V1 = V2));
    大盘6:=(((AVX = 1) AND (REF(AVX,1) 0)) AND (V1 V2));
    大盘7:=(((AVX 1) AND (REF(AVX,1) 0)) AND (V1 = V2));
    大盘8:=(((AVX 1) AND (REF(AVX,1) 0)) AND (V1 V2));
    EXPLAIN((情况1 AND (CLOSE 200)),'★★★★★'),,colorFF;
    EXPLAIN((情况1 AND (CLOSE 200)),'该股的量能理想,有明显走强迹象,可以考虑中线进场参与,仓位在2/3左右。'),,colorFF;
    EXPLAINEX((情况1 AND (CLOSE 200)),'阻力位:',阻力位1,2,1),,colorFF;
    EXPLAINEX((情况1 AND (CLOSE 200)),'止损位:',止损位1,2,1),,colorFF;
    EXPLAIN((情况2 AND (CLOSE 200)),'★★★★'),,colorFF;
    EXPLAIN((情况2 AND (CLOSE 200)),'该股虽然走势趋强,但量能还显不足,可以考虑短线进场,仓位在1/2左右。'),,colorFF;
    EXPLAINEX((情况2 AND (CLOSE 200)),'阻力位:',阻力位1,2,1),,colorFF;
    EXPLAINEX((情况2 AND (CLOSE 200)),'止损位:',止损位1,2,1),,colorFF;
    EXPLAIN((情况3 AND (CLOSE 200)),'★★★'),,colorFF;
    EXPLAIN((情况3 AND (CLOSE 200)),'该股量价配合良好,但相对其它股票并没有明显走强,可以考虑短线进场,仓位1/2左右。'),,colorFF;
    EXPLAINEX((情况3 AND (CLOSE 200)),'阻力位:',阻力位1,2,1),,colorFF;
    EXPLAINEX((情况3 AND (CLOSE 200)),'止损位:',止损位1,2,1),,colorFF;
    EXPLAIN((情况4 AND (CLOSE 200)),'★★'),,colorFF;
    EXPLAIN((情况4 AND (CLOSE 200)),'该股形态尚可,但量能不足,股票也未完全走强,可以短线参与,仓位1/3左右。'),,colorFF;
    EXPLAINEX((情况4 AND (CLOSE 200)),'阻力位:',阻力位1,2,1),,colorFF;
    EXPLAINEX((情况4 AND (CLOSE 200)),'止损位:',止损位1,2,1),,colorFF;
    EXPLAIN((情况5 AND (CLOSE 200)),'该股形态变坏,但走势相对其它股票尚可,重仓者减持大半,清仓者可以观望。'),,colorFF00;
    EXPLAINEX((情况5 AND (CLOSE 200)),'阻力位:',阻力位1,2,1),,colorFF00;
    EXPLAINEX((情况5 AND (CLOSE 200)),'止损位:',止损位1,2,1),,colorFF00;
    EXPLAIN((情况6 AND (CLOSE 200)),'该股随大盘一起下跌,程明显缩量走势,考虑到大盘风险,减持或清仓。'),,colorFF00;
    EXPLAINEX((情况6 AND (CLOSE 200)),'阻力位:',阻力位1,2,1),,colorFF00;
    EXPLAINEX((情况6 AND (CLOSE 200)),'止损位:',止损位1,2,1),,colorFF00;
    EXPLAIN((情况7 AND (CLOSE 200)),'该股放量下跌,走势明显偏弱,离场观望。'),,colorFF00;
    EXPLAINEX((情况7 AND (CLOSE 200)),'阻力位:',阻力位1,2,1),,colorFF00;
    EXPLAINEX((情况7 AND (CLOSE 200)),'止损位:',止损位1,2,1),,colorFF00;
    EXPLAIN((情况8 AND (CLOSE 200)),'该股缩量下跌,走势偏弱,离场观望。'),,colorFF00;
    EXPLAINEX((情况8 AND (CLOSE 200)),'阻力位:',阻力位1,2,1),,colorFF00;
    EXPLAINEX((情况8 AND (CLOSE 200)),'止损位:',止损位1,2,1),,colorFF00;
    EXPLAIN((情况9 AND (CLOSE 200)),'该股形态良好,强势明显,量能充足,可以继续持有。'),,colorFFFF;
    EXPLAINEX((情况9 AND (CLOSE 200)),'阻力位:',阻力位1,2,1),,colorFFFF;
    EXPLAINEX((情况9 AND (CLOSE 200)),'止损位:',止损位1,2,1),,colorFFFF;
    EXPLAIN((情况10 AND (CLOSE 200)),'该股上行趋势不变,强势依然,但量能开始转弱,注意风险。'),,colorFFFF;
    EXPLAINEX((情况10 AND (CLOSE 200)),'阻力位:',阻力位1,2,1),,colorFFFF;
    EXPLAINEX((情况10 AND (CLOSE 200)),'止损位:',止损位1,2,1),,colorFFFF;
    EXPLAIN((情况11 AND (CLOSE 200)),'该股仍然具备上涨潜力,但股性偏弱,可考虑减仓。'),,colorFFFF;
    EXPLAINEX((情况11 AND (CLOSE 200)),'阻力位:',阻力位1,2,1),,colorFFFF;
    EXPLAINEX((情况11 AND (CLOSE 200)),'止损位:',止损位1,2,1),,colorFFFF;
    EXPLAIN((情况12 AND (CLOSE 200)),'该股走势趋弱,量能不足,减持大部分筹码。'),,colorFFFF;
    EXPLAINEX((情况12 AND (CLOSE 200)),'阻力位:',阻力位1,2,1),,colorFFFF;
    EXPLAINEX((情况12 AND (CLOSE 200)),'止损位:',止损位1,2,1),,colorFFFF;
    EXPLAIN((情况13 AND (CLOSE 200)),'该股形态不佳,注意成交量的变化,但目前不适合参与。'),;
    EXPLAINEX((情况13 AND (CLOSE 200)),'阻力位:',阻力位1,2,1),;
    EXPLAINEX((情况13 AND (CLOSE 200)),'止损位:',止损位1,2,1),;
    EXPLAIN((情况14 AND (CLOSE 200)),'该股趋势不明,股价偏弱,注意量能变化,目前不宜参与。'),;
    EXPLAINEX((情况14 AND (CLOSE 200)),'阻力位:',阻力位1,2,1),;
    EXPLAINEX((情况14 AND (CLOSE 200)),'止损位:',止损位1,2,1),;
    EXPLAIN((情况15 AND (CLOSE 200)),'该股有走强迹象,但量能不足,趋势不明,不适合操作。'),;
    EXPLAINEX((情况15 AND (CLOSE 200)),'阻力位:',阻力位1,2,1),;
    EXPLAINEX((情况15 AND (CLOSE 200)),'止损位:',止损位1,2,1),;
    EXPLAIN((情况16 AND (CLOSE 200)),'该股走势太弱,没有参与价值。'),;
    EXPLAINEX((情况16 AND (CLOSE 200)),'阻力位:',阻力位1,2,1),;
    EXPLAINEX((情况16 AND (CLOSE 200)),'止损位:',止损位1,2,1),;
    EXPLAIN((情况1 AND (CLOSE 200)),'大盘量能理想,有明显走强迹象,可以考虑中线进场参与,仓位在2/3左右, 如前期经过一轮下跌,此时为最佳买点,但如果前期有过一段涨幅则介入需谨慎。'),,colorFF;
    EXPLAINEX((大盘1 AND (CLOSE 200)),'阻力位:',阻力位1,2,1),,colorFF;
    EXPLAINEX((大盘1 AND (CLOSE 200)),'止损位:',止损位1,2,1),,colorFF;
    EXPLAIN((大盘2 AND (CLOSE 200)),'大盘虽然走势趋强,但量能还显不足,如果前期经过一轮下跌, 可以考虑短线进场,仓位在1/2左右,一旦量能放大可以加仓买入。'),,colorFF;
    EXPLAINEX((大盘2 AND (CLOSE 200)),'阻力位:',阻力位1,2,1),,colorFF;
    EXPLAINEX((大盘2 AND (CLOSE 200)),'止损位:',止损位1,2,1),,colorFF;
    EXPLAIN((大盘3 AND (CLOSE 200)),'大盘形态走坏,重仓者可以减去大部分仓位。'),,colorFF00;
    EXPLAINEX((情况3 AND (CLOSE 200)),'阻力位:',阻力位1,2,1),,colorFF00;
    EXPLAINEX((情况3 AND (CLOSE 200)),'止损位:',止损位1,2,1),,colorFF00;
    EXPLAIN((大盘4 AND (CLOSE 200)),'大盘缩量调整,注意风险,短线清仓观望。'),,colorFF00;
    EXPLAINEX((大盘4 AND (CLOSE 200)),'阻力位:',阻力位1,2,1),,colorFF00;
    EXPLAINEX((大盘4 AND (CLOSE 200)),'止损位:',止损位1,2,1),,colorFF00;
    EXPLAIN((大盘5 AND (CLOSE 200)),'大盘走势良好,量能理想,可以继续持有强势股。'),,colorFFFF;
    EXPLAINEX((大盘5 AND (CLOSE 200)),'阻力位:',阻力位1,2,1),,colorFFFF;
    EXPLAINEX((大盘5 AND (CLOSE 200)),'止损位:',止损位1,2,1),,colorFFFF;
    EXPLAIN((大盘6 AND (CLOSE 200)),'大盘形态良好,但量能稍显不足,随时准备减仓。'),,colorFFFF;
    EXPLAINEX((大盘6 AND (CLOSE 200)),'阻力位:',阻力位1,2,1),,colorFFFF;
    EXPLAINEX((大盘6 AND (CLOSE 200)),'止损位:',止损位1,2,1),,colorFFFF;
    EXPLAIN((大盘7 AND (CLOSE 200)),'大盘趋势不明,注意成交量变化,目前不适宜进场。'),;
    EXPLAINEX((大盘7 AND (CLOSE 200)),'阻力位:',阻力位1,2,1),;
    EXPLAINEX((大盘7 AND (CLOSE 200)),'止损位:',止损位1,2,1),;
    EXPLAIN((大盘8 AND (CLOSE 200)),'大盘趋势向下,量能萎缩,不适合进场。'),;
    EXPLAINEX((大盘8 AND (CLOSE 200)),'阻力位:',阻力位1,2,1),;
    EXPLAINEX((大盘8 AND (CLOSE 200)),'止损位:',止损位1,2,1),;

    ZLCM:=EMA(WINNER(CLOSE)*70,3);
    SHCM:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);
    ZSHTL:=SHCM/(ZLCM+SHCM)*100;
    ZZLKP:=ZLCM/(ZLCM+SHCM)*100;
    ZCMZL:=MA(ZLCM+SHCM,13);
    ZZNTS:=BARSLAST(ZSHTL 90 AND REF(ZSHTL,1)
    ZSHJJ:=EMA(ZSHTL,89);
    ZZLJJ:=EMA(ZZLKP,89);
    ZJLRQD:=ROUND(ZZLKP-ZZLJJ);
    SH8:=EMA(ZSHTL,8);
    DKB:=IF(ZZLKP-REF(ZZLKP,1) ZSHTL-REF(ZSHTL,1),1,0);
    散户套牢系数:=ROUND(ZSHTL);
    主力控盘系数:=ROUND(ZZLKP);
    资金流入强度:=ZJLRQD;
    市场筹码总量:=ROUND(ZCMZL);
    EXPLAIN(ZCMZL REF(ZCMZL,1) AND DKB=1,'主力动向监控:主力增仓'),colorFF;
    EXPLAIN(ZCMZL REF(ZCMZL,1) AND DKB=0,'主力动向监控:主力减仓'),colorFF00FF;
    EXPLAIN(ZCMZL=REF(ZCMZL,1),'主力动向监控:多空平衡'),color808080;
    EXPLAIN(ZCMZL REF(ZCMZL,1) AND DKB=1,'主力动向监控:主力回补'),colorFF9933;
    EXPLAIN(ZCMZL REF(ZCMZL,1) AND DKB=0,'主力动向监控:主力出逃'),colorFF00;
    EXPLAIN(ZSHTL 90,'特别信号提示:筑底散兵坑'),color66FFCC;
    EXPLAIN(ZZLKP 75,'特别信号提示:铸顶风险区'),colorFFFF00;
    EXPLAIN(CROSS(ZCMZL,ZZLJJ) AND ZZLKP ZZLJJ AND ZZLKP 10 AND ZZLJJ REF(ZZLJJ,1) AND ZCMZL REF(ZCMZL,1),'特别信号提示:穿越警戒'),colorFF;
    EXPLAIN(CROSS(ZCMZL,ZZLKP) AND ZZLKP ZZLJJ AND ZZLKP ZSHTL AND ZZLKP 10 AND ZZLJJ REF(ZZLJJ,1) AND ZCMZL REF(ZCMZL,1),'特别信号提示:穿越主力'),colorFFFF;
    EXPLAIN(CROSS(ZCMZL,ZSHTL) AND ZSHTL ZZLKP AND ZCMZL REF(ZCMZL,1),'特别信号提示:穿越散户'),colorFF00;
    EXPLAIN(CROSS(ZCMZL,100) AND ZCMZL REF(ZCMZL,1),'特别信号提示:全盘穿越'),color3399FF;
    EXPLAIN(REF(ZSHTL,1) 90 AND ZSHTL 90,'特别信号提示:神秘黑洞'),color9966FF;

    {资金分析}
    R1:=MA(WINNER(CLOSE*0.9)*100*CLOSE,3);
    资金比:=(IF(R1 5,R1,0))/2;
    资金均量:=MA(资金比,5);
    VAR01:=REF(CLOSE,1);
    VAR02:=(SUM(IF(CLOSE VAR01,VOL,0),26))/(SUM(IF(CLOSE VAR01,VOL,0),26))*100;
    股价比:=EMA(VAR02,5);
    EXPLAIN(1=1,'【资金分析】'),colorFFFF;
    EXPLAIN(股价比 40,'该股处在底部区;'),colorFFCC66;
    EXPLAIN(股价比 =40 AND 股价比 80,'该股处在低位区;'),colorFFCC66;
    EXPLAIN(股价比 =80 AND 股价比 160,'该股处在盘整区;'),colorFFCC66;
    EXPLAIN(股价比 =160,'该股处在获利区;'),colorFFCC66;
    EXPLAIN(资金比 10 AND 资金比 资金均量,'有增量资金进入;'),colorFFCC66;
    EXPLAIN(资金比 10 AND 资金比 REF(资金比,1) AND 资金比 资金均量,'存量资金减量;'),colorFFCC66;
    VAR11:=MA(VOL/(HIGH-LOW),4);
    VAR33:=ABS(CLOSE-OPEN);
    VAR44:=VOL/(HIGH-LOW);
    EXPLAIN(VAR44 VAR11 AND VAR33 MA(VAR33,4),'场外资金暂时无入场意愿,量能萎缩中;'),colorFF00;
    EXPLAIN(VAR44 VAR11 AND VAR33 MA(VAR33,4),'场内资金运作行为,谨慎操作;'),colorFFCC66;
    EXPLAIN(VAR44 VAR11 AND VAR33 MA(VAR33,4),'多空双方激烈争夺中,积极关注;'),colorFF00FF;
    EXPLAIN(VAR44 VAR11 AND VAR33 MA(VAR33,4),'场外资金操作意愿强烈,密切注意他们的动向;'),colorFF;

    EXPLAIN(1=1,'【形态分析】'),colorFFFFFF;
    早晨之星:=REF(CLOSE,2)/REF(OPEN,2) 0.95 AND REF(OPEN,1) REF(CLOSE,2) AND (ABS(REF(OPEN,1)-REF(CLOSE,1)))/REF(CLOSE,1) 0.03 AND CLOSE/OPEN 1.05 AND CLOSE REF(CLOSE,2);
    黄昏之星:=REF(CLOSE,2)/REF(OPEN,2) 1.03 AND REF(OPEN,1) REF(CLOSE,2) AND (ABS(REF(OPEN,1)-REF(CLOSE,1)))/REF(CLOSE,1) 0.02 AND CLOSE/OPEN 0.97 AND CLOSE REF(CLOSE,2);
    长十字:=CLOSE=OPEN AND HIGH/LOW 1.03;
    垂死十字:=CLOSE=OPEN AND CLOSE=LOW AND CLOSE HIGH;
    早晨十字星:=REF(CLOSE,2)/REF(OPEN,2) 0.95 AND REF(OPEN,1) REF(CLOSE,2) AND REF(OPEN,1)=REF(CLOSE,1) AND CLOSE/OPEN 1.05 AND CLOSE REF(CLOSE,2);
    黄昏十字星:=REF(CLOSE,2)/REF(OPEN,2) 1.05 AND REF(OPEN,1) REF(CLOSE,2) AND REF(OPEN,1)=REF(CLOSE,1) AND CLOSE/OPEN 0.95 AND CLOSE REF(CLOSE,2);
    射击之星:=MIN(OPEN,CLOSE)=LOW AND HIGH-LOW 3*(MAX(OPEN,CLOSE)-LOW) AND CLOSE MA(CLOSE,5);
    倒转锤头:=MIN(OPEN,CLOSE)=LOW AND HIGH-LOW 3*(MAX(OPEN,CLOSE)-LOW) AND CLOSE MA(CLOSE,5);
    锤头:=HIGH=MAX(OPEN,CLOSE) AND HIGH-LOW 3*(HIGH-MIN(OPEN,CLOSE)) AND CLOSE MA(CLOSE,5);
    吊颈:=HIGH=MAX(OPEN,CLOSE) AND HIGH-LOW 3*(HIGH-MIN(OPEN,CLOSE)) AND CLOSE MA(CLOSE,5);
    穿头破脚:=REF(CLOSE,1)/REF(OPEN,1) 1.03 AND CLOSE/OPEN 0.96 AND CLOSE REF(OPEN,1) AND OPEN REF(CLOSE,1) OR REF(CLOSE,1)/REF(OPEN,1) 0.97 AND CLOSE/OPEN 1.04 AND CLOSE REF(OPEN,1) AND OPEN REF(CLOSE,1);
    乌云盖顶:=REF(CLOSE,1)/REF(OPEN,1) 1.03 AND CLOSE/OPEN 0.97 AND OPEN REF(CLOSE,1) AND CLOSE REF(CLOSE,1);
    曙光初现:=REF(CLOSE,1)/REF(OPEN,1) 0.97 AND CLOSE/OPEN 1.03 AND OPEN REF(CLOSE,1) AND CLOSE REF(CLOSE,1);
    身怀六甲:=(ABS(REF(CLOSE,1)-REF(OPEN,1)))/REF(CLOSE,1) 0.04 AND (ABS(CLOSE-OPEN))/CLOSE 0.005 AND MAX(CLOSE,OPEN) MAX(REF(CLOSE,1),REF(OPEN,1)) AND MIN(CLOSE,OPEN) MIN(REF(CLOSE,1),REF(OPEN,1));
    十字胎:=(ABS(REF(CLOSE,1)-REF(OPEN,1)))/REF(CLOSE,1) 0.04 AND CLOSE=OPEN AND CLOSE MAX(REF(CLOSE,1),REF(OPEN,1)) AND CLOSE MIN(REF(CLOSE,1),REF(OPEN,1));
    平顶:=(ABS(HIGH-REF(HIGH,1)))/HIGH 0.001;
    平底:=(ABS(LOW-REF(LOW,1)))/LOW 0.001 AND (ABS(REF(LOW,1)-REF(LOW,2)))/REF(LOW,1) =0.001;
    大阳烛:=CLOSE/OPEN 1.05 AND HIGH/LOW CLOSE/OPEN+0.018;
    三个白武士:=REF(CLOSE,2) REF(OPEN,2) AND REF(CLOSE,1) REF(OPEN,1) AND CLOSE OPEN AND REF(CLOSE,1) REF(CLOSE,2) AND CLOSE REF(CLOSE,1);
    双飞乌鸦:=REF(CLOSE,1) REF(OPEN,1) AND CLOSE OPEN AND CLOSE/OPEN 0.98;
    孕育线:=REF(CLOSE,2) REF(OPEN,2) AND (REF(CLOSE,2)-REF(OPEN,2))/REF(OPEN,2) =2/100 AND REF(OPEN,1) =REF(CLOSE,1) AND (REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1) =2/100 AND REF(OPEN,1) =REF(CLOSE,2) AND REF(CLOSE,1) =REF(OPEN,2) AND CLOSE =OPEN AND (CLOSE-OPEN)/OPEN =2/100 AND CLOSE =REF(OPEN,1) AND OPEN =REF(CLOSE,1) AND (MAX(CLOSE,REF(CLOSE,2))-MIN(CLOSE,REF(CLOSE,2)))/MIN(CLOSE,REF(CLOSE,2)) =1/100;
    多方炮:=REF(CLOSE,2) REF(OPEN,2) AND REF(CLOSE,1) REF(OPEN,1) AND CLOSE OPEN;
    出水芙蓉:=(OPEN EMA(CLOSE,20) OR OPEN EMA(CLOSE,40) OR OPEN EMA(CLOSE,60)) AND CLOSE MAX(EMA(CLOSE,20),MAX(EMA(CLOSE,40),EMA(CLOSE,60))) AND VOL/MA(VOL,30) 1.2 AND CLOSE/REF(CLOSE,1) 1.049;
    上升三部曲:=REF(CLOSE,4)/REF(OPEN,4) 1.03 AND REF(CLOSE,3) REF(OPEN,3) AND REF(CLOSE,2) REF(OPEN,2) AND REF(CLOSE,1) REF(OPEN,1) AND REF(LOW,4) REF(LOW,3) AND REF(LOW,4) REF(LOW,2) AND REF(LOW,4) REF(LOW,1) AND REF(HIGH,4) REF(HIGH,3) AND REF(HIGH,4) REF(HIGH,2) AND REF(HIGH,4) REF(HIGH,1) AND CLOSE/OPEN 1.03 AND CLOSE REF(CLOSE,4);
    下跌三部曲:=REF(CLOSE,4)/REF(OPEN,4) 0.97 AND REF(CLOSE,3) REF(OPEN,3) AND REF(CLOSE,2) REF(OPEN,2) AND REF(CLOSE,1) REF(OPEN,1) AND REF(LOW,4) REF(LOW,3) AND REF(LOW,4) REF(LOW,2) AND REF(LOW,4) REF(LOW,1) AND REF(HIGH,4) REF(HIGH,3) AND REF(HIGH,4) REF(HIGH,2) AND REF(HIGH,4) REF(HIGH,1) AND CLOSE/OPEN 0.97 AND CLOSE REF(CLOSE,4);
    跳空缺口:=HIGH REF(LOW,1) OR LOW REF(HIGH,1);
    三只乌鸦:=REF(CLOSE,2) REF(OPEN,2) AND REF(CLOSE,1) REF(OPEN,1) AND CLOSE OPEN AND REF(CLOSE,1) REF(CLOSE,2) AND CLOSE REF(CLOSE,1);
    光脚阴线:=LOW=CLOSE AND HIGH LOW;
    光头阳线:=HIGH=CLOSE AND HIGH LOW;
    分离:=OPEN=REF(OPEN,1) AND (CLOSE-OPEN)*(REF(CLOSE,1)-REF(OPEN,1))
    长下影:=(MIN(CLOSE,OPEN)-LOW)/(HIGH-LOW) 0.667;
    长上影:=(HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW) 0.667;
    十字星:=CLOSE=OPEN AND HIGH LOW;
    大阴烛:=OPEN/CLOSE 1.05 AND HIGH/LOW OPEN/CLOSE+0.018;
    好友反攻:=REF(CLOSE,1) REF(OPEN,1) AND CLOSE OPEN AND (ABS(CLOSE-REF(CLOSE,1)))/CLOSE 0.002 OR REF(CLOSE,1) REF(OPEN,1) AND CLOSE OPEN AND (ABS(CLOSE-REF(CLOSE,1)))/CLOSE 0.002;
    倾盆大雨:=REF(CLOSE,1)/REF(OPEN,1) =1.03 AND OPEN REF(CLOSE,1) AND OPEN REF(OPEN,1) AND CLOSE REF(OPEN,1);
    EXPLAIN(倾盆大雨,'倾盆大雨,见顶信号;'),colorFFFF00;
    EXPLAIN(大阴烛,'大阴烛,后市向淡,发生逆转;'),colorFFFF00;
    EXPLAIN(好友反攻,'好友反攻,跌势已尽,要展开一段反弹行情;'),colorFF;
    EXPLAIN(跳空缺口,'跳空缺口,突破长期盘整,向上跳空,上涨行情开始;向下跳空,下跌行情开始;'),colorFFFFFF;
    EXPLAIN(光脚阴线,'光脚阴线,下跌信号;'),colorFFFF00;
    EXPLAIN(光头阳线,'光头阳线,多方积极上攻态势,后市看涨;'),colorFF;
    EXPLAIN(三只乌鸦,'三只乌鸦站枝头,可能见顶回落;'),colorFFFF00;
    EXPLAIN(分离,'分离,注意看涨分离和看跌分离;'),colorFFFFFF;
    EXPLAIN(长下影,'长下影,持续下跌后出现,有可能止跌回升;在升势末期出现,须多加留意;'),colorFF;
    EXPLAIN(长上影,'长上影,表明行情上档压力沉重,升势受阻;'),colorFFFF00;
    EXPLAIN(下跌三部曲,'下跌三部曲,下跌信号;'),colorFF;
    EXPLAIN(上升三部曲,'上升三部曲,上涨信号;'),colorFFFF00;
    EXPLAIN(早晨之星,'早晨之星,见底回升;'),colorFF;
    EXPLAIN(黄昏之星,'黄昏之星,见顶回落;'),colorFFFF00;
    EXPLAIN(十字星,'十字星,重要的警告信号,原趋势停顿或反转;'),colorFFFFFF;
    EXPLAIN(长十字,'长十字,重要的警告信号,原趋势停顿或反转;'),colorFFFFFF;
    EXPLAIN(垂死十字,'垂死十字,下跌信号;'),colorFFFF00;
    EXPLAIN(早晨十字星,'早晨十字星,上涨信号,见底回升;'),colorFF;
    EXPLAIN(黄昏十字星,'黄昏十字星,趋势停顿或反转,下跌信号,见顶回落;'),colorFFFF00;
    EXPLAIN(射击之星,'射击之星,出现在短期的上升趋势,表明市场顶部就在眼前,可能见顶回落,可靠性低;'),colorFFFF00;
    EXPLAIN(倒转锤头,'倒转锤头构成一个看涨信号,可能见底回升;'),colorFF;
    EXPLAIN(锤头,'锤头,可能见底回升,如有量配合,信号强烈;'),colorFF;
    EXPLAIN(吊颈,'吊颈,上升行情中见顶回落,顶部出现,见顶信号;'),colorFFFF00;
    EXPLAIN(平顶,'平顶,意味行情摸高见顶,股价行将反转。但反转下跌力度较小;'),colorFFFF00;
    EXPLAIN(穿头破脚,'穿头破脚,顶部出现,见顶回落信号;'),colorFFFF00;
    EXPLAIN(乌云盖顶,'乌云盖顶,见顶回落信号;'),colorFFFF00;
    EXPLAIN(曙光初现,'曙光初现,行情将演化为V型反转或止跌横盘趋势。后市见底回升;'),colorFF;
    EXPLAIN(身怀六甲,'身怀六甲,出现在底部,是见底回升信号;出现在顶部,是见顶回落信号;'),colorFF;
    EXPLAIN(十字胎,'十字胎;'),colorFF;
    EXPLAIN(平底,'平底,行情探低见底,股价行将反转上升,但力度较小;'),colorFF;
    EXPLAIN(大阳烛,'大阳烛,在上升行情中出现,则意味着行情剧烈地向上攀升。在下跌行情中出现,则意味着行情剧烈地向上反弹;'),colorFF;
    EXPLAIN(三个白武士,'三个白武士,每日收盘价上移,表示可能见底回升;'),colorFF;
    EXPLAIN(双飞乌鸦,'双飞乌鸦,行情开始疲软将见顶回落;'),colorFFFF00;
    EXPLAIN(孕育线,'孕育线,注意股价位置;'),colorFFFFFF;
    EXPLAIN(多方炮,'多方炮,在底部出现有上涨可能,在中间出现有可能是上涨中继,顶部出现是复合见顶信号;'),colorFF;
    EXPLAIN(出水芙蓉,'出水芙蓉,阳线穿过20、40、60日季均线,上攻势头初现;'),colorFF;
    DRAWTEXTex(c,1,10,20,'n所属板块:'+BLKNAME),colorFFFFFF;


    SY:=IF(CLOSE =OPEN,HIGH-CLOSE,HIGH-OPEN);
    XY:=IF(CLOSE =OPEN,OPEN-LOW,CLOSE-LOW);
    CD:=2*(SY+XY)+ABS(CLOSE-OPEN);
    SYJ:=IF(CLOSE =OPEN,(HIGH+CLOSE)/2,(HIGH+OPEN)/2);
    XYJ:=IF(CLOSE =OPEN,(OPEN+LOW)/2,(CLOSE+LOW)/2);
    MAJ1:=(SYJ*2*SY/CD+XYJ*2*XY/CD+(CLOSE+OPEN)/2*ABS(CLOSE-OPEN)/CD);
    maj:=if(maj1=0,c,maj1);
    短趋:=(8*maj+7*ref(maj,1)+6*ref(maj,2)+5*ref(maj,3)+4*ref(maj,4)+3*ref(maj,5)+2*ref(maj,6)+ref(maj,8))/36;
    中趋:=(LLV(短趋,2)+LLV(短趋,4)+LLV(短趋,6))/3;
    立桩量:=FILTER(VOL=HHV(VOL,10) AND VOL 2*REF(VOL,1) AND CLOSE 短趋,5);
    突破:=IF(BARSLAST(立桩量)=1 AND CLOSE REF(HIGH,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE REF(HIGH,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE REF(HIGH,3),1,0)))=1;
    三天法则:=IF(BARSLAST(立桩量)=1 AND CLOSE REF(LOW,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE REF(LOW,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE REF(LOW,3),1,0)))=1;
    MA5:=MA(C,5);
    MA10:=MA(C,10);
    MA20:=MA(C,20);
    MA30:=MA(C,30);
    MA120:=SMA(C,120,1);
    ZH520:=ABS(MA5-MA20)/MA20*100
    ZH530:=ABS(MA5-MA30)/MA30*100
    QSXS1:=MA5 REF(MA5,1);
    QSXS2:=MA20 REF(MA20,1);
    QSXS3:=MA30 REF(MA30,1);
    DTPL:=MA20 MA30 AND MA30 MA120;
    LYHT:=DTPL AND QSXS2 AND QSXS3 AND NOT(QSXS1) AND REF(QSXS1,1);
    LC:=REF(CLOSE,1);
    品种强弱:=(SMA(MAX(CLOSE-LC,0),8,1))/(SMA(ABS(CLOSE-LC),8,1))*100;
    CC:= 1A0001$CLOSE
    FF:= 399001$CLOSE
    LC1:=REF(IF(INBLOCK('深圳A股')=1,FF,CC),1);
    指数强弱:=(SMA(MAX((IF(INBLOCK('深圳A股')=1,FF,CC))-LC1,0),8,1))/(SMA(ABS((IF(INBLOCK('深圳A股')=1,FF,CC))-LC1),8,1))*100;
    强弱度:=品种强弱-指数强弱;

    涨幅比:=100*(CLOSE/REF(CLOSE,1)-1);
    跌幅比:=100*(1-CLOSE/REF(CLOSE,1));
    EXPLAIN(1,'【图形分析】'),colorFFFF;
    早晨之星的中部:=(ABS(REF(OPEN,1)-REF(CLOSE,1)))/REF(CLOSE,1);
    早晨两日前倍比:=(REF(OPEN-CLOSE,2))/REF(OPEN,2)/早晨之星的中部;
    早晨今日倍比:=(CLOSE-OPEN)/OPEN/早晨之星的中部;
    早晨:=REF(ISDOWN,2) AND 早晨两日前倍比 3 AND 早晨之星的中部 0.03 AND REF(OPEN,1) REF(CLOSE,2) AND ISUP AND 早晨今日倍比 3 AND CLOSE REF(CLOSE,2);
    EXPLAIN(早晨,' '+'早晨之星'),color3300FF;
    EXPLAIN(早晨,'若低位上涨即将启动,若在高位请小心冲高出货'),color6633CC;
    EXPLAIN(早晨,'可靠性排序一');
    黄昏之星的中部:=(ABS(REF(OPEN,1)-REF(CLOSE,1)))/REF(CLOSE,1);
    黄昏两日前倍比:=(ABS(REF(OPEN-CLOSE,2)))/REF(OPEN,2)/黄昏之星的中部;
    黄昏今日倍比:=(ABS(CLOSE-OPEN))/OPEN/黄昏之星的中部;
    黄昏:=REF(ISUP,2) AND 黄昏两日前倍比 3 AND 黄昏之星的中部 0.03 AND REF(OPEN,1) REF(CLOSE,2) AND ISDOWN AND 黄昏今日倍比 3 AND CLOSE REF(CLOSE,2);
    EXPLAIN(黄昏,' '+'黄昏之星'),colorFF00;
    EXPLAIN(黄昏,'进入盘整期或者下跌期,具体视行情而定'),colorCCFF33;
    EXPLAIN(黄昏,'可靠性排序一');
    十字星:=(ABS(CLOSE-OPEN))/CLOSE 0.004 AND (ABS(LOW-IF(ISUP,OPEN,CLOSE)))/CLOSE 0.004 AND HIGH IF(ISUP,CLOSE,OPEN);
    EXPLAIN(十字星,' '+'十字星'),colorFF6600;
    EXPLAIN(十字星,'转折信号,升势末期效果显著'),colorCCFF33;
    EXPLAIN(十字星,'其它位置需要配合第二日确认'),colorFFCC33;
    EXPLAIN(REF(十字星,1) AND ISDOWN,' '+'黄昏十字星'),colorFF00;
    EXPLAIN(REF(十字星,1) AND ISDOWN,'在上升势头中出现,后市走跌'),colorCCFF33;
    EXPLAIN(REF(十字星,1) AND ISDOWN,'在下跌势头中出现,跌势趋缓'),colorCCFF99;
    EXPLAIN(REF(十字星,1) AND ISDOWN,'在盘整中出现,需要配合周边态势'),colorCCFF99;
    EXPLAIN(REF(十字星,1) AND ISUP,' '+'早晨十字星'),color3300FF;
    EXPLAIN(REF(十字星,1) AND ISUP,'在下跌势头中出现早晨十字星,后市走高'),color6633CC;
    EXPLAIN(REF(十字星,1) AND ISUP,'在上升势头中出现早晨十字星,涨势趋缓'),colorCCCCCC;
    EXPLAIN(十字星,'可靠性排序三');
    垂死十字:=IF(CLOSE 20,(ABS(CLOSE-OPEN))/CLOSE =0.004 AND (ABS(IF(ISUP,OPEN,CLOSE)-LOW))/CLOSE =0.002 AND (HIGH-IF(ISUP,CLOSE,OPEN))/CLOSE 0.004,CLOSE=OPEN AND HIGH OPEN AND LOW=CLOSE);
    EXPLAIN(垂死十字,' '+'垂死十字'),colorFF00;
    EXPLAIN(垂死十字,'顶部看空,淡气逼人'),colorCCFF33;
    射击之星:=ABS(CLOSE-OPEN) ABS(HIGH-IF(ISUP,CLOSE,OPEN)) AND (ABS(CLOSE-OPEN))/CLOSE 0.004 AND (ABS(IF(ISUP,OPEN,CLOSE)-LOW))/CLOSE =0.004;
    非标准射击之星:=(ABS(CLOSE-OPEN))/CLOSE 0.004 AND (ABS(IF(ISUP,OPEN,CLOSE)-LOW))/CLOSE =0.004 AND (ABS(HIGH-IF(ISUP,CLOSE,OPEN)))/CLOSE 0.004;
    EXPLAIN(射击之星,' '+'射击之星'),colorFF6600;
    EXPLAIN(射击之星,'升、跌、盘,转折预警'),colorFFCC33;
    EXPLAIN(非标准射击之星 AND NOT(射击之星),' '+'非标准射击之星'),colorFF6600;
    EXPLAIN(非标准射击之星 AND NOT(射击之星),'非标准的射击之星,但具有参考意义'),colorFFCC33;
    EXPLAIN(射击之星,'可靠性排序四');
    锤头:=(ABS(IF(ISUP,CLOSE,OPEN)-HIGH))/CLOSE 0.004 AND LOW IF(ISUP,OPEN,CLOSE) AND (IF(ISUP,OPEN,CLOSE)-LOW)/(IF(ISUP,CLOSE,OPEN)-IF(ISUP,OPEN,CLOSE))
    非标准锤头:=(ABS(IF(ISUP,CLOSE,OPEN)-HIGH))/CLOSE 0.004 AND (ABS(IF(ISUP,CLOSE,OPEN)-HIGH))/CLOSE 0.001 AND LOW IF(ISUP,OPEN,CLOSE);
    EXPLAIN(锤头,' '+'锤头'),colorFF6600;
    EXPLAIN(锤头,'转折信号,上影越短下影越长可靠度越高'),colorFFCC33;
    EXPLAIN(锤头,'低谷初阳或者高位初阴可靠度更高'),colorFFCC33;
    EXPLAIN(非标准锤头 AND NOT(锤头),' '+'非标准锤头'),colorFF6600;
    EXPLAIN(非标准锤头 AND NOT(锤头),'严格地说这不是一个锤头,但具有转折参考意义'),colorFFCC33;
    EXPLAIN(锤头,'可靠性排序四');
    穿头破脚:=ISDOWN AND REF(ISUP,1) AND OPEN REF(CLOSE,1) AND CLOSE REF(OPEN,1) OR ISUP AND REF(ISDOWN,1) AND OPEN REF(CLOSE,1) AND CLOSE REF(OPEN,1);
    穿两日:=REF(ISUP,2) AND OPEN REF(CLOSE,2) AND CLOSE REF(OPEN,2) OR REF(ISDOWN,2) AND OPEN REF(CLOSE,2) AND CLOSE REF(OPEN,2);
    EXPLAIN(穿头破脚,' '+'穿头破脚'),colorFF6600;
    EXPLAIN(穿头破脚 AND ISUP,'若低位,收阳,则反转上升'),color6633CC;
    EXPLAIN(穿头破脚 AND ISUP,'若高位,收阳,盘整向下'),color6633CC;
    EXPLAIN(穿头破脚 AND ISDOWN,'若高位,收阴,则反转下降'),colorCCFF33;
    EXPLAIN(穿头破脚,'翌日确认的信号更加可靠'),colorFFCC33;
    EXPLAIN(穿头破脚 AND VOL REF(VOL,1),'配合交易量放大,可靠度较高'),colorFFCC33;
    EXPLAIN(穿头破脚 AND 穿两日,'今日K线覆盖前两日,反转明显'),colorFF6600;
    EXPLAIN(穿头破脚,'可靠性排序二');
    乌云盖顶:=REF(ISUP,1) AND ISDOWN AND REF(CLOSE/OPEN 1.03,1) AND CLOSE REF(OPEN,1) AND CLOSE REF(CLOSE,1) AND OPEN REF(CLOSE,1) AND OPEN REF(HIGH,1) AND (CLOSE-REF(OPEN,1))/(REF(CLOSE,1)-CLOSE) 1.22;
    非标准乌云盖顶:=REF(ISUP,1) AND ISDOWN AND REF(CLOSE/OPEN 1.03,1) AND CLOSE REF(OPEN,1) AND OPEN REF(CLOSE,1) AND CLOSE-REF(OPEN,1) REF(CLOSE,1)-CLOSE;
    EXPLAIN(乌云盖顶,' '+'乌云盖顶'),colorFF00;
    EXPLAIN(乌云盖顶,'行情见顶回落信号'),colorCCFF33;
    EXPLAIN(乌云盖顶,'影线越短越好并观察交易量是否存在夺路而逃的放大'),colorCCFF33;
    EXPLAIN(非标准乌云盖顶 AND NOT(乌云盖顶),' '+'非标准乌云盖顶'),colorFF00;
    EXPLAIN(非标准乌云盖顶 AND NOT(乌云盖顶),'不是一个标准的乌云盖顶,若出现在顶部具有参考意义'),colorCCFF33;
    EXPLAIN(乌云盖顶,'可靠性排序六');
    曙光初现:=REF(ISDOWN,1) AND ISUP AND REF(CLOSE/OPEN 0.97,1) AND OPEN REF(CLOSE,1) AND CLOSE REF(OPEN,1) AND REF(OPEN,1)-CLOSE CLOSE-REF(CLOSE,1);
    EXPLAIN(曙光初现,' '+'曙光初现'),color3300FF;
    EXPLAIN(曙光初现,'行情见底升信号,影线越短越好'),color6633CC;
    EXPLAIN(曙光初现,'可靠性排序七');
    身怀六甲:=REF(ISUP,1) AND REF(CLOSE/OPEN 1.03,1) AND IF(ISUP,CLOSE,OPEN) REF(CLOSE,1) AND IF(ISUP,OPEN,CLOSE) REF(OPEN,1) OR REF(ISDOWN,1) AND REF(CLOSE/OPEN 0.97,1) AND IF(ISUP,CLOSE,OPEN) REF(OPEN,1) AND IF(ISUP,OPEN,CLOSE) REF(CLOSE,1);
    EXPLAIN(身怀六甲,' '+'身怀六甲'),colorFF6600;
    EXPLAIN(身怀六甲,'力度减弱,行情趋缓或者转势'),colorFFCC33;
    EXPLAIN(身怀六甲 AND ISDOWN,'高位多为见顶转跌'),colorCCFF33;
    EXPLAIN(身怀六甲 AND ISDOWN,'低位多为缓跌慢升'),colorFFCC33;
    EXPLAIN(身怀六甲 AND ISUP,'低位多为见底转升'),color6633CC;
    EXPLAIN(身怀六甲 AND ISUP,'高位多为冲高速降'),colorCCFF99;
    EXPLAIN(身怀六甲 AND CLOSE=OPEN,'十字胎趋缓转折'),colorFF6600;
    EXPLAIN(身怀六甲,'可靠性排序五');
    平顶:=REF(HIGH,1) REF(HIGH,2) AND (REF(HIGH,1)=HIGH OR IF(ISUP,CLOSE,OPEN)=IF(REF(ISUP,1),REF(CLOSE,1),REF(OPEN,1))) AND CLOSE HHV(HIGH,2);
    平底:=REF(LOW,1) REF(LOW,2) AND REF(LOW,1)=LOW OR IF(ISUP,OPEN,CLOSE)=IF(REF(ISUP,1),REF(OPEN,1),REF(CLOSE,1));

    EXPLAIN(平顶,' '+'平顶'),colorFF6600;
    EXPLAIN(平顶,'转向形态,高位有效'),colorFFCC33;
    EXPLAIN(平底,' '+'平底'),colorFF6600;
    EXPLAIN(平底,'转向形态,低位有效'),colorFFCC33;
    EXPLAIN(平底 OR 平顶,'首先准确判断'),colorFFCC33;
    EXPLAIN(平底 OR 平顶,'是上升初、中、末期'),colorFFCC33;
    EXPLAIN(平底 OR 平顶,'还是下跌初、中、末期'),colorFFCC33;
    各种形态:=早晨 OR 黄昏 OR 十字星 OR 射击之星 OR 锤头 OR 穿头破脚 OR 乌云盖顶 OR 曙光初现 OR 身怀六甲 OR 非标准乌云盖顶 OR 非标准锤头;
    EXPLAIN(平底 AND 各种形态,'平底组合其它形态,可信度高'),colorFF6600;
    EXPLAIN(平顶 AND 各种形态,'平顶组合其它形态,可信度高'),colorFF6600;
    好友反攻:=ISUP AND REF(ISDOWN,1) AND CLOSE=REF(CLOSE,1);
    EXPLAIN(好友反攻,' '+'好友反攻'),color3300FF;
    EXPLAIN(好友反攻,'见底反攻形态'),color6633CC;
    淡友反攻:=ISDOWN AND REF(ISUP,1) AND CLOSE=REF(CLOSE,1);
    EXPLAIN(淡友反攻,' '+'淡友反攻'),colorFF00;
    EXPLAIN(淡友反攻,'见顶反攻形态'),colorCCFF33;
    三兵:=ALL(ISUP,3) AND ALL(CLOSE REF(CLOSE,1),2) AND REF(ISDOWN,3) AND ALL(涨幅比 0.5,3);
    大兵:=ALL(涨幅比 REF(涨幅比,1),2) AND 三兵;
    小兵:=ALL(涨幅比 REF(涨幅比,1),2) AND 三兵;
    EXPLAIN((小兵 OR 大兵),' '+'三兵形态'),colorFF6600;
    EXPLAIN(大兵,'放大三阳,后市看好'),color6633CC;
    EXPLAIN(小兵,'缩小三阳,后市看淡,第三K线影线较长,蜡烛部分较短'),colorCCFF33;
    两只乌鸦:=REF(CLOSE,1) REF(IF(ISUP,CLOSE,OPEN),2) AND OPEN REF(OPEN,1) AND CLOSE REF(CLOSE,1) AND ALL(ISDOWN,2);
    EXPLAIN(两只乌鸦,' '+'两只乌鸦'),colorFF00;
    EXPLAIN(两只乌鸦,'连续高开却上冲无力'),colorCCFF33;
    EXPLAIN(两只乌鸦,'特别注意在高位的信号'),colorCCFF33;
    EXPLAIN(两只乌鸦,'若在中期出现,需要对消息面和人气进行分析'),colorFF6600;
    EXPLAIN(两只乌鸦,'若在低位出现说明人气开始回升只是力量还不够,可以在之后的适当价位介入'),colorFFCC33;
    三只乌鸦:=ALL(ISDOWN,3) AND ALL(CLOSE REF(CLOSE,1),2) AND ALL(OPEN REF(OPEN,1) AND OPEN REF(CLOSE,1),2);
    EXPLAIN(三只乌鸦,' '+'三只乌鸦'),colorFF00;
    EXPLAIN(三只乌鸦,'行情严重向淡'),colorCCFF33;
    塔形顶:=跌幅比 3 AND BARSLAST(涨幅比 3) AND ALL(IF(ISUP,CLOSE,OPEN) OPEN AND IF(ISUP,CLOSE,OPEN) REF(CLOSE,BARSLAST(涨幅比 3)),BARSLAST(涨幅比
    EXPLAIN(塔形顶,'塔形顶');
    上升三部曲预备:=REF(涨幅比,BARSLAST(ISUP)) ANY(跌幅比,BARSLAST(ISUP)-1) AND ALL(ISDOWN,BARSLAST(ISUP)-1) AND REF(CLOSE,BARSLAST(ISUP)) HHV(OPEN,BARSLAST(ISUP)-1) AND REF(OPEN,BARSLAST(ISUP)) LLV(CLOSE,BARSLAST(ISUP)-1);
    EXPLAIN(上升三部曲预备,'上升三部曲前奏'),color3300FF;
    EXPLAIN(上升三部曲预备,'连续的下跌却一直没有跌破前一根阳线'),color6633CC;
    EXPLAIN(上升三部曲预备,'后期看涨可以介入'),color6633CC;
    EXPLAIN(上升三部曲预备,'建议等待阳线确认上升'),color6633CC;
    看好:=早晨 OR REF(十字星,1) AND ISUP OR 穿头破脚 AND ISUP OR 曙光初现 OR 平底 AND LOW=LLV(LOW,4) OR 好友反攻 OR 大兵;
    看空:=黄昏 OR REF(十字星,1) AND ISDOWN OR 垂死十字 OR 穿头破脚 AND ISDOWN OR 乌云盖顶 OR 非标准乌云盖顶 OR 平顶 OR 淡友反攻 OR 小兵;
    中立:=射击之星 OR 十字星 OR 锤头 OR 非标准锤头 OR 非标准射击之星 OR 身怀六甲;
    交易量比较:=VOL REF(VOL,2)*1.05;
    蜡烛跳空:=IF(ISUP,OPEN,CLOSE) REF(IF(ISUP,CLOSE,OPEN),1) OR IF(ISUP,CLOSE,OPEN) REF(IF(ISUP,OPEN,CLOSE),1);
    跳空:=LOW REF(HIGH,1) OR HIGH REF(LOW,1);
    连续跳空:=REF(跳空,1) AND 跳空;
    EXPLAIN(1,'【附加k线确认】'),colorFFFF;
    EXPLAIN(REF(看好,1) AND ISUP,'收阳确认昨日信号'),color3300FF;
    EXPLAIN(REF(看空,1) AND ISDOWN,'收阴确认昨日信号'),colorFF00;
    EXPLAIN(REF(看空,1) AND ISUP,'收阳降低了昨日信号的向淡强度'),colorCCFF99;
    EXPLAIN(REF(看好,1) AND ISDOWN,'收阴降低了昨日信号的向好强度'),colorCCFF99;
    EXPLAIN((早晨 OR 黄昏),'请自行分析买卖力道是否存在由被动性沽盘到主动性沽盘的转变'),colorFFCC33;
    EXPLAIN(跳空 AND (看好 OR 看空 OR 中立),'跳空星体信号,可靠度高,星体越小越可靠'),colorFFCC33;
    EXPLAIN(连续跳空 AND (REF(看好 OR 看空 OR 中立,1)),'再次跳空确认昨天的星体信号高度可靠'),colorFFCC33;
    EXPLAIN(REF(锤头,1) AND ISDOWN AND CLOSE REF(LOW,1),'今日走跌是对昨日锤头见顶信号的确认'),colorCCFF33;
    EXPLAIN(REF(上升三部曲预备,1) AND ISUP AND 涨幅比 3,'阳线收复下跌空间拉升在即'),color3300FF;
    EXPLAIN(CLOSE REF(HIGH,1) AND 品种强弱 =MA(品种强弱,5),'多头攻击K线n做多以当日最低价为止损位'),colorCCFF99;
    EXPLAIN(CLOSE REF(LOW,1) AND HIGH REF(HIGH,1) AND 品种强弱 MA(品种强弱,8),'空头攻击K线n多头注意止损'),colorCCFF33;
    EXPLAIN(HIGH REF(HIGH,1) AND LOW REF(LOW,1) AND CLOSE OPEN AND 品种强弱 =MA(品种强弱,5),'变盘k线,n多头设置当日最低点为止损位'),colorCCFF33;
    EXPLAIN(HIGH REF(HIGH,1) AND LOW REF(LOW,1) AND CLOSE =OPEN,'变盘k线,n多头小心,设置当日最低点为止损位'),colorCCFF99;
    //技术指标;
    EXPLAIN(c,'【技术指标】'),colorFFFF;
    {KDJ}
    日K:= KDJ.K#DAY (20,5,5);
    日D:= KDJ.D#DAY (20,5,5);
    周K:= KDJ.K#WEEK (9,3,3);
    周D:= KDJ.D#WEEK (9,3,3);
    EXPLAINEX(周K 0 and 周K =20,'低位/周线K=',周K,2,0);
    EXPLAINEX(周K 0 and 周K =80,'高位/周线K=',周K,2,0);
    EXPLAINEX(周K 0 and (周K 20 AND 周K 50),'中低/周线K=',周K,2,0);
    EXPLAINEX(周K 0 and (周K 50 AND 周K 80),'中高/周线K=',周K,2,0);
    EXPLAINEX(日K 0 and 日K =20,'低位/日线K=',日K,2,0);
    EXPLAINEX(日K 0 and 日K =80,'高位/日线K=',日K,2,0);
    EXPLAINEX(日K 0 and (日K 20 AND 日K 50),'中低/日线K=',日K,2,0);
    EXPLAINEX(日K 0 and (日K 50 AND 日K 80),'中高/日线K=',日K,2,0);
    EXPLAIN((CROSS(日K,日D)),'日K与日D今日金叉');
    EXPLAIN((CROSS(日D,日K)),'日K与日D今日死叉');
    EXPLAIN((CROSS(周K,周D)),'周K与周D今日金叉');
    EXPLAIN((CROSS(周D,周K)),'周K与周D今日死叉');

    KDJ_A2:=BARSLAST(REF(CROSS( KDJ.K , KDJ.D ),1));
    KDJ_B2:=REF(C,KDJ_A2+1) C AND REF( KDJ.K , KDJ_A2+1) KDJ.K AND CROSS( KDJ.K , KDJ.D
    EXPLAIN(KDJ_B2 0,'KDJ底背离');
    KDJ_C2:=BARSLAST(REF(CROSS( KDJ.D , KDJ.K ),1));
    KDJ_D2:=REF(C,KDJ_C2+1) C AND REF( KDJ.K ,KDJ_C2+1) KDJ.K AND CROSS( KDJ.D , KDJ.K
    EXPLAIN(KDJ_D2 0,'KDJ顶背离');
    EXPLAIN( KDJ.J 20, 'KDJ之J值小于20');
    EXPLAIN( KDJ.J 80, 'KDJ之J值大于80');
    EXPLAIN( KDJ.K KDJ.D ,'KDJ之K值大于D值');
    EXPLAIN( KDJ.K KDJ.D ,'KDJ之K值小于D值');

    {RSI}
    RSI_A1:=BARSLAST(REF(CROSS( RSI.RSI1 , RSI.RSI2 ),1));
    RSI_B1:=REF(C,RSI_A1+1) C AND REF( RSI.RSI1 ,RSI_A1+1) RSI.RSI1 AND CROSS( RSI.RSI1 , RSI.RSI2
    EXPLAIN ( RSI.RSI1 20, 'RSI超卖');
    EXPLAIN (RSI_B1 0,'RSI底背离');
    RSI_A2:=BARSLAST(REF(CROSS( RSI.RSI2 , RSI.RSI1 ),1));
    RSI_b2:=REF(C, RSI_A2+1) C AND REF( RSI.RSI1 , RSI_A2+1) RSI.RSI1 AND CROSS( RSI.RSI2 , RSI.RSI1
    EXPLAIN( RSI.RSI1 80, 'RSI超买');
    EXPLAIN(RSI_B2 0,'RSI顶背离');
    EXPLAIN( RSI.RSI1 RSI.RSI2 , 'RSI多头');
    EXPLAIN( RSI.RSI1 RSI.RSI2 , 'RSI空头');
    {MACD}
    MACD_A1:=BARSLAST(ref(cross( MACD.diff , MACD.dea ),1));
    MACD_b1:=ref(c, MACD_A1+1) c and ref( MACD.diff , MACD_A1+1) MACD.diff and cross( MACD.diff , MACD.dea
    EXPLAIN(MACD_b1 0,'MACD底背离');
    MACD_A2:=BARSLAST(REF(CROSS( MACD.DEA , MACD.DIFF ),1));
    MACD_b2:=REF(CLOSE, MACD_A2+1) CLOSE AND REF( MACD.DIFF , MACD_A2+1) MACD.DIFF AND CROSS( MACD.DEA , MACD.DIFF
    EXPLAIN (MACD_b2 0,'MACD顶背离');
    JC:=CROSS( MACD.diff , MACD.dea
    SC:=CROSS( MACD.dea , MACD.diff
    DCJC:=JC AND MACD.dea
    EXPLAIN((JC AND MACD.dea 0),'MACD在0轴上金叉');
    EXPLAIN((JC AND MACD.dea 0),'MACD在0轴下金叉');
    EXPLAIN((SC AND MACD.dea 0),'MACD在0轴上死叉');
    EXPLAIN((SC AND MACD.dea 0),'MACD在0轴下死叉');
    EXPLAIN(( MACD.macd 0 AND MACD.macd REF( MACD.macd ,1)),'MACD红柱增长');
    EXPLAIN(( MACD.macd 0 AND MACD.macd REF( MACD.macd ,1)),'MACD红柱缩短');
    EXPLAIN(( MACD.macd 0 AND ABS( MACD.macd ) REF(ABS( MACD.macd ),1)),'MACD绿柱增长');
    EXPLAIN(( MACD.macd 0 AND ABS( MACD.macd ) REF(ABS( MACD.macd ),1)),'MACD绿柱缩短');
    EXPLAIN((COUNT(DCJC,20)=2 AND JC AND MACD.dea 0),'0轴上2次金叉');
    EXPLAIN((COUNT(DCJC,20)=3 AND JC AND MACD.dea 0),'0轴上3次金叉');
    EXPLAIN((COUNT(DCJC,20)=4 AND JC AND MACD.dea 0),'0轴上4次金叉');

    {DMI}
    PDI:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),14);
    MDI:=HIGH-REF(HIGH,1);
    ADX:=REF(LOW,1)-LOW;
    ADXR:=SUM(IF(MDI 0 AND MDI ADX,MDI,0),14);
    TYP:=SUM(IF(ADX 0 AND ADX MDI,ADX,0),14);
    CCI:=ADXR*100/PDI;
    WR:=TYP*100/PDI;
    MTM:=MA((ABS(WR-CCI))/(WR+CCI)*100,6);
    MTMMA:=(MTM+REF(MTM,6))/2;
    EXPLAIN(CROSS(CCI,WR),'PDI向上突破MDI,新多头进场,买进信号'),colorFF;
    EXPLAIN(CROSS(WR,CCI),'PDI向下跌破MDI,新空头进场,卖出信号'),colorFF00;
    EXPLAIN(MTM REF(MTM,1),'ADX值持续高于前一日,行情将维持原趋势'),colorFFFF00;
    EXPLAIN(MTM REF(MTM,1) AND MTM 20,'ADX值递减,降到20以下,且横向行进,市场盘整'),colorFFFF;
    EXPLAIN(MTM REF(MTM,1) AND REF(MTM,1) REF(MTM,2) AND REF(MTM,2) REF(MTM,3) AND REF(MTM,3) REF(MTM,4),'ADX值上升倾向转为下降,行情即将反转'),color99FF;
    {BOLL}
    PSY:=CLOSE-REF(CLOSE,6);
    布尔1:=MA(PSY,6);
    EXPLAIN(CROSS(PSY,布尔1) AND 布尔1 -0.8,'MTM突破MTMMA,买入信号'),colorFF;
    EXPLAIN(CROSS(布尔1,PSY) AND 布尔1 0.8,'MTM跌破MTMMA,卖出信号'),colorFF00;
    布尔2:=REF(CLOSE,1);
    布尔3:=(SMA(MAX(CLOSE-布尔2,0),6,1))/(SMA(ABS(CLOSE-布尔2),6,1))*100;
    布尔4:=(SMA(MAX(CLOSE-布尔2,0),12,1))/(SMA(ABS(CLOSE-布尔2),12,1))*100;
    EXPLAIN(布尔3 85,'6日RSI突破85超买,防回挡,卖出信号'),colorFFFF00;
    EXPLAIN(布尔3 15,'6日RSI跌破15超卖,可能反弹,买进信号'),colorFFFF;
    布尔5:=(COUNT(CLOSE REF(CLOSE,1),12))/12*100;
    布尔6:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
    布尔7:=布尔6+3*STD(布尔6,10);
    XX:=布尔6-3*STD(布尔6,10);
    A001:=(布尔7-XX)/布尔7 0.03;
    A002:=(布尔7-XX)/布尔7 0.18;
    A003:=(MA(CLOSE,60)-MA(CLOSE,5))/MA(CLOSE,60) 0.15;
    A004:=(MA(CLOSE,5)-MA(CLOSE,60))/MA(CLOSE,5) 0.15;
    EXPLAIN(A001,'多空布林收敛中,有变盘可能'),colorFFFF00;
    EXPLAIN(A003 AND A002 AND CLOSE OPEN,'布林上下乖离太大,有反弹可能'),colorFFFF;
    EXPLAIN(A004 AND A002 AND CLOSE OPEN,'布林上下乖离太大,有回落可能'),colorFF00;

    VAR01:=(2*CLOSE+HIGH+LOW)/4;
    VAR02:=WMA(WMA(WMA(VAR01,4),4),4);
    J:=(VAR02-REF(VAR02,1))/REF(VAR02,1)*100;
    D:=MA(J,3);
    K:=MA(J,1);
    高级MACD出现:=ANY(CROSS(K,D),3) AND NOT(ANY(CROSS(D,K),3)) AND 看好 OR ANY(CROSS(D,K),3) AND NOT(ANY(CROSS(K,D),3)) AND 看空;
    EXPLAIN(高级MACD出现,'【高级MACD】'),colorFF6600;
    EXPLAIN(高级MACD出现,'中低参考');
    VAR002:=REF(LOW,1);
    VAR003:=(SMA(ABS(LOW-VAR002),13,1))/(SMA(MAX(LOW-VAR002,0),13,1))*100;
    VAR004:=EMA(IF(CLOSE*1.2,VAR003*13,VAR003/13),13);
    VAR005:=LLV(LOW,34);
    VAR006:=HHV(VAR004,34);
    VAR007:=IF(LLV(LOW,56),1,0);
    VAR008:=(EMA(IF(LOW =VAR005,(VAR004+VAR006*2)/2,0),3))/(618)*VAR007;
    VAR009:=EMA(CLOSE,5);
    VAR0010:=(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*(-10);
    XL1:=MA(LOW,2)*0.96;
    XL2:=MA(LOW,26)*0.85;
    抄底:=REF(XL1,1) XL2 AND REF(XL1,1) XL1 AND REF(XL1,1) REF(XL1,2);
    跟进:=VAR008 REF(VAR008,1);
    EXPLAIN((ANY(跟进 OR 抄底,3)) AND 看好,' '+'跟庄抄底'),colorFF6600;
    EXPLAINICON((ANY(跟进 OR 抄底,3)) AND 看好,3);
    EXPLAIN((ANY(跟进 OR 抄底,3)) AND 看好,'形态位置好配合信号介入成功率极高‖中高参考');
    线1:=(MA(CLOSE,5)+MA(CLOSE,10)+MA(CLOSE,25))/3;
    线2:=(MA(CLOSE,5)+MA(CLOSE,10)+MA(CLOSE,20)+MA(CLOSE,30)+MA(CLOSE,60)+MA(CLOSE,120))/6;
    线3:=(MA(CLOSE,20)+MA(CLOSE,60)+MA(CLOSE,120))/3;
    线4:=(MA(CLOSE,13)+MA(CLOSE,34)+MA(CLOSE,55))/3;
    EXPLAIN(CROSS(线1,线4),' '+'跟进买入‖高度参考'),colorFF;
    EXPLAINICON(CROSS(线1,线4),4);

    VARL1:=100-90*(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21));
    VARL2:=100-90*(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21));
    VARL3:=100-MA(100*(HHV(HIGH,6)-CLOSE)/(HHV(HIGH,6)-LLV(LOW,6)),34);
    VARL3:=ref(hhv(h,3)/llv(l,3) =1.06,1) and c=hhv(c,4) and vol=hhv(vol,4);
    EXPLAIN((ANY(VARL3,1)),'升浪中盘整突破、配合信号介入成功率高');

    LC:=REF(CLOSE,1);
    品种强弱:=(SMA(MAX(CLOSE-LC,0),13,1))/(SMA(ABS(CLOSE-LC),13,1))*100;
    CC:= 1A0001$CLOSE
    FF:= 399001$CLOSE
    LC1:=REF(IF(INBLOCK('深圳A股')=1,FF,CC),1);
    指数强弱:=(SMA(MAX((IF(INBLOCK('深圳A股')=1,FF,CC))-LC1,0),13,1))/(SMA(ABS((IF(INBLOCK('深圳A股')=1,FF,CC))-LC1),13,1))*100;
    强弱度:=品种强弱-指数强弱;
    EXPLAIN(CLOSE 0,'【品种强弱】'),colorFFFF;
    EXPLAIN(强弱度 0,'现阶段强于大盘指数'),color3300FF;
    EXPLAIN(强弱度=0,'现阶段与大盘指数同步'),colorFFCC33;
    EXPLAIN(强弱度 0,'现阶段弱于大盘指数'),colorCCFF33;
    EXPLAIN(品种强弱 =50,'现阶段属于强势'),color6633CC;
    EXPLAIN(品种强弱 50,'现阶段属于弱势'),colorCCFF33;
    EXPLAIN(品种强弱 =MA(品种强弱,8),'指标处于多头趋势'),color6633CC;
    EXPLAIN(品种强弱 MA(品种强弱,8),'指标处于空头趋势'),colorCCFF33;


    SAT:=IF((AMOUNT/CLOSE)/(HHV(AMOUNT,20)/HHV(CLOSE,20))*100 100,100,(AMOUNT/CLOSE)/(HHV(AMOUNT,20)/HHV(CLOSE,20))*100);
    sjt5:=IF(SAT[SYSPARAM(1)] SAT[SYSPARAM(1)-1],' ',' ');
    DRAWTEXTEX(1,1,20,100,'【量能饱和度】: '+NUMTOSTR(SAT[SYSPARAM(1)],0)+' '+sjt5),LINETHICK5,Colorwhite;


    M1:=SUM((EMA((CLOSE + LOW)/(2),2))/(2.98),3),POINTDOT,COLORFFFFFF;
    M2:=EMA(M1,21),COLORFF00FF;
    M30:=MA(CLOSE,30),LINETHICK1,COLORFF0000;
    VARa1:=(2)*(MA((LLV((CLOSE + LOW)/(2),8))*(1.1),13)) - EMA((CLOSE + LOW)/(2),3) - ((CLOSE + LOW)/(2))*(0.1);
    VARa2:=IF(((EMA((CLOSE + LOW)/(2),3) - VARa1)*(5) 0),(POW((EMA((CLOSE + LOW)/(2),3) - VARa1)*(5),2))/(10),(((-1))*(POW((EMA((CLOSE + LOW)/(2),3) - VARa1)*(5),2)))/(10));
    VARa3:=IF((VARa2 0),VARa2 - 0,(-1));
    {DRAWTEXT(CROSS(VARa3,0) AND ((CLOSE + LOW)/(2) MA((CLOSE + LOW)/(2),8)),h*(1.01),'绝杀'),LINETHICK2,COLORYELLOW;}
    DRAWICON(CROSS(VARa3,0) AND ((CLOSE + LOW)/(2) MA((CLOSE + LOW)/(2),8)),h*1.02,8);
    {强弱分界:= MA(CLOSE,27);
    上极限: 强弱分界+3*STD(CLOSE,21),ColorFF0080,pointdot;
    下极限:强弱分界-2.9*STD(close,21),Color4080FF,pointdot;}

    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 操盘参考(自用公式 主图 九毛八公式指标网) 加入收藏