您好,欢迎访问三七文档
各种指标源码波段极品趋势:SMA(((CLOSE-LLV(LOW,28))/(HHV(HIGH,28)-LLV(LOW,28))*100),3,1),COLORYELLOW;DRAWBAND(趋势,RGB(155,50,50),50,RGB(0,100,50));转强:IF(趋势50,趋势,DRAWNULL),COLORRED;转弱:IF(趋势50,趋势,DRAWNULL),COLORGREEN;RSV:=(CLOSE-LLV(CLOSE,9))/(HHV(CLOSE,9)-LLV(CLOSE,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);TYP:=(HIGH+LOW+CLOSE)/3;CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));DIFF:=EMA(CLOSE,2)-EMA(CLOSE,55);DEA:=EMA(DIFF,6);MACD:=2*(DIFF-DEA);转点:=IF(KDANDCCI0ANDDIFFDEAANDMACD0,1,0);STICKLINE(转点=1,50,50,2,0),COLORYELLOW;STICKLINE(转点=0,50,50,2,0),COLORCYAN;STICKLINE(C,90,90,1,0),COLORYELLOW;STICKLINE(C,10,10,1,0),COLORCYAN;判断:SMA(趋势,3,1),COLORYELLOW;IF(判断50AND趋势判断,判断,DRAWNULL),COLORYELLOW,LINETHICK2;IF(判断50AND趋势判断,判断,DRAWNULL),COLORFF00FF;IF(判断50AND趋势判断,判断,DRAWNULL),COLORGREEN,LINETHICK2;风险区:80,COLORFF85FF,POINTDOT;安全区:20,COLORYELLOW,POINTDOT;顶部:90,COLORFFFF00;强弱线:50,COLORGREEN,POINTDOT;DRAWICON(CROSS(趋势,判断)AND趋势80,判断,1);DRAWICON(CROSS(趋势,顶部),顶部,2);LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;VAR1:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;VAR2:=SMA(VAR1,9,1)+100;VAR3:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;VAR4:=SMA(VAR3,3,1);VAR5:=SMA(VAR4,3,1)+100;VAR6:=VAR5-VAR2;趋势1:IF(VAR645,VAR6-45,0),COLOR00FFFF;VAR2Q:=REF(LOW,1);VAR3Q:=SMA(ABS(LOW-VAR2Q),3,1)/SMA(MAX(LOW-VAR2Q,0),3,1)*100;VAR4Q:=EMA(IF(CLOSE*1.3,VAR3Q*10,VAR3Q/10),3);VAR5Q:=LLV(LOW,30);VAR6Q:=HHV(VAR4Q,30);VAR7Q:=IF(MA(CLOSE,58),1,0);VAR8Q:=EMA(IF(LOW=VAR5Q,(VAR4Q+VAR6Q*2)/2,0),3)/999*VAR7Q;火焰山:=IF(VAR8Q100,100,VAR8Q);STICKLINE(火焰山0,0,火焰山*1.2,3,0),COLOR4444FF;STICKLINE(火焰山0,0,火焰山*1.2,2,0),COLOR7777FF;STICKLINE(火焰山0,0,火焰山*1.2,1,0),COLOR9999FF;STICKLINE(REF(趋势1,1)趋势1,趋势1,REF(趋势1,1),3,0),COLOR000033;STICKLINE(REF(趋势1,1)趋势1,趋势1,REF(趋势1,1),2,0),COLOR000077;STICKLINE(REF(趋势1,1)趋势1,趋势1,REF(趋势1,1),1.5,0),COLOR0000BB;STICKLINE(REF(趋势1,1)趋势1,趋势1,REF(趋势1,1),1,0),COLOR0000DD;STICKLINE(REF(趋势1,1)趋势1,趋势1,REF(趋势1,1),3,0),COLOR003300;STICKLINE(REF(趋势1,1)趋势1,趋势1,REF(趋势1,1),2,0),COLOR007700;STICKLINE(REF(趋势1,1)趋势1,趋势1,REF(趋势1,1),1,0),COLOR00DD00;逃顶:=CROSS(82,RSI);STICKLINE(逃顶,逃顶,20,3,0),COLORFF5500;STICKLINE(逃顶,逃顶,30,2,0),COLORFF8800;STICKLINE(逃顶,逃顶,30,1,0),COLORFFAA00;STICKLINE(逃顶,逃顶,30,0.5,0),COLORFFCC00;D1:=(C+L+H)/3;D2:=EMA(D1,6);D3:=EMA(D2,5);BBUY:=CROSS(D2,D3);DRAWICON(BBUY,10,1);DRAWTEXT(CURRBARSCOUNT=129,50,'【金盾股票园】'),COLOR889999;VARR1:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100;DRAWICON(CROSS(82,VARR1),10,2);DRAWTEXT(CROSS(82,VARR1),35,'减'),COLORYELLOW;神奇线选股:(CROSS(趋势,判断)AND趋势80),LINETHICK0;波段选股:(BBUY),LINETHICK0;抓主升浪(通达信抓波段主升浪指标)(该指标主要在牛市运用)HHJSJDA:=(3*CLOSE+OPEN+LOW+HIGH)/6;HHJSJDB:(20*HHJSJDA+19*REF(HHJSJDA,1)+18*REF(HHJSJDA,2)+17*REF(HHJSJDA,3)+16*REF(HHJSJDA,4)+15*REF(HHJSJDA,5)+14*REF(HHJSJDA,6)+13*REF(HHJSJDA,7)+12*REF(HHJSJDA,8)+11*REF(HHJSJDA,9)+10*REF(HHJSJDA,10)+9*REF(HHJSJDA,11)+8*REF(HHJSJDA,12)+7*REF(HHJSJDA,13)+6*REF(HHJSJDA,14)+5*REF(HHJSJDA,15)+4*REF(HHJSJDA,16)+3*REF(HHJSJDA,17)+2*REF(HHJSJDA,18)+REF(HHJSJDA,20))/210,COLORYELLOW;HHJSJDC:MA(HHJSJDB,5),COLORRED;MA5:=MA(C,7),COLORWHITE;MA20:=MA(C,20),COLORFF00FF;MA90:MA(C,90),COLORFFCC66;Y1:=BARSLAST(CROSS(MA5,MA20))ANDMA5MA20;Y2:=Y1ANDBARSLAST(CROSS(MA5,MA90));Y3:=Y2ANDCROSS(MA20,MA90);DRAWICON(Y3,L-0.10,1);DRAWTEXT(Y3,L-0.40,'双跨越'),COLORMAGENTA;F0:=BARSLAST(CROSS(MA(C,5),MA(C,90)));F1:=F0ANDBARSLAST(CROSS(MA(C,20),MA(C,90)));F2:=F1ANDCROSS(MA(C,5),MA(C,20))ANDMA(C,20)MA(C,90);DRAWICON(F2,L-0.10,1);DRAWTEXT(F2,L-0.40,'双蹄奋起');MA51:=MA(C,5);MA10:=MA(C,10);MA201:=MA(C,20);MA30:=MA(C,30);MA60:=MA(C,60);MA120:=MA(C,120);FA:=BARSLAST(CROSS(MA10,MA51))ANDCROSS(MA51,MA10);FB:=FAANDMA51MA30ANDMA10MA30ANDMA10REF(MA10,1);STICKLINE(FB,L,L-0.09,1,0),COLORYELLOW;DRAWTEXT(FB,L-0.13,'雄起'),COLORYELLOW;黄金线同花顺股市黄金线input:N(1,110,15);生命线:98,linethick1,coloryellow;生命禁区:95,linethick1,colorred;股价泥潭:20,linethick1,colorblue;生死线:50,linethick2,colorwhite;C0:=(H+L+C)/3;a1:=HHV(C0,n);a2:=LLV(C0,n);a3:=a1-a2;a4:=EMA((C0-a2)/a3,2)*100;b1:=HHV(C0,4*n);b2:=LLV(C0,4*n);b3:=b1-b2;b4:=EMA((C0-b2)/b3,2)*100;C1:=HHV(C0,16*n);C2:=LLV(C0,16*n);C3:=C1-C2;C4:=EMA((C0-C2)/C3,2)*100;短期:a4,colorgreen,linethick1;中期:b4,coloryellow,linethick2;长期:C4,colorred,linethick3;DRAWICON(CROSS(生命禁区,短期)ANDREF(短期,1)短期,短期*1.1,11);DRAWTEXT(CROSS(生命禁区,短期)ANDREF(短期,1)短期,短期*1.1,'←卖'),colorcyan;DRAWICON(CROSS(生命线,短期)ANDREF(短期,1)短期,短期*1.2,12);DRAWTEXT(CROSS(生命线,短期)ANDREF(短期,1)短期,短期*1.2,'←卖'),colorcyan;DRAWTEXT(CROSS(短期,生命禁区),85,'警惕!!'),colorwhite;DRAWTEXT(CROSS(中期,生命禁区),95,'减磅'),ColorFF6800;DRAWTEXT(CROSS(长期,生命禁区),100,'出局'),colormagenta;DRAWICON(CROSS(短期,生命禁区),85,4);DRAWICON(CROSS(中期,生命禁区),95,8);DRAWICON(CROSS(长期,生命禁区),100,3);使用说明:1、红色长期线在上,黄色生命线在中,绿色短期线在下往上穿,不能买。2、红色长期线在上,绿色短期线向上突破黄色生命线,不能买。极容易再次套牢。3、红色的长期在顶部区域,黄色生命线也在近顶部,绿色短期线下跌没有到了底部,就直接在生死线以上回去与顶部的其他线粘合。这个期间,其实风险很大,极有可能你今天买入,明天就放量下降。所以宁可不要冒这个风险。4、三线在底部粘合一段时间,时间越长越安全。等三线向上发散了,再结合其他指标,就可以买入了。5、绿在底部上穿红线,黄线站稳生死线。是又一次介入的最佳时机。这个指标就是抓大黑马的改良版,这个第二种情况就是抓大黑马。6、绿线下穿生死线减仓。黄线下穿生死线清仓。此公式来自于:同花顺社区公式交流风之行208来自浙江省嘉兴市进场出场同花顺逢高出场和
本文标题:各种指标源码
链接地址:https://www.777doc.com/doc-7304954 .html