当前位置:首页 > 通达信公式 > 内容

通达信均线突破主图指标公式源码

作者:公式指标平台   更新时间:2024-11-15   点击:

N:=10;
M := 3;
M5:MA(CLOSE,5);
M10:MA(CLOSE,10),COLORCYAN;
M20:MA(CLOSE,20);
M30:MA(CLOSE,30),COLORYELLOW,LINETHICK2;
M60:MA(CLOSE,60),COLORLIMAGENTA,LINETHICK2;
MA120:=MA(CLOSE,120),COLOR80FF00;
MA250:=MA(CLOSE,250),COLORFF0080;
MA10:=MA(CLOSE,N);
volUME:=VOL;
macd:=MACD.MACD;
kdj_K:=kdJ.K;
KDJ_D:=KDJ.D;
rsi:=RSI.RSI1;
XG:=crOSS(C,M20) AND VOLUME>REF(VOLUME,1)*1.5 AND MACD>0 AND KDJ_K>KDJ_D AND RSI>50;
STICKLINE(XG,OPEN,CLOSE,2.5,0)COLORYELLOW;
DRAWICON(XG, L, 1);
DRAWTEXT(XG,L*0.97,'↖均线突破战法'),LINETHICK1,COLORYELLOW;
突破颈线:IF(EXIST(CROSS(MA(C,40),MA(C,60)),60) AND HHV(C,20)=REF(HHV(C,20),1),HHV(C,20),DRAWNULL),COLORYELLOW,LINETHICK3;
STICKLINE(CURRBARSCOUNT=1,REF(突破颈线,5),REF(突破颈线,5),10,0),COLORMAGENTA;
DRAWTEXT(CURRBARSCOUNT=1,REF(突破颈线,5)*1.003,'注意突破口'),COLORMAGENTA;
A1:=EMA(C,14),COLORWHITE,LINETHICK1;
A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW;
突破:=REF(EMA(C,14),1),NODRAW;
距离:=(C-突破)/突破*100,NODRAW;
入场:=IF(A1X>=0,REF(EMA(C,14),BARSLAST(CROSS(A1X,0))+1),DRAWNULL)COLORRED,LINETHICK1;
出逃:=IF(A1X< 0,REF(EMA(C,14),BARSLAST(CROSS(0,A1X))+1),DRAWNULL)COLORGREEN,LINETHICK1;
钱袋子:=DRAWICON(CROSS(A1X,0) AND C>=REF(HHV(H,7),1) AND C>REF(C,1)*1.097,L,9);
起爆点:=DRAWTEXT(CROSS(A1X,0) AND C>=REF(HHV(H,7),1) AND C>REF(C,1)*1.097 ,H*1.018,'←起爆')COLORBLUE;
DRAWTEXT(CROSS(A1X,0) AND C>=REF(HHV(H,7),1) AND C>REF(C,1)*1.097 AND C=H,H*1.008,'←打首板')COLOR4080FF;
STICKLINE(CROSS(A1X,0),(C+O)/2,O,1,0),COLORRED;
STICKLINE(CROSS(0,A1X),(C+O)/2,O,1,0),COLORYELLOW;
VAR1:=EMA(CLOSE,7);
VAR2:=EMA(CLOSE,21);
VAR3:=10;
VAR4:=CONST(HHVBARS(VOL,VAR3));
VAR5:=VAR3;
VAR6:=CONST(REF(HHVBARS(VOL,VAR5),VAR4+1)+VAR4+1);
突破天数:VAR6,NODRAW,COLOR40FF00;
VAR7:=IF(CURRBARSCOUNT<=VAR4+VAR5+3 AND CURRBARSCOUNT>=VAR4+1,CONST(REF(MAX(CLOSE,OPEN),VAR6)),DRAWNULL);
DRAWTEXT(突破天数,L*1.02,'突破天数'),COLORYELLOW;
突破价格:VAR7,COLOR40FF00;
VAR8:=IF(CURRBARSCOUNT<=VAR4+VAR5+3 AND CURRBARSCOUNT>=VAR4+1,CONST(REF(HIGH,VAR6)),DRAWNULL);
VAR9:=DRAWICON(CURRBARSCOUNT=VAR6+1,VAR7,25);
VAR10:=CONST(LLVBARS(VOL,VAR5));
VAR11:=VAR6+1;
VAR12:=REF(MAX(CLOSE,OPEN),VAR6);
VAR13:=IF(CURRBARSCOUNT<=VAR4+VAR5+3 AND CURRBARSCOUNT>=VAR4+1,CONST(REF(VOL,VAR6)),DRAWNULL);
VAR14:=CROSS(CLOSE,VAR7) AND CROSS(VOL,VAR13) AND REF(MAX(CLOSE,OPEN),VAR4+1)=HHV(MAX(REF(CLOSE,1),REF(OPEN,1)),VAR4+1) AND VAR11>=5 AND VAR11<=11;
VAR15:=CROSS(CLOSE,VAR7) AND CROSS(VOL,VAR13) AND LAST(MAX(REF(CLOSE,1),REF(OPEN,1))<=REF(MAX(CLOSE,OPEN),1),VAR11,1) AND VAR11>=4 AND VAR11<=11 AND CLOSE>OPEN;
VAR16:=CROSS(CLOSE,VAR7) AND CROSS(VOL,VAR13) AND LAST(MAX(CLOSE,OPEN)<VAR8,VAR11-2,1) AND VAR11>=5 AND VAR11<=11 AND CLOSE>OPEN;
VAR17:=VAR16 AND CROSS(VAR1,VAR2);
DRAWTEXT(VAR17,L*0.962,'突破'),LINETHICK1,COLORYELLOW;
STICKLINE(CURRBARSCOUNT=VAR6+1,CLOSE,OPEN,2,0),COLORYELLOW;
STICKLINE(VAR17,VAR7,OPEN,2,0),COLORMAGENTA;

通达信均线突破主图指标公式源码

通达信均线突破主图指标公式源码

资源下载

相关文章

热门推荐

移动端首页 | PC端

© by gszx.com.cn Mobile Web