以下是UP系列-大雁南飞主图指标公式
UP 大雁南飞
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,8,1),COLORRED;
STICKLINE(CLOSE>OPEN,HIGH,CLOSE,0,0),COLORRED;
STICKLINE(CLOSE>OPEN,LOW,OPEN,0,0),COLORRED;
STICKLINE(CLOSE<OPEN,CLOSE,OPEN,8,0),COLOR009933;
STICKLINE(CLOSE<OPEN,HIGH,LOW,0,0),COLOR009933;
STICKLINE(CLOSE==OPEN,CLOSE,OPEN,8,0),COLORWHITE;
STICKLINE(CLOSE==OPEN,HIGH,LOW,0,0),COLORWHITE;
MID:=(3*C+L+H)/5;
纯粹趋势:=WMA(MID,20);
中位价:=((MAX(CLOSE,OPEN)-MIN(CLOSE,OPEN))/2)+MIN(CLOSE,OPEN);
回升:=中位价>REF(中位价,1) AND REF(中位价,1)<REF(中位价,2) AND REF(中位价,2)<REF(中位价,3) AND REF(C,1)<=REF(C,2),nodraw;
T1:=纯粹趋势>REF(纯粹趋势,1);
启动点:=T1==1 AND REF(T1,1)==0,nodraw;
启动时长:=BARSLAST(启动点)+1,NODRAW;
顶部过滤:=NOT(EXIST(纯粹趋势<=REF(纯粹趋势,1),5));
大雁南飞1:=回升 AND T1==1 AND CLOSE>OPEN AND 顶部过滤 AND 启动时长>5 AND CLOSE>纯粹趋势,nodraw;
大雁南飞:=COUNT(大雁南飞1,启动时长)<=2 AND 大雁南飞1,NODRAW;
大雁南飞(第一式):大雁南飞,nodraw,culoRYELLOW;
drawicon(大雁南飞,low,1);
STICKLINE(大雁南飞,CLOSE,OPEN,8,1),COLORYELLOW;
STICKLINE(大雁南飞,HIGH,CLOSE,0,0),COLORYELLOW;
STICKLINE(大雁南飞,LOW,OPEN,0,0),COLORYELLOW;
绘图:=BACKSET(大雁南飞,4) AND 大雁南飞==0,nodraw;
STICKLINE(绘图,CLOSE,OPEN,8,0),COLORYELLOW;
STICKLINE(绘图,HIGH,LOW,0,0),COLORYELLOW;
修改一下通达信通过的源码:
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,8,1),COLORRED;
STICKLINE(CLOSE>OPEN,HIGH,CLOSE,0,0),COLORRED;
STICKLINE(CLOSE>OPEN,LOW,OPEN,0,0),COLORRED;
STICKLINE(CLOSE<OPEN,CLOSE,OPEN,8,0),COLOR009933;
STICKLINE(CLOSE<OPEN,HIGH,LOW,0,0),COLOR009933;
STICKLINE(CLOSE==OPEN,CLOSE,OPEN,8,0),COLORWHITE;
STICKLINE(CLOSE==OPEN,HIGH,LOW,0,0),COLORWHITE;
MID:=(3*C+L+H)/5;
纯粹趋势:=WMA(MID,20);
中位价:=((MAX(CLOSE,OPEN)-MIN(CLOSE,OPEN))/2)+MIN(CLOSE,OPEN);
回升:=中位价>REF(中位价,1) AND REF(中位价,1)<REF(中位价,2) AND REF(中位价,2)<REF(中位价,3) AND REF(C,1)<=REF(C,2),NODRAW;
T1:=纯粹趋势>REF(纯粹趋势,1);
启动点:=T1==1 AND REF(T1,1)==0,NODRAW;
启动时长:=BARSLAST(启动点)+1,NODRAW;
顶部过滤:=NOT(EXIST(纯粹趋势<=REF(纯粹趋势,1),5));
大雁南飞1:=回升 AND T1==1 AND CLOSE>OPEN AND 顶部过滤 AND 启动时长>5 AND CLOSE>纯粹趋势,NODRAW;
大雁南飞:=COUNT(大雁南飞1,启动时长)<=2 AND 大雁南飞1,NODRAW;
大雁南飞,NODRAW,COLORYELLOW;
DRAWICON(大雁南飞,LOW,1);
STICKLINE(大雁南飞,CLOSE,OPEN,8,1),COLORYELLOW;
STICKLINE(大雁南飞,HIGH,CLOSE,0,0),COLORYELLOW;
STICKLINE(大雁南飞,LOW,OPEN,0,0),COLORYELLOW;
绘图:=BACKSET(大雁南飞,4) AND 大雁南飞==0,NODRAW;
STICKLINE(绘图,CLOSE,OPEN,8,0),COLORYELLOW;
STICKLINE(绘图,HIGH,LOW,0,0),COLORYELLOW;
评论(0)