马上注册,享用更多功能,让你轻松玩转本论坛。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
MA60:MA(CLOSE,60);
MA120:MA(CLOSE,120);
DRAWBAND(MA(C,60),RGB(198,135,139),MA(C,120),RGB(125,125,135));
DRAWKLINE(H,O,L,C);
MA5:MA(CLOSE,5);
MA10:MA(CLOSE,10);
DRAWBAND(MA(C,5),RGB(0,0,255),MA(C,10),RGB(0,0,835));
DRAWKLINE(H,O,L,C);
MA20:MA(CLOSE,20),COLORYELLOW,LINETHICK2;
MA250:MA(CLOSE,250),LINETHICK4;
MA90:MA(CLOSE,90),COLORRED;
涨跌:=REF(C,1);
涨停:=IF((C-涨跌)*100/涨跌>=(10-0.01*100/涨跌),1,0);
DRAWICON(涨停,H*1.03,23);
LAST3K:=CURRBARSCOUNT>4;
上涨:=REF(CLOSE,3)>REF(CLOSE,4);
未跌破:=REF(CLOSE,2)>REF(LOW,3) AND REF(CLOSE,1)>REF(LOW,3) AND CLOSE>REF(LOW,3);
缩量:=REF(VOL,3)>0.35*(REF(VOL,1)+REF(VOL,2)+VOL) AND REF(VOL,3)>REF(VOL,2);{1.05/3,5%}
逐级缩量:=REF(VOL,3)>=REF(VOL,2) AND REF(VOL,2)>=REF(VOL,1) AND REF(VOL,1)>=VOL;{平量也看成缩量}
逐级价升:=REF(CLOSE,3)<REF(CLOSE,2) AND REF(CLOSE,2)<=REF(CLOSE,1) AND REF(CLOSE,1)<=CLOSE;
{倍量}
倍量1:=(REF(VOL,3)>=REF(VOL,4)*1.91),NODRAW;{实际给1.91倍}
倍量:VOL>REF(VOL,1)*1.91,NODRAW;
{高量}
高量1:=REF(VOL,3)>REF(HHV(VOL,3),4) AND REF(VOL,3)>HHV(VOL,3),NODRAW,COLORWHITE;
TEMP1:=BACKSET(高量1,4);
高量:FILTER(TEMP1,3),NODRAW,COLORWHITE;
{将军}
将军1:=上涨 AND 未跌破 AND (倍量1 OR 高量1),NODRAW,COLORYELLOW;
{黄金}
黄金1:=将军1 AND 缩量,NODRAW,COLORYELLOW;
{标准黄金}
标准黄金1:=黄金1 AND 逐级缩量 AND 逐级价升,NODRAW,COLORRED;
将军2:=将军1 AND 黄金1=0 AND BARSLAST(REF(将军1,1))>1;
黄金2:=黄金1 AND 标准黄金1=0 AND BARSLAST(REF(将军1,1))>1;
将军3:=BACKSET(将军2,4);
将军:FILTER(将军3,3),NODRAW,COLORWHITE;
黄金3:=BACKSET(黄金2,4);
黄金:FILTER(黄金3,3),NODRAW,COLORYELLOW;
标准黄金2:=BACKSET(标准黄金1,4);
标准黄金:FILTER(标准黄金2,3),NODRAW,COLORRED;
{输出,规则是连续都满足条件则取第一个}
STICKLINE(C,REF(L,BARSLAST(标准黄金)),REF(L,BARSLAST(标准黄金)),2,0),COLORYELLOW;
STICKLINE(C,REF(L,BARSLAST(黄金)),REF(L,BARSLAST(黄金)),2,0),COLORYELLOW;
STICKLINE(C,REF(H,BARSLAST(黄金)),REF(H,BARSLAST(黄金)),2,0),COLORCYAN;
STICKLINE(LAST3K AND 黄金,O,C,0.5,0),COLORYELLOW;
STICKLINE(LAST3K AND 标准黄金,O,C,2,0),COLORYELLOW;
STICKLINE(LAST3K AND 将军,O,C,3,0),COLORYELLOW;
|