今高:DYNAINFO(5),COLORLIMAGENTA,LINETHICK2;
DRAWNUMBER(ISLASTBAR,今高,今高),COLORLIMAGENTA;
DRAWTEXT(CURRBARSCOUNT=8,今高,' 高')COLORLIMAGENTA,LINETHICK2;
今低:DYNAINFO(6),COLORYELLOW,LINETHICK5;
DRAWTEXT(CURRBARSCOUNT=8,今低,' 低'),COLORYELLOW;
DRAWNUMBER(ISLASTBAR,今低,今低),COLORYELLOW;
昨收:DYNAINFO(3),NODRAW,COLORFF9900,LINETHICK3;
今开:DYNAINFO(4),NODRAW,COLORCYAN,LINETHICK3;
MA30:=EMA(CLOSE,30);
强弱:EMA(CLOSE,900)COLORWHITE;
H1:=MAX(DYNAINFO(3),DYNAINFO(5));
L1:=MIN(DYNAINFO(3),DYNAINFO(6));
P1:=H1-L1;
阻力:L1+P1*7/7.5,COLOR00DD00,LINETHICK2;
DRAWTEXT(CURRBARSCOUNT=8,阻力,'阻力'),COLORGREEN;
DRAWNUMBER(ISLASTBAR,阻力,阻力),COLORGREEN;
支撑:L1+P1*0.5/8,COLOR00DD00,LINETHICK2;
DRAWTEXT(CURRBARSCOUNT=8,支撑,' 支撑'),COLORGREEN;
DRAWNUMBER(ISLASTBAR,支撑,支撑),COLORGREEN;
现价:CLOSE,COLORWHITE,LINETHICK1;
IF(MACD.DEA<0,C,DRAWNULL),LINETHICK9.99,COLORLIRED;
DRAWTEXT(LONGCROSS(强弱,现价,1),现价,'跌势'),COLORLIGREEN;
DRAWTEXT(LONGCROSS(现价,强弱,1),现价,'加★'),COLORRED;
DRAWTEXT(LONGCROSS(现价,支撑,1),现价,'★买低'),COLORGREEN;
DRAWTEXT(LONGCROSS(现价,阻力,2),现价,'★卖出'),COLORGREEN;
VAR100:=EMA(EMA(CLOSE,13),13);
控盘:=(VAR100-REF(VAR100,1))/REF(VAR100,1)*1000;
A10:=CROSS(控盘,0);
控盘B:=FILTER(IF(A10,1,0),5);
{分时价咯原码}
JJ:=DYNAINFO(11);
{波段买卖原码}
P:=55;S:=8;M1:=3;
财:=(EMA(CLOSE,S)-EMA(CLOSE,P))*10,COLORRED,LINETHICK1;
神:=EMA(财,M1),COLORGREEN,LINETHICK1;
{股价与均线偏离买卖条件}
BTJ1:=(C-JJ)/JJ<-0.03;
BTJ11:=(C-JJ)/JJ<-0.03;
BTJ12:=LAST(JJ>=REF(JJ,1),5,1) AND (C-JJ)/JJ<0.005;
STJ1:=(C-JJ)/JJ>0.005;
{控盘买卖条件}
STJ01:=控盘<REF(控盘,1) AND 控盘>0.5;
STJ02:=控盘>0;
BTJ2:=控盘>REF(控盘,1) AND 控盘<-0.2;
BTJ22:=控盘>REF(控盘,1) AND 控盘<0 ;
{波段买卖条件}
BTJ3:=CROSS(财,神) AND 财<-0.3;
BTJ32:=CROSS(财,神) AND 财<-0.1;
STJ31:=CROSS(神,财);
STJ32:=CROSS(神,财) AND 财>1.618;
{以下为信号};
BTJ81:=FILTER(BTJ1 AND BTJ2 AND BTJ3,13);
有庄:FILTER(BTJ11 AND BTJ2 AND BTJ3,13),COLORWHITE,NODRAW;
BTJ82:=FILTER(BTJ12 AND BTJ22 AND BTJ32,13);
DRAWTEXT(有庄,支撑,'★★有庄'),COLORWHITE;
STJ81:=FILTER(STJ1 AND STJ01 AND STJ31,13);
STJ82:=FILTER(STJ02 AND STJ32 ,13);
STJ83:=STJ81 AND STJ82;
DRAWTEXT(STJ83,现价,'↓跌势确立'),COLORYELLOW;
选股
VAR100:=EMA(EMA(CLOSE,13),13);
JJ:=DYNAINFO(11);
P:=55;S:=8;M1:=3;
财:=(EMA(CLOSE,S)-EMA(CLOSE,P))*10,COLORRED,LINETHICK1;
神:=EMA(财,M1),COLORGREEN,LINETHICK1;
BTJ11:=(C-JJ)/JJ<-0.03;
控盘:=(VAR100-REF(VAR100,1))/REF(VAR100,1)*1000;
BTJ2:=控盘>REF(控盘,1) AND 控盘<-0.2;
BTJ3:=CROSS(财,神) AND 财<-0.3;
有庄:FILTER(BTJ11 AND BTJ2 AND BTJ3,13); |