通达信分时五线谱完整版—分时主图公式

2017-07-08 14:01:00来源:本站整理浏览:912

DRAWTEXT_FIX(1,0,1,0,STRCAT('上涨家数:',CON2STR(上涨家数,0))),COLOR0000FF;
DRAWTEXT_FIX(1,0.1,1,0,STRCAT('下跌家数:',CON2STR(下跌家数,0))),COLOR00FF00;
{木子0:=(BARSLAST(((HOUR = 9) AND (MINUTE = 31))) + 1);
木子1:=((AMOUNT / VOL) / 100);
木子2:=(SUM((CLOSE * VOL),0) / SUM(VOL,0));
木子3:=(((SETCODE = 0) OR (SETCODE = 1)) AND (CLOSE < 500));
HHH:IF(((SETCODE < 2) AND (CONST(木子0) < 241)),CONST(IF((TIME < TT2),HHV(CLOSE,0),SUM((IF((TIME = TT2),1,0) * HHV(CLOSE,0)),0))),DRAWNULL),LINETHICK1,COLORYELLOW;
DRAWTEXT(ISLASTBAR,HHH,' 突破线'),COLORYELLOW;
LLL:IF(((SETCODE < 2) AND (CONST(木子0) < 241)),CONST(IF((TIME < TT2),HHV(CLOSE,0),SUM((IF((TIME = TT2),1,0) * LLV(CLOSE,0)),0))),DRAWNULL),COLORWHITE;
DRAWTEXT(ISLASTBAR,LLL,'观察线'),COLORRED;
DRAWTEXT(CROSS(现价,HHH) AND (MACD>=0 OR CROSS(DIF,DEA)),HHH,'↑买'),COLORRED;
DRAWICON(CROSS(现价,HHH) AND (MACD>=0 OR CROSS(DIF,DEA)),HHH,1);};
RCC:=DYNAINFO(3);
S2:=SMA(C,2,1);
S6:=SMA(C,3,1);
DK:=8*(S2-S6);
KK:=IF(PERIOD=8,0.95,1);
XG:=HHV(H,480),COLORRED,LINETHICK1;
STICKLINE(FILTER(CROSS(C,REF(XG,1)),10),C*0.995,C,1,0),COLORRED;
DRAWTEXT(FILTER(CROSS(C,REF(XG,1)),10),C*0.995,'★上攻+逢高卖出 '),COLORRED;
XY:=LLV(H,480),COLOR00FF00,LINETHICK1;
STICKLINE(FILTER(CROSS(C,REF(XY,1)),10),C*0.995,C,1,0),COLOR00FF00;
DRAWTEXT(FILTER(CROSS(C,REF(XY,1)),10),C*0.995,'★砸盘+慎重补仓■'),COLORYELLOW;


TT:=BARSCOUNT(C);
ZZ:=SUM(AMOUNT,TT)/SUM(VOL*100,TT);
ZZ1:=BETWEEN(C/ZZ,1.05,0.95);
均线:=IF(ZZ1=0,MA(C,TT),ZZ),COLORYELLOW,LINETHICK;
突破1:=C>=REF(HHV(H,TT),1) AND HHVBARS(VOL,TT)=0 AND C/均线<1.09 AND TT>13 AND TT<240;
DRAWTEXT(C>=REF(HHV(H,TT),1) AND HHVBARS(VOL,TT)=0 AND C/均线<1.09 AND TT>=13 AND TT<240 ,C+0.03 , '突-破'),COLORYELLOW;
STICKLINE(C>=REF(HHV(H,TT),1) AND HHVBARS(VOL,TT)=0 AND C/均线<1.09 AND TT>=13 AND TT<230 ,DYNAINFO(3) ,CLOSE+0.05 ,1 ,2);

Q:=250;
高点:=HHV(C,Q);
低点:=LLV(C,Q);
最高:=CONST(高点),NODRAW;
最低:=CONST(低点),NODRAW;
轴差:=最高-最低;
拉升量:=IF(C>REF(C,1),VOL,0);
昨拉升最高值:=CONST(FINDHIGH(拉升量,FROMOPEN,240,1)),LINETHICK1,COLORMAGENTA;
DRAWTEXT(FILTER(CROSS(拉升量,昨拉升最高值),30),最低+轴差*0.80,'☆量突破'),COLORCYAN;
STICKLINE(FILTER(CROSS(拉升量,昨拉升最高值),30),最低+轴差*0.83,(最低+C)/2,1,0),COLORMAGENTA;
DRAWICON(FILTER(CROSS(拉升量,昨拉升最高值),30),最低+轴差*0.83,27);

Y:="MK.明Y#DAY";
D:="MK.明D#DAY";
Z:="MK.明Z#DAY";
K:="MK.明K#DAY";
KJ1:=REFDATE(Y,DATE),COLORBLUE,LINETHICK2;
KJ2:REFDATE(D,DATE),COLORRED,LINETHICK2;
KJ4:REFDATE(Z,DATE),COLORYELLOW,LINETHICK2;
KJ5:REFDATE(K,DATE),COLORBROWN,LINETHICK2;
KJ6:=REFDATE((Y+D)/2,DATE),COLORWHITE,LINETHICK1;

DRAWNUMBER(ISLASTBAR,KJ2,KJ2),COLOR00AEAE;
DRAWNUMBER(ISLASTBAR,KJ4,KJ4),COLORFFFF00;
DRAWNUMBER(ISLASTBAR,KJ5,KJ5),COLORFFFFFF;
{DRAWNUMBER(ISLASTBAR,KJ1,KJ1),COLOR00FFFF;
DRAWTEXT(CURRBARSCOUNT=8,KJ1,' 强势'),COLORFF9900,LINETHICK2;}
DRAWTEXT(CURRBARSCOUNT=8,KJ2,' 日强'),COLORRED,LINETHICK2;
DRAWTEXT(CURRBARSCOUNT=8,KJ4,' 分界 '),COLORYELLOW,LINETHICK2;
DRAWTEXT(CURRBARSCOUNT=8,KJ5,' 空头'),COLORBROWN,LINETHICK2;


 


通达信分时五线谱完整版—分时主图公式

上一页  [1] [2] 

股票公式栏目导航

精品指标推荐

最新热门

本类随机推荐

相关公式