最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 主图智能辅助线指标源码

    正文概述    2024-05-04 04:44:24  

    以下是主图智能辅助线指标源码和截图


    主图智能辅助线指标源码:

       ma05:MA(C,5)LINETHICK3,COLOR00CCFF;

       MA10:=MA(C,10);

       MA20:=MA(C,20);

       MA30:=MA(C,30);

       VAR1:=MA(CLOSE,5),COLOR00FFFF;

       VAR6:=MA(CLOSE,54),COLORFF9900;

       VAR8:=DMA(EMA(CLOSE,12),SUM(/CAPITAL,5)/3),LINETHICK2;

       VARA:=REF(CLOSE,1);

       VARE:=SMA(MAX(CLOSE-VARA,0),6,1)/SMA(Abs(CLOSE-VARA),6,1)*100;

       DRAWTEXT(DATE 700101ANDcrOSS(84,VARE),HIGH,'注意'),COLORGREEN;

       VARF:=(2*CLOSE+HIGH+LOW)/4;

       VAR10:=LLV(LOW,23);

       VAR11:=HHV(HIGH,23);

       VAR12:=EMA((VARF-VAR10)/(VAR11-VAR10)*100,6);

       VAR13:=EMA(0.667*REF(VAR12,1)+0.333*VAR12,4);

       DRAWTEXT(IF(COUNT(CLOSE REF(CLOSE,1),8)/8 0.3ANDCOUNT(VAR12 VAR13,3)ANDREF(LOW,1)=LLV(LOW,120)ANDCLOSE OPEN,1,0),LOW,'注意'),COLORYELLOW;

       RSV:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;

       K:=SMA(RSV,3,1);

       D:=SMA(K,3,1);

       J:=3*K-2*D;

       RSV24:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100;

       K24:=SMA(RSV24,3,1);

       D24:=SMA(K24,3,1);

       J24:=3*K24-2*D24;

       压力位:IF(CROSS(J24,J),H,REF(H,BArslAst(CROSS(J24,J)))),COLOR00FFFF,LINETHICK1;

       支撑位:IF(CROSS(J,J24),L,REF(L,BARSLAST(CROSS(J,J24)))),COLORFFFF00,LINETHICK1;

       支撑价:LLV(LOW,34),COLORFF00FF,LINETHICK3;

       阻力价:HHV(HIGH,19),COLORFF9900,LINETHICK3;

       十日均价:MA(C,5),COLOR00FFFF,LINETHICK2;

       涨:IF(MA(CLOSE,5) REF(MA(CLOSE,5),1),MA(CLOSE,5),DRAWNULL),COLORRED,LINETHICK2;

       平:IF(MA(CLOSE,5)=REF(MA(CLOSE,5),1),MA(CLOSE,5),DRAWNULL),COLOR00FFFF,LINETHICK3;

       跌:IF(MA(CLOSE,5) REF(MA(CLOSE,5),1),MA(CLOSE,5),DRAWNULL),COLORGREEN,LINETHICK2;

       DRAWTEXT(REF(C,BARSLAST(REF(CROSS(".DIF","MacD.DEA"),1))+1) CANDREF("MACD.DIF",BARSLAST(REF(CROSS("MACD.DIF","MACD.DEA"),1))+1) "MACD.DIF"ANDCROSS("MACD.DIF","MACD.DEA") 0,L-0.02,'★M底背'),COLOR00FFFF;{MACD底}

       DRAWTEXT(REF(C,BARSLAST(REF(CROSS("MACD.DEA","MACD.DIF"),1))+1) CANDREF("MACD.DIF",BARSLAST(REF(CROSS("MACD.DEA","MACD.DIF"),1))+1) "MACD.DIF"ANDCROSS("MACD.DEA","MACD.DIF") 0,H+0.16,'★M顶背'),COLOR00FF00;{MACD顶背离};

       五日乖离率:=(C-MA05)/MA05*100;

       BB05:=ATAN((MA05/REF(MA05,1)-1)*100)*180/3.1416;

       速度5:=SMA(EMA((MA05-REF(MA05,1))/REF(MA05,1),3)*100,3,1);

       加速度5:=EMA((速度5-REF(速度5,1)),3),NODRAW;

       BB10:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416;

       三拾日乖离率:=(C-MA30)/MA30*100,NODRAW;

       VAR2:=(MA30-MA20) REF((MA30-MA20),1)ANDMA20 REF(MA20,1)ANDMA30 REF(MA30,1);

       BB30:=ATAN((MA30/REF(MA30,1)-1)*100)*180/3.1416;

       强势狙击:=FILTER(BB30 30ANDBB10 45ANDCROSS(BB05,60),10);

       加仓:=FILTER(COUNT(CROSS(BB05,30),5) =1ANDMA05 REF(MA05,1)AND三拾日乖离率 REF(三拾日乖离率,1)ANDMA10 REF(MA10,1)

       AND加速度5 REF(加速度5,1)AND速度5 REF(速度5,1),10);

       清仓:=FILTER(COUNT(CROSS(30,BB05),5) =1AND(C MA30ORO MA30)ANDMA05 REF(MA05,1)AND三拾日乖离率 REF(三拾日乖离率,1)ANDMA10 REF(MA10,1),10);

       DRAWTEXT(加仓,LOW*0.98,'←加仓'),COLORRED;

       JC:=CROSS(0,五日乖离率)AND三拾日乖离率 REF(三拾日乖离率,1)ANDMA10 REF(MA10,1);

       减仓:=FILTER(JC,10);

       MR:=COUNT(CROSS(五日乖离率,0),3) =1AND三拾日乖离率 REF(三拾日乖离率,1)ANDMA05 REF(MA05,1)AND(C/REF(C,1)-1)*100 5ANDREF(C,1) MA30;

       买入:=FILTER(MR,10);

       DRAWTEXT(减仓,HIGH*1.02,'←风险'),COLORCYAN;

       DRAWTEXT(买入,LOW*0.98,'←买底'),COLORYELLOW;

       DRAWTEXT(清仓,HIGH*1.02,'←清仓'),COLORGREEN;

       DRAWTEXT(强势狙击,LOW*0.98,'←强势狙击'),COLORYELLOW;

       VAR21:=MAX(ABS(HIGH-AMOUNT/VOL/100),ABS(AMOUNT/VOL/100-LOW));

       VAR3:=ABS((OPEN+CLOSE)/2-AMOUNT/VOL/100);

       MV:=(VAR21+VAR3)/AMOUNT*VOL*100*50;

       LC:=REF(CLOSE,1);

       :=((SMA(MAX((CLOSE-LC),0),3,1)/SMA(ABS((CLOSE-LC)),3,1))*100);

       DRAWTEXT(CROSS(88,RSI),(HIGH*1.01),'R背'),COLOR00FF00;

       X1:=(C+L+H)/3;

       BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10;

       上:=EMA(C,3),COLORBLUE,LINETHICK1;

       中:=EMA(C,5),COLORWHITE,LINETHICK1;

       下:=EMA(中,5),COLOR00FF00,LINETHICK1;

       QQ:=C

       MM:=上 REF(上,1)ANDREF(上,1) REF(上,2);

       V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);

       V2:=(1-7/100)*(DMA(CLOSE,V1));

       V3:=(1+7/100)*(DMA(CLOSE,V1));

       V5:=MA((LOW+HIGH+CLOSE)/3,5);

       {收盘价=4日内收盘价的最高值AND昨收=4日内收盘价的最低值}

       VAR03:=CLOSE=LLV(C,4)AND(REF(C,1) REF(C,2)ORREF(C,1) REF(C,3))OR

       REF(C,1)=LLV(C,4)ANDC REF(C,2)ORREF(C,2)=LLV(C,4)AND

       REF(C,1)=HHV(C,4)ANDC REF(C,1)ORREF(C,3)=LLV(C,4)AND

       C REF(C,1)ANDC REF(C,2);

       {收盘价=4日内收盘价的最低值AND(昨收 2日前的收盘价}

       VAR04:=REF(C,1)=LLV(C,4)ANDC =REF(C,2)ORREF(C,2)=LLV(C,4)AND

       REF(C,1) =REF(C,3)ANDREF(C,2) REF(C,4)ANDC =REF(C,1);

       {昨收=4日内收盘价的最低值AND收盘价 =2日前的收盘价}

       VAR05:=REF(C,1)=HHV(C,4)ANDC REF(C,2)OR(REF(C,2)=HHV(C,4)AND

       REF(C,1) REF(C,3)ORREF(C,3)=HHV(C,4)ANDREF(C,1) REF(C,2))AND

       REF(C,2) =REF(C,4)ANDC REF(C,1);

       {昨收=4日内收盘价的最高值AND收盘价 2日前的收盘价}

       VAR06:=V5 REF(V5,1)ANDREF(V5,1) REF(V5,2);

       {今日V5向上形成拐点}

       VAR07:=LOW HHV(V5,13)ANDHIGH HHV(V5,13)ANDCLOSE REF(C,1)ANDCLOSE OPEN;

       VAR08:=VAR07ANDCOUNT(VAR06,2);

       VAR09:=100*EMA(EMA(C-REF(C,1),6),6)/EMA(EMA(ABS(C-REF(C,1)),6),6);

       {}

       STICKLINE(CLOSE REF(CLOSE,1)*1.0985ANDCLOSE=HIGH,CLOSE,OPEN,4,-1),

       COLOR00FFFF;

       {跌停}

       STICKLINE(CLOSE REF(CLOSE,1)*0.9015ANDCLOSE=LOW,CLOSE,OPEN,4,-1),

       COLORGREEN;

       TJ1:=VOL=HHV(VOL,10)ANDVOL 2*REF(VOL,1)ANDCLOSE VAR1;

       立桩量:=FILTER(TJ1,5);

       TJ2:=IF(BARSLAST(立桩量)=1ANDCLOSE REF(HIGH,1),1,IF(BARSLAST(立桩量)=2ANDCLOSE REF(HIGH,2),1,IF(BARSLAST(立桩量)=3ANDCLOSE REF(HIGH,3),1,0)));

       :=TJ2=1;

       TJ3:=IF(BARSLAST(立桩量)=1ANDCLOSE REF(LOW,1),1,IF(BARSLAST(立桩量)=2ANDCLOSE REF(LOW,2),1,IF(BARSLAST(立桩量)=3ANDCLOSE REF(LOW,3),1,0)));

       三天法则:=TJ3=1;

       成立:=三天法则AND突破;

       条件成立:=FILTER(成立,3);

       DRAWTEXT(条件成立,L*0.99,'成立'),COLOR00FFFF;

       DRAWTEXT(立桩量,L*0.99,'桩量'),COLOR0000FF;

       {绿}

       STICKLINE(OPEN =CLOSE,CLOSE,OPEN,3.0,0),COLOR00CC00;

       STICKLINE(OPEN =CLOSE,CLOSE,OPEN,2.7,0),COLOR003300;

       STICKLINE(OPEN =CLOSE,CLOSE,OPEN,2.1,0),COLOR006600;

       STICKLINE(OPEN =CLOSE,CLOSE,OPEN,1.5,0),COLOR009900;

       STICKLINE(OPEN =CLOSE,CLOSE,OPEN,0.9,0),COLOR00CC00;

       STICKLINE(OPEN =CLOSE,CLOSE,OPEN,0.3,0),COLOR00FF00;

       {红}

       STICKLINE(CLOSE OPEN,CLOSE,OPEN,0.1,0),COLOR0000FF;

       STICKLINE(CLOSE OPEN,CLOSE,OPEN,3.0,0),COLOR0000FF;

       STICKLINE(CLOSE OPEN,CLOSE,OPEN,2.7,0),COLOR000077;

       STICKLINE(CLOSE OPEN,CLOSE,OPEN,2.1,0),COLOR000099;

       STICKLINE(CLOSE OPEN,CLOSE,OPEN,1.5,0),COLOR0000BB;

       STICKLINE(CLOSE OPEN,CLOSE,OPEN,0.9,0),COLOR0000DD;

       STICKLINE(CLOSE OPEN,CLOSE,OPEN,0.3,0),COLOR0000FF;

       {蓝色}

       STICKLINE(VAR03,OPEN,(OPEN+CLOSE)/2,3.0,0),COLORFFFF33;

       STICKLINE(VAR03,OPEN,(OPEN+CLOSE)/2,2.7,0),COLORFF3333;

       STICKLINE(VAR03,OPEN,(OPEN+CLOSE)/2,2.1,0),COLORFF6633;

       STICKLINE(VAR03,OPEN,(OPEN+CLOSE)/2,1.5,0),COLORFF9933;

       STICKLINE(VAR03,OPEN,(OPEN+CLOSE)/2,0.9,0),COLORFFCC33;

       STICKLINE(VAR03,OPEN,(OPEN+CLOSE)/2,0.3,0),COLORFFFF33;

       {灰}

       STICKLINE(VAR04ANDMM,OPEN,(OPEN+CLOSE)/2,3.0,0),COLOR00FFFF;

       STICKLINE(VAR04ANDMM,OPEN,(OPEN+CLOSE)/2,2.7,0),COLOR0033FF;

       STICKLINE(VAR04ANDMM,OPEN,(OPEN+CLOSE)/2,2.1,0),COLOR0066FF;

       STICKLINE(VAR04ANDMM,OPEN,(OPEN+CLOSE)/2,1.5,0),COLOR0099FF;

       STICKLINE(VAR04ANDMM,OPEN,(OPEN+CLOSE)/2,0.9,0),COLOR00CCFF;

       STICKLINE(VAR04ANDMM,OPEN,(OPEN+CLOSE)/2,0.3,0),COLOR00FFFF;

       涨停紫色:STICKLINE((CLOSE-REF(CLOSE,1))/REF(CLOSE,1) 0.095,CLOSE,OPEN,3.5,0),COLORMAGENTA;

       N:=10;

       M:=2.5;

       TR1:=MAX(MAX(HIGH-LOW,ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));

       UP:=(HIGH+LOW)/2+MA(TR1,N)*M;

       DN:=(HIGH+LOW)/2-MA(TR1,N)*M;

       L1:=REF(UP,BARSLAST(UP =REF(UP,1)));

       L2:=LLV(UP,N*1.5);

       LL:=IF(L2!=REF(L2,1)ANDL1 REF(L1,1),L1,IF(L1=L2,L1,L2));

       S1:=BARSLAST(CROSS(0.5,UP=LL))+1;

       S2:=CROSS(COUNT(CROSS(CLOSE,LL)ORCROSS(CLOSE,REF(LL,2))ANDUP LL,S1),0.5);

       A6:=BARSLAST(S2);

       B6:=BARSLAST(CROSS(HHV(DN,A6+1),CLOSE));

       BY:=CROSS(B6,A6);

       SL:=CROSS(A6,B6);

       TDXSTEP266:DRAWKLINE(HIGH,OPEN,LOW,CLOSE);

       良友:IF(B6 A6,HHV(DN,BARSLAST(BY)+1),LLV(UP,BARSLAST(SL)+1)),COLORGREEN,LINETHICK2;

       终极主升:IF(B6 A6,趋势良友,DRAWNULL),COLOR0000C8,LINETHICK2;

       TDXSTEP267:DRAWICON(CROSS(B6,A6),趋势良友*0.99,34);

       TDXSTEP268:DRAWICON(CROSS(A6,B6),趋势良友*1.015,35);

       买进:CROSS(B6,A6)*100,NODRAW,COLORRED;

       卖出:CROSS(A6,B6)*100,NODRAW;

       DF:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100 (-4.95);

       AA:=BARSLAST(DF);

       暴利线:REF(CLOSE,AA+1),COLORGRAY;

       突破:=CROSS(CLOSE,REF(CLOSE,AA+1));

       TDXSTEP269:DRAWTEXT(ISLASTBAR,暴利线,2),COLORGRAY;

       TDXSTEP270:DRAWICON(突破,LOW*0.99,25);

       CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);

       DD:=DMA(CLOSE,CC);

       智能辅助线:(1-7/100)*DD,DOTLINE,COLORGREEN;

       A1:=C*2-REF(C,8.5/2);

       A2:=REF(C,19/3)*2-C;

       短期对称:=(A1+A2)/2;

       关键点:=HHV(短期对称,27/2);

       M1:=L*2-REF(H,27/2);

       M2:=REF(H,27/2)*2-L;

       M3:=(M1+M2)/2;

       中期对称:=FORCAST(M3,21);

       趋势判断:MA(M3,27*2),COLOR0000FF,NODRAW;

       VAR5:=EMA((O+H+L+C)/4,233);

       鹰派审美观:=VAR5+VAR5*6/100;

       AMV0:=V*(O+C)/2;

       朦胧才是美:=SUM(AMV0,45.5)/SUM(V,45.5);

       CG:=MA(C,12.5);

       FL:=HHV(CG,9);

       FS:=CG-FL-CG;

       ZA5:=趋势判断-REF(趋势判断,1);

       {通达信版}

       IF(ZA5 0,趋势判断,DRAWNULL),COLOR00FF00,POINTDOT,LINETHICK4;

       IF(ZA5 0,趋势判断,DRAWNULL),COLOR0000FF,POINTDOT,LINETHICK4;

       IF(ZA5=0,趋势判断,DRAWNULL),COLOR00FFFF,POINTDOT,LINETHICK4;

       {通用版}

       {DRAWTEXT(ZA5 0,趋势判断,'●'),COLOR00FF00;

       DRAWTEXT(ZA5 0,趋势判断,'●'),COLOR0000FF;

       DRAWTEXT(ZA5=0,趋势判断,'●'),COLOR00FFFF;}

       STICKLINE(C =CG,O,C,2.5,0),COLOR0000FF;

       STICKLINE(C =CG,L,O,0,1),COLOR0000FF;

       STICKLINE(C =CG,C,H,0,1),COLOR0000FF;

       STICKLINE(C CG,C,O,2.5,0),COLOR00FF00;

       STICKLINE(C CG,O,L,0,0),COLOR00FF00;

       STICKLINE(C CG,H,C,0,0),COLOR00FF00;

       H1:=HHVBARS(A1,13);

       HB:=HHVBARS(A1,4.5);

       判断:REF(短期对称,HB),COLORFFFF00;

       判断:REF(M3,H1),COLOR00FFFF;




    主图智能辅助线指标截图

    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 主图智能辅助线指标源码 加入收藏