facelist

您需要登录后才可以留言 登录 |


鹿鸣之音 2021-4-11 16:01
{K线图着重显示涨跌停}
BK:=IF(INBLOCK('科创板'),0.2,IF(INBLOCK('创业板'),0.2,IF(INBLOCK('ST板块'),0.05,0.1)));
XA_1:=IF(DATE<=1200823,1,0);
旧涨停:=(C>=ZTPRICE(REF(CLOSE,1),0.1) AND C=H) AND XA_1=1;
旧跌停:=(C<=DTPRICE(REF(CLOSE,1),0.1) AND C=L) AND XA_1=1;
涨停:=C>=ZTPRICE(REF(C,1),BK) AND C=H;
跌停:=C<=DTPRICE(REF(C,1),BK) AND C=L;
曾涨停:=(H>=ZTPRICE(REF(C,1),BK) AND C<H) OR (H>=ZTPRICE(REF(CLOSE,1),0.1) AND C<H AND XA_1=1);
曾跌停:=(L<=DTPRICE(REF(C,1),BK) AND C>L) OR (L<=DTPRICE(REF(CLOSE,1),0.1) AND C>L AND XA_1=1);
STICKLINE(旧涨停 AND PERIOD=5,O,C,3,0),COLORFF83FA;
STICKLINE(旧跌停 AND PERIOD=5,O,C,3,0),COLORGREEN;
STICKLINE(涨停 AND PERIOD=5,C,O,3,0),COLORFF00FF;
STICKLINE(跌停 AND PERIOD=5,C,O,3,0),COLORGREEN;
STICKLINE(曾涨停 AND PERIOD=5,H,L,0,0),COLORYELLOW;{涨停后回落}
STICKLINE(曾跌停 AND PERIOD=5,L,H,0,0),COLORGREEN;{跌停后回升}

上线:MA(CLOSE,5),COLORMAGENTA,LINETHICK2;
XA_4:=EMA((EMA(CLOSE,1)+EMA(CLOSE,3)+EMA(CLOSE,5))/3,3);
XA_5:=EMA(EMA(EMA(XA_4,1),2),3);
XA_6:=EMA((EMA(CLOSE,19)+EMA(CLOSE,20)+EMA(CLOSE,21))/3,3);
XA_7:=XA_6-(XA_4-XA_6);
下线:EMA(EMA(EMA(XA_7,1),2),3),COLORGREEN,LINETHICK2;
中线:(上线+下线)/2,DOTLINE,COLOR99EEEE;

XA_8:=150;
XA_9:=3;
XA_10:=REF(HHV(HIGH,XA_8),XA_9);
XA_11:=REF(LLV(LOW,XA_8),XA_9);
XA_12:=XA_10-(XA_10-XA_11)*0.886;
XA_13:=XA_10-(XA_10-XA_11)*0.946;
底二886:REFDATE(XA_12,DATE),DOTLINE,COLORFFCC00;
底一946:REFDATE(XA_13,DATE),COLORBLUE;

DRAWTEXT_FIX(ISLASTBAR,0.005,0.02,0,GNBLOCK),COLORCYAN;
DRAWTEXT_FIX(ISLASTBAR,0.005,0.06,0,EXTERNSTR(0,2)),COLORYELLOW;
鹿鸣之音 2021-3-25 18:05
{K线图着重显示涨跌停}
BK:=IF(INBLOCK('科创板'),0.2,IF(INBLOCK('创业板'),0.2,IF(INBLOCK('ST板块'),0.05,0.1)));
XA_1:=IF(DATE<=1200823,1,0);
旧涨停:=(C>=ZTPRICE(REF(CLOSE,1),0.1) AND C=H) AND XA_1=1;
旧跌停:=(C<=DTPRICE(REF(CLOSE,1),0.1) AND C=L) AND XA_1=1;
涨停:=C>=ZTPRICE(REF(C,1),BK) AND C=H;
跌停:=C<=DTPRICE(REF(C,1),BK) AND C=L;
曾涨停:=(H>=ZTPRICE(REF(C,1),BK) AND C<H) OR (H>=ZTPRICE(REF(CLOSE,1),0.1) AND C<H AND XA_1=1);
曾跌停:=(L<=DTPRICE(REF(C,1),BK) AND C>L) OR (L<=DTPRICE(REF(CLOSE,1),0.1) AND C>L AND XA_1=1);
STICKLINE(旧涨停 AND PERIOD=5,O,C,3,0),COLORFF83FA;
STICKLINE(旧跌停 AND PERIOD=5,O,C,3,0),COLORGREEN;
STICKLINE(涨停 AND PERIOD=5,C,O,3,0),COLORFF00FF;
STICKLINE(跌停 AND PERIOD=5,C,O,3,0),COLORGREEN;
STICKLINE(曾涨停 AND PERIOD=5,H,L,0,0),COLORYELLOW;{涨停后回落}
STICKLINE(曾跌停 AND PERIOD=5,L,H,0,0),COLORGREEN;{跌停后回升}

上线:MA(CLOSE,5),COLORMAGENTA,LINETHICK2;
XA_4:=EMA((EMA(CLOSE,1)+EMA(CLOSE,3)+EMA(CLOSE,5))/3,3);
XA_5:=EMA(EMA(EMA(XA_4,1),2),3);
XA_6:=EMA((EMA(CLOSE,19)+EMA(CLOSE,20)+EMA(CLOSE,21))/3,3);
XA_7:=XA_6-(XA_4-XA_6);
下线:EMA(EMA(EMA(XA_7,1),2),3),COLORGREEN,LINETHICK2;
中线:(上线+下线)/2,DOTLINE,COLOR99EEEE;

XA_8:=150;
XA_9:=3;
XA_10:=REF(HHV(HIGH,XA_8),XA_9);
XA_11:=REF(LLV(LOW,XA_8),XA_9);
XA_12:=XA_10-(XA_10-XA_11)*0.886;
XA_13:=XA_10-(XA_10-XA_11)*0.946;
底二886:REFDATE(XA_12,DATE),DOTLINE,COLORFFCC00;
底一946:REFDATE(XA_13,DATE),COLORBLUE;

DRAWTEXT_FIX(ISLASTBAR,0.005,0.02,0,GNBLOCK),COLORCYAN;
DRAWTEXT_FIX(ISLASTBAR,0.005,0.06,0,EXTERNSTR(0,2)),COLORYELLOW;
回顶部 到页底
返回顶部