N:=30;M:=900;
AAA:=MAX(DYNAINFO(3),DYNAINFO(5));
BBB:=MIN(DYNAINFO(3),DYNAINFO(6));
CCC:=AAA-BBB;
中轨:(AAA+BBB)/2,COLOR999900;
DIFF:=(EMA(CLOSE,12)-EMA(CLOSE,26))*500/EMA(CLOSE,26);
DEAA:=EMA(DIFF,9);MACD:=(DIFF-DEAA)/4;
阻力:BBB+CCC*7/8,COLOR00DD00;
支撑:BBB+CCC*1/8,COLOR00DD00;
上顶:=BBB+CCC*2/3,COLOR999900;
下底:=BBB+CCC/3,COLOR999900;
价:=C,COLOR00FFFF;
MA30:=EMA(CLOSE,N);
强弱:=EMA(CLOSE,M);
STICKLINE((MA30 强弱),MA30,强弱,1,0),COLOR0000FF;
STICKLINE((MA30 强弱),MA30,强弱,1,0),COLOR00FF00;
H1:=MAX(DYNAINFO(3),DYNAINFO(5));
L1:=MIN(DYNAINFO(3),DYNAINFO(6));
P1:=H1-L1;
现价:CLOSE,COLORWHITE,LINETHICK1;
STICKLINE(CROSS(支撑,现价),支撑,阻力,1,0),COLORYELLOW;
DRAWTEXT(LONGCROSS(支撑,现价,2),支撑*1.001,'★吸'),COLORYELLOW;{吸}
DRAWTEXT(LONGCROSS(现价,阻力,2),现价,'★抛'),COLORCYAN;{抛};
AI:=IF(TIME=93400,C,DRAWNULL);
AC:=BARSLAST(TIME=93400);
{撑①:REF(AI/(1+0.02),AC),COLORMAGENTA,NODRAW;
撑②:REF(AI/(1+0.03),AC),COLORYELLOW,NODRAW;
撑③:REF(AI/(1+0.04),AC),COLORFF00FF,NODRAW;
撑④:REF(AI/(1+0.06),AC),COLORGREEN,NODRAW;
阻①:REF(AI*(1+0.02),AC),COLORBBBBBB,NODRAW;
阻②:REF(AI*(1+0.03),AC),COLORBLUE,NODRAW;
阻③:REF(AI*(1+0.04),AC),COLORWHITE,NODRAW;
阻④:REF(AI*(1+0.06),AC),COLORYELLOW,NODRAW;};
九毛八公式指标,一个优质的公式指标平台!
九毛八公式指标 »
通达信指标分时抛吸副图源码
加入收藏