以下是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;

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。