1.通达信绝无仅有分时指标公式_通达信公式
通达信绝无仅有分时指标公式_通达信公式
通达信分时决策指标公式
MA1:=EMA(C,通达后台ui源码);
MA2:=EMA(C,);
H1:=MAX(DYNAINFO(3),DYNAINFO(5));
L1:=MIN(DYNAINFO(3),DYNAINFO(6));
P1:=H1-L1;
阻力:L1+P1*7/8,COLORDD;
支撑:L1+P1*0.5/8,COLORDD;
现价:CLOSE,COLORWHITE,LINETHICK0.;
STICKLINE(CROSS(支撑,现价),支撑,阻力,1,0),COLORYELLOW;
DRAWTEXT(LONGCROSS(支撑,现价,2),支撑*1.,'低吸'),COLORGREEN;{ 吸}
DRAWTEXT(LONGCROSS(现价,阻力,2),现价*1,'高抛'),COLORLIMAGENTA;{ 抛};
止赢:H1,COLORRED,LINETHICK1;
DRAWNUMBER(ISLASTBAR,止赢,止赢),COLORRED;
DRAWTEXT(ISLASTBAR,H1,' 当日止赢价位'),COLORRED,LINETHICK6;
止损:阻力,COLORBLUE,LINETHICK1;
DRAWNUMBER(ISLASTBAR,止损,止损),COLORRED;
DRAWTEXT(ISLASTBAR,阻力,' 高位止损价位'),COLORBLUE,LINETHICK6;
最后止损:支撑,COLORGREEN,LINETHICK1;
DRAWNUMBER(ISLASTBAR,最后止损,最后止损),COLORRED;
DRAWTEXT(ISLASTBAR,支撑,' 低位止损价位'),COLORGREEN,LINETHICK6;
UR:=;
LR:=;
中位:(最后止损+止损)/2,COLORFFFFFF,LINETHICK1;
DRAWNUMBER(ISLASTBAR,中位,中位),COLORWHITE;
DRAWTEXT(ISLASTBAR,(最后止损+止损)/2,' 中位'),COLORWHITE;
最新:C,LINETHICK9,COLORFFFF;
IF(C>=REF(C,1),C,DRAWNULL),LINETHICK9,COLORRED;
AA:=SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*,BARSCOUNT(C));
BB:=BETWEEN(C/AA,C+H,C-H);
DRAWTEXT( ISLASTBAR AND 最新>REF(最新,1),最新,STRCAT(' 涨▲',CON2STR(最新,2))),COLORMAGENTA;
DRAWTEXT( ISLASTBAR AND 最新
MD:=EMA(C,1)-EMA(C,5);
STICKLINE(MD>0,DYNAINFO(3),DYNAINFO(3)+MD*2,0,1),COLORA2;
STICKLINE(MD<=0,DYNAINFO(3),DYNAINFO(3)+MD*2,0,1),COLORA;
分时线:CLOSE,COLORCYAN;
上升:IF(CLOSE>=REF(CLOSE,1),CLOSE,DRAWNULL),COLORC6;
N0:=STRCAT(CON2STR(YEAR,0),' 年 ');
Y:=STRCAT(CON2STR(MONTH,0),' 月 ');
R:=STRCAT(CON2STR(DAY,0),' 日 ');
SJ:=STRCAT(STRCAT(N0,Y), R);
A:=O>C AND C>REF(C,1) AND O/REF(C,1)>1.;
DRAWTEXT(ABS(A)>0,L, '假阴'),COLORYELLOW;
DRAWICON(CREF(C,1),H,6);
均价5:AMOUNT/VOL/,NODRAW;
DRAWNUMBER(ISLASTBAR,均价5,均价5),COLORYELLOW;
假阴0:=O>C AND 均价5>REF(C,1);
DRAWTEXT(假阴0,L-0.2,'↖假阴真阳'),COLORE8E8E8;
STICKLINE(假阴0,O,C,1,0),COLORRED;
{ DRAWTEXT_FIX(C>0,0,0,0,SJ);}
{
DRAWTEXT_FIX(ISLASTBAR,0.5,0.,0,CODE),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.,0.,0,STKNAME)COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.6,0.,0,HYBLOCK),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.6,0,0,DYBLOCK),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.,0.,0,GNBLOCK),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.,0.,0,FGBLOCK),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.,0.,0,ZSBLOCK),COLORYELLOW;
};