L1:=MIN(DYNAINFO(3),DYNAINFO(6));
P1:=H1-L1;
阻力:L1+P1*7/8,COLOR00DD00;
支撑:L1+P1*0.5/8,COLOR00DD00;
现价:CLOSE,COLORWHITE,LINETHICK0.01;
STICKLINE(CROSS(支撑,现价),支撑,阻力,1,0),COLORYELLOW;
DRAWTEXT(LONGCROSS(支撑,现价,2),支撑*1.001, 低吸 ),COLORGREEN;{吸}
DRAWTEXT(LONGCROSS(现价,阻力,2),现价*1, 高抛 ),COLORLIMAGENTA;{抛};
{T+1止赢、止损}
止赢: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:=10;LR:=10;
中位:(最后止损+止损)/2,COLORFFFFFF,LINETHICK1;
DRAWNUMBER(ISLASTBAR,中位,中位),COLORWHITE;
DRAWTEXT(ISLASTBAR,(最后止损+止损)/2, 中位 ),COLORWHITE;
最新:C,LINETHICK9,COLORFFFF00;
IF(C =REF(C,1),C,DRAWNULL),LINETHICK9,COLORRED;
AA:=SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BARSCOUNT(C));
BB:=BETWEEN(C/AA,C+H,C-H);
DRAWTEXT( ISLASTBAR AND 最新 REF(最新,1),最新,STRCAT( 涨▲ ,CON2STR(最新,2))),COLORMAGENTA;
DRAWTEXT( ISLASTBAR AND 最新 REF(最新,1),最新,STRCAT( 跌▼ ,CON2STR(最新,2))),COLOR00FF00;
MD:=EMA(C,1)-EMA(C,5);
STICKLINE(MD 0,DYNAINFO(3),DYNAINFO(3)+MD*2,0,1),COLOR5151A2;
STICKLINE(MD =0,DYNAINFO(3),DYNAINFO(3)+MD*2,0,1),COLOR74743A;
分时线:CLOSE,COLORCYAN;
上升:IF(CLOSE =REF(CLOSE,1),CLOSE,DRAWNULL),COLOR0000C6;
N0:=STRCAT(CON2STR(YEAR,0), 年
Y:=STRCAT(CON2STR(MONTH,0), 月
R:=STRCAT(CON2STR(DAY,0), 日
SJ:=STRCAT(STRCAT(N0,Y), R);
DRAWTEXT_FIX(C 0,0.68,0,0,SJ);
A:=O C AND C REF(C,1) AND O/REF(C,1) 1.03;
DRAWTEXT(ABS(A) 0,L, 假阴 ),COLORYELLOW;
DRAWICON(C O AND C REF(C,1),H,6);{假阴真阳}
均价5:AMOUNT/VOL/100,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(ISLASTBAR,0.5,0.05,0,CODE),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.55,0.05,0,STKNAME)COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.6,0.05,0,HYBLOCK),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.6,0,0,DYBLOCK),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.55,0.85,0,GNBLOCK),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.55,0.90,0,FGBLOCK),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.55,0.95,0,ZSBLOCK),COLORYELLOW;
时间:=TIME=100000;
N:=BARSLAST(时间),COLOR808080;