会心系列公式 源码大放送

2017-01-13 21:58:00来源:本站整理浏览:423

 STICKLINE(C>=O,低,开,0,1),COLORLIRED;
 STICKLINE(C<O,收,开,2,1),COLORLIGREEN;
 STICKLINE(C<O,高,开,0,1),COLORLIGREEN;
 STICKLINE(C<O,低,收,0,1),COLORLIGREEN;
 MACD:MACD,NODRAW;
 MARD:SMA(MACD,3,1),NODRAW;
 IF(MACD>MARD,MACD,DRAWNULL),COLORRED,NODRAW;
 STICKLINE(MACD>MARD,MACD,MARD,3,0),COLORRED;
 STICKLINE(MACD<MARD,MACD,MARD,3,0),COLORBLUE;
 STICKLINE(MACD>MARD AND MACD<0,MACD,MARD,3,0),COLORYELLOW;
 K:-MACD,COLORYELLOW;
 D:-MARD,COLORWHITE;
倍数:MACD-MARD,NODRAW;
 DRAWICON(MACD-MARD>0.1,(MACD+MARD)/2,1);


会心气泡
VAR1Z:=REF(MA(C,20),10);
开:=O-VAR1Z,NODRAW;
高:=H-VAR1Z,NODRAW;
低:=L-VAR1Z,NODRAW;
会心收盘价:C-VAR1Z,NODRAW;
 MID:=(3*会心收盘价+低+开+高)/6;
红线:=(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF(MID,5)
 +14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)
 +8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)
 +2*REF(MID,18)+REF(MID,20))/210,COLORLIRED;
绿线:=MA(红线,6),COLORLIGREEN;
 X1:=ABS(红线)/0.9,COLORBROWN;
气泡:IF(红线<=0,X1,DRAWNULL),COLORYELLOW,NODRAW;
中线:IF(红线<0,(X1+红线)/2,DRAWNULL),COLORMAGENTA,DOTLINE;
 DRAWBAND(绿线,RGB(0,124,124),红线,RGB(155,96,96));
 DRAWKLINE(高,开,低,会心收盘价);
ZP:=红线<=0 AND 气泡>REF(气泡,1);
天数:DRAWNUMBER(ZP,气泡,BARSLAST(REF(红线,1)>0 AND 红线<0)),COLORYELLOW;
 ZP1:=红线<=0 AND 气泡<REF(气泡,1);
天数1:DRAWNUMBER(ZP1,气泡,BARSLAST(REF(气泡>REF(气泡,1),1) AND 气泡<REF(气泡,1))),COLORGREEN;


贴紧买优化1
 AA := REF(CLOSE,1);
 BBB:=SMA(MAX(CLOSE-AA,0),34,1)/SMA(ABS(CLOSE-AA),34,1)*1000;
 HHH:=BBB-LLV(BBB,36);
短期:(MA(HHH,2)*3+HHH*13)/16;
中期:MA(HHH,10);
差值:短期-中期,NODRAW;
 CCC:=LLV(BBB,36)-BBB;
短期二:(MA(CCC,2)*3+CCC*13)/16;
中期二:MA(CCC,10);
 STICKLINE(中期>100,10,-10,2,0),COLORLIGRAY;
 STICKLINE(短期>100 AND 中期>100,10,-10,2,0),COLORRED;
 STICKLINE(短期>200,10,-10,2,0),COLORYELLOW;
 STICKLINE(短期>200 AND 中期>200,10,-10,2,0),COLORMAGENTA;
 100,COLORGRAY,DOTLINE;
 200,COLORLIGRAY,DOTLINE;
 DRAWTEXT_FIX(ISLASTBAR,0,0,0,"转强~灰色"),COLORLIGRAY;
 DRAWTEXT_FIX(ISLASTBAR,0.12,0,0,"强势~红色"),COLORRED;
 DRAWTEXT_FIX(ISLASTBAR,0.24,0,0,"超强~黄色"),COLORYELLOW;
 DRAWTEXT_FIX(ISLASTBAR,0.36,0,0,"顶级强~洋红色"),COLORMAGENTA;
 DRAWTEXT_FIX(ISLASTBAR,0,0.15,0,"注意颜色的顺序,如果相反就是转弱"),COLORCYAN;


贴紧买优化2
 AA := REF(CLOSE,1);
 BBB:=SMA(MAX(CLOSE-AA,0),34,1)/SMA(ABS(CLOSE-AA),34,1)*1000;
 HHH:=BBB-LLV(BBB,36);
短期:=(MA(HHH,2)*3+HHH*13)/16;
中期:=MA(HHH,10);
差值:短期-中期,NODRAW;
 CCC:=LLV(BBB,36)-BBB;
短期二:=(MA(CCC,2)*3+CCC*13)/16;
中期二:=MA(CCC,10);
 VB:=2*(短期-中期),NODRAW;
乖离率6:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
乖离率12:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;
乖离率24:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
 ZP:=乖离率6<-6 AND 乖离率12<-10 AND 乖离率24<-16;
 DRAWICON(ZP,-50,26);
 STICKLINE(VB>=0 AND VB>REF(VB,1),0,VB,1,0),COLORRED;
 STICKLINE(VB>=0 AND VB<REF(VB,1),0,VB,1,1),COLORRED;
 STICKLINE(VB<0 AND 中期>REF(中期,1),0,VB,1,1),COLORRED;
 STICKLINE(VB<0 AND VB<REF(VB,1),0,VB,1,0),COLORGREEN;
 STICKLINE(VB<0 AND VB>REF(VB,1),0,VB,1,1),COLORGREEN;
 STICKLINE(VB<0 AND 中期>REF(中期,1),0,VB,2,-1),COLORRED;
 STICKLINE(VB>=0 AND 中期<REF(中期,1),0,VB,2,-1),COLORGREEN;
 STICKLINE(短期<3,VB,0,1,0),COLORYELLOW;
准备买:IF(短期<3,8,0),COLORYELLOW,NODRAW;
 STICKLINE(短期=0,VB,0,1,0),COLORMAGENTA;
买入:IF(短期=0,8,0),COLORMAGENTA,NODRAW;
 DRAWICON(MA(短期,3)=0,VB,1);
加仓:IF(MA(短期,3)=0,8,0),COLORRED,NODRAW;
 STICKLINE(差值>60 AND VB>0 AND 中期>50,VB,0,1,0),COLORBLUE;
准备卖:IF(差值>60 AND VB>0 AND 中期>50,4,0),COLORBLUE;
 STICKLINE(差值>60 AND VB>0 AND 中期>100,VB,0,1,0),COLORCYAN;
卖出:IF(差值>60 AND VB>0 AND 中期>100,4,0),COLORCYAN;
坚决卖:IF(EVERY(差值>60 AND VB>0 AND 中期>100,2),4,0),COLORGREEN;
 DRAWICON(EVERY(差值>60 AND VB>0 AND 中期>100,2),VB,2);
 STICKLINE(VB>100,100,VB,1,0),COLORBROWN;
 STICKLINE(VB>200,200,VB,1,0),COLORLIRED;
 100,DOTLINE,COLORGRAY;
 DRAWTEXT_FIX(ISLASTBAR,0,0,0,"准备买~黄色"),COLORYELLOW;
 DRAWTEXT_FIX(ISLASTBAR,0.12,0,0,"买入~洋红色"),COLORMAGENTA;
 DRAWTEXT_FIX(ISLASTBAR,0.24,0,0,"加仓~红箭头"),COLORRED;

上一页  [1] [2] [3] [4]  下一页

股票公式栏目导航

精品指标推荐

最新热门

本类随机推荐

相关公式