自创通达信指标飞越彩泓MA公式

2015-10-23 21:16:00来源:本站整理浏览:366

 XX:=LLV(J,2)=LLV(J,8);
 Y:=IF(CROSS(J,REF(J+0.01,1)) AND XX AND J<20,30,0);
主力:=EMA( (CLOSE-MA(CLOSE,3))/MA(CLOSE,3),2);
散户:=EMA( (CLOSE-MA(CLOSE,20))/MA(CLOSE,20),7);

DRAWTEXT(CROSS(J,REF(J+0.01,1)) AND XX AND J<20,LOW,"短进"),COLORFF00FF;
 DRAWTEXT(CROSS(主力,散户) AND 主力<0 AND 散户<0,LOW,"见底"),COLORRED;
 DRAWICON(CROSS(主力,散户) AND 主力<0 AND 散户<0,LOW,1);
 DRAWTEXT_FIX(ISLASTBAR,0,0.24,0,"★ 飞越彩泓60015759 ★")COLOR0078FF;
称帝:(COST(99)+COST(93)+COST(85))/3,COLORYELLOW,LINETHICK2;
 IF(称帝>=REF(称帝,1),称帝,DRAWNULL),COLORYELLOW,LINETHICK2;
 IF(称帝< REF(称帝,1),称帝,DRAWNULL),COLORBLUE,LINETHICK2;
 X:=(3*C+L+O+H)/6;
多空线:(20*X+19*REF(X,1)+18*REF(X,2)+17*REF(X,3)+16*REF(X,4)+15*REF(X,5)+14*REF(X,6)
 +13*REF(X,7)+12*REF(X,8)+11*REF(X,9)+10*REF(X,10)+9*REF(X,11)+8*REF(X,12)
 +7*REF(X,13)+6*REF(X,14)+5*REF(X,15)+4*REF(X,16)+3*REF(X,17)+2*REF(X,18)+
 REF(X,20))/210,COLORGREEN,LINETHICK2;
 IF(多空线>=REF(多空线,1),多空线,DRAWNULL),COLORRED,LINETHICK2;
 IF(多空线< REF(多空线,1),多空线,DRAWNULL),COLORGREEN,LINETHICK2;
 DRAWICON(CROSS( C ,多空线), C ,25),LINETHICK2;
 DRAWTEXT(CROSS(C,多空线),LOW,"★低吸 "),COLORFFFFFF;
 STICKLINE(CROSS(C ,多空线),0,C,0,0),COLORFFCC66;
 BDGD:=C=HHV(C,13);
 GDSJ:=BARSLAST(FILTER(CROSS(0.8,BDGD),2))+1;
高点:REF(C,GDSJ),COLORGRAY,LINETHICK4,POINTDOT;
突破1:CROSS(C,REF(高点,1)),COLOR00FFFF,POINTDOT,LINETHICK0;
 STICKLINE(GDSJ<=6,高点,高点,8,0),COLORGREEN,LINETHICK2;

{45度异动}
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上升"),COLORYELLOW;

{底顶侦探}
VVAR1:=(2*CLOSE+HIGH+LOW+OPEN)/5;
 VVAR2:=EMA(EMA(EMA(VVAR1,4),4),4);
 SJ:=(VVAR2-REF(VVAR2,1))/REF(VVAR2,1)*100, COLORSTICK;
 SD:=MA(SJ,2);
 SK:=MA(SJ,1);
 VAR3:=CROSS(SK,SD) AND SK<0;
 VAR4:=CROSS(SK,0);
 VAR6:=CROSS(SK,SD) AND SK>0;
 BY:=VAR3, STICK;
 DRAWICON(BY,L*0.96,23);
 BE:=VAR4 OR VAR6, STICK;
 DRAWICON(BE,L*0.96,25);
 VAR7:=CROSS(SD,SK);
 MC:=VAR7, STICK;

{漓江}
VAR13:=(2*CLOSE+HIGH+LOW)/4;
 T:=80, POINTDOT;
 VAR14:=LLV(LOW,5);
 VAR15:=HHV(HIGH,4);
 SK1:=EMA((VAR13-VAR14)/(VAR15-VAR14)*100,4);
 SD1:=EMA(0.667*REF(SK1,1)+0.333*SK1,2);
 {VAR4:=(HHV(HIGH,4)-VAR1)/(HHV(HIGH,4)-LLV(LOW,4))*100-72;
漓江倒影: SMA(VAR4,4,1), LINESTICK;}
 VAR17:=(VAR13-LLV(LOW,4))/(HHV(HIGH,4)-LLV(LOW,4))*100;
 VAR18:=SMA(VAR17,2,1);
桂林山水:=SMA(VAR18,2,1), LINESTICK;

二:=COST(20)/COST(10);
三:=COST(30)/COST(20);
四:=COST(40)/COST(30);
五:=COST(50)/COST(40);
低位密三:=三<二 AND 三<四 AND 三<五 ;
低位密四:=四<二 AND 四<三 AND 四<五 ;
低位密五:=五<二 AND 五<三 AND 五<四 ;
STICKLINE(低位密三>0 AND C<COST(50),COST(30),COST(30)-0.11,COST(30)-0.12,-1),COLOR00C0C0;
 STICKLINE(低位密四>0 AND C<COST(50),COST(40),COST(40)-0.11,COST(40)-0.12,-1),COLORGREEN;
 STICKLINE(低位密五>0 AND C<COST(50),COST(50),COST(50)-0.11,COST(50)-0.12,-1),COLORYELLOW;
 DRAWKLINE(H,O,L,C);

{顶底背离}
LC:=REF(CLOSE,1);
 RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);
 FF:=EMA(CLOSE,3);
 MA15:=EMA(CLOSE,21);
 DRAWTEXT(CROSS(FF,MA15),(LOW * 0.99),"底背离"),COLORRED;
 {DRAWICON(CROSS(FF,MA15),(LOW * 0.99),7); }
 {顶背离}
RSI1:=((SMA(MAX((CLOSE - (REF(CLOSE,1))),0),3,1) / SMA(ABS((CLOSE - (REF(CLOSE,1)))),3,1))* 100);
 DRAWTEXT(CROSS(88,RSI1) AND (MA(C,3))>(EMA(C,3)) ,(HIGH + 0.3),"顶背离"),COLORGREEN;
 {DRAWICON(CROSS(88,RSI1) AND (MA(C,3))>(EMA(C,3)) ,(HIGH + 0.3),8); };
 DRAWTEXT(REF(C,BARSLAST(REF(CROSS("MACD.DIF","MACD.DEA"),1))+1)>C AND
 REF("MACD.DIF",BARSLAST(REF(CROSS("MACD.DIF","MACD.DEA"),1))+1)
 <"MACD.DIF" AND CROSS("MACD.DIF","MACD.DEA")
 >0,L-0.02,"MACD底背离"),COLORRED;{MACD底背离}
DRAWTEXT(REF(C,BARSLAST(REF(CROSS("KDJ.K","KDJ.D"),1))+1)>C AND
 REF("KDJ.K",BARSLAST(REF(CROSS("KDJ.K","KDJ.D"),1))+1)<"KDJ.K" AND
 CROSS("KDJ.K","KDJ.D"),L-0.10,"KDJ底背离"),COLORBLUE;{KDJ底背离}
DRAWTEXT(REF(C,BARSLAST(REF(CROSS("RSI.RSI1","RSI.RSI2"),1))+1)>C AND
 REF("RSI.RSI1",BARSLAST(REF(CROSS("RSI.RSI1","RSI.RSI2"),1))+1)

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

股票公式栏目导航

精品指标推荐

最新热门

本类随机推荐

相关公式